Date: Mon, 24 Nov 2003 19:05:02 +0100 From: "boyd, rounin" <boyd@insultant.net> To: <current@freebsd.org> Subject: Re: [PATCH] libc_r bug: successful close(2) sets errno to ENOTTY Message-ID: <03a601c3b2b5$7bc15b80$b9844051@insultant.net> References: <20031123141408.GA1426@ratsnest.hole> <20031124174457.GB27782@madman.celabo.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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. it is also well known that stdio uses isatty(3) (or equivelant) that may set errno to ENOTTY.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03a601c3b2b5$7bc15b80$b9844051>