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: Andreas Schwab <schwab at suse dot de>
- Date: 02 Jan 2001 17:08:21 +0100
- Cc: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- References: <20010102105722.F26327@visi.net>
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