aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert2011-02-09 23:03:12 -0800
committerPaul Eggert2011-02-09 23:03:12 -0800
commitdd4638842ad1921562bc66049ec81a4530651cdf (patch)
tree95521d694eb2e7559d9a4723eb17d95ff06af4d9 /lib
parent79ab4b7f0e69ac1d76186346c33187b1fb02ff02 (diff)
downloademacs-dd4638842ad1921562bc66049ec81a4530651cdf.tar.gz
emacs-dd4638842ad1921562bc66049ec81a4530651cdf.zip
Merge from gnulib.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.in9
-rw-r--r--lib/gnulib.mk9
-rw-r--r--lib/stdlib.in.h24
3 files changed, 24 insertions, 18 deletions
diff --git a/lib/Makefile.in b/lib/Makefile.in
index 5e170d155e8..f45a086bb1f 100644
--- a/lib/Makefile.in
+++ b/lib/Makefile.in
@@ -918,7 +918,8 @@ stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
918 -e 's|@''GNULIB_SYSTEM_POSIX''@|$(GNULIB_SYSTEM_POSIX)|g' \ 918 -e 's|@''GNULIB_SYSTEM_POSIX''@|$(GNULIB_SYSTEM_POSIX)|g' \
919 -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \ 919 -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \
920 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \ 920 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
921 -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \ 921 < $(srcdir)/stdlib.in.h | \
922 sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
922 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ 923 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
923 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ 924 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
924 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ 925 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
@@ -954,8 +955,7 @@ stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
954 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ 955 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
955 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ 956 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
956 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ 957 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
957 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ 958 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
958 < $(srcdir)/stdlib.in.h; \
959 } > $@-t && \ 959 } > $@-t && \
960 mv $@-t $@ 960 mv $@-t $@
961 961
@@ -1080,7 +1080,8 @@ unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1080 -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \ 1080 -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
1081 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ 1081 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
1082 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ 1082 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
1083 -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ 1083 | \
1084 sed -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
1084 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ 1085 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
1085 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ 1086 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
1086 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ 1087 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
diff --git a/lib/gnulib.mk b/lib/gnulib.mk
index ffd175d58c8..0e7263a002b 100644
--- a/lib/gnulib.mk
+++ b/lib/gnulib.mk
@@ -223,7 +223,8 @@ stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
223 -e 's|@''GNULIB_SYSTEM_POSIX''@|$(GNULIB_SYSTEM_POSIX)|g' \ 223 -e 's|@''GNULIB_SYSTEM_POSIX''@|$(GNULIB_SYSTEM_POSIX)|g' \
224 -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \ 224 -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \
225 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \ 225 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
226 -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \ 226 < $(srcdir)/stdlib.in.h | \
227 sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
227 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \ 228 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
228 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \ 229 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
229 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \ 230 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
@@ -259,8 +260,7 @@ stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
259 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \ 260 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
260 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \ 261 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
261 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ 262 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
262 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \ 263 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
263 < $(srcdir)/stdlib.in.h; \
264 } > $@-t && \ 264 } > $@-t && \
265 mv $@-t $@ 265 mv $@-t $@
266MOSTLYCLEANFILES += stdlib.h stdlib.h-t 266MOSTLYCLEANFILES += stdlib.h stdlib.h-t
@@ -421,7 +421,8 @@ unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
421 -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \ 421 -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
422 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \ 422 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
423 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \ 423 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
424 -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \ 424 | \
425 sed -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
425 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \ 426 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
426 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \ 427 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
427 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \ 428 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h
index b3bb9d4e5de..6e69a277af0 100644
--- a/lib/stdlib.in.h
+++ b/lib/stdlib.in.h
@@ -49,20 +49,23 @@
49# include <sys/loadavg.h> 49# include <sys/loadavg.h>
50#endif 50#endif
51 51
52#if @GNULIB_RANDOM_R@
53
52/* OSF/1 5.1 declares 'struct random_data' in <random.h>, which is included 54/* OSF/1 5.1 declares 'struct random_data' in <random.h>, which is included
53 from <stdlib.h> if _REENTRANT is defined. Include it always. */ 55 from <stdlib.h> if _REENTRANT is defined. Include it whenever we need
54#if @HAVE_RANDOM_H@ 56 'struct random_data'. */
55# include <random.h> 57# if @HAVE_RANDOM_H@
56#endif 58# include <random.h>
59# endif
57 60
58#if !@HAVE_STRUCT_RANDOM_DATA@ || (@GNULIB_RANDOM_R@ && !@HAVE_RANDOM_R@) 61# if !@HAVE_STRUCT_RANDOM_DATA@ || !@HAVE_RANDOM_R@
59# include <stdint.h> 62# include <stdint.h>
60#endif 63# endif
61 64
62#if !@HAVE_STRUCT_RANDOM_DATA@ 65# if !@HAVE_STRUCT_RANDOM_DATA@
63/* Define 'struct random_data'. 66/* Define 'struct random_data'.
64 But allow multiple gnulib generated <stdlib.h> replacements to coexist. */ 67 But allow multiple gnulib generated <stdlib.h> replacements to coexist. */
65# if !GNULIB_defined_struct_random_data 68# if !GNULIB_defined_struct_random_data
66struct random_data 69struct random_data
67{ 70{
68 int32_t *fptr; /* Front pointer. */ 71 int32_t *fptr; /* Front pointer. */
@@ -73,7 +76,8 @@ struct random_data
73 int rand_sep; /* Distance between front and rear. */ 76 int rand_sep; /* Distance between front and rear. */
74 int32_t *end_ptr; /* Pointer behind state table. */ 77 int32_t *end_ptr; /* Pointer behind state table. */
75}; 78};
76# define GNULIB_defined_struct_random_data 1 79# define GNULIB_defined_struct_random_data 1
80# endif
77# endif 81# endif
78#endif 82#endif
79 83