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

Bennett Todd bet at rahul.net
Wed Nov 2 16:02:09 UTC 2011


Am I missing a fundamental, or would it be reasonable to not necessarily
expose the data structure for the parsed conversion data, but instead offer
explicit parse routine (returning an opaque blob) and convert routine that
takes such a blob as a parameter? Then it should be easy to make tzset(3)
utterly trivial -- call the zoninfo parser on getenv(TZ) with locking, and
localtime(3) likewise trivial, call the real convert routine with the
datastructure cached by the latest tzset.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm.icann.org/pipermail/tz/attachments/20111102/ba64fa1b/attachment-0002.html 


More information about the tz mailing list