apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Havard" <bri...@kheldar.apana.org.au>
Subject Re: cvs commit: apr/include apr_errno.h
Date Mon, 14 Oct 2002 11:55:44 GMT
On Sun, 13 Oct 2002 09:22:09 -0500, William A. Rowe, Jr. wrote:

>Would the separation get_os_error, get_netos_error, get_netdb_error
>make sense for resolving into:
>
>Unix errno, errno, h_errno
>Netware errno, WSAGetLastError, WSAGetLastError
>Win32 GetLastError, WSAGetLastError, WSAGetLastError
>OS2 {not applicable}, errno, h_errno

OS/2 actually has a sock_errno() function that works much like
WSAGetLastError(). The values it returns are biased so as to not conflict
with system errors, going from 10000->10066. The h_errno is correct though
& has values -1,1->4 which DOES conflict with system error codes.

-- 
 ______________________________________________________________________________
 |  Brian Havard                 |  "He is not the messiah!                   |
 |  brianh@kheldar.apana.org.au  |  He's a very naughty boy!" - Life of Brian |
 ------------------------------------------------------------------------------


Mime
View raw message