Sept. 2, 2015
6:02 a.m.
Christos Zoulas wrote:
pt = _add(tzname[t->tm_isdst != 0], ...
How do you access tzname which is a global making sure that it does not change under you by another thread?
You don't. The code involving tzname isn't used on a system that has a working tm_zone member. Any system desiring thread-safety should have a struct tm with both tm_zone and tm_gmtoff members, as NetBSD does.