Files
gnulib/modules/strftime-fixes
Bruno Haible f693cbe4b6 tzsanitize: New module.
* lib/tzsanitize.h: New file, extracted from lib/localtime.c.
* lib/tzsanitize.c: New file, extracted from lib/localtime.c.
* lib/ctime.c: Include tzsanitize.h instead of <stdlib.h>, <string.h>,
<wchar.h>.
(rpl_ctime): Call tzsanitize.
* lib/localtime.c: Include tzsanitize.h instead of <stdlib.h>,
<string.h>, <wchar.h>.
(rpl_localtime): Call tzsanitize.
* lib/mktime.c: Include tzsanitize.h, <stddef.h> instead of <stdlib.h>,
<string.h>.
(my_tzset): Call tzsanitize.
* lib/strftime-fixes.c: Include tzsanitize.h instead of <stdlib.h>,
<string.h>.
(rpl_strftime): Call tzsanitize.
* lib/tzset.c: Include tzsanitize.h instead of <stdlib.h>, <string.h>,
<wchar.h>.
(rpl_tzset): Call tzsanitize.
* lib/wcsftime.c: Include tzsanitize.h instead of <stdlib.h>,
<string.h>.
(rpl_wcsftime): Call tzsanitize.
* modules/ctime (Depends-on): Add tzsanitize.
* modules/localtime (Depends-on): Likewise.
* modules/mktime (Depends-on): Likewise.
* modules/strftime-fixes (Depends-on): Likewise.
* modules/tzset (Depends-on): Likewise.
* modules/wcsftime (Depends-on): Likewise.
2026-10-01 20:11:03 +02:00

30 lines
465 B
Plaintext

Description:
strftime() function: convert broken-down time to string.
Files:
lib/strftime-fixes.c
m4/strftime-fixes.m4
Depends-on:
time-h
tzsanitize [test $REPLACE_STRFTIME = 1]
configure.ac:
gl_FUNC_STRFTIME
gl_CONDITIONAL([GL_COND_OBJ_STRFTIME_FIXES], [test $REPLACE_STRFTIME = 1])
gl_TIME_MODULE_INDICATOR([strftime])
Makefile.am:
if GL_COND_OBJ_STRFTIME_FIXES
lib_SOURCES += strftime-fixes.c
endif
Include:
<time.h>
License:
LGPLv2+
Maintainer:
all