You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2001/06/06 18:03:12 UTC

cvs commit: apr/include apr_errno.h

wrowe       01/06/06 09:03:12

  Modified:    include  apr_errno.h
  Log:
    Should have added EPIPE long ago.
  
  Revision  Changes    Path
  1.68      +11 -0     apr/include/apr_errno.h
  
  Index: apr_errno.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_errno.h,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- apr_errno.h	2001/06/04 23:09:31	1.67
  +++ apr_errno.h	2001/06/06 16:03:07	1.68
  @@ -468,7 +468,13 @@
   #define APR_EFTYPE        (APR_OS_START_CANONERR + 23)
   #endif
   
  +#ifdef EPIPE
  +#define APR_EPIPE EPIPE
  +#else
  +#define APR_EPIPE         (APR_OS_START_CANONERR + 24)
  +#endif
   
  +
   #if defined(OS2)
   
   #define APR_FROM_OS_ERROR(e) (e == 0 ? APR_SUCCESS : e + APR_OS_START_SYSERR)
  @@ -580,6 +586,9 @@
   #define APR_STATUS_IS_ENETUNREACH(s)    ((s) == APR_ENETUNREACH \
                   || (s) == APR_OS_START_SYSERR + SOCENETUNREACH)
   #define APR_STATUS_IS_EFTYPE(s)         ((s) == APR_EFTYPE)
  +#define APR_STATUS_IS_EPIPE(s)          ((s) == APR_EPIPE \
  +                || (s) == APR_OS_START_SYSERR + ERROR_BROKEN_PIPE
  +                || (s) == APR_OS_START_SYSERR + SOCEPIPE)
   
   /*
       Sorry, too tired to wrap this up for OS2... feel free to
  @@ -677,6 +686,8 @@
                   || (s) == APR_OS_START_SYSERR + WSAEHOSTUNREACH)
   #define APR_STATUS_IS_ENETUNREACH(s)    ((s) == APR_ENETUNREACH \
                   || (s) == APR_OS_START_SYSERR + WSAENETUNREACH)
  +#define APR_STATUS_IS_EPIPE(s)          ((s) == APR_EPIPE \
  +                || (s) == APR_OS_START_SYSERR + ERROR_BROKEN_PIPE)
   
   #else /* !def OS2 || WIN32 */