tzcode1998e.tar.gz and tzdata1998e.tar.gz

The files ftp://elsie.nci.nih.gov/pub/tzcode1998e.tar.gz and ftp://elsie.nci.nih.gov/pub/tzdata1998e.tar.gz are now available. The Makefile is changed to produce zoneinfo-posix rather than zoneinfo/posix, and to produce zoneinfo-leaps rather than zoneinfo/right. The data changes recently circulated by Paul Eggert on the time zone mailing list are incorporated, as are the changes from Guy Harris to provide asctime_r and ctime_r. And a usno1998 file (substantially identical to usno1997) has been added. --ado

In trying to build tzcode1998e.tar.gz I ran into two problems: * yearistype.sh seems to have disappeared. * localtime.c refers to the function localtime_r() which isn't defined anywhere. Is it just me? -- Paul In message <9805281401.AA24340@elsie.nci.nih.gov> you write:
The files ftp://elsie.nci.nih.gov/pub/tzcode1998e.tar.gz and ftp://elsie.nci.nih.gov/pub/tzdata1998e.tar.gz are now available. The Makefile is changed to produce zoneinfo-posix rather than zoneinfo/posix, and to produce zoneinfo-leaps rather than zoneinfo/right. The data changes recently circulated by Paul Eggert on the time zone mailing list are incorporated, as are the changes from Guy Harris to provide asctime_r and ctime_r. And a usno1998 file (substantially identical to usno1997) has been added.
--ado

In trying to build tzcode1998e.tar.gz I ran into two problems:
* yearistype.sh seems to have disappeared. * localtime.c refers to the function localtime_r() which isn't defined anywhere.
Is it just me?
Oh, hell, I forgot to add "localtime_r()". (I basically took stuff I'd added to the NetApp filer timezone code, which is derived from the Olson code - our box *has* only one address space, so interfaces that don't use static data for per-thread information are a Very Good Idea - but didn't copy over the "localtime_r()" I did. Sorry about that....) I'll send out a patch.

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

In trying to build tzcode1998e.tar.gz I ran into two problems:
* yearistype.sh seems to have disappeared.
...
Is it just me?
That's not you, either - I did a test build to make sure I didn't screw up "localtime.c" again, and it died (after successfully building "localtime.c") due to the lack of "yearistype.sh".

In trying to build tzcode1998e.tar.gz I ran into two problems:
* yearistype.sh seems to have disappeared.
...
Is it just me?
That's not you, either - I did a test build to make sure I didn't screw up "localtime.c" again, and it died (after successfully building "localtime.c") due to the lack of "yearistype.sh".
Never mind - it's in "tzdata1998e.tar.gz" (it was in "tzdata", rather than "tzcode", in the 1998d release, too).
participants (3)
-
guy@netapp.com
-
Olson, Arthur David
-
Paul Stewart