summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2005-08-23 12:47:25 +0000
committertrawick <trawick@13f79535-47bb-0310-9956-ffa450edef68>2005-08-23 12:47:25 +0000
commit8d1e03d9055f38655e3cb6f73c3c8a3a1b848e30 (patch)
tree032b62f97782bdb94b3306e014cf612df1f73f4d
parent111e6cab5714b8f35539e31abeb496524711cb02 (diff)
downloadlibapr-8d1e03d9055f38655e3cb6f73c3c8a3a1b848e30.tar.gz
Backport from trunk:
APR_STATUS_IS_ENOENT(): check for EMVSCATLG on z/OS git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@239401 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--include/apr_errno.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/apr_errno.h b/include/apr_errno.h
index 2c4495186..bf9402cba 100644
--- a/include/apr_errno.h
+++ b/include/apr_errno.h
@@ -1123,8 +1123,18 @@ APR_DECLARE(char *) apr_strerror(apr_status_t statcode, char *buf,
#define APR_STATUS_IS_EEXIST(s) ((s) == APR_EEXIST)
/** path name is too long */
#define APR_STATUS_IS_ENAMETOOLONG(s) ((s) == APR_ENAMETOOLONG)
-/** no such file or directory */
+/**
+ * no such file or directory
+ * @remark
+ * EMVSCATLG can be returned by the automounter on z/OS for
+ * paths which do not exist.
+ */
+#ifdef EMVSCATLG
+#define APR_STATUS_IS_ENOENT(s) ((s) == APR_ENOENT \
+ || (s) == EMVSCATLG)
+#else
#define APR_STATUS_IS_ENOENT(s) ((s) == APR_ENOENT)
+#endif
/** not a directory */
#define APR_STATUS_IS_ENOTDIR(s) ((s) == APR_ENOTDIR)
/** no space left on device */