]> Savannah Git Hosting - gnulib.git/commit
time-h: Obey GNULIB_POSIXCHECK, not GNULIB_PORTCHECK.
authorBruno Haible <bruno@clisp.org>
Sat, 29 Jul 2023 16:07:45 +0000 (18:07 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 29 Jul 2023 16:07:45 +0000 (18:07 +0200)
commitb90baa07983cc3e4eb53933de631296a5fc8c248
tree460c47c7a94c91720cfda64c8f5461f630e53447
parent0a99906941f2143ebacb818e048aa83ddade7a0a
time-h: Obey GNULIB_POSIXCHECK, not GNULIB_PORTCHECK.

* lib/time.in.h (timespec_get, timespec_getres, time, nanosleep, tzset,
mktime, localtime_r, gmtime_r, localtime, strptime, ctime, strftime,
timegm): Add _GL_WARN_ON_USE invocation.
(asctime, ctime): Don't assume that these functions are declared, since
POSIX obsoletes them.
* m4/time_h.m4 (gl_TIME_H): Test for the declarations of asctime, ctime,
gmtime_r, localtime, localtime_r, mktime, nanosleep, strftime, strptime,
time, timegm, timespec_get, timespec_getres, tzset.
(gl_TIME_H_DEFAULTS): Initialize REPLACE_CTIME, REPLACE_LOCALTIME_R,
REPLACE_MKTIME, REPLACE_NANOSLEEP, REPLACE_STRFTIME, REPLACE_TIMEGM,
REPLACE_TIMESPEC_GET, REPLACE_TZSET with 0 instead of GNULIB_PORTCHECK.
* m4/ctime.m4 (gl_FUNC_CTIME): Don't re-initialize REPLACE_CTIME.
* m4/time_r.m4 (gl_TIME_R): Don't re-initialize REPLACE_LOCALTIME_R.
* m4/mktime.m4 (gl_FUNC_MKTIME): Don't re-initialize REPLACE_MKTIME.
* m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Don't re-initialize
REPLACE_NANOSLEEP.
* m4/strftime-fixes.m4 (gl_FUNC_STRFTIME): Don't re-initialize
REPLACE_STRFTIME.
* m4/timegm.m4 (gl_FUNC_TIMEGM): Don't re-initialize REPLACE_TIMEGM.
* m4/timespec_get.m4 (gl_FUNC_TIMESPEC_GET): Don't re-initialize
REPLACE_TIMESPEC_GET.
* m4/tzset.m4 (gl_FUNC_TZSET: Don't re-initialize REPLACE_TZSET.
ChangeLog
lib/time.in.h
m4/ctime.m4
m4/mktime.m4
m4/nanosleep.m4
m4/strftime-fixes.m4
m4/time_h.m4
m4/time_r.m4
m4/timegm.m4
m4/timespec_get.m4
m4/tzset.m4