httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <>
Subject Re: cvs commit: apache-2.0/src/lib/apr/misc/unix errorcodes.c
Date Sun, 28 May 2000 17:42:12 GMT
On Sat, 27 May 2000 09:37:11 -0700 (PDT), wrote:

>> 3) The application calls ap_dso_error() with the failed ap_dso_handle_t
>> instead of ap_strerror(). ap_strerror() will just say something like "DSO
>> load failed" if it gets passed AP_EDSOLOAD.
>No.  We are trying to keep error handling consistent.  This breaks that
>consistency completely.
>> Of course the downside is that the application has to use a different
>> function to get the best error message but I think it's worth it given that
>> some platforms have useful string information associated with a module load
>> failure.
>And that information can be retrieved with the current code.  Just change
>the API if a platform needs to get a buffer returned from ap_dso_error.

Well, the way it is ap_dso_error() is pointless and will never be used on
OS/2 and, I suspect, any other non-dl platforms. I figured it was more
useful as an ap_strerror() enhanced for dso.

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

View raw message