Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Nov 2003 19:23:23 +0100
From:      Stefan Farfeleder <stefan@fafoe.narf.at>
To:        "boyd, rounin" <boyd@insultant.net>
Cc:        current@freebsd.org
Subject:   Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY
Message-ID:  <20031124182322.GB621@wombat.fafoe.narf.at>
In-Reply-To: <03a601c3b2b5$7bc15b80$b9844051@insultant.net>
References:  <20031123141408.GA1426@ratsnest.hole> <20031124174457.GB27782@madman.celabo.org> <03a601c3b2b5$7bc15b80$b9844051@insultant.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 24, 2003 at 07:05:02PM +0100, boyd, rounin wrote:
> From: "Jacques A. Vidrine" <nectar@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031124182322.GB621>