[uClibc-cvs] uClibc/include paths.h,1.7,1.8 time.h,1.5,1.6

Manuel Novoa III mjn3 at uclibc.org
Tue Jun 17 19:19:42 UTC 2003


Update of /var/cvs/uClibc/include
In directory winder:/tmp/cvs-serv11365/include

Modified Files:
	paths.h time.h 
Log Message:
Optionally support the struct tm extension fields.
Add a few misc functions mentioned in time.h.
Revert davidm's change regarding using a define for the "/etc/TZ" path,
as this is eventually meant to be a configurable extension and not
unconditionally supported.


Index: paths.h
===================================================================
RCS file: /var/cvs/uClibc/include/paths.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- paths.h	17 Feb 2003 12:59:06 -0000	1.7
+++ paths.h	17 Jun 2003 19:19:38 -0000	1.8
@@ -67,7 +67,6 @@
 #define	_PATH_SHADOW	"/etc/shadow"
 #define	_PATH_PASSWD	"/etc/passwd"
 #define	_PATH_GROUP	"/etc/group"
-#define	_PATH_TZ	"/etc/TZ"
 
 /* Provide trailing slash, since mostly used for building pathnames. */
 #define	_PATH_DEV	"/dev/"

Index: time.h
===================================================================
RCS file: /var/cvs/uClibc/include/time.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- time.h	17 Jun 2002 09:45:11 -0000	1.5
+++ time.h	17 Jun 2003 19:19:38 -0000	1.6
@@ -127,15 +127,15 @@
   int tm_yday;			/* Days in year.[0-365]	*/
   int tm_isdst;			/* DST.		[-1/0/1]*/
 
-#if 0
+#ifdef __UCLIBC_HAS_TM_EXTENSIONS__
 # ifdef	__USE_BSD
   long int tm_gmtoff;		/* Seconds east of UTC.  */
-  __const char *tm_zone;	/* Timezone abbreviation.  */
+  __const char tm_zone[8];	/* Timezone abbreviation.  */
 # else
   long int __tm_gmtoff;		/* Seconds east of UTC.  */
-  __const char *__tm_zone;	/* Timezone abbreviation.  */
+  __const char __tm_zone[8];/* Timezone abbreviation.  */
 # endif
-#endif
+#endif /* __UCLIBC_HAS_TM_EXTENSIONS__ */
 };
 
 



More information about the uClibc-cvs mailing list