apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: apr_dso_handle_close ?
Date Wed, 18 Apr 2001 16:34:48 GMT
Doug MacEachern <dougm@covalent.net> writes:

> below is a complete patch to implement apr_dso_handle_close()
> the only cleanup that saved into apr_dso_handle_t was os390:
>  dso->failing_errno = errno;
> which is pointless since that value is returned by the function and
> nothing was checking it anyways.

the reason it is saved is because of the APR interface for getting an
error string from a dso load error...  you don't pass in the
system-specific error value (e.g., errno on Unix) but instead you pass
in the apr DSO handle...  since strerror() is allowed to overlay the
buffer containing the error string, we don't simply save the
strerror() result but instead save the errno... as for why the APR
interface is designed that way: some platforms have additional
information available (beyond any sort of errno-like numeric value)...

-- 
Jeff Trawick | trawickj@bellsouth.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message