diff options
author | Yann Ylavic <ylavic@apache.org> | 2020-11-27 18:27:08 +0000 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2020-11-27 18:27:08 +0000 |
commit | 150cc61d491d51c8fe3b5c2eb7b3db74efbdb3fa (patch) | |
tree | 21a0337653044b675630861dc41c7a4139c481e9 /include | |
parent | e70d77ecc4aa9e0dccac6e7e5ba74639f71f50cf (diff) | |
download | apr-150cc61d491d51c8fe3b5c2eb7b3db74efbdb3fa.tar.gz |
apr_errno: add APR_EALREADY, eventually mapped from system's [WSA]EALREADY.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1883874 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r-- | include/apr_errno.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/apr_errno.h b/include/apr_errno.h index d2abfb18f..3a00457bc 100644 --- a/include/apr_errno.h +++ b/include/apr_errno.h @@ -853,6 +853,13 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf, #define APR_ERANGE (APR_OS_START_CANONERR + 29) #endif +/** @see APR_STATUS_IS_EALREADY */ +#ifdef EALREADY +#define APR_EALREADY EALREADY +#else +#define APR_EALREADY (APR_OS_START_CANONERR + 30) +#endif + /** @} */ #if defined(OS2) && !defined(DOXYGEN) @@ -996,13 +1003,14 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf, #define APR_STATUS_IS_EOPNOTSUPP(s) ((s) == APR_EOPNOTSUPP \ || (s) == APR_OS_START_SYSERR + SOCEOPNOTSUPP) #define APR_STATUS_IS_ERANGE(s) ((s) == APR_ERANGE) +#define APR_STATUS_IS_EALREADY(s) ((s) == APR_EALREADY \ + || (s) == APR_OS_START_SYSERR + SOCEALREADY) /* Sorry, too tired to wrap this up for OS2... feel free to fit the following into their best matches. { ERROR_NO_SIGNAL_SENT, ESRCH }, - { SOCEALREADY, EALREADY }, { SOCEDESTADDRREQ, EDESTADDRREQ }, { SOCEMSGSIZE, EMSGSIZE }, { SOCEPROTOTYPE, EPROTOTYPE }, @@ -1143,6 +1151,8 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf, #define APR_STATUS_IS_EOPNOTSUPP(s) ((s) == APR_EOPNOTSUPP \ || (s) == APR_OS_START_SYSERR + WSAEOPNOTSUPP) #define APR_STATUS_IS_ERANGE(s) ((s) == APR_ERANGE) +#define APR_STATUS_IS_EALREADY(s) ((s) == APR_EALREADY \ + || (s) == APR_OS_START_SYSERR + WSAEALREADY) #elif defined(NETWARE) && defined(USE_WINSOCK) && !defined(DOXYGEN) /* !defined(OS2) && !defined(WIN32) */ @@ -1207,6 +1217,8 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf, #define APR_STATUS_IS_EOPNOTSUPP(s) ((s) == APR_EOPNOTSUPP \ || (s) == APR_OS_START_SYSERR + WSAEOPNOTSUPP) #define APR_STATUS_IS_ERANGE(s) ((s) == APR_ERANGE) +#define APR_STATUS_IS_EALREADY(s) ((s) == APR_EALREADY \ + || (s) == APR_OS_START_SYSERR + WSAEALREADY) #else /* !defined(NETWARE) && !defined(OS2) && !defined(WIN32) */ @@ -1331,6 +1343,9 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf, /** Numeric value not representable */ #define APR_STATUS_IS_ERANGE(s) ((s) == APR_ERANGE) + +/** Operation already in progress */ +#define APR_STATUS_IS_EALREADY(s) ((s) == APR_EALREADY) /** @} */ #endif /* !defined(NETWARE) && !defined(OS2) && !defined(WIN32) */ |