aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib.in.h
diff options
context:
space:
mode:
authorPaul Eggert2019-01-27 16:20:03 -0800
committerPaul Eggert2019-01-27 16:20:40 -0800
commitd81aa8516ef6df79d6d602d4f732d8a65bf1677c (patch)
treec384271af4f60e82ab204d020e7e6e3367e87877 /lib/stdlib.in.h
parentcc1c46e4122a08657a7c75495115d1c60efb1b31 (diff)
downloademacs-d81aa8516ef6df79d6d602d4f732d8a65bf1677c.tar.gz
emacs-d81aa8516ef6df79d6d602d4f732d8a65bf1677c.zip
Update from Gnulib
This incorporates: 2019-01-26 getloadavg: Add support for Android 2019-01-24 fchownat: Fix compilation error on Android 4.3 2019-01-24 mbtowc: Fix compilation error on Android 4.3 2019-01-24 random: Fix compilation error on Android 4.3 2019-01-24 renameat: Fix compilation error on Android 4.3 2019-01-24 unlinkat: Fix compilation error on Android 4.3 2019-01-19 gettext: support disabling use of VLAs 2019-01-17 sys_stat: Fix warning on OS/2 kLIBC 2019-01-17 fcntl: Fix syntax error (regression from 2018-10-05) 2019-01-10 verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ 2018-12-22 stdioext: port to newer 32-bit Android 2018-12-16 libc-config: Support HP-UX cc in C99 mode. * build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex: * lib/cdefs.h, lib/fcntl.c, lib/getloadavg.c, lib/gettext.h: * lib/regexec.c, lib/stdio-impl.h, lib/stdio.in.h, lib/stdlib.in.h: * lib/sys_stat.in.h, lib/unistd.in.h, lib/verify.h, m4/stdlib_h.m4: Copy from Gnulib. * lib/gnulib.mk.in: Regenerate.
Diffstat (limited to 'lib/stdlib.in.h')
-rw-r--r--lib/stdlib.in.h68
1 files changed, 58 insertions, 10 deletions
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h
index d80d7ec6b05..be8ab3b86c2 100644
--- a/lib/stdlib.in.h
+++ b/lib/stdlib.in.h
@@ -306,9 +306,18 @@ _GL_WARN_ON_USE (malloc, "malloc is not POSIX compliant everywhere - "
306_GL_FUNCDECL_RPL (mbtowc, int, (wchar_t *pwc, const char *s, size_t n)); 306_GL_FUNCDECL_RPL (mbtowc, int, (wchar_t *pwc, const char *s, size_t n));
307_GL_CXXALIAS_RPL (mbtowc, int, (wchar_t *pwc, const char *s, size_t n)); 307_GL_CXXALIAS_RPL (mbtowc, int, (wchar_t *pwc, const char *s, size_t n));
308# else 308# else
309# if !@HAVE_MBTOWC@
310_GL_FUNCDECL_SYS (mbtowc, int, (wchar_t *pwc, const char *s, size_t n));
311# endif
309_GL_CXXALIAS_SYS (mbtowc, int, (wchar_t *pwc, const char *s, size_t n)); 312_GL_CXXALIAS_SYS (mbtowc, int, (wchar_t *pwc, const char *s, size_t n));
310# endif 313# endif
311_GL_CXXALIASWARN (mbtowc); 314_GL_CXXALIASWARN (mbtowc);
315#elif defined GNULIB_POSIXCHECK
316# undef mbtowc
317# if HAVE_RAW_DECL_MBTOWC
318_GL_WARN_ON_USE (mbtowc, "mbtowc is not portable - "
319 "use gnulib module mbtowc for portability");
320# endif
312#endif 321#endif
313 322
314#if @GNULIB_MKDTEMP@ 323#if @GNULIB_MKDTEMP@
@@ -573,10 +582,19 @@ _GL_WARN_ON_USE (qsort_r, "qsort_r is not portable - "
573 582
574 583
575#if @GNULIB_RANDOM@ 584#if @GNULIB_RANDOM@
576# if !@HAVE_RANDOM@ 585# if @REPLACE_RANDOM@
586# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
587# undef random
588# define random rpl_random
589# endif
590_GL_FUNCDECL_RPL (random, long, (void));
591_GL_CXXALIAS_RPL (random, long, (void));
592# else
593# if !@HAVE_RANDOM@
577_GL_FUNCDECL_SYS (random, long, (void)); 594_GL_FUNCDECL_SYS (random, long, (void));
578# endif 595# endif
579_GL_CXXALIAS_SYS (random, long, (void)); 596_GL_CXXALIAS_SYS (random, long, (void));
597# endif
580_GL_CXXALIASWARN (random); 598_GL_CXXALIASWARN (random);
581#elif defined GNULIB_POSIXCHECK 599#elif defined GNULIB_POSIXCHECK
582# undef random 600# undef random
@@ -587,10 +605,19 @@ _GL_WARN_ON_USE (random, "random is unportable - "
587#endif 605#endif
588 606
589#if @GNULIB_RANDOM@ 607#if @GNULIB_RANDOM@
590# if !@HAVE_RANDOM@ 608# if @REPLACE_RANDOM@
609# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
610# undef srandom
611# define srandom rpl_srandom
612# endif
613_GL_FUNCDECL_RPL (srandom, void, (unsigned int seed));
614_GL_CXXALIAS_RPL (srandom, void, (unsigned int seed));
615# else
616# if !@HAVE_RANDOM@
591_GL_FUNCDECL_SYS (srandom, void, (unsigned int seed)); 617_GL_FUNCDECL_SYS (srandom, void, (unsigned int seed));
592# endif 618# endif
593_GL_CXXALIAS_SYS (srandom, void, (unsigned int seed)); 619_GL_CXXALIAS_SYS (srandom, void, (unsigned int seed));
620# endif
594_GL_CXXALIASWARN (srandom); 621_GL_CXXALIASWARN (srandom);
595#elif defined GNULIB_POSIXCHECK 622#elif defined GNULIB_POSIXCHECK
596# undef srandom 623# undef srandom
@@ -601,31 +628,52 @@ _GL_WARN_ON_USE (srandom, "srandom is unportable - "
601#endif 628#endif
602 629
603#if @GNULIB_RANDOM@ 630#if @GNULIB_RANDOM@
604# if !@HAVE_RANDOM@ || !@HAVE_DECL_INITSTATE@ 631# if @REPLACE_INITSTATE@
632# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
633# undef initstate
634# define initstate rpl_initstate
635# endif
636_GL_FUNCDECL_RPL (initstate, char *,
637 (unsigned int seed, char *buf, size_t buf_size)
638 _GL_ARG_NONNULL ((2)));
639_GL_CXXALIAS_RPL (initstate, char *,
640 (unsigned int seed, char *buf, size_t buf_size));
641# else
642# if !@HAVE_INITSTATE@ || !@HAVE_DECL_INITSTATE@
605_GL_FUNCDECL_SYS (initstate, char *, 643_GL_FUNCDECL_SYS (initstate, char *,
606 (unsigned int seed, char *buf, size_t buf_size) 644 (unsigned int seed, char *buf, size_t buf_size)
607 _GL_ARG_NONNULL ((2))); 645 _GL_ARG_NONNULL ((2)));
608# endif 646# endif
609_GL_CXXALIAS_SYS (initstate, char *, 647_GL_CXXALIAS_SYS (initstate, char *,
610 (unsigned int seed, char *buf, size_t buf_size)); 648 (unsigned int seed, char *buf, size_t buf_size));
649# endif
611_GL_CXXALIASWARN (initstate); 650_GL_CXXALIASWARN (initstate);
612#elif defined GNULIB_POSIXCHECK 651#elif defined GNULIB_POSIXCHECK
613# undef initstate 652# undef initstate
614# if HAVE_RAW_DECL_INITSTATE_R 653# if HAVE_RAW_DECL_INITSTATE
615_GL_WARN_ON_USE (initstate, "initstate is unportable - " 654_GL_WARN_ON_USE (initstate, "initstate is unportable - "
616 "use gnulib module random for portability"); 655 "use gnulib module random for portability");
617# endif 656# endif
618#endif 657#endif
619 658
620#if @GNULIB_RANDOM@ 659#if @GNULIB_RANDOM@
621# if !@HAVE_RANDOM@ || !@HAVE_DECL_SETSTATE@ 660# if @REPLACE_SETSTATE@
661# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
662# undef setstate
663# define setstate rpl_setstate
664# endif
665_GL_FUNCDECL_RPL (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1)));
666_GL_CXXALIAS_RPL (setstate, char *, (char *arg_state));
667# else
668# if !@HAVE_SETSTATE@ || !@HAVE_DECL_SETSTATE@
622_GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1))); 669_GL_FUNCDECL_SYS (setstate, char *, (char *arg_state) _GL_ARG_NONNULL ((1)));
623# endif 670# endif
624_GL_CXXALIAS_SYS (setstate, char *, (char *arg_state)); 671_GL_CXXALIAS_SYS (setstate, char *, (char *arg_state));
672# endif
625_GL_CXXALIASWARN (setstate); 673_GL_CXXALIASWARN (setstate);
626#elif defined GNULIB_POSIXCHECK 674#elif defined GNULIB_POSIXCHECK
627# undef setstate 675# undef setstate
628# if HAVE_RAW_DECL_SETSTATE_R 676# if HAVE_RAW_DECL_SETSTATE
629_GL_WARN_ON_USE (setstate, "setstate is unportable - " 677_GL_WARN_ON_USE (setstate, "setstate is unportable - "
630 "use gnulib module random for portability"); 678 "use gnulib module random for portability");
631# endif 679# endif