ea_error - error interface to extended accounting library
cc [ flag… ] file… –lexacct [ library … ] #include <exacct.h> int ea_error(void);
The ea_error() function returns the error value of the last failure recorded by the invocation of one of the functions of the extended accounting library, libexacct.
A function failed because the file was not a valid exacct file.
A function detected the end of the file, either when reading forwards or backwards through the file.
When unpacking an object, an invalid unpack buffer was specified.
The object type passed to the function is not valid for the requested operation, for example passing a group object to ea_set_item(3EXACCT).
When creating a new file no creator was specified, or when opening a file for reading the creator value did not match the value in the file.
An unsupported type of access was attempted, for example attempting to write to a file that was opened read-only.
The function completed successfully.
A system call invoked by the function failed. The errno variable contains the error value set by the underlying call.
The file referred to by name uses an exacct file version that cannot be processed by this library.
See attributes(5) for descriptions of the following attributes: