apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: apr_file operations returning system errno as apr_status_t
Date Sun, 04 Feb 2007 22:26:58 GMT
Justin Erenkrantz wrote:
> On 2/4/07, Garrett Rooney <rooneg@electricjellyfish.net> wrote:
>> I was under the impression that apr_status_t is a superset of errno,
>> so returning the current errno should be perfectly fine...
> It is.  -- justin

Sort of.  Posix errno's.  Other platforms need to munge their values
with apr_get_os_error/apr_set_os_error.  (Hmmm - it seems long past
time to rename these apr_os_error_get/apr_os_error_set.)

Other ranges are reserved for other errors ... getaddr results, and
dlerror results.

It gets complex - maybe some invocation of apr-config aught to spell out
what ranges have been mapped to what?


View raw message