ISO C and errno

Mark Kettenis kettenis@wins.uva.nl
Sat Sep 23 09:44:00 GMT 2000


   Date: Sat, 23 Sep 2000 09:21:59 -0700
   From: "H . J . Lu" <hjl@lucon.org>

   If ISO C says errno is unchanged for a succesful return, there are
   many ISO C functions in glibc call the none ISO C system calls which
   change errno in the current glibc.

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.

Mark


More information about the Libc-hacker mailing list