[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: timespec_get: port to Ubuntu 23.04
|
From: |
Bruno Haible |
|
Subject: |
Re: timespec_get: port to Ubuntu 23.04 |
|
Date: |
Sat, 29 Jul 2023 19:31:40 +0200 |
> > If adopting GNULIB_POSIXCHECK for time-h would regularize
> > things please feel free to do that.
>
> Indeed, regularizing things would be useful:
Done through these two patches.
2023-07-29 Bruno Haible <bruno@clisp.org>
time-h: Simplify after 2017-05-01 change.
* m4/time_h.m4 (gl_TIME_H_DEFAULTS): Don't provide a default value for
GNULIB_GETTIMEOFDAY.
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.
0001-time-h-Obey-GNULIB_POSIXCHECK-not-GNULIB_PORTCHECK.patch
Description: Text Data
0002-time-h-Simplify-after-2017-05-01-change.patch
Description: Text Data