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 Sun, 08 Apr 2001 08:03:09 GMT
wrowe       01/04/08 01:03:09

  Modified:    misc/unix errorcodes.c
  Log:
    Hmmm... some missing messages (my bad)
  
  Revision  Changes    Path
  1.35      +15 -6     apr/misc/unix/errorcodes.c
  
  Index: errorcodes.c
  ===================================================================
  RCS file: /home/cvs/apr/misc/unix/errorcodes.c,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- errorcodes.c	2001/03/15 18:28:00	1.34
  +++ errorcodes.c	2001/04/08 08:03:09	1.35
  @@ -79,12 +79,12 @@
       switch (statcode) {
       case APR_ENOPOOL:
           return "A new pool could not be created.";
  -    case APR_ENOFILE:
  -        return "No file was provided and one was required.";
       case APR_EBADDATE:
           return "An invalid date has been provided";
       case APR_EINVALSOCK:
           return "An invalid socket was returned";
  +    case APR_ENOFILE:
  +        return "No file was provided and one was required.";
       case APR_ENOPROC:
           return "No process was provided and one was required.";
       case APR_ENOTIME:
  @@ -103,18 +103,17 @@
           return "No thread key structure was provided and one was required.";
       case APR_ENOSHMAVAIL:
           return "No shared memory is currently available";
  -#if APR_HAS_DSO
       case APR_EDSOOPEN:
  -#ifdef HAVE_LIBDL
  +#if APR_HAS_DSO && defined(HAVE_LIBDL)
           return dlerror();
   #else
           return "DSO load failed";
   #endif /* HAVE_LIBDL */
  -#endif /* APR_HAS_DSO */
       case APR_EBADIP:
           return "The specified IP address is invalid.";
       case APR_EBADMASK:
           return "The specified network mask is invalid.";
  +
       case APR_INCHILD:
           return
   	    "Your code just forked, and you are currently executing in the "
  @@ -157,7 +156,17 @@
           return "This function has not been implemented on this platform";
       case APR_EMISMATCH:
           return "passwords do not match";
  -    default:
  +    case APR_EABSOLUTE:
  +        return "The given path is absolute";
  +    case APR_ERELATIVE:
  +        return "The given path is relative";
  +    case APR_EINCOMPLETE:
  +        return "The given path is incomplete";
  +    case APR_EABOVEROOT:
  +        return "The given path was above the root path";
  +    case APR_EBADPATH:
  +        return "The given path misformatted or contained invalid characters";
  +     default:
           return "Error string not specified yet";
       }
   }
  
  
  

Mime
View raw message