Date: Mon, 30 Mar 2009 21:50:03 +0200 From: Ed Schouten <ed@80386.nl> To: Tim Kientzle <kientzle@freebsd.org> Cc: FreeBSD Arch <arch@freebsd.org>, Poul-Henning Kamp <phk@phk.freebsd.dk>, Marcel Moolenaar <xcllnt@mac.com> Subject: Re: On errno Message-ID: <20090330195003.GB73108@hoeg.nl> In-Reply-To: <49D115B9.7030501@freebsd.org> References: <93378.1238438607@critter.freebsd.dk> <49D115B9.7030501@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--jE+K4o1MICf3EEet Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Tim Kientzle <kientzle@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(). --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --jE+K4o1MICf3EEet Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAknRImsACgkQ52SDGA2eCwXBbwCcDz+uWpuDzx6Qq+MstzoBzPSF xKkAniV6c+8vAMkyGdHe3sekZRuKfmpU =AXqT -----END PGP SIGNATURE----- --jE+K4o1MICf3EEet--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090330195003.GB73108>