On errno

Ed Schouten ed at 80386.nl
Mon Mar 30 12:50:06 PDT 2009


* Tim Kientzle <kientzle at freebsd.org> wrote:
> POSIX does specify the range of allowable error codes
> for a lot of system calls, but not all.  In my experience,
> straying outside of that causes more problems than it's
> worth.  A lot of programs make error-recovery decisions
> based on errno values and that can get to be a portability
> headache rather quickly (remember that for most software,
> the default is going to be "if you don't recognize the errno
> value, exit with a fatal error.")

Create a new system call that allows you to obtain a more accurate error
code afterwards. We should probably call this function GetLastError().

-- 
 Ed Schouten <ed at 80386.nl>
 WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20090330/1d238f13/attachment.pgp


More information about the freebsd-arch mailing list