aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib.in.h
diff options
context:
space:
mode:
authorPaul Eggert2020-01-01 03:11:22 +0000
committerPaul Eggert2019-12-31 19:11:56 -0800
commit64d1b9fd8a97d355d7fe23025d82bebe52c1af1c (patch)
treeb3375e41ebc8b83c9d7742a064820a32ef61ab57 /lib/stdlib.in.h
parentc6fb86b40bebf597fccbe4eba58ceea83bd9700f (diff)
downloademacs-64d1b9fd8a97d355d7fe23025d82bebe52c1af1c.tar.gz
emacs-64d1b9fd8a97d355d7fe23025d82bebe52c1af1c.zip
Update from gnulib
This incorporates: 2019-12-23 mktime, nstrftime: tweak division performance 2019-12-22 count-leading-zeros: assume 'long long' 2019-12-22 count-one-bits: assume 'long long' 2019-12-22 count-trailing-zeros: assume 'long long' 2019-12-12 inttypes-incomplete: assume 'long long' 2019-12-22 malloca: assume 'long long' 2019-12-22 stdint: assume 'long long' 2019-12-22 strtoll, strtoimax, strtoumax: assume 'long long' 2019-12-22 prefer lib_SOURCES to unconditional AC_LIBOBJ 2019-12-19 nstrftime: avoid a shadowing warning 2019-12-18 improve port of AC_C_RESTRICT to Oracle C++ 2019-12-12 stdalign: port to xlclang 16.01 2019-12-11 stddef, unistd: fix compilation error in C++ mode on MSVC 2019-12-08 fix compilation errors in C++ mode on Haiku 2019-12-08 fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64 2019-12-08 fix compilation error in C++ mode on OpenBSD * build-aux/config.guess, doc/misc/texinfo.tex: * lib/count-leading-zeros.h, lib/count-one-bits.h: * lib/count-trailing-zeros.h, lib/inttypes.in.h, lib/malloca.h: * lib/mktime.c, lib/nstrftime.c, lib/signal.in.h, lib/stdalign.in.h: * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/stdlib.in.h: * lib/strtoimax.c, lib/unistd.in.h, m4/gnulib-common.m4: * m4/inttypes.m4, m4/largefile.m4, m4/malloca.m4, m4/strtoimax.m4: * m4/strtoll.m4: Copy from Gnulib. Also, change copyright notices in some other Gnulib-copied files to exactly match Gnulib, as Gnulib updated them in a trivially different way. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
Diffstat (limited to 'lib/stdlib.in.h')
-rw-r--r--lib/stdlib.in.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h
index 1524277d799..e088959b285 100644
--- a/lib/stdlib.in.h
+++ b/lib/stdlib.in.h
@@ -1,7 +1,6 @@
1/* A GNU-like <stdlib.h>. 1/* A GNU-like <stdlib.h>.
2 2
3 Copyright (C) 1995, 2001-2004, 2006-2020 Free Software Foundation, 3 Copyright (C) 1995, 2001-2004, 2006-2020 Free Software Foundation, Inc.
4 Inc.
5 4
6 This program is free software: you can redistribute it and/or modify 5 This program is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
@@ -600,7 +599,9 @@ _GL_CXXALIAS_RPL (random, long, (void));
600# if !@HAVE_RANDOM@ 599# if !@HAVE_RANDOM@
601_GL_FUNCDECL_SYS (random, long, (void)); 600_GL_FUNCDECL_SYS (random, long, (void));
602# endif 601# endif
603_GL_CXXALIAS_SYS (random, long, (void)); 602/* Need to cast, because on Haiku, the return type is
603 int. */
604_GL_CXXALIAS_SYS_CAST (random, long, (void));
604# endif 605# endif
605_GL_CXXALIASWARN (random); 606_GL_CXXALIASWARN (random);
606#elif defined GNULIB_POSIXCHECK 607#elif defined GNULIB_POSIXCHECK
@@ -767,9 +768,11 @@ _GL_FUNCDECL_SYS (initstate_r, int,
767 struct random_data *rand_state) 768 struct random_data *rand_state)
768 _GL_ARG_NONNULL ((2, 4))); 769 _GL_ARG_NONNULL ((2, 4)));
769# endif 770# endif
770_GL_CXXALIAS_SYS (initstate_r, int, 771/* Need to cast, because on Haiku, the third parameter is
771 (unsigned int seed, char *buf, size_t buf_size, 772 unsigned long buf_size. */
772 struct random_data *rand_state)); 773_GL_CXXALIAS_SYS_CAST (initstate_r, int,
774 (unsigned int seed, char *buf, size_t buf_size,
775 struct random_data *rand_state));
773# endif 776# endif
774_GL_CXXALIASWARN (initstate_r); 777_GL_CXXALIASWARN (initstate_r);
775#elif defined GNULIB_POSIXCHECK 778#elif defined GNULIB_POSIXCHECK
@@ -797,8 +800,10 @@ _GL_FUNCDECL_SYS (setstate_r, int,
797 (char *arg_state, struct random_data *rand_state) 800 (char *arg_state, struct random_data *rand_state)
798 _GL_ARG_NONNULL ((1, 2))); 801 _GL_ARG_NONNULL ((1, 2)));
799# endif 802# endif
800_GL_CXXALIAS_SYS (setstate_r, int, 803/* Need to cast, because on Haiku, the first parameter is
801 (char *arg_state, struct random_data *rand_state)); 804 void *arg_state. */
805_GL_CXXALIAS_SYS_CAST (setstate_r, int,
806 (char *arg_state, struct random_data *rand_state));
802# endif 807# endif
803_GL_CXXALIASWARN (setstate_r); 808_GL_CXXALIASWARN (setstate_r);
804#elif defined GNULIB_POSIXCHECK 809#elif defined GNULIB_POSIXCHECK