[uClibc-cvs] uClibc/libc/misc/time time.c,1.10,1.11
David McCullough
davidm at uclibc.org
Mon Feb 17 12:59:08 UTC 2003
Update of /var/cvs/uClibc/libc/misc/time
In directory winder:/tmp/cvs-serv8316/libc/misc/time
Modified Files:
time.c
Log Message:
Use a define for the path to /etc/TZ
Index: time.c
===================================================================
RCS file: /var/cvs/uClibc/libc/misc/time/time.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- time.c 27 Nov 2002 02:19:10 -0000 1.10
+++ time.c 17 Feb 2003 12:59:05 -0000 1.11
@@ -136,6 +136,7 @@
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
+#include "paths.h"
/* ":<tzname>+hh:mm:ss<tzname>+hh:mm:ss,Mmm.w.d/hh:mm:ss,Mmm.w.d/hh:mm:ss" + nul */
/* 1 + 2*(1+TZNAME_MAX+1 + 9 + 7 + 9) + 1 = 2*TZNAME_MAX + 56 */
#else /* __TIME_TZ_FILE */
@@ -1537,7 +1538,7 @@
size_t todo;
char *p = NULL;
- if ((fd = open("/etc/TZ", O_RDONLY)) >= 0) {
+ if ((fd = open(_PATH_TZ, O_RDONLY)) >= 0) {
todo = TZ_BUFLEN;
p = buf;
do {
More information about the uClibc-cvs
mailing list