June 7, 2001
10:16 p.m.
<<On Thu, 7 Jun 2001 13:44:48 -0700 (PDT), Paul Eggert <eggert@twinsun.com> said:
It doesn't worry about threads, so it mishandles this case: two different threads can clobber the same internal structure.
I don't offhand know what other systems do.
At least in FreeBSD, these functions are serialized for thread safety. (That's one of the reasons we haven't updated to a recent tzcode in years.) Obviously, functions like localtime() which return static buffers can never be made thread-safe. -GAWollman