Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY

From: Stefan Farfeleder <stefan_at_fafoe.narf.at>
Date: Mon, 24 Nov 2003 19:23:23 +0100
On Mon, Nov 24, 2003 at 07:05:02PM +0100, boyd, rounin wrote:
> From: "Jacques A. Vidrine" <nectar_at_FreeBSD.org>
> > The application is broken.  You must only check errno if you get an
> > error indication from the library call.
> 
> errno is only meaningful after a syscall error.

Wrong, counter-example: strtol().

Stefan
Received on Mon Nov 24 2003 - 09:23:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:30 UTC