You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2004/03/12 18:24:36 UTC
cvs commit: apr/include apr_errno.h
jorton 2004/03/12 09:24:36
Modified: include apr_errno.h
Log:
* include/apr_errno.h: Treat EDQUOT like ENOSPC on Unix.
Revision Changes Path
1.117 +5 -0 apr/include/apr_errno.h
Index: apr_errno.h
===================================================================
RCS file: /home/cvs/apr/include/apr_errno.h,v
retrieving revision 1.116
retrieving revision 1.117
diff -w -d -u -r1.116 -r1.117
--- apr_errno.h 13 Feb 2004 09:38:28 -0000 1.116
+++ apr_errno.h 12 Mar 2004 17:24:36 -0000 1.117
@@ -1130,7 +1130,12 @@
/** not a directory */
#define APR_STATUS_IS_ENOTDIR(s) ((s) == APR_ENOTDIR)
/** no space left on device */
+#ifdef EDQUOT
+#define APR_STATUS_IS_ENOSPC(s) ((s) == APR_ENOSPC \
+ || (s) == EDQUOT)
+#else
#define APR_STATUS_IS_ENOSPC(s) ((s) == APR_ENOSPC)
+#endif
/** not enough memory */
#define APR_STATUS_IS_ENOMEM(s) ((s) == APR_ENOMEM)
/** too many open files */