httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject Re: ap_status_t for Win32
Date Sat, 01 Apr 2000 17:01:03 GMT
> As I understand it, the current scheme doesn't really work in that
> errno values collide with OS error codes. 
> EG, on OS/2 APR_ENOMEM == ENOMEM == 12
> 
> but in OS/2's codes
> 
> #define ERROR_INVALID_ACCESS    12
> 
> 
> The advantages of my scheme are:
> - It's simple (always a good thing :)
> - It can be done exactly the same on all platforms.
> - It allows using the default unix implementation on non-unix platforms
> without having to use macro wrappers around errno. IE "return errno;"
> can be used safely everywhere.

All the advantages I was hoping for.  As long as we can "return errno" and
do a 

status = ap_foo_func();

if status != APR_SUCCESS

I say go for it.

Ryan

_______________________________________________________________________________
Ryan Bloom                        	rbb@apache.org
406 29th St.
San Francisco, CA 94131
-------------------------------------------------------------------------------


Mime
View raw message