You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bj...@apache.org on 2003/01/02 11:55:12 UTC
cvs commit: apr/include apr_errno.h
bjh 2003/01/02 02:55:12
Modified: include apr_errno.h
Log:
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.
Revision Changes Path
1.110 +4 -2 apr/include/apr_errno.h
Index: apr_errno.h
===================================================================
RCS file: /home/cvs/apr/include/apr_errno.h,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -r1.109 -r1.110
--- apr_errno.h 1 Jan 2003 00:01:45 -0000 1.109
+++ apr_errno.h 2 Jan 2003 10:55:12 -0000 1.110
@@ -880,7 +880,8 @@
#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 @@
#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