Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/lib/libc
Module Name: src
Committed By: christos
Date: Sat Sep 16 18:40:26 UTC 2023
Modified Files:
src/lib/libc/compat/time: Makefile.inc
src/lib/libc/time: CONTRIBUTING Makefile NEWS asctime.c ctime.3
localtime.c private.h strftime.c theory.html tz-art.html
tz-how-to.html tz-link.html tzfile.5 tzselect.8 tzselect.ksh
tzset.3 version zdump.c zic.8 zic.c
Added Files:
src/lib/libc/compat/time: compat_asctime.c
Log Message:
Update tzcode from 2022g to 2023c:
Release 2023c - 2023-03-28 12:42:14 -0700
Release 2023b - 2023-03-23 19:50:38 -0700
Release 2023a - 2023-03-22 12:39:33 -0700
Changes to code
You can now tell tzselect local time, to simplify later choices.
Select the 'time' option in its first prompt.
You can now compile with -DTZNAME_MAXIMUM=N to limit time zone
abbreviations to N bytes (default 255). The reference runtime
library now rejects POSIX-style TZ strings that contain longer
abbreviations, treating them as UTC. Previously the limit was
platform dependent and abbreviations were silently truncated to
16 bytes even when the limit was greater than 16.
The code by default is now designed for C99 or later. To build in
a C89 environment, compile with -DPORT_TO_C89. To support C89
callers of the tzcode library, compile with -DSUPPORT_C89. The
two new macros are transitional aids planned to be removed in a
future version, when C99 or later will be required.
The code now builds again on pre-C99 platforms, if you compile
with -DPORT_TO_C89. This fixes a bug introduced in 2022f.
On C23-compatible platforms tzcode no longer uses syntax like
'static [[noreturn]] void usage(void);'. Instead, it uses
'[[noreturn]] static void usage(void);' as strict C23 requires.
(Problem reported by Houge Langley.)
The code's functions now constrain their arguments with the C
'restrict' keyword consistently with their documentation.
This may allow future optimizations.
zdump again builds standalone with ckdadd and without setenv,
fixing a bug introduced in 2022g. (Problem reported by panic.)
leapseconds.awk can now process a leap seconds file that never
expires; this might be useful if leap seconds are discontinued.
Changes to commentary
tz-link.html has a new section "Coordinating with governments and
distributors". (Thanks to Neil Fuller for some of the text.)
To improve tzselect diagnostics, zone1970.tab's comments column is
now limited to countries that have multiple timezones.
Note that leap seconds are planned to be discontinued by 2035.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/compat/time/Makefile.inc
cvs rdiff -u -r0 -r1.1 src/lib/libc/compat/time/compat_asctime.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/time/CONTRIBUTING
cvs rdiff -u -r1.54 -r1.55 src/lib/libc/time/Makefile
cvs rdiff -u -r1.41 -r1.42 src/lib/libc/time/NEWS
cvs rdiff -u -r1.28 -r1.29 src/lib/libc/time/asctime.c
cvs rdiff -u -r1.70 -r1.71 src/lib/libc/time/ctime.3
cvs rdiff -u -r1.137 -r1.138 src/lib/libc/time/localtime.c
cvs rdiff -u -r1.65 -r1.66 src/lib/libc/time/private.h
cvs rdiff -u -r1.51 -r1.52 src/lib/libc/time/strftime.c
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/time/theory.html
cvs rdiff -u -r1.10 -r1.11 src/lib/libc/time/tz-art.html
cvs rdiff -u -r1.9 -r1.10 src/lib/libc/time/tz-how-to.html
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/time/tz-link.html \
src/lib/libc/time/tzselect.8
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/time/tzfile.5
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/time/tzselect.ksh
cvs rdiff -u -r1.45 -r1.46 src/lib/libc/time/tzset.3
cvs rdiff -u -r1.23 -r1.24 src/lib/libc/time/version
cvs rdiff -u -r1.61 -r1.62 src/lib/libc/time/zdump.c
cvs rdiff -u -r1.42 -r1.43 src/lib/libc/time/zic.8
cvs rdiff -u -r1.89 -r1.90 src/lib/libc/time/zic.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index