]> Savannah Git Hosting - gnulib.git/commit
New module 'localtime-buffer', split off from module 'gettimeofday'.
authorBruno Haible <bruno@clisp.org>
Mon, 1 May 2017 14:10:46 +0000 (16:10 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 1 May 2017 16:36:22 +0000 (18:36 +0200)
commite4d101c4e770b7c10f2c3672b93a7815d24e0144
treef03a299f778910ec28d916a4aada4de671626333
parent3eee3a1e3c5b8883e0d4934bfc1326ee605cb7c1
New module 'localtime-buffer', split off from module 'gettimeofday'.

* lib/localtime-buffer.h: New file.
* lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
* lib/time.in.h (tzset): New declaration.
(localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
* lib/tzset.c: New file, extracted from lib/gettimeofday.c.
* lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
moved to lib/localtime-buffer.c or lib/tzset.c.
* m4/localtime-buffer.m4: New file.
* m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
HAVE_TZSET, REPLACE_TZSET.
* m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
gl_LOCALTIME_BUFFER_NEEDED.
(gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
since 2007-01-18.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
tzset.
(gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
(gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
* modules/localtime-buffer: New file.
* modules/time (Depends-on): Remove 'gettimeofday'.
(Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
* modules/tzset (Description): Enable hyperlink to POSIX spec.
(Files): Add lib/tzset.c.
(Depends-on): Remove gettimeofday. Add localtime-buffer, time.
(configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
gl_TIME_MODULE_INDICATOR.
* modules/gettimeofday (Depends-on): Add localtime-buffer.
15 files changed:
ChangeLog
lib/gettimeofday.c
lib/localtime-buffer.c [new file with mode: 0644]
lib/localtime-buffer.h [new file with mode: 0644]
lib/localtime.c
lib/time.in.h
lib/tzset.c [new file with mode: 0644]
m4/gettimeofday.m4
m4/localtime-buffer.m4 [new file with mode: 0644]
m4/time_h.m4
m4/tzset.m4
modules/gettimeofday
modules/localtime-buffer [new file with mode: 0644]
modules/time
modules/tzset