httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <>
Subject Re: Change to Error logging routines.
Date Thu, 21 Oct 1999 15:58:11 GMT
On Thu, 21 Oct 1999 11:46:38 -0400 (EDT), Ryan Bloom wrote:


>> Perhaps something like my os2errno() function could become a public API, say 
>> int ap_status_errno(ap_status_t);
>> that could be used to map the system error codes to errno values when you
>> actually want to know what type of error occurred.
>We would either need ap_status_errno, or we need to ifdef the code.  Bill
>says converting Windows Error values to errno's is not easy, which is what
>precipitated this change.  If it is as difficult as he seems to think it
>is, I would rather just ifdef the code, I think.  If it is easy, but
>time-consuming (programming time, not run-time), I would probably rather
>have the function.

All C libraries do it so it can't be THAT hard. If the ap_status_errno() call
is only made on failure and only when we care then execution expense becomes

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

View raw message