Hash :
6c031545
Author :
Date :
2024-06-17T16:16:29
nstrftime: improve fix for NetBSD link errors This makes the NetBSD code thread-safe and presumably faster. * lib/strftime.c (HAVE_NATIVE_TIME_Z): New macro. (__strftime_internal): If HAVE_NATIVE_TIME_Z, use strftime_lz or strftime_z instead of setting and reverting TZ. * lib/time-internal.c: Remove, reverting recent change. * lib/time_rz.c, modules/time_rz: Also revert recent changes, since the relevant functions can now remain private to time_rz.c. * m4/c-nstrftime.m4 (gl_C_GNU_STRFTIME): Check for strftime_lz. * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Check for strftime_z.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
Description:
Reentrant time zone functions: localtime_rz, mktime_z, etc.
Files:
lib/time-internal.h
lib/time_rz.c
m4/time_rz.m4
Depends-on:
c99
extensions
time-h
flexmember [test $HAVE_TIMEZONE_T = 0]
idx [test $HAVE_TIMEZONE_T = 0]
setenv [test $HAVE_TIMEZONE_T = 0]
stdbool [test $HAVE_TIMEZONE_T = 0]
time_r [test $HAVE_TIMEZONE_T = 0]
timegm [test $HAVE_TIMEZONE_T = 0]
tzset [test $HAVE_TIMEZONE_T = 0]
unsetenv [test $HAVE_TIMEZONE_T = 0]
configure.ac:
gl_TIME_RZ
gl_CONDITIONAL([GL_COND_OBJ_TIME_RZ], [test $HAVE_TIMEZONE_T = 0])
gl_TIME_MODULE_INDICATOR([time_rz])
Makefile.am:
if GL_COND_OBJ_TIME_RZ
lib_SOURCES += time_rz.c
endif
Include:
<time.h>
License:
LGPL
Maintainer:
Paul Eggert