diff options
| author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-02-04 10:29:04 -0300 |
|---|---|---|
| committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-11-13 12:59:19 -0300 |
| commit | 01bd62517cc242ae503aaa7002e9e94551803e4d (patch) | |
| tree | 4eb2b077db03794483dffa01795addead2eb88ef /sysdeps/unix | |
| parent | 26f7c72a99f4e46755ec2ff23a6a7cf9c2c337c3 (diff) | |
| download | glibc-01bd62517cc242ae503aaa7002e9e94551803e4d.tar.xz glibc-01bd62517cc242ae503aaa7002e9e94551803e4d.zip | |
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.
Diffstat (limited to 'sysdeps/unix')
52 files changed, 59 insertions, 59 deletions
diff --git a/sysdeps/unix/sysv/linux/adjtime.c b/sysdeps/unix/sysv/linux/adjtime.c index 6d1d1b6af2..8e7c8cc5da 100644 --- a/sysdeps/unix/sysv/linux/adjtime.c +++ b/sysdeps/unix/sysv/linux/adjtime.c @@ -19,6 +19,7 @@ #include <limits.h> #include <sys/time.h> #include <sys/timex.h> +#include <sysdep.h> #define MAX_SEC (INT_MAX / 1000000L - 2) #define MIN_SEC (INT_MIN / 1000000L + 2) diff --git a/sysdeps/unix/sysv/linux/clock_getcpuclockid.c b/sysdeps/unix/sysv/linux/clock_getcpuclockid.c index 7d2e6d6bfe..1eb780a164 100644 --- a/sysdeps/unix/sysv/linux/clock_getcpuclockid.c +++ b/sysdeps/unix/sysv/linux/clock_getcpuclockid.c @@ -20,6 +20,7 @@ #include <time.h> #include <unistd.h> #include "kernel-posix-cpu-timers.h" +#include <sysdep.h> #include <shlib-compat.h> int diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c index b697053da1..5d078371b5 100644 --- a/sysdeps/unix/sysv/linux/faccessat.c +++ b/sysdeps/unix/sysv/linux/faccessat.c @@ -16,14 +16,10 @@ License along with the GNU C Library; if not, see <https://www.gnu.org/licenses/>. */ -#include <errno.h> #include <fcntl.h> -#include <stddef.h> -#include <stdio.h> -#include <string.h> #include <unistd.h> #include <sys/types.h> -#include <alloca.h> +#include <sys/stat.h> #include <sysdep.h> diff --git a/sysdeps/unix/sysv/linux/ftime.c b/sysdeps/unix/sysv/linux/ftime.c index 1755fcf967..2f43b7650d 100644 --- a/sysdeps/unix/sysv/linux/ftime.c +++ b/sysdeps/unix/sysv/linux/ftime.c @@ -18,6 +18,7 @@ #include <features.h> #include <sys/timeb.h> +#include <time.h> #include <errno.h> int diff --git a/sysdeps/unix/sysv/linux/ftruncate64.c b/sysdeps/unix/sysv/linux/ftruncate64.c index 606a0e86e0..3d43a5a90f 100644 --- a/sysdeps/unix/sysv/linux/ftruncate64.c +++ b/sysdeps/unix/sysv/linux/ftruncate64.c @@ -17,7 +17,6 @@ #include <unistd.h> #include <sysdep.h> -#include <errno.h> #ifndef __NR_ftruncate64 # define __NR_ftruncate64 __NR_ftruncate 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 <https://www.gnu.org/licenses/>. */ -#include <errno.h> -#include <stddef.h> #include <fcntl.h> -#include <sys/stat.h> #include <sys/types.h> +#include <sysdep.h> /* 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 <https://www.gnu.org/licenses/>. */ -#include <errno.h> -#include <stddef.h> #include <unistd.h> #include <fcntl.h> -#include <sys/types.h> +#include <sysdep.h> /* 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 <https://www.gnu.org/licenses/>. */ -#include <errno.h> #include <fcntl.h> -#include <limits.h> #include <unistd.h> +#include <sysdep.h> /* 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 <https://www.gnu.org/licenses/>. */ -#include <stddef.h> -#include <errno.h> -#include <unistd.h> -#include <sys/types.h> #include <sys/epoll.h> +#include <sysdep.h> 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 <https://www.gnu.org/licenses/>. */ -#include <stddef.h> -#include <errno.h> -#include <unistd.h> -#include <sys/types.h> #include <sys/inotify.h> +#include <sysdep.h> 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 <https://www.gnu.org/licenses/>. */ -#include <errno.h> -#include <stddef.h> #include <unistd.h> #include <fcntl.h> -#include <sys/types.h> +#include <sysdep.h> /* 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 <https://www.gnu.org/licenses/>. */ -#include <errno.h> -#include <stddef.h> #include <unistd.h> #include <fcntl.h> +#include <sysdep.h> /* 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 <https://www.gnu.org/licenses/>. */ -#include <errno.h> #include <unistd.h> -#include <stddef.h> +#include <sysdep.h> /* 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 <https://www.gnu.org/licenses/>. */ -#include <errno.h> #include <unistd.h> #include <fcntl.h> +#include <sysdep.h> /* 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 <https://www.gnu.org/licenses/>. */ -#include <errno.h> -#include <stddef.h> #include <unistd.h> #include <fcntl.h> - +#include <sysdep.h> /* 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 <https://www.gnu.org/licenses/>. */ |
