mirror of
https://git.savannah.gnu.org/git/gnulib.git
synced 2025-08-14 14:01:48 +03:00
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T here... * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here. * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_SYS_TIME_H_DEFAULTS. * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting. (configure.ac): Remove useless quoting.
48 lines
1.2 KiB
Plaintext
48 lines
1.2 KiB
Plaintext
Description:
|
|
Reentrant time zone functions: localtime_rz, mktime_z, etc.
|
|
|
|
Comment:
|
|
This implements the NetBSD-inspired extensions to <time.h>, which
|
|
defines a type timezone_t and associated allocation functions tzalloc
|
|
and tzfree, along with two functions localtime_rz and mktime_z that
|
|
are like localtime_r and mktime except they have a new leading
|
|
timezone_t argument. Time zone abbreviation strings have lifetimes
|
|
equal to the corresponding struct tm or timezone_t object (whichever
|
|
is less). tzalloc (X) yields a time zone object equivalent to setting
|
|
the TZ environment variable to X. tzalloc (NULL) is the same as an
|
|
unset TZ environment variable. (timezone_t) 0 stands for UTC.
|
|
|
|
Files:
|
|
lib/time-internal.h
|
|
lib/time_rz.c
|
|
m4/time_rz.m4
|
|
|
|
Depends-on:
|
|
extensions
|
|
time
|
|
flexmember [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
|
|
if test $HAVE_TIMEZONE_T = 0; then
|
|
AC_LIBOBJ([time_rz])
|
|
fi
|
|
gl_TIME_MODULE_INDICATOR([time_rz])
|
|
|
|
Makefile.am:
|
|
|
|
Include:
|
|
<time.h>
|
|
|
|
License:
|
|
LGPL
|
|
|
|
Maintainer:
|
|
Paul Eggert
|