summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2022-01-24 07:47:49 -0500
committerLinus Groh <mail@linusgroh.de>2022-01-25 18:39:36 +0000
commit6095500263f20b073c5b603b37337a7589fb89eb (patch)
treec59757d3eb421224e76882db976618e3041ea5fb
parent1f051a8e25c758c99bbd905b58b46537665b6e9a (diff)
downloadserenity-6095500263f20b073c5b603b37337a7589fb89eb.zip
LibC: Define the POSIX TZNAME_MAX limit
POSIX defines this as the "Maximum number of bytes supported for the name of a timezone (not of the TZ variable)." It must have a minimum value of _POSIX_TZNAME_MAX (6). The longest time zone name in the TZDB is about 40 chars, so 64 is chosen here for a little wiggle room, and to round up to a power of 2.
-rw-r--r--Userland/Libraries/LibC/limits.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/limits.h b/Userland/Libraries/LibC/limits.h
index 4fde490201..58a980bde8 100644
--- a/Userland/Libraries/LibC/limits.h
+++ b/Userland/Libraries/LibC/limits.h
@@ -82,6 +82,8 @@
#define LINK_MAX 4096
+#define TZNAME_MAX 64
+
#ifdef __USE_POSIX
# include <bits/posix1_lim.h>
#endif