ISO C and errno
Ulrich Drepper
drepper@redhat.com
Sat Sep 23 10:11:00 GMT 2000
Mark Kettenis <kettenis@wins.uva.nl> writes:
> Only ISO C functions that are documented to store an error value in
> errno are required to leave it alone if they return successfully.
> Those functions should save and restore errno if necessary, and AFAIK
> they do so.
The only functions in ISO C which use errno are the math functions and
strto*(). They do the right thing.
I don't know why you continue hitting on this. Wrong code cannot be
expected to run. It only means that writing compatible applications
is harder since you don't see some bugs.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list