summaryrefslogtreecommitdiff
path: root/tzfile.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2026-03-02 17:21:42 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2026-03-02 17:21:42 +0000
commitcd59570c180e34a6716c2d61a3047ac2f9407795 (patch)
treeb497c0ef940ed1c5c5bed2fa08b87e03d81b7924 /tzfile.h
parent0d46d875e60091694abe5d38e0cbb4c8019bfd71 (diff)
Diffstat (limited to 'tzfile.h')
-rw-r--r--tzfile.h24
1 files changed, 9 insertions, 15 deletions
diff --git a/tzfile.h b/tzfile.h
index b00eb9e694ba..1941bc3b7693 100644
--- a/tzfile.h
+++ b/tzfile.h
@@ -17,16 +17,8 @@
** Thank you!
*/
-/*
-** Information about time zone files.
-*/
-
-#ifndef TZDEFRULES
-# define TZDEFRULES "posixrules"
-#endif /* !defined TZDEFRULES */
-
-
-/* See Internet RFC 9636 for more details about the following format. */
+/* Information about time zone files.
+ See Internet RFC 9636 for more details about the following format. */
/*
** Each file begins with. . .
@@ -97,23 +89,25 @@ struct tzhead {
*/
#ifndef TZ_MAX_TIMES
-/* This must be at least 242 for Europe/London with 'zic -b fat'. */
+/* The following limit applies to localtime.c; zic has no such limit.
+ The limit must be at least 310 for Asia/Hebron with 'zic -b fat'. */
# define TZ_MAX_TIMES 2000
#endif /* !defined TZ_MAX_TIMES */
#ifndef TZ_MAX_TYPES
/* This must be at least 18 for Europe/Vilnius with 'zic -b fat'. */
-# define TZ_MAX_TYPES 256 /* Limited by what (unsigned char)'s can hold */
+# define TZ_MAX_TYPES 256 /* Limited to 256 by Internet RFC 9636. */
#endif /* !defined TZ_MAX_TYPES */
#ifndef TZ_MAX_CHARS
/* This must be at least 40 for America/Anchorage. */
-# define TZ_MAX_CHARS 50 /* Maximum number of abbreviation characters */
- /* (limited by what unsigned chars can hold) */
+# define TZ_MAX_CHARS 256 /* Maximum number of abbreviation characters */
+ /* (limited to 256 by Internet RFC 9636) */
#endif /* !defined TZ_MAX_CHARS */
#ifndef TZ_MAX_LEAPS
-/* This must be at least 27 for leap seconds from 1972 through mid-2023.
+/* The following limit applies to localtime.c; zic has no such limit.
+ The limit must be at least 27 for leap seconds from 1972 through mid-2023.
There's a plan to discontinue leap seconds by 2035. */
# define TZ_MAX_LEAPS 50 /* Maximum number of leap second corrections */
#endif /* !defined TZ_MAX_LEAPS */