aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/errno.h2
-rw-r--r--io/lchmod.c4
-rw-r--r--malloc/reallocarray.c1
-rw-r--r--misc/ustat.c1
-rw-r--r--nss/nss_fgetent_r.c1
-rw-r--r--posix/execl.c1
-rw-r--r--posix/execle.c1
-rw-r--r--posix/execlp.c1
-rw-r--r--posix/spawn_faction_addchdir.c2
-rw-r--r--pwd/putpwent.c1
-rw-r--r--signal/sigempty.c1
-rw-r--r--signal/sigismem.c1
-rw-r--r--sysdeps/generic/internal-signals.h1
-rw-r--r--sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c3
-rw-r--r--sysdeps/mach/hurd/mmap64.c1
-rw-r--r--sysdeps/mach/hurd/waitid.c1
-rw-r--r--sysdeps/microblaze/backtrace.c1
-rw-r--r--sysdeps/nptl/futex-internal.h1
-rw-r--r--sysdeps/unix/sysv/linux/adjtime.c1
-rw-r--r--sysdeps/unix/sysv/linux/clock_getcpuclockid.c1
-rw-r--r--sysdeps/unix/sysv/linux/faccessat.c6
-rw-r--r--sysdeps/unix/sysv/linux/ftime.c1
-rw-r--r--sysdeps/unix/sysv/linux/ftruncate64.c1
-rw-r--r--sysdeps/unix/sysv/linux/generic/chmod.c4
-rw-r--r--sysdeps/unix/sysv/linux/generic/chown.c4
-rw-r--r--sysdeps/unix/sysv/linux/generic/dup2.c3
-rw-r--r--sysdeps/unix/sysv/linux/generic/epoll_create.c5
-rw-r--r--sysdeps/unix/sysv/linux/generic/inotify_init.c5
-rw-r--r--sysdeps/unix/sysv/linux/generic/lchown.c4
-rw-r--r--sysdeps/unix/sysv/linux/generic/link.c3
-rw-r--r--sysdeps/unix/sysv/linux/generic/pipe.c3
-rw-r--r--sysdeps/unix/sysv/linux/generic/readlink.c2
-rw-r--r--sysdeps/unix/sysv/linux/generic/rmdir.c4
-rw-r--r--sysdeps/unix/sysv/linux/generic/symlink.c3
-rw-r--r--sysdeps/unix/sysv/linux/generic/unlink.c4
-rw-r--r--sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c2
-rw-r--r--sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h1
-rw-r--r--sysdeps/unix/sysv/linux/generic/wordsize-32/sendfile.c2
-rw-r--r--sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c2
-rw-r--r--sysdeps/unix/sysv/linux/getentropy.c1
-rw-r--r--sysdeps/unix/sysv/linux/getrlimit.c3
-rw-r--r--sysdeps/unix/sysv/linux/getrlimit64.c1
-rw-r--r--sysdeps/unix/sysv/linux/gettimeofday.c7
-rw-r--r--sysdeps/unix/sysv/linux/hppa/sysdep.h2
-rw-r--r--sysdeps/unix/sysv/linux/internal-signals.h1
-rw-r--r--sysdeps/unix/sysv/linux/libc_fatal.c2
-rw-r--r--sysdeps/unix/sysv/linux/microblaze/sysdep.h2
-rw-r--r--sysdeps/unix/sysv/linux/mknodat.c1
-rw-r--r--sysdeps/unix/sysv/linux/netlink_assert_response.c1
-rw-r--r--sysdeps/unix/sysv/linux/posix_fadvise64.c1
-rw-r--r--sysdeps/unix/sysv/linux/prlimit.c4
-rw-r--r--sysdeps/unix/sysv/linux/readahead.c2
-rw-r--r--sysdeps/unix/sysv/linux/riscv/sysconf.c1
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-32/utmp32.c2
-rw-r--r--sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.c2
-rw-r--r--sysdeps/unix/sysv/linux/semop.c2
-rw-r--r--sysdeps/unix/sysv/linux/setrlimit.c3
-rw-r--r--sysdeps/unix/sysv/linux/setrlimit64.c1
-rw-r--r--sysdeps/unix/sysv/linux/settimezone.c1
-rw-r--r--sysdeps/unix/sysv/linux/shmget.c3
-rw-r--r--sysdeps/unix/sysv/linux/socketcall.h2
-rw-r--r--sysdeps/unix/sysv/linux/speed.c2
-rw-r--r--sysdeps/unix/sysv/linux/statx.c2
-rw-r--r--sysdeps/unix/sysv/linux/sysctl.c1
-rw-r--r--sysdeps/unix/sysv/linux/sysdep.h1
-rw-r--r--sysdeps/unix/sysv/linux/truncate64.c1
-rw-r--r--sysdeps/unix/sysv/linux/ustat.c2
-rw-r--r--sysdeps/unix/sysv/linux/xmknod.c1
-rw-r--r--sysdeps/unix/sysv/linux/xmknodat.c1
-rw-r--r--sysdeps/unix/sysv/linux/xstatconv.c1
-rw-r--r--sysdeps/x86_64/stackinfo.h10
71 files changed, 83 insertions, 70 deletions
diff --git a/include/errno.h b/include/errno.h
index 457114b27a..c361a785c2 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -22,8 +22,6 @@ extern int rtld_errno attribute_hidden;
# elif IS_IN_LIB && !IS_IN (rtld)
-# include <tls.h>
-
# undef errno
# if IS_IN (libc)
# define errno __libc_errno
diff --git a/io/lchmod.c b/io/lchmod.c
index 8b788034ee..3a0f714576 100644
--- a/io/lchmod.c
+++ b/io/lchmod.c
@@ -16,10 +16,8 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
-#include <errno.h>
#include <fcntl.h>
-#include <sys/types.h>
-#include <unistd.h>
+#include <sys/stat.h>
/* Change the protections of FILE to MODE. */
int
diff --git a/malloc/reallocarray.c b/malloc/reallocarray.c
index aca689e2c5..20b0215220 100644
--- a/malloc/reallocarray.c
+++ b/malloc/reallocarray.c
@@ -17,6 +17,7 @@
not, see <https://www.gnu.org/licenses/>. */
#include <errno.h>
+#include <stdlib.h>
#include <malloc.h>
void *
diff --git a/misc/ustat.c b/misc/ustat.c
index a1b057f640..ad75c5c1bf 100644
--- a/misc/ustat.c
+++ b/misc/ustat.c
@@ -23,6 +23,7 @@
# include <unistd.h>
# include <errno.h>
+# include <sys/types.h>
struct ustat
{
diff --git a/nss/nss_fgetent_r.c b/nss/nss_fgetent_r.c
index 8f7c5b5cc7..7fecde7e8f 100644
--- a/nss/nss_fgetent_r.c
+++ b/nss/nss_fgetent_r.c
@@ -18,6 +18,7 @@
#include <errno.h>
#include <nss_files.h>
+#include <stdbool.h>
int
__nss_fgetent_r (FILE *fp, void *result, char *buffer, size_t buffer_length,
diff --git a/posix/execl.c b/posix/execl.c
index 8d319a4528..61aef66126 100644
--- a/posix/execl.c
+++ b/posix/execl.c
@@ -19,6 +19,7 @@
#include <errno.h>
#include <stdarg.h>
#include <sys/param.h>
+#include <stddef.h>
/* Execute PATH with all arguments after PATH until
a NULL pointer and environment from `environ'. */
diff --git a/posix/execle.c b/posix/execle.c
index 7539ce6b8d..f6608ee112 100644
--- a/posix/execle.c
+++ b/posix/execle.c
@@ -19,6 +19,7 @@
#include <stdarg.h>
#include <errno.h>
#include <sys/param.h>
+#include <stddef.h>
/* Execute PATH with all arguments after PATH until a NULL pointer,
and the argument after that for environment. */
diff --git a/posix/execlp.c b/posix/execlp.c
index 9eaca5fd25..4761962176 100644
--- a/posix/execlp.c
+++ b/posix/execlp.c
@@ -19,6 +19,7 @@
#include <stdarg.h>
#include <errno.h>
#include <sys/param.h>
+#include <stddef.h>
/* Execute FILE, searching in the `PATH' environment variable if
it contains no slashes, with all arguments after FILE until a
diff --git a/posix/spawn_faction_addchdir.c b/posix/spawn_faction_addchdir.c
index 6558628547..20a3ba92ab 100644
--- a/posix/spawn_faction_addchdir.c
+++ b/posix/spawn_faction_addchdir.c
@@ -19,7 +19,7 @@
#include <errno.h>
#include <spawn.h>
#include <string.h>
-
+#include <stdlib.h>
#include "spawn_int.h"
int
diff --git a/pwd/putpwent.c b/pwd/putpwent.c
index a6673acbf2..baf312a6fe 100644
--- a/pwd/putpwent.c
+++ b/pwd/putpwent.c
@@ -18,6 +18,7 @@
#include <errno.h>
#include <stdio.h>
#include <pwd.h>
+#include <stdlib.h>
#include <nss.h>
#define _S(x) x ?: ""
diff --git a/signal/sigempty.c b/signal/sigempty.c
index 31b1145027..01848c82d5 100644
--- a/signal/sigempty.c
+++ b/signal/sigempty.c
@@ -18,6 +18,7 @@
#include <errno.h>
#include <signal.h>
#include <sigsetops.h>
+#include <stddef.h>
/* Clear all signals from SET. */
int
diff --git a/signal/sigismem.c b/signal/sigismem.c
index 728d58f7a3..c788ca83b1 100644
--- a/signal/sigismem.c
+++ b/signal/sigismem.c
@@ -17,6 +17,7 @@
#include <errno.h>
#include <signal.h>
+#include <stddef.h>
#include <sigsetops.h>
/* Return 1 if SIGNO is in SET, 0 if not. */
diff --git a/sysdeps/generic/internal-signals.h b/sysdeps/generic/internal-signals.h
index 73a0c29d82..cd675e4fd4 100644
--- a/sysdeps/generic/internal-signals.h
+++ b/sysdeps/generic/internal-signals.h
@@ -22,6 +22,7 @@
#include <signal.h>
#include <sigsetops.h>
#include <stdbool.h>
+#include <stddef.h>
static inline bool
__is_internal_signal (int sig)
diff --git a/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c b/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
index f77253e520..6ced407e26 100644
--- a/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
+++ b/sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
@@ -20,9 +20,6 @@
#include <float.h>
#include <math.h>
-/* Need to set this when including gmp headers after system headers. */
-#define HAVE_ALLOCA 1
-
#include "gmp.h"
#include "gmp-impl.h"
diff --git a/sysdeps/mach/hurd/mmap64.c b/sysdeps/mach/hurd/mmap64.c
index 6d8566b5b1..23d7ca7f34 100644
--- a/sysdeps/mach/hurd/mmap64.c
+++ b/