This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Bug#81059: fstat misbehaviour: errno set inappropriately
- To: Ben Collins <bcollins at debian dot org>
- Subject: Re: Bug#81059: fstat misbehaviour: errno set inappropriately
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 2 Jan 2001 17:09:35 +0100
- Cc: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- References: <20010102105722.F26327@visi.net>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
On Tue, Jan 02, 2001 at 10:57:22AM -0500, Ben Collins wrote:
> Seems errno wasn't getting reset if a program called fxstat which tried to
> call fstat64 and got ENOSYS. I'm not sure if this is the proper fix, but
> I have provided a testcase which shows the problem. Note, the testcase
> only works when you compile glibc against LFS capable kernel headers,
> and then try to run it on a non-LFS capable kernel. I don't know any
> other way around this.
The test is flawed, errno can contain anything after a successful library
call (with a few exceptions like strto* family and some math functions I
think).
This has been discussed several times on this list.
Jakub