This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Bug#81059: fstat misbehaviour: errno set inappropriately


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]