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
On Tue, Jan 02, 2001 at 05:09:35PM +0100, Jakub Jelinek wrote:
> 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.
Thanks.
--
-----------=======-=-======-=========-----------=====------------=-=------
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'