aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPo Lu2023-03-11 09:55:05 +0800
committerPo Lu2023-03-11 09:55:05 +0800
commitf573ce3f66daefbb26dec079581eb7cc755a9b3c (patch)
treedf88bcbaffe1f0bc1ee38209e8d7cffc6e0fad7b /lib
parent248b34596159c460a4afd152035e226c44cf31fd (diff)
parentc6bfffa9fe1af7f4f806e5533ba5f3c33476cf9a (diff)
downloademacs-f573ce3f66daefbb26dec079581eb7cc755a9b3c.tar.gz
emacs-f573ce3f66daefbb26dec079581eb7cc755a9b3c.zip
Merge remote-tracking branch 'origin/master' into feature/android
Diffstat (limited to 'lib')
-rw-r--r--lib/gnulib.mk.in12
-rw-r--r--lib/stdio.in.h11
-rw-r--r--lib/time.in.h14
3 files changed, 33 insertions, 4 deletions
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in
index a5be32427b6..ca4df18458c 100644
--- a/lib/gnulib.mk.in
+++ b/lib/gnulib.mk.in
@@ -159,7 +159,7 @@
159# sys_stat \ 159# sys_stat \
160# sys_time \ 160# sys_time \
161# tempname \ 161# tempname \
162# time \ 162# time-h \
163# time_r \ 163# time_r \
164# time_rz \ 164# time_rz \
165# timegm \ 165# timegm \
@@ -722,6 +722,7 @@ GL_GNULIB_SYSTEM_POSIX = @GL_GNULIB_SYSTEM_POSIX@
722GL_GNULIB_TANF = @GL_GNULIB_TANF@ 722GL_GNULIB_TANF = @GL_GNULIB_TANF@
723GL_GNULIB_TANHF = @GL_GNULIB_TANHF@ 723GL_GNULIB_TANHF = @GL_GNULIB_TANHF@
724GL_GNULIB_TANL = @GL_GNULIB_TANL@ 724GL_GNULIB_TANL = @GL_GNULIB_TANL@
725GL_GNULIB_TIME = @GL_GNULIB_TIME@
725GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@ 726GL_GNULIB_TIMEGM = @GL_GNULIB_TIMEGM@
726GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@ 727GL_GNULIB_TIMESPEC_GET = @GL_GNULIB_TIMESPEC_GET@
727GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@ 728GL_GNULIB_TIMESPEC_GETRES = @GL_GNULIB_TIMESPEC_GETRES@
@@ -1535,6 +1536,7 @@ REPLACE_SYMLINK = @REPLACE_SYMLINK@
1535REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@ 1536REPLACE_SYMLINKAT = @REPLACE_SYMLINKAT@
1536REPLACE_TANF = @REPLACE_TANF@ 1537REPLACE_TANF = @REPLACE_TANF@
1537REPLACE_TANHF = @REPLACE_TANHF@ 1538REPLACE_TANHF = @REPLACE_TANHF@
1539REPLACE_TIME = @REPLACE_TIME@
1538REPLACE_TIMEGM = @REPLACE_TIMEGM@ 1540REPLACE_TIMEGM = @REPLACE_TIMEGM@
1539REPLACE_TIMESPEC_GET = @REPLACE_TIMESPEC_GET@ 1541REPLACE_TIMESPEC_GET = @REPLACE_TIMESPEC_GET@
1540REPLACE_TMPFILE = @REPLACE_TMPFILE@ 1542REPLACE_TMPFILE = @REPLACE_TMPFILE@
@@ -4574,8 +4576,8 @@ EXTRA_DIST += tempname.h
4574endif 4576endif
4575## end gnulib module tempname 4577## end gnulib module tempname
4576 4578
4577## begin gnulib module time 4579## begin gnulib module time-h
4578ifeq (,$(OMIT_GNULIB_MODULE_time)) 4580ifeq (,$(OMIT_GNULIB_MODULE_time-h))
4579 4581
4580BUILT_SOURCES += time.h 4582BUILT_SOURCES += time.h
4581 4583
@@ -4594,6 +4596,7 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
4594 -e 's/@''GNULIB_NANOSLEEP''@/$(GL_GNULIB_NANOSLEEP)/g' \ 4596 -e 's/@''GNULIB_NANOSLEEP''@/$(GL_GNULIB_NANOSLEEP)/g' \
4595 -e 's/@''GNULIB_STRFTIME''@/$(GL_GNULIB_STRFTIME)/g' \ 4597 -e 's/@''GNULIB_STRFTIME''@/$(GL_GNULIB_STRFTIME)/g' \
4596 -e 's/@''GNULIB_STRPTIME''@/$(GL_GNULIB_STRPTIME)/g' \ 4598 -e 's/@''GNULIB_STRPTIME''@/$(GL_GNULIB_STRPTIME)/g' \
4599 -e 's/@''GNULIB_TIME''@/$(GL_GNULIB_TIME)/g' \
4597 -e 's/@''GNULIB_TIMEGM''@/$(GL_GNULIB_TIMEGM)/g' \ 4600 -e 's/@''GNULIB_TIMEGM''@/$(GL_GNULIB_TIMEGM)/g' \
4598 -e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_GNULIB_TIMESPEC_GET)/g' \ 4601 -e 's/@''GNULIB_TIMESPEC_GET''@/$(GL_GNULIB_TIMESPEC_GET)/g' \
4599 -e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_GNULIB_TIMESPEC_GETRES)/g' \ 4602 -e 's/@''GNULIB_TIMESPEC_GETRES''@/$(GL_GNULIB_TIMESPEC_GETRES)/g' \
@@ -4615,6 +4618,7 @@ time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(
4615 -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \ 4618 -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
4616 -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \ 4619 -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
4617 -e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \ 4620 -e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \
4621 -e 's|@''REPLACE_TIME''@|$(REPLACE_TIME)|g' \
4618 -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \ 4622 -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
4619 -e 's|@''REPLACE_TIMESPEC_GET''@|$(REPLACE_TIMESPEC_GET)|g' \ 4623 -e 's|@''REPLACE_TIMESPEC_GET''@|$(REPLACE_TIMESPEC_GET)|g' \
4620 -e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \ 4624 -e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \
@@ -4633,7 +4637,7 @@ MOSTLYCLEANFILES += time.h time.h-t
4633EXTRA_DIST += time.in.h 4637EXTRA_DIST += time.in.h
4634 4638
4635endif 4639endif
4636## end gnulib module time 4640## end gnulib module time-h
4637 4641
4638## begin gnulib module time_r 4642## begin gnulib module time_r
4639ifeq (,$(OMIT_GNULIB_MODULE_time_r)) 4643ifeq (,$(OMIT_GNULIB_MODULE_time_r))
diff --git a/lib/stdio.in.h b/lib/stdio.in.h
index 3f8ea985335..098f841738c 100644
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -36,6 +36,12 @@
36 36
37#ifndef _@GUARD_PREFIX@_STDIO_H 37#ifndef _@GUARD_PREFIX@_STDIO_H
38 38
39/* Suppress macOS deprecation warnings for sprintf and vsprintf. */
40#if (defined __APPLE__ && defined __MACH__) && !defined _POSIX_C_SOURCE
41# define _POSIX_C_SOURCE 200809L
42# define _GL_DEFINED__POSIX_C_SOURCE
43#endif
44
39#define _GL_ALREADY_INCLUDING_STDIO_H 45#define _GL_ALREADY_INCLUDING_STDIO_H
40 46
41/* The include_next requires a split double-inclusion guard. */ 47/* The include_next requires a split double-inclusion guard. */
@@ -43,6 +49,11 @@
43 49
44#undef _GL_ALREADY_INCLUDING_STDIO_H 50#undef _GL_ALREADY_INCLUDING_STDIO_H
45 51
52#ifdef _GL_DEFINED__POSIX_C_SOURCE
53# undef _GL_DEFINED__POSIX_C_SOURCE
54# undef _POSIX_C_SOURCE
55#endif
56
46#ifndef _@GUARD_PREFIX@_STDIO_H 57#ifndef _@GUARD_PREFIX@_STDIO_H
47#define _@GUARD_PREFIX@_STDIO_H 58#define _@GUARD_PREFIX@_STDIO_H
48 59
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>. */