Bug#81059: fstat misbehaviour: errno set inappropriately

Andreas Schwab schwab@suse.de
Tue Jan 2 08:08:00 GMT 2001


Ben Collins <bcollins@debian.org> writes:

|> Seems errno wasn't getting reset if a program called fxstat which tried to
|> call fstat64 and got ENOSYS.

This is not a bug.  The value of errno is only defined after a failed call
to a function for which the use of errno is documented.  Only a few
functions are required to not touch errno if returning successfully.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg


More information about the Libc-alpha mailing list