apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/misc/unix errorcodes.c
Date Mon, 24 Feb 2003 20:32:02 GMT
wrowe       2003/02/24 12:32:02

  Modified:    include  apr_errno.h
               misc/unix errorcodes.c
  Log:
    APR_NOPROC is sort of bogus (we don't check args, remember?) but it really
    didn't convey what we mean if a process *is* passed but not recognized by
    APR as one of APR's own (e.g. calling unregister other child with an
    unregistered process.)  Add APR_EPROC_UNKNOWN for that definition.
  
  Revision  Changes    Path
  1.111     +5 -0      apr/include/apr_errno.h
  
  Index: apr_errno.h
  ===================================================================
  RCS file: /home/cvs/apr/include/apr_errno.h,v
  retrieving revision 1.110
  retrieving revision 1.111
  diff -u -r1.110 -r1.111
  --- apr_errno.h	2 Jan 2003 10:55:12 -0000	1.110
  +++ apr_errno.h	24 Feb 2003 20:32:02 -0000	1.111
  @@ -259,6 +259,7 @@
    * APR_EINCOMPLETE    The given path was neither relative nor absolute.
    * APR_EABOVEROOT     The given path was above the root path.
    * APR_EBUSY          The given lock was busy.
  + * APR_EPROC_UNKNOWN  The given process wasn't recognized by APR
    * </PRE>
    * @{
    */
  @@ -312,6 +313,8 @@
   #define APR_EPATHWILD      (APR_OS_START_ERROR + 25)
   /** @see APR_STATUS_IS_ESYMNOTFOUND */
   #define APR_ESYMNOTFOUND   (APR_OS_START_ERROR + 26)
  +/** @see APR_STATUS_IS_EPROC_UNKNOWN */
  +#define APR_EPROC_UNKNOWN  (APR_OS_START_ERROR + 27)
   
   /* APR ERROR VALUE TESTS */
   /** 
  @@ -396,6 +399,8 @@
   #else
   #define APR_STATUS_IS_ESYMNOTFOUND(s)   ((s) == APR_ESYMNOTFOUND)
   #endif
  +/** The given process was not recognized by APR. */
  +#define APR_STATUS_IS_EPROC_UNKNOWN(s)  ((s) == APR_EPROC_UNKNOWN)
   
   /* APR STATUS VALUES */
   /** @see APR_STATUS_IS_INCHILD */
  
  
  
  1.54      +2 -0      apr/misc/unix/errorcodes.c
  
  Index: errorcodes.c
  ===================================================================
  RCS file: /home/cvs/apr/misc/unix/errorcodes.c,v
  retrieving revision 1.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- errorcodes.c	6 Jan 2003 23:44:32 -0000	1.53
  +++ errorcodes.c	24 Feb 2003 20:32:02 -0000	1.54
  @@ -164,6 +164,8 @@
           return "The given path was above the root path";
       case APR_EBADPATH:
           return "The given path misformatted or contained invalid characters";
  +    case APR_EPROC_UNKNOWN:
  +        return "The process is not recognized.";
       default:
           return "Error string not specified yet";
       }
  
  
  

Mime
View raw message