From d6b2a407783dbbd6c9680601da005de0bb0ff37d Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Mon, 17 Jun 2002 09:45:15 +0000 Subject: Commit the new time stuff, even though I haven't made it threadsafe yet. At least people can play with it. Also, fix a buglet in setenv.c. --- libc/misc/time/localtime_r.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 libc/misc/time/localtime_r.c (limited to 'libc/misc/time/localtime_r.c') diff --git a/libc/misc/time/localtime_r.c b/libc/misc/time/localtime_r.c deleted file mode 100644 index 139864506..000000000 --- a/libc/misc/time/localtime_r.c +++ /dev/null @@ -1,22 +0,0 @@ - -#include -#include - -extern void __tm_conv(); - -struct tm *localtime_r(timep, tp) -__const time_t *timep; -struct tm *tp; -{ - struct timezone tz; - time_t offt; - - gettimeofday((void *) 0, &tz); - - offt = -tz.tz_minuteswest * 60L; - - /* tmb.tm_isdst = ? */ - __tm_conv(tp, timep, offt); - - return tp; -} -- cgit v1.2.3