1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +00:00

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.
This commit is contained in:
Timothy Flynn 2022-01-24 07:47:49 -05:00 committed by Linus Groh
parent 1f051a8e25
commit 6095500263

View file

@ -82,6 +82,8 @@
#define LINK_MAX 4096 #define LINK_MAX 4096
#define TZNAME_MAX 64
#ifdef __USE_POSIX #ifdef __USE_POSIX
# include <bits/posix1_lim.h> # include <bits/posix1_lim.h>
#endif #endif