diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-05-11 05:40:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-05-11 05:40:55 +0000 |
commit | fd15708e6476164990e7b364dc5b2aa1600f8e89 (patch) | |
tree | 7627bd8a8c546f2fafd99fb52c1f96fdf4b242ce /libc/misc/time/__time_static.c | |
parent | a4f07581502ee212aa45e7b0049fdd126dd10b40 (diff) |
Begin the process of reworking the time functions for proper
time zone and locale support (in theory). More work is
still needed.
-Erik
Diffstat (limited to 'libc/misc/time/__time_static.c')
-rw-r--r-- | libc/misc/time/__time_static.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libc/misc/time/__time_static.c b/libc/misc/time/__time_static.c new file mode 100644 index 000000000..d921ced90 --- /dev/null +++ b/libc/misc/time/__time_static.c @@ -0,0 +1,17 @@ + +#include <time.h> + +/* These globals are exported by the C library */ +char *__tzname[2] = { (char *) "GMT", (char *) "GMT" }; +int __daylight = 0; +long int __timezone = 0L; +/* Grumble */ +weak_alias (__tzname, tzname); +weak_alias (__daylight, daylight); +weak_alias (__timezone, timezone); + + +/* static data for gmtime() and localtime() */ +struct tm __tmb; + + |