svn commit: r273024 - head/contrib/netbsd-tests/lib/libc/time
Andrey Chernov
ache at freebsd.org
Mon Oct 13 08:02:45 UTC 2014
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/
More information about the svn-src-all
mailing list