1ea_error(3EXACCTE)xtended Accounting File Access Library Functioenas_error(3EXACCT)
2
3
4
6 ea_error - error interface to extended accounting library
7
9 cc [ flag... ] file... -lexacct [ library ... ]
10 #include <exacct.h>
11
12 int ea_error(void);
13
14
16 The ea_error() function returns the error value of the last failure
17 recorded by the invocation of one of the functions of the extended
18 accounting library, libexacct.
19
21 EXR_CORRUPT_FILE A function failed because the file was not a valid
22 exacct file.
23
24
25 EXR_EOF A function detected the end of the file, either
26 when reading forwards or backwards through the
27 file.
28
29
30 EXR_INVALID_BUF When unpacking an object, an invalid unpack buffer
31 was specified.
32
33
34 EXR_INVALID_OBJ The object type passed to the function is not valid
35 for the requested operation, for example passing a
36 group object to ea_set_item(3EXACCT).
37
38
39 EXR_NO_CREATOR When creating a new file no creator was specified,
40 or when opening a file for reading the creator
41 value did not match the value in the file.
42
43
44 EXR_NOTSUPP An unsupported type of access was attempted, for
45 example attempting to write to a file that was
46 opened read-only.
47
48
49 EXR_OK The function completed successfully.
50
51
52 EXR_SYSCALL_FAIL A system call invoked by the function failed.
53 The errno variable contains the error value set
54 by the underlying call.
55
56
57 EXR_UNKN_VERSION The file referred to by name uses an exacct file
58 version that cannot be processed by this library.
59
60
62 See attributes(5) for descriptions of the following attributes:
63
64
65
66
67 ┌──────────────────────┬────────────────────────────────────┐
68 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
69 ├──────────────────────┼────────────────────────────────────┤
70 │Interface Stability │Evolving │
71 ├──────────────────────┼────────────────────────────────────┤
72 │MT-Level │MT-Safe │
73 └──────────────────────┴────────────────────────────────────┘
74
76 read(2), libexacct(3LIB), attributes(5)
77
78
79
80SunOS 5.11 29 Nov 2001 ea_error(3EXACCT)