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


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

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