From 01bd62517cc242ae503aaa7002e9e94551803e4d Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Tue, 4 Feb 2020 10:29:04 -0300 Subject: Remove tls.h inclusion from internal errno.h The tls.h inclusion is not really required and limits possible definition on more arch specific headers. This is a cleanup to allow inline functions on sysdep.h, more specifically on i386 and ia64 which requires to access some tls definitions its own. No semantic changes expected, checked with a build against all affected ABIs. --- sysdeps/unix/sysv/linux/generic/chmod.c | 4 +--- sysdeps/unix/sysv/linux/generic/chown.c | 4 +--- sysdeps/unix/sysv/linux/generic/dup2.c | 3 +-- sysdeps/unix/sysv/linux/generic/epoll_create.c | 5 +---- sysdeps/unix/sysv/linux/generic/inotify_init.c | 5 +---- sysdeps/unix/sysv/linux/generic/lchown.c | 4 +--- sysdeps/unix/sysv/linux/generic/link.c | 3 +-- sysdeps/unix/sysv/linux/generic/pipe.c | 3 +-- sysdeps/unix/sysv/linux/generic/readlink.c | 2 +- sysdeps/unix/sysv/linux/generic/rmdir.c | 4 +--- sysdeps/unix/sysv/linux/generic/symlink.c | 3 +-- sysdeps/unix/sysv/linux/generic/unlink.c | 4 +--- sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c | 2 +- sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h | 1 + sysdeps/unix/sysv/linux/generic/wordsize-32/sendfile.c | 2 ++ sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c | 2 +- 16 files changed, 17 insertions(+), 34 deletions(-) (limited to 'sysdeps/unix/sysv/linux/generic') diff --git a/sysdeps/unix/sysv/linux/generic/chmod.c b/sysdeps/unix/sysv/linux/generic/chmod.c index b9631a9103..802e4006ee 100644 --- a/sysdeps/unix/sysv/linux/generic/chmod.c +++ b/sysdeps/unix/sysv/linux/generic/chmod.c @@ -16,11 +16,9 @@ License along with the GNU C Library. If not, see . */ -#include -#include #include -#include #include +#include /* Change the protections of FILE to MODE. */ int diff --git a/sysdeps/unix/sysv/linux/generic/chown.c b/sysdeps/unix/sysv/linux/generic/chown.c index d676eefab4..57a81834db 100644 --- a/sysdeps/unix/sysv/linux/generic/chown.c +++ b/sysdeps/unix/sysv/linux/generic/chown.c @@ -16,11 +16,9 @@ License along with the GNU C Library. If not, see . */ -#include -#include #include #include -#include +#include /* Change the owner and group of FILE. */ int diff --git a/sysdeps/unix/sysv/linux/generic/dup2.c b/sysdeps/unix/sysv/linux/generic/dup2.c index 32592f9450..dfa348b375 100644 --- a/sysdeps/unix/sysv/linux/generic/dup2.c +++ b/sysdeps/unix/sysv/linux/generic/dup2.c @@ -16,10 +16,9 @@ License along with the GNU C Library. If not, see . */ -#include #include -#include #include +#include /* Duplicate FD to FD2, closing the old FD2 and making FD2 be open the same file as FD is. Return FD2 or -1. */ diff --git a/sysdeps/unix/sysv/linux/generic/epoll_create.c b/sysdeps/unix/sysv/linux/generic/epoll_create.c index e3eac4a7ac..1715c6d9bf 100644 --- a/sysdeps/unix/sysv/linux/generic/epoll_create.c +++ b/sysdeps/unix/sysv/linux/generic/epoll_create.c @@ -16,11 +16,8 @@ License along with the GNU C Library. If not, see . */ -#include -#include -#include -#include #include +#include libc_hidden_proto (epoll_create) diff --git a/sysdeps/unix/sysv/linux/generic/inotify_init.c b/sysdeps/unix/sysv/linux/generic/inotify_init.c index 7f84124850..25a323f7e7 100644 --- a/sysdeps/unix/sysv/linux/generic/inotify_init.c +++ b/sysdeps/unix/sysv/linux/generic/inotify_init.c @@ -16,11 +16,8 @@ License along with the GNU C Library. If not, see . */ -#include -#include -#include -#include #include +#include libc_hidden_proto (inotify_init) diff --git a/sysdeps/unix/sysv/linux/generic/lchown.c b/sysdeps/unix/sysv/linux/generic/lchown.c index a483241fd3..379079e8ca 100644 --- a/sysdeps/unix/sysv/linux/generic/lchown.c +++ b/sysdeps/unix/sysv/linux/generic/lchown.c @@ -16,11 +16,9 @@ License along with the GNU C Library. If not, see . */ -#include -#include #include #include -#include +#include /* Change the owner and group of FILE. */ int diff --git a/sysdeps/unix/sysv/linux/generic/link.c b/sysdeps/unix/sysv/linux/generic/link.c index a038ba1408..1baa6b5e6a 100644 --- a/sysdeps/unix/sysv/linux/generic/link.c +++ b/sysdeps/unix/sysv/linux/generic/link.c @@ -16,10 +16,9 @@ License along with the GNU C Library. If not, see . */ -#include -#include #include #include +#include /* Make a link to FROM called TO. */ int diff --git a/sysdeps/unix/sysv/linux/generic/pipe.c b/sysdeps/unix/sysv/linux/generic/pipe.c index 5d4a95f3e7..52f3231cb8 100644 --- a/sysdeps/unix/sysv/linux/generic/pipe.c +++ b/sysdeps/unix/sysv/linux/generic/pipe.c @@ -16,9 +16,8 @@ License along with the GNU C Library. If not, see . */ -#include #include -#include +#include /* Create a one-way communication channel (__pipe). If successful, two file descriptors are stored in PIPEDES; diff --git a/sysdeps/unix/sysv/linux/generic/readlink.c b/sysdeps/unix/sysv/linux/generic/readlink.c index 721f84e3dd..6f690a9750 100644 --- a/sysdeps/unix/sysv/linux/generic/readlink.c +++ b/sysdeps/unix/sysv/linux/generic/readlink.c @@ -16,9 +16,9 @@ License along with the GNU C Library. If not, see . */ -#include #include #include +#include /* Read the contents of the symbolic link PATH into no more than LEN bytes of BUF. The contents are not null-terminated. diff --git a/sysdeps/unix/sysv/linux/generic/rmdir.c b/sysdeps/unix/sysv/linux/generic/rmdir.c index e357a10e8d..f9d721f3db 100644 --- a/sysdeps/unix/sysv/linux/generic/rmdir.c +++ b/sysdeps/unix/sysv/linux/generic/rmdir.c @@ -16,11 +16,9 @@ License along with the GNU C Library. If not, see . */ -#include -#include #include #include - +#include /* Remove the directory PATH. */ int diff --git a/sysdeps/unix/sysv/linux/generic/symlink.c b/sysdeps/unix/sysv/linux/generic/symlink.c index cddc11acf0..2c358f54c9 100644 --- a/sysdeps/unix/sysv/linux/generic/symlink.c +++ b/sysdeps/unix/sysv/linux/generic/symlink.c @@ -16,10 +16,9 @@ License along with the GNU C Library. If not, see . */ -#include -#include #include #include +#include /* Make a link to FROM called TO. */ int diff --git a/sysdeps/unix/sysv/linux/generic/unlink.c b/sysdeps/unix/sysv/linux/generic/unlink.c index 7908d0a576..8df55753a0 100644 --- a/sysdeps/unix/sysv/linux/generic/unlink.c +++ b/sysdeps/unix/sysv/linux/generic/unlink.c @@ -16,11 +16,9 @@ License along with the GNU C Library. If not, see . */ -#include -#include #include #include - +#include /* Remove the link named NAME. */ int diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c index 93d9d94a0a..f80b56b303 100644 --- a/sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c +++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/fstatfs.c @@ -16,10 +16,10 @@ License along with the GNU C Library. If not, see . */ -#include #include #include #include +#include #if !STATFS_IS_STATFS64 #include "overflow.h" diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h b/sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h index c5e028625a..e200f6319b 100644 --- a/sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h +++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/overflow.h @@ -19,6 +19,7 @@ #include #include +#include /* Test for overflows of structures where we ask the kernel to fill them in with standard 64-bit syscalls but return them through APIs that diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/sendfile.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/sendfile.c index c556a37cd4..72e2d49d1a 100644 --- a/sysdeps/unix/sysv/linux/generic/wordsize-32/sendfile.c +++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/sendfile.c @@ -17,7 +17,9 @@ . */ #include +#include #include +#include /* Send COUNT bytes from file associated with IN_FD starting at OFFSET to descriptor OUT_FD. */ diff --git a/sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c b/sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c index 7421501b4a..4484341075 100644 --- a/sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c +++ b/sysdeps/unix/sysv/linux/generic/wordsize-32/statfs.c @@ -19,7 +19,7 @@ #include #include #include -#include +#include #if !STATFS_IS_STATFS64 #include "overflow.h" -- cgit v1.2.3-70-g09d2