[tz] Thread-safe localtime(3) (was Re: Reading binary files)

Garrett Wollman wollman at csail.mit.edu
Wed Nov 2 19:53:31 UTC 2011

<<On Wed, 2 Nov 2011 15:34:49 -0400, Bennett Todd <bet at rahul.net> said:

> That sounds all superb, and excellent. The one question I'd ask is, would
> it be practical and reasonable to lose the _z and _rz suffixes, and make
> the timezone arg an optional extra arg to localtime/mktine, with varargs?

The C standard does not allow this.  There are no "optional extra
args" in C.  (A variadic function must have enough information from
mandatory arguments to determine exactly how many arguments there
are.)  Besides which, the prototype of the functions from the C
standard is fixed by the standard.


More information about the tz mailing list