delorie.com/archives/browse.cgi | search |
> Date: Thu, 31 Aug 2000 22:05:50 +0200 > From: Laurynas Biveinis <lauras AT softhome DOT net> > > > If you know these > > functions will always set errno=0 (no POSIX function is required to do > > that) then your code would be safe. > > To be more exact, these functions do not alter errno at all, if they succeed. > But this is OK too, unless some previous system function has failed, and this > failure wasn't handled properly. The fact that successful operations don't alter errno is the required behavior.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |