OSDN Git Service

Allow timezone info to be specified in a file... /etc/TZ. Turned on by
authorManuel Novoa III <mjn3@codepoet.org>
Mon, 28 Oct 2002 19:01:15 +0000 (19:01 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Mon, 28 Oct 2002 19:01:15 +0000 (19:01 -0000)
commit6072ec712b72521d7a13a22b6d9ccf6127c8c005
tree7ccf1da7cde7e5ff0ba8a9a41a038bb5707731cc
parentfe8cd7e5ad6dc2789cd7a77490926a1495965a7f
Allow timezone info to be specified in a file... /etc/TZ.  Turned on by
default for now.  From the comments...

* Defining __TIME_TZ_FILE causes tzset() to attempt to read the TZ value
* from the file /etc/TZ if the TZ env variable isn't set.  The file contents
* must be the intended value of TZ, followed by a newline.  No other chars,
* spacing, etc is allowed.  As an example, an easy way for me to init
* /etc/TZ appropriately would be:    echo CST6CDT > /etc/TZ

Also optimized timezone setting when the timezone string hasn't changed,
as well as fixed a minor buglet wrt SUSv3-allowed chars in TZ std and
dst fields.
libc/misc/time/time.c