On 13.10.2014 11:38, Andrey Chernov wrote:
> On 13.10.2014 6:44, Garrett Cooper wrote:
>> Author: ngie
>> Date: Mon Oct 13 02:44:35 2014
>> New Revision: 273024
>> URL: https://svnweb.freebsd.org/changeset/base/273024
>>
>> Log:
>>   Only test the return value in mktime_negyear
>>   
>>   Testing for the errno is an optional requirement according to POSIX, and
>>   FreeBSD doesn't document that errno would be set on failure with mktime
> 
> According to Base Specs, Issue 7, at least EOVERFLOW we don't support is
> not optional.
> 

Exact quote (I see absolutely no optionality of this):

RETURN VALUE
...
If the time since the Epoch cannot be represented, the function shall
return the value (time_t)−1 and set errno to indicate the error.

ERRORS
The mktime() function shall fail if:
[EOVERFLOW] The result cannot be represented.

-- 
http://ache.vniz.net/
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to