pool_error, pool_strerror - error interface to resource pools library
cc [ flag... ] file... -lpool [ library... ]
const char *pool_strerror(int perr);
The pool_error() function returns the error value of the last failure
recorded by the invocation of one of the functions of the resource pool
configuration library, libpool.
The pool_strerror() function returns a descriptive
null-terminated string for each of the valid pool error codes.
The following error codes can be returned by
The pool_error() function returns the current pool error value for the
calling thread from among the following:
The operation could not be performed because the
configuration was not opened with the correct opening permissions.
A bad parameter was supplied.
An incorrect property type was submitted or encountered
during the pool operation.
An error occurred within permanent storage.
The pool configuration presented for the operation is
A query whose outcome set was empty was attempted.
An unsupported operation was attempted.
An attempt to write a read-only property was made.
The previous pool operation succeeded.
An underlying system call or library function failed;
is preserved where possible.
The pool_strerror() function returns a pointer to the
string corresponding to the requested error value. If the error value has no
corresponding string, −1 is returned and errno is set to
indicate the error.
The pool_strerror() function will fail if:
The specified error value is not defined by the pools
See attributes(7) for descriptions of the following attributes: