From fd15708e6476164990e7b364dc5b2aa1600f8e89 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 11 May 2002 05:40:55 +0000 Subject: Begin the process of reworking the time functions for proper time zone and locale support (in theory). More work is still needed. -Erik --- libc/misc/time/__time_static.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 libc/misc/time/__time_static.c (limited to 'libc/misc/time/__time_static.c') 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 + +/* 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; + + -- cgit v1.2.3