elm 2.5.3 and glibc 2.1.93
Ulrich Drepper
drepper@redhat.com
Fri Sep 22 10:27:00 GMT 2000
"H . J . Lu" <hjl@lucon.org> writes:
> >From here, I conclude "The glibc functions do not change `errno' when
> they succeed." By not saving/restoring errno, we have changed
> documented glibc behavior. We should be consistent on it.
I've not written this and it is a stupid assumption. errno must be
changeable. Everything depending on errno not being changed is
broken. There are exceptions: strtol() etc. But nothing else. The
reason is simply that the user must not make any assuptions about the
implementation.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list