diff options
author | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2003-01-02 10:55:12 +0000 |
---|---|---|
committer | bjh <bjh@13f79535-47bb-0310-9956-ffa450edef68> | 2003-01-02 10:55:12 +0000 |
commit | e6e75787e87f2e884427a797e8cfd2904e5f8868 (patch) | |
tree | b6d4a4bbe3a90dddad2fe7b5a3ac1ac4669f5313 /include/apr_errno.h | |
parent | 11884037e6169c7a5f6ad2ba4dd241e50b56e8dc (diff) | |
download | libapr-e6e75787e87f2e884427a797e8cfd2904e5f8868.tar.gz |
OS/2 can return ERROR_ACCESS_DENIED when creating an already existing directory
and attempting to delete a non-empty directory. Add it to appropriate test
macros. This fixes a few directory tests.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64254 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_errno.h')
-rw-r--r-- | include/apr_errno.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/apr_errno.h b/include/apr_errno.h index 1b92207d9..2311ce3a5 100644 --- a/include/apr_errno.h +++ b/include/apr_errno.h @@ -880,7 +880,8 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf, #define APR_STATUS_IS_EEXIST(s) ((s) == APR_EEXIST \ || (s) == APR_OS_START_SYSERR + ERROR_OPEN_FAILED \ || (s) == APR_OS_START_SYSERR + ERROR_FILE_EXISTS \ - || (s) == APR_OS_START_SYSERR + ERROR_ALREADY_EXISTS) + || (s) == APR_OS_START_SYSERR + ERROR_ALREADY_EXISTS \ + || (s) == APR_OS_START_SYSERR + ERROR_ACCESS_DENIED) #define APR_STATUS_IS_ENAMETOOLONG(s) ((s) == APR_ENAMETOOLONG \ || (s) == APR_OS_START_SYSERR + ERROR_FILENAME_EXCED_RANGE \ || (s) == APR_OS_START_SYSERR + SOCENAMETOOLONG) @@ -932,7 +933,8 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf, #define APR_STATUS_IS_EXDEV(s) ((s) == APR_EXDEV \ || (s) == APR_OS_START_SYSERR + ERROR_NOT_SAME_DEVICE) #define APR_STATUS_IS_ENOTEMPTY(s) ((s) == APR_ENOTEMPTY \ - || (s) == APR_OS_START_SYSERR + ERROR_DIR_NOT_EMPTY) + || (s) == APR_OS_START_SYSERR + ERROR_DIR_NOT_EMPTY \ + || (s) == APR_OS_START_SYSERR + ERROR_ACCESS_DENIED) /* Sorry, too tired to wrap this up for OS2... feel free to |