1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-19 18:49:40 +00:00
Commit Graph

3515 Commits

Author SHA1 Message Date
651d4deba4 Release tzcode2014h and tzdata2014h.
* NEWS, Makefile (VERSION): Increase to 2014h.
2014h
2014-09-25 19:00:28 -07:00
9b045af621 * localtime.c (localtime_tzset): Coalesce two identical flag args.
All callers changed.
2014-09-23 07:36:50 -07:00
08ada9f945 * tz-link.htm: Update some links. 2014-09-23 00:50:42 -07:00
97e991fc67 * northamerica (America/Jamaica): 1974 sprang forward on Jan. 6,
not Apr. 28.
* NEWS: Document this.
2014-09-22 23:49:31 -07:00
95735ffc20 * zdump.8, NEWS: Mention that tm_isdst might not be 0 or 1. 2014-09-21 22:03:34 -07:00
d6abfde226 Port zdump to localtime that sets tm_isdst greater than 1.
* zdump.c (abbr): Don't assume localtime sets tm_isdst to 1
for daylight saving time; any positive value will do.
2014-09-21 22:00:16 -07:00
4d66cda33c * zdump.8, NEWS: Document the gmtoff=N output. 2014-09-21 21:16:39 -07:00
40b395e139 Have zdump output gmtoff= even on platforms lacking TM_GMTOFF.
* zdump.c (adjusted_yday, gmtoff): New functions.
(show): Use new function gmtoff to output gmtoff= even on
platforms that do not define TM_GMTOFF.
* NEWS: Document this.
2014-09-21 20:54:54 -07:00
3d7af33d76 Prefer localtime_rz to gmtime, for speed.
localtime_rz does not need to lock, but gmtime does.
* zdump.c (gmtime_r) [!HAVE_LOCALTIME_R]: New function.
(USE_LOCALTIME_RZ): New macro.  Use it to simplify ifdef usage.
(gmtz): New static var.
(gmtzinit, my_gmtime_r): New functions.
(main): Use them.
2014-09-21 17:12:38 -07:00
9f224b2078 port to C11 memory model
We don't know of any problems with the previous code on practical
platforms, but it's safer to be portable.
Problem reported by Andy Heninger in:
http://mm.icann.org/pipermail/tz/2014-September/021599.html
* localtime.c (VOLATILE): Remove.  All uses removed.
(gmtcheck): Don't access gmt_is_set until we have the lock.
This may be significantly slower, but it's safer.
(localtime_tzset): Likewise.  This change isn't significantly
slower, though; it's more of a refactoring.
* NEWS: Document this.
2014-09-21 17:12:23 -07:00
0eb01e8a0c Fix memory leak if ALL_STATE and multithreaded.
* localtime.c (gmtcheck) [ALL_STATE]: Don't leak memory if two
threads invoke this function nearly simultaneously.
Problem reported by Andy Heninger in:
http://mm.icann.org/pipermail/tz/2014-September/021599.html
* NEWS: Document this.
2014-09-21 17:03:52 -07:00
8dd540a1e5 * europe: "BST" also stands for "British Standard Time" (1968-1971). 2014-09-14 23:05:39 -07:00
07394c4ada * NEWS, Theory, zdump.8, zic.8: Document that the proleptic Gregorian
calendar is used.  (Thanks to Alan Barrett for the suggestion.)
2014-09-11 00:29:22 -07:00
51075b0f5c Minor localtime fixups.
* localtime.c (localsub): Tune slightly.
Don't set tzname unless successful.
(gmtime_r, offtime, timeoff): Simplify.
* NEWS: Document the tzname change.
2014-09-11 00:15:20 -07:00
50cafab5d8 Fix 2014g zdump regression on platforms without TM_ZONE.
Problem reported by Tim Parenti in:
http://mm.icann.org/pipermail/tz/2014-September/021585.html
* zdump.c (localtime_r, localtime_rz) [!TM_ZONE]:
Just call 'localtime', since this can set tzname in a
timestamp-dependent way, which is better for zdump.
* NEWS: Document this.
2014-09-10 23:55:26 -07:00
9618efb826 Fix 2014g regression: localtime and mktime weren't setting tzname.
In 2014g, localtime and mktime set tzname[0] and tzname[1] as if by
tzset, regardless of the requested time stamp.  In 2014f and earlier,
localtime and mktime then set tzname[0] or tzname[1] to a time zone
appropriate for the time stamp in question.
Although both behaviors conform to POSIX, the 2014f behavior is
better because it lets a single-threaded application discover the
time zone abbreviation appropriate for the just-queried time stamp
even on platforms that lack TM_ZONE.  The 2014f-and-earlier zdump
relies on the 2014f library behavior on these platforms.
Problem reported by Tim Parenti in:
http://mm.icann.org/pipermail/tz/2014-September/021585.html
* localtime.c (localsub): Treat a nonzero offset value
as a request to set tzname on success.  All callers changed.
(localtime_rz, mktime_z): Define only if NETBSD_INSPIRED,
as they're no longer needed otherwise.
(localtime_tzset): Invert sense of third arg from SKIP_TZSET
to SETTZ.  New arg SETNAME.  All callers changed.
(localtime): Request tzname to be set on success.
(mktime_tzname): New function, with most of the previous
contents of mktime_z.
(mktime_z, mktime): Use it.
* NEWS: Document the above.
2014-09-10 23:55:14 -07:00
2e78bf08dc * zdump.8: Fix documentation of zdump cutoff behavior.
(Thanks to Tim Parenti for reporting the problem.)
2014-09-10 23:05:10 -07:00
8973320770 * zdump.8, NEWS: Document zdump cutoff behavior more precisely.
(Thanks to Tim Parenti for reporting the problem.)
2014-09-08 12:26:19 -07:00
86677a3e82 * Makefile (check_sorted): Further improve quality of checks.
* NEWS: Document this.
* zone1970.tab: Sort country codes better.
2014-09-06 19:24:32 -07:00
20532ffda0 * NEWS, asia, backzone, northamerica: Document fractional GMT offsets
for Chennai, Jakarta, and New York in the 19th century.
2014-09-06 18:41:05 -07:00
720111eb8a * Makefile (check_sorted): Fix typo in recent change. 2014-09-06 18:37:10 -07:00
fef27b6086 * zdump.8, NEWS: Document zdump -c's treatment of years better.
(Problem reported by Arthur David Olson.)
2014-09-06 17:42:00 -07:00
765af4585e * Theory: Mention 40-bit time_t. 2014-09-06 16:40:32 -07:00
53d5038b3f * zdump.c (main): Fix bug with 'zdump -Vc 1981,1982 Asia/Singapore'
missing the end-of-1981 transition.  Problem reported by Tim Parenti in:
http://mm.icann.org/pipermail/tz/2014-September/021565.html
2014-09-06 16:35:59 -07:00
76409ad9c6 Check that supposedly-sorted source files actually are sorted.
* Makefile (check_sorted): New rule.
(check, .PHONY): Add it.
* backzone: Sort.
2014-09-06 15:11:40 -07:00
3392d32c3a Move out-of-scope UTC+2 African zones to 'backzone'.
* africa (Africa/Blantyre, Africa/Bujumbura, Africa/Gaborone)
(Africa/Harare, Africa/Kigali, Africa/Lubumbashi, Africa/Lusaka):
Change these from zones to links to Africa/Maputo.
(Africa/Maseru, Africa/Mbabane):
Change these from zones to links to Africa/Johannesburg.
* backzone: Move the old data here.
* checktab.awk (tztab): Remove special cases for these zones.
* NEWS: Document the above.
2014-09-06 14:57:20 -07:00
dff28f195b Fix a subscript error that accessed uninitialized data.
* localtime.c (tzload): The number of entries in 'types'
is timecnt, not typecnt.
* NEWS: Mention this.
Problem reported by Jörg Richter in:
http://mm.icann.org/pipermail/tz/2014-September/021561.html
2014-09-06 07:18:21 -07:00
488e7a8ed5 * europe (Asia/Novokuznetsk), NEWS: Fix misreading of Shanks. 2014-09-05 19:19:42 -07:00
7acb816290 * africa (Egypt): Fix date typo in comment. (Thanks to Marcel Telka.) 2014-09-03 17:29:34 -07:00
62d233adb3 * tz-art.html: Correct recently-introduced misspelling of "Schulz". 2014-08-29 17:39:18 -07:00
9cd0541edf Release tzcode2014g and tzdata2014g.
* NEWS, Makefile (VERSION): Increase to 2014g.
2014g
2014-08-28 12:32:04 -07:00
df374d40ff * localtime.c (tzset_unlocked): Don't return a void expression.
The C standard does not allow this, and Sun C 5.12 rejects it.
2014-08-27 14:16:34 -07:00
4cc7d12352 * NEWS: Fix misspelled identifier. (Thanks to Brian Inglis.) 2014-08-26 21:33:25 -07:00
2ba2b160d0 * NEWS: Reorganize recent code news clarity, and mention tzdist. 2014-08-26 18:49:54 -07:00
c72b41e2be * tz-link.htm: Retitle "formats" section to "protocols"
and update it in the light of the tzdist effort.
Mention Microsoft Windows alongside other OSes.
2014-08-26 18:48:14 -07:00
b465e56526 * tz-art.htm: Correct the Peanuts quote.
Fix broken links and remove a broken-linked book that wasn't
that notable anyway.  Use italics for book and movie titles.
2014-08-26 18:15:04 -07:00
fee8066ca3 * backzone: Spelling and accent fixes. 2014-08-26 16:01:25 -07:00
5e7e8dc1b0 * NEWS: Typo fix. 2014-08-26 15:14:48 -07:00
2423b5b4a3 Add documentation for the core NetBSD-inspired functions.
Lack of documentation reported by Jonathan Lennox in:
http://mm.icann.org/pipermail/tz/2014-August/021529.html
* newtzset.3: Document tzalloc and tzfree.
* newctime.3: Document localtime_rz and mktime_z.
* NEWS: Mention this.
2014-08-26 14:17:32 -07:00
9b7dd12d56 * zdump.c (main): Mention "FOO" if tzalloc("FOO") fails.
* NEWS: Document this.
2014-08-26 14:17:32 -07:00
3230f367b0 * localtime.c (zoneinit, tzalloc): Return NULL on failure.
Suggested by Jonathan Lennox in:
http://mm.icann.org/pipermail/tz/2014-August/021529.html
2014-08-26 14:17:32 -07:00
636f5e942c tzalloc(NULL) now acts like tzset() does when TZ is unset.
Suggested by Jonathan Lennox in:
http://mm.icann.org/pipermail/tz/2014-August/021529.html
* localtime.c (tzalloc): Treat NULL argument like tzsetwall.
(tzsetwall_unlocked): Remove, replacing with ...
(tzsetlcl): New function, which merges the old tzsetwall and
tzset_unlocked.
(zoneinit): Treat a null NAME like tzsetwall.
(tzsetwall, tzset_unlocked): Rewrite to use tzsetlcl.
* NEWS: Document this.
2014-08-26 14:17:27 -07:00
741377cc5d localtime.c: two minor 'bool' cleanups
These don't fix any bugs, but make the recently-introduced 'bool'
code easier to follow.
* localtime.c (gmtcheck): Move gmt_is_set's definition here,
since it's used only here.
(localtime_r): Explicitly convert integer to boolean rather
than relying on C99 semantics.
2014-08-26 11:21:38 -07:00
6a8cac5e89 * CONTRIBUTING: Prefer an https URL, as that's friendlier
to people without a GitHub.  (Thanks to Tony Finch.)
* NEWS: Add thanks, and spell it "GitHub".
2014-08-26 07:37:17 -07:00
c0e8e15430 * NEWS: Coalesce discussions of zdump, localtime_rz, and localtime_r. 2014-08-26 01:33:06 -07:00
bdad90f18f * Makefile, NEWS: Say that backzone's contents are not all low-quality
and give credit to Lester Caine for some of its high-quality entries.
2014-08-25 22:00:09 -07:00
bfc08e664e Port 'bool' usage to clang 3.4.
* date.c (convert, reset):
Fix prototype to match function, as the C standard requires.
2014-08-25 19:41:21 -07:00
7e8821934e Port C macro defaults to Solaris and Irix.
This is mostly for convenience, so that plain 'make' works out of
the box on Solaris, instead of having to run something awkward like
'make CFLAGS="-xc99=all -DHAVE_INCOMPATIBLE_CTIME_R=1"', and
similarly for Irix 6.5.
* private.h (_POSIX_PTHREAD_SEMANTICS):
* private.h, zdump.c (__EXTENSIONS__):
New macros, to make Solaris headers more like what we want out
of the box.
(LLONG_MAX, LLONG_MIN): Default from __LONG_LONG_MAX__ if it's defined.
This simplifies later code.
(SCNdFAST64, PRIdMAX): Don't assume they're defined when
INT_FAST64_MAX is, as that's not true on Solaris 10 + Sun C 5.12.
(PRIuMAX): Likewise, for Solaris 11 + Sun C 5.12.
* zdump.c (HAVE_LOCALTIME_RZ): Default to 1 only if TM_ZONE.
* Makefile, NEWS: Document this.
2014-08-25 14:46:05 -07:00
9701f8b9cd Port 'bool' usage to Sun C 5.12.
* zic.c (inzcont, inzone, is_alpha, yearistype):
Fix prototype to match function, as the C standard requires.
* NEWS: Mention the use of 'bool'.
2014-08-25 13:39:03 -07:00
82f519e703 Port 'make check_time_t_alternatives' to Solaris 10.
* Makefile (check_time_t_alternatives): Don't assume 'diff'
has the -q option, since POSIX does not require -q.
* NEWS: Document this.
2014-08-25 13:24:12 -07:00