[tz] question regarding 'timezone' variable

Kees Dekker Kees.Dekker at infor.com
Mon Aug 31 11:11:15 UTC 2015


Hi,

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?

Regards,
Kees


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mm.icann.org/pipermail/tz/attachments/20150831/c3b3fe91/attachment.html>


More information about the tz mailing list