[tz] question regarding 'timezone' variable
Kees.Dekker at infor.com
Mon Aug 31 11:11:15 UTC 2015
When USG_COMPAT is set, in localtime.c a long timezone (and int daylight) is declared.
In strftime.c, also timezone is used, but no reference to 'extern long timezone' is define, neither do any of the provided header files.
On most *NIX platforms, a system 'timezone' variable exists (see e.g. man tzset).
My concerns are:
a. The provided variable in localtime.c may conflict with the system one.
b. The used variable in strftime.c may not related to the variable in localtime.c
I think that compilers/linkers may complain about duplicate 'timezone' variables, or probably silently map the local timezone variable to the same one.
Question: Is behavior intended? Or do I miss something?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the tz