view modules/time_rz @ 40156:066c585853e5

tests: Accommodate a shell that is not in /bin/sh. * tests/init.sh (setup_): Set srcdir and builddir. (BOURNE_SHELL): New variable. * modules/acl-tests (Depends-on): Add 'test-framework-sh'. * modules/file-has-acl-tests (Depends-on): Likewise. * modules/copy-file-tests (Depends-on): Likewise. * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell scripts through $BOURNE_SHELL. * tests/test-set-mode-acl-2.sh: Likewise. * tests/test-copy-acl-1.sh: Likewise. * tests/test-copy-acl-2.sh: Likewise. * tests/test-file-has-acl-1.sh: Likewise. * tests/test-file-has-acl-2.sh: Likewise. * tests/test-copy-file-1.sh: Likewise. * tests/test-copy-file-2.sh: Likewise. * tests/test-set-mode-acl.sh (builddir): Consider value set by the invoker. * tests/test-copy-acl.sh (builddir): Likewise. * tests/test-file-has-acl.sh (builddir): Likewise. * tests/test-copy-file.sh (builddir): Likewise. * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL. * tests/test-vc-list-files-git.sh: Likewise.
author Bruno Haible <bruno@clisp.org>
date Sun, 27 Jan 2019 16:01:23 +0100
parents e7c996eba445
children
line wrap: on
line source

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