CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2026/04/13 10:01:54

Modified files:
        lib/libc/time  : ctime.3 

Log message:
Document RETURN value for timegm(3)

APIs with in-band errors that conflate the error with a legitimate return
value are about the worst you can get. Near and dear to my heart is the API
aptly described as "gibbering eidritch horror" by beck: ASN1_INTEGER_get(3).
Adapt the wording of its RETURN VALUES to timegm() and mktime(), for which
Dec 31, 1969 at 23:59:59 will yield the error return -1 and thereby errata.

Missing docs pointed out by claudio a while back and yesterday by deraadt

ok deraadt millert

Reply via email to