httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <>
Subject Re: Errno code in APR again.
Date Sat, 08 Apr 2000 03:18:22 GMT
On Fri, 7 Apr 2000 12:03:43 -0400 (EDT), wrote:

>The job of APR is to take portability off the programer's shoulders.  I
>guess the best justification for doing it this way is that we started
>doing it the other way (returning a common error code), and we lose
>information.  It isn't always possible to go through this transformation:
>    platform err-code  ->  common error code  ->  platform error code.
>You want proof of that?  How many error codes does Windows and OS/2 have?

Yes, converting to the common error code will be lossy. For OS/2 there
around 300 error codes that the base level API calls (not including socket
stuff) return but sys/errno.h has just 66. Win32 will be similar, in fact
alot of codes are common between Win32 & OS/2.

 |  Brian Havard                 |  "He is not the messiah!                   |
 |  |  He's a very naughty boy!" - Life of Brian |

View raw message