[PATCH] libc_r bug: successful close(2) sets errno to ENOTTY
Stefan Farfeleder
stefan at fafoe.narf.at
Mon Nov 24 10:23:30 PST 2003
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
More information about the freebsd-current
mailing list