Solaris multithreading and timezones

Valery Aronov valery at
Tue Oct 22 00:58:26 UTC 1996

Paul, Garrett - thank for your collaboration!

On Mon, 21 Oct 1996, Garrett Wollman wrote:

> <<On Sun, 20 Oct 1996 21:37:51 -0700, Paul Eggert <eggert at> said:
> > On my (long) list of things to do is to make a thread-safe version of
> > the glibc version of the tz library.  Once you know you're dealing
> > with that particular library, the job becomes tractable.
> FreeBSD includes a reentry-preventing version of the timezone code.
> Granted, this is not an ideal state of affairs, but it does allow
> people to call localtime() in their threaded C programs.  (The library
> simply puts a global lock wrapper around all the time functions that
> examine the zone structure.)

There is a reentrant implemetation in Solaris (except tzset() and
tzwall()), but it is not enough for a complete solution, as you perhaps

I have requested Sun's opinion before tinkering with the code.

Thanks again,


More information about the tz mailing list