Modules | |
APR Error Values | |
Status Value Tests | |
Defines | |
#define | APR_FROM_OS_ERROR(e) (e == 0 ? APR_SUCCESS : e + APR_OS_START_SYSERR) |
#define | APR_TO_OS_ERROR(e) (e == 0 ? APR_SUCCESS : e - APR_OS_START_SYSERR) |
#define | apr_get_os_error() (errno) |
#define | apr_set_os_error(e) (errno = (e)) |
#define | apr_get_netos_error() (errno) |
#define | apr_set_netos_error(e) (errno = (e)) |
#define | APR_OS_START_ERROR 20000 |
#define | APR_OS_ERRSPACE_SIZE 50000 |
#define | APR_OS_START_STATUS (APR_OS_START_ERROR + APR_OS_ERRSPACE_SIZE) |
#define | APR_OS_START_USERERR (APR_OS_START_STATUS + APR_OS_ERRSPACE_SIZE) |
#define | APR_OS_START_USEERR APR_OS_START_USERERR |
#define | APR_OS_START_CANONERR |
#define | APR_OS_START_EAIERR (APR_OS_START_CANONERR + APR_OS_ERRSPACE_SIZE) |
#define | APR_OS_START_SYSERR (APR_OS_START_EAIERR + APR_OS_ERRSPACE_SIZE) |
#define | APR_SUCCESS 0 |
Typedefs | |
typedef int | apr_status_t |
Functions | |
char * | apr_strerror (apr_status_t statcode, char *buf, apr_size_t bufsize) |
|
Fold a platform specific error into an apr_status_t code.
|
|
Return the last socket error, folded into apr_status_t, on all platforms
|
|
|
|
APR_OS_ERRSPACE_SIZE is the maximum number of errors you can fit into one of the error/status ranges below -- except for APR_OS_START_USERERR, which see. |
|
Value: (APR_OS_START_USERERR \ + (APR_OS_ERRSPACE_SIZE * 10)) |
|
APR_OS_START_EAIERR folds EAI_ error codes from getaddrinfo() into apr_status_t values. |
|
APR_OS_START_ERROR is where the APR specific error values start. |
|
APR_OS_START_STATUS is where the APR specific status codes start. |
|
APR_OS_START_SYSERR folds platform-specific system error values into apr_status_t values. |
|
APR_OS_START_USEERR is obsolete, defined for compatibility only. Use APR_OS_START_USERERR instead. |
|
APR_OS_START_USERERR are reserved for applications that use APR that layer their own error codes along with APR's. Note that the error immediately following this one is set ten times farther away than usual, so that users of apr have a lot of room in which to declare custom error codes. |
|
Reset the last socket error, unfolded from an apr_status_t
|
|
Reset the last platform error, unfolded from an apr_status_t, on some platforms
|
|
no error.
|
|
|
|
Type for specifying an error or status code. |
|
Return a human readable string describing the specified error.
|