tzcode1998e.tar.gz and tzdata1998e.tar.gz

Guy Harris guy at netapp.com
Sat May 30 19:50:15 UTC 1998


> I'll send out a patch.

This also adds a re-entrant version of "gmtime":

*** localtime.c.orig	Sat May 30 12:44:19 1998
--- localtime.c	Sat May 30 12:49:01 1998
***************
*** 1040,1045 ****
--- 1040,1057 ----
  }
  
  /*
+  * Re-entrant version of localtime
+  */
+ struct tm *
+ localtime_r(timep, tm)
+ const time_t * const	timep;
+ struct tm *		tm;
+ {
+ 	localsub(timep, 0L, tm);
+ 	return tm;
+ }
+ 
+ /*
  ** gmtsub is to gmtime as localsub is to localtime.
  */
  
***************
*** 1085,1090 ****
--- 1097,1114 ----
  {
  	gmtsub(timep, 0L, &tm);
  	return &tm;
+ }
+ 
+ /*
+  * Re-entrant version of gmtime
+  */
+ struct tm *
+ gmtime_r(timep, tm)
+ const time_t * const	timep;
+ struct tm *		tm;
+ {
+ 	gmtsub(timep, 0L, tm);
+ 	return tm;
  }
  
  #ifdef STD_INSPIRED



More information about the tz mailing list