This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 10/26/18 2:18 PM, Albert ARIBAUD wrote:
Is it allowed behavior to alter errno when not returning an error condition?
Ordinarily yes. But it would be better if mktime left errno alone when -1 does not represent an error, so that the caller can easily distinguish valid -1 return values from erroneous ones.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |