[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: [PATCH 1/6] fix ambiguous errno treating after mktime()
On Sun, Aug 31, 2008 at 05:55:58PM +0700, Robert Elz wrote:
> Testing errno is only a defined operation immediately after a call to
> a function which is defined to set errno, and only in the circumstances
> where errno is defined as being set (which includes system calls that return
> an error indiocator, and a few other functions here and there).
> In no other case (including after system calls that succeed) is the
> value of errno defined.
Right, but, as previously noted, it is desirable for functions that
are cognizant of errno to leave errno unchanged if they have not
failed, regardless of what the formal definition says.
David A. Holland
Main Index |
Thread Index |