diff options
| author | Paul Eggert | 2023-03-10 16:51:41 -0800 |
|---|---|---|
| committer | Paul Eggert | 2023-03-10 16:53:07 -0800 |
| commit | c6bfffa9fe1af7f4f806e5533ba5f3c33476cf9a (patch) | |
| tree | 444e6a5ada6a746274541ac6cda6b1cc2795a442 /lib/time.in.h | |
| parent | d236ab09300070696f21ebfda49678b11c2327eb (diff) | |
| download | emacs-c6bfffa9fe1af7f4f806e5533ba5f3c33476cf9a.tar.gz emacs-c6bfffa9fe1af7f4f806e5533ba5f3c33476cf9a.zip | |
Update from Gnulib by running admin/merge-gnulib
Run admin/merge-gnulib along with the following change:
* admin/merge-gnulib (GNULIB_MODULES): Replace ‘time’ with
‘time-h’, adjusting to a recent renaming in Gnulib modules.
Emacs doesn’t appear to need the new Gnulib ‘time’ module.
Diffstat (limited to 'lib/time.in.h')
| -rw-r--r-- | lib/time.in.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/time.in.h b/lib/time.in.h index 87cda21413b..3f9af920e34 100644 --- a/lib/time.in.h +++ b/lib/time.in.h | |||
| @@ -143,6 +143,20 @@ _GL_CXXALIAS_SYS (timespec_getres, int, (struct timespec *ts, int base)); | |||
| 143 | _GL_CXXALIASWARN (timespec_getres); | 143 | _GL_CXXALIASWARN (timespec_getres); |
| 144 | # endif | 144 | # endif |
| 145 | 145 | ||
| 146 | /* Return the number of seconds that have elapsed since the Epoch. */ | ||
| 147 | # if @GNULIB_TIME@ | ||
| 148 | # if @REPLACE_TIME@ | ||
| 149 | # if !(defined __cplusplus && defined GNULIB_NAMESPACE) | ||
| 150 | # define time rpl_time | ||
| 151 | # endif | ||
| 152 | _GL_FUNCDECL_RPL (time, time_t, (time_t *__tp)); | ||
| 153 | _GL_CXXALIAS_RPL (time, time_t, (time_t *__tp)); | ||
| 154 | # else | ||
| 155 | _GL_CXXALIAS_SYS (time, time_t, (time_t *__tp)); | ||
| 156 | # endif | ||
| 157 | _GL_CXXALIASWARN (time); | ||
| 158 | # endif | ||
| 159 | |||
| 146 | /* Sleep for at least RQTP seconds unless interrupted, If interrupted, | 160 | /* Sleep for at least RQTP seconds unless interrupted, If interrupted, |
| 147 | return -1 and store the remaining time into RMTP. See | 161 | return -1 and store the remaining time into RMTP. See |
| 148 | <https://pubs.opengroup.org/onlinepubs/9699919799/functions/nanosleep.html>. */ | 162 | <https://pubs.opengroup.org/onlinepubs/9699919799/functions/nanosleep.html>. */ |