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

From: boyd, rounin <boyd_at_insultant.net>
Date: Mon, 24 Nov 2003 19:05:02 +0100
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.

it is also well known that stdio uses isatty(3) (or equivelant) that may
set errno to ENOTTY.
Received on Mon Nov 24 2003 - 09:06:51 UTC

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