[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apr-cvs
Subject:    svn commit: r936322 - /apr/apr/trunk/include/apr_errno.h
From:       bjh () apache ! org
Date:       2010-04-21 14:29:02
Message-ID: 20100421142902.E520D2388894 () eris ! apache ! org
[Download RAW message or body]

Author: bjh
Date: Wed Apr 21 14:29:02 2010
New Revision: 936322

URL: http://svn.apache.org/viewvc?rev=936322&view=rev
Log:
OS/2: Make APR_STATUS_IS_EDSOOPEN() and APR_STATUS_IS_ESYMNOTFOUND()
work correctly on OS/2.

Modified:
    apr/apr/trunk/include/apr_errno.h

Modified: apr/apr/trunk/include/apr_errno.h
URL: http://svn.apache.org/viewvc/apr/apr/trunk/include/apr_errno.h?rev=936322&r1=936321&r2=936322&view=diff
 ==============================================================================
--- apr/apr/trunk/include/apr_errno.h (original)
+++ apr/apr/trunk/include/apr_errno.h Wed Apr 21 14:29:02 2010
@@ -397,6 +397,9 @@ APR_DECLARE(char *) apr_strerror(apr_sta
 #if defined(WIN32)
 #define APR_STATUS_IS_EDSOOPEN(s)       ((s) == APR_EDSOOPEN \
                        || APR_TO_OS_ERROR(s) == ERROR_MOD_NOT_FOUND)
+#elif defined(OS2)
+#define APR_STATUS_IS_EDSOOPEN(s)       ((s) == APR_EDSOOPEN \
+                       || APR_TO_OS_ERROR(s) == ERROR_FILE_NOT_FOUND)
 #else
 #define APR_STATUS_IS_EDSOOPEN(s)       ((s) == APR_EDSOOPEN)
 #endif
@@ -418,6 +421,9 @@ APR_DECLARE(char *) apr_strerror(apr_sta
 #if defined(WIN32)
 #define APR_STATUS_IS_ESYMNOTFOUND(s)   ((s) == APR_ESYMNOTFOUND \
                        || APR_TO_OS_ERROR(s) == ERROR_PROC_NOT_FOUND)
+#elif defined(OS2)
+#define APR_STATUS_IS_ESYMNOTFOUND(s)   ((s) == APR_ESYMNOTFOUND \
+                       || APR_TO_OS_ERROR(s) == ERROR_INVALID_NAME)
 #else
 #define APR_STATUS_IS_ESYMNOTFOUND(s)   ((s) == APR_ESYMNOTFOUND)
 #endif


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic