]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add missing header files throughout the testsuite.
authorZack Weinberg <zackw@panix.com>
Thu, 16 Feb 2017 22:31:42 +0000 (17:31 -0500)
committerZack Weinberg <zackw@panix.com>
Thu, 16 Feb 2017 22:33:18 +0000 (17:33 -0500)
* crypt/md5.h: Test _LIBC with #if defined, not #if.
* dirent/opendir-tst1.c: Include sys/stat.h.
* dirent/tst-fdopendir.c: Include sys/stat.h.
* dirent/tst-fdopendir2.c: Include stdlib.h.
* dirent/tst-scandir.c: Include stdbool.h.
* elf/tst-auditmod1.c: Include link.h and stddef.h.
* elf/tst-tls15.c: Include stdlib.h.
* elf/tst-tls16.c: Include stdlib.h.
* elf/tst-tls17.c: Include stdlib.h.
* elf/tst-tls18.c: Include stdlib.h.
* iconv/tst-iconv6.c: Include endian.h.
* iconvdata/bug-iconv11.c: Include limits.h.
* io/test-utime.c: Include stdint.h.
* io/tst-faccessat.c: Include sys/stat.h.
* io/tst-fchmodat.c: Include sys/stat.h.
* io/tst-fchownat.c: Include sys/stat.h.
* io/tst-fstatat.c: Include sys/stat.h.
* io/tst-futimesat.c: Include sys/stat.h.
* io/tst-linkat.c: Include sys/stat.h.
* io/tst-mkdirat.c: Include sys/stat.h and stdbool.h.
* io/tst-mkfifoat.c: Include sys/stat.h and stdbool.h.
* io/tst-mknodat.c: Include sys/stat.h and stdbool.h.
* io/tst-openat.c: Include stdbool.h.
* io/tst-readlinkat.c: Include sys/stat.h.
* io/tst-renameat.c: Include sys/stat.h.
* io/tst-symlinkat.c: Include sys/stat.h.
* io/tst-unlinkat.c: Include stdbool.h.
* libio/bug-memstream1.c: Include stdlib.h.
* libio/bug-wmemstream1.c: Include stdlib.h.
* libio/tst-fwrite-error.c: Include stdlib.h.
* libio/tst-memstream1.c: Include stdlib.h.
* libio/tst-memstream2.c: Include stdlib.h.
* libio/tst-memstream3.c: Include stdlib.h.
* malloc/tst-interpose-aux.c: Include stdint.h.
* misc/tst-preadvwritev-common.c: Include sys/stat.h.
* nptl/tst-basic7.c: Include limits.h.
* nptl/tst-cancel25.c: Include pthread.h, not pthreadP.h.
* nptl/tst-cancel4.c: Include stddef.h, limits.h, and sys/stat.h.
* nptl/tst-cancel4_1.c: Include stddef.h.
* nptl/tst-cancel4_2.c: Include stddef.h.
* nptl/tst-cond16.c: Include limits.h.
Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
* nptl/tst-cond18.c: Include limits.h.
Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
* nptl/tst-cond4.c: Include stdint.h.
* nptl/tst-cond6.c: Include stdint.h.
* nptl/tst-stack2.c: Include limits.h.
* nptl/tst-stackguard1.c: Include stddef.h.
* nptl/tst-tls4.c: Include stdint.h. Don't include tls.h.
* nptl/tst-tls4moda.c: Include stddef.h.
Don't include stdio.h, unistd.h, or tls.h.
* nptl/tst-tls4modb.c: Include stddef.h.
Don't include stdio.h, unistd.h, or tls.h.
* nptl/tst-tls5.h: Include stddef.h. Don't include stdlib.h or tls.h.
* posix/tst-getaddrinfo2.c: Include stdio.h.
* posix/tst-getaddrinfo5.c: Include stdio.h.
* posix/tst-pathconf.c: Include sys/stat.h.
* posix/tst-posix_fadvise-common.c: Include stdint.h.
* posix/tst-preadwrite-common.c: Include sys/stat.h.
* posix/tst-regex.c: Include stdint.h.
Don't include spawn.h or spawn_int.h.
* posix/tst-regexloc.c: Don't include spawn.h or spawn_int.h.
* posix/tst-vfork3.c: Include sys/stat.h.
* resolv/tst-bug18665-tcp.c: Include stdlib.h.
* resolv/tst-res_hconf_reorder.c: Include stdlib.h.
* resolv/tst-resolv-search.c: Include stdlib.h.
* stdio-common/tst-fmemopen2.c: Include stdint.h.
* stdio-common/tst-vfprintf-width-prec.c: Include stdlib.h.
* stdlib/test-canon.c: Include sys/stat.h.
* stdlib/tst-tls-atexit.c: Include stdbool.h.
* string/test-memchr.c: Include stdint.h.
* string/tst-cmp.c: Include stdint.h.
* sysdeps/pthread/tst-timer.c: Include stdint.h.
* sysdeps/unix/sysv/linux/tst-sync_file_range.c: Include stdint.h.
* sysdeps/wordsize-64/tst-writev.c: Include limits.h and stdint.h.
* sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
Don't include init-arch.h.
* sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
Don't include init-arch.h.
* sysdeps/x86_64/tst-auditmod10b.c: Include link.h and stddef.h.
* sysdeps/x86_64/tst-auditmod3b.c: Include link.h and stddef.h.
* sysdeps/x86_64/tst-auditmod4b.c: Include link.h and stddef.h.
* sysdeps/x86_64/tst-auditmod5b.c: Include link.h and stddef.h.
* sysdeps/x86_64/tst-auditmod6b.c: Include link.h and stddef.h.
* sysdeps/x86_64/tst-auditmod6c.c: Include link.h and stddef.h.
* sysdeps/x86_64/tst-auditmod7b.c: Include link.h and stddef.h.
* time/clocktest.c: Include stdint.h.
* time/tst-posixtz.c: Include stdint.h.
* timezone/tst-timezone.c: Include stdint.h.

83 files changed:
ChangeLog
crypt/md5.h
dirent/opendir-tst1.c
dirent/tst-fdopendir.c
dirent/tst-fdopendir2.c
dirent/tst-scandir.c
elf/tst-auditmod1.c
elf/tst-tls15.c
elf/tst-tls16.c
elf/tst-tls17.c
elf/tst-tls18.c
iconv/tst-iconv6.c
iconvdata/bug-iconv11.c
io/test-utime.c
io/tst-faccessat.c
io/tst-fchmodat.c
io/tst-fchownat.c
io/tst-fstatat.c
io/tst-futimesat.c
io/tst-linkat.c
io/tst-mkdirat.c
io/tst-mkfifoat.c
io/tst-mknodat.c
io/tst-openat.c
io/tst-readlinkat.c
io/tst-renameat.c
io/tst-symlinkat.c
io/tst-unlinkat.c
libio/bug-memstream1.c
libio/bug-wmemstream1.c
libio/tst-fwrite-error.c
libio/tst-memstream1.c
libio/tst-memstream2.c
libio/tst-memstream3.c
malloc/tst-interpose-aux.c
misc/tst-preadvwritev-common.c
nptl/tst-basic7.c
nptl/tst-cancel25.c
nptl/tst-cancel4.c
nptl/tst-cancel4_1.c
nptl/tst-cancel4_2.c
nptl/tst-cond16.c
nptl/tst-cond18.c
nptl/tst-cond4.c
nptl/tst-cond6.c
nptl/tst-stack2.c
nptl/tst-stackguard1.c
nptl/tst-tls4.c
nptl/tst-tls4moda.c
nptl/tst-tls4modb.c
nptl/tst-tls5.h
posix/tst-getaddrinfo2.c
posix/tst-getaddrinfo5.c
posix/tst-pathconf.c
posix/tst-posix_fadvise-common.c
posix/tst-preadwrite-common.c
posix/tst-regex.c
posix/tst-regexloc.c
posix/tst-vfork3.c
resolv/tst-bug18665-tcp.c
resolv/tst-res_hconf_reorder.c
resolv/tst-resolv-search.c
stdio-common/tst-fmemopen2.c
stdio-common/tst-vfprintf-width-prec.c
stdlib/test-canon.c
stdlib/tst-tls-atexit.c
string/test-memchr.c
string/tst-cmp.c
sysdeps/pthread/tst-timer.c
sysdeps/unix/sysv/linux/tst-sync_file_range.c
sysdeps/wordsize-64/tst-writev.c
sysdeps/x86_64/fpu/math-tests-arch.h
sysdeps/x86_64/multiarch/test-multiarch.c
sysdeps/x86_64/tst-auditmod10b.c
sysdeps/x86_64/tst-auditmod3b.c
sysdeps/x86_64/tst-auditmod4b.c
sysdeps/x86_64/tst-auditmod5b.c
sysdeps/x86_64/tst-auditmod6b.c
sysdeps/x86_64/tst-auditmod6c.c
sysdeps/x86_64/tst-auditmod7b.c
time/clocktest.c
time/tst-posixtz.c
timezone/tst-timezone.c

index 15a542913237de8217f3adc5eb1165f55dd53a8c..514753d9eca653c9eaf0050aa3385ebb46f06f35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,95 @@
+2017-02-16  Zack Weinberg  <zackw@panix.com>
+
+       * crypt/md5.h: Test _LIBC with #if defined, not #if.
+       * dirent/opendir-tst1.c: Include sys/stat.h.
+       * dirent/tst-fdopendir.c: Include sys/stat.h.
+       * dirent/tst-fdopendir2.c: Include stdlib.h.
+       * dirent/tst-scandir.c: Include stdbool.h.
+       * elf/tst-auditmod1.c: Include link.h and stddef.h.
+       * elf/tst-tls15.c: Include stdlib.h.
+       * elf/tst-tls16.c: Include stdlib.h.
+       * elf/tst-tls17.c: Include stdlib.h.
+       * elf/tst-tls18.c: Include stdlib.h.
+       * iconv/tst-iconv6.c: Include endian.h.
+       * iconvdata/bug-iconv11.c: Include limits.h.
+       * io/test-utime.c: Include stdint.h.
+       * io/tst-faccessat.c: Include sys/stat.h.
+       * io/tst-fchmodat.c: Include sys/stat.h.
+       * io/tst-fchownat.c: Include sys/stat.h.
+       * io/tst-fstatat.c: Include sys/stat.h.
+       * io/tst-futimesat.c: Include sys/stat.h.
+       * io/tst-linkat.c: Include sys/stat.h.
+       * io/tst-mkdirat.c: Include sys/stat.h and stdbool.h.
+       * io/tst-mkfifoat.c: Include sys/stat.h and stdbool.h.
+       * io/tst-mknodat.c: Include sys/stat.h and stdbool.h.
+       * io/tst-openat.c: Include stdbool.h.
+       * io/tst-readlinkat.c: Include sys/stat.h.
+       * io/tst-renameat.c: Include sys/stat.h.
+       * io/tst-symlinkat.c: Include sys/stat.h.
+       * io/tst-unlinkat.c: Include stdbool.h.
+       * libio/bug-memstream1.c: Include stdlib.h.
+       * libio/bug-wmemstream1.c: Include stdlib.h.
+       * libio/tst-fwrite-error.c: Include stdlib.h.
+       * libio/tst-memstream1.c: Include stdlib.h.
+       * libio/tst-memstream2.c: Include stdlib.h.
+       * libio/tst-memstream3.c: Include stdlib.h.
+       * malloc/tst-interpose-aux.c: Include stdint.h.
+       * misc/tst-preadvwritev-common.c: Include sys/stat.h.
+       * nptl/tst-basic7.c: Include limits.h.
+       * nptl/tst-cancel25.c: Include pthread.h, not pthreadP.h.
+       * nptl/tst-cancel4.c: Include stddef.h, limits.h, and sys/stat.h.
+       * nptl/tst-cancel4_1.c: Include stddef.h.
+       * nptl/tst-cancel4_2.c: Include stddef.h.
+       * nptl/tst-cond16.c: Include limits.h.
+       Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
+       * nptl/tst-cond18.c: Include limits.h.
+       Use sysconf(_SC_PAGESIZE) instead of __getpagesize.
+       * nptl/tst-cond4.c: Include stdint.h.
+       * nptl/tst-cond6.c: Include stdint.h.
+       * nptl/tst-stack2.c: Include limits.h.
+       * nptl/tst-stackguard1.c: Include stddef.h.
+       * nptl/tst-tls4.c: Include stdint.h. Don't include tls.h.
+       * nptl/tst-tls4moda.c: Include stddef.h.
+       Don't include stdio.h, unistd.h, or tls.h.
+       * nptl/tst-tls4modb.c: Include stddef.h.
+       Don't include stdio.h, unistd.h, or tls.h.
+       * nptl/tst-tls5.h: Include stddef.h. Don't include stdlib.h or tls.h.
+       * posix/tst-getaddrinfo2.c: Include stdio.h.
+       * posix/tst-getaddrinfo5.c: Include stdio.h.
+       * posix/tst-pathconf.c: Include sys/stat.h.
+       * posix/tst-posix_fadvise-common.c: Include stdint.h.
+       * posix/tst-preadwrite-common.c: Include sys/stat.h.
+       * posix/tst-regex.c: Include stdint.h.
+       Don't include spawn.h or spawn_int.h.
+       * posix/tst-regexloc.c: Don't include spawn.h or spawn_int.h.
+       * posix/tst-vfork3.c: Include sys/stat.h.
+       * resolv/tst-bug18665-tcp.c: Include stdlib.h.
+       * resolv/tst-res_hconf_reorder.c: Include stdlib.h.
+       * resolv/tst-resolv-search.c: Include stdlib.h.
+       * stdio-common/tst-fmemopen2.c: Include stdint.h.
+       * stdio-common/tst-vfprintf-width-prec.c: Include stdlib.h.
+       * stdlib/test-canon.c: Include sys/stat.h.
+       * stdlib/tst-tls-atexit.c: Include stdbool.h.
+       * string/test-memchr.c: Include stdint.h.
+       * string/tst-cmp.c: Include stdint.h.
+       * sysdeps/pthread/tst-timer.c: Include stdint.h.
+       * sysdeps/unix/sysv/linux/tst-sync_file_range.c: Include stdint.h.
+       * sysdeps/wordsize-64/tst-writev.c: Include limits.h and stdint.h.
+       * sysdeps/x86_64/fpu/math-tests-arch.h: Include cpu-features.h.
+       Don't include init-arch.h.
+       * sysdeps/x86_64/multiarch/test-multiarch.h: Include cpu-features.h.
+       Don't include init-arch.h.
+       * sysdeps/x86_64/tst-auditmod10b.c: Include link.h and stddef.h.
+       * sysdeps/x86_64/tst-auditmod3b.c: Include link.h and stddef.h.
+       * sysdeps/x86_64/tst-auditmod4b.c: Include link.h and stddef.h.
+       * sysdeps/x86_64/tst-auditmod5b.c: Include link.h and stddef.h.
+       * sysdeps/x86_64/tst-auditmod6b.c: Include link.h and stddef.h.
+       * sysdeps/x86_64/tst-auditmod6c.c: Include link.h and stddef.h.
+       * sysdeps/x86_64/tst-auditmod7b.c: Include link.h and stddef.h.
+       * time/clocktest.c: Include stdint.h.
+       * time/tst-posixtz.c: Include stdint.h.
+       * timezone/tst-timezone.c: Include stdint.h.
+
 2017-02-16  Zack Weinberg  <zackw@panix.com>
 
        * string/string.h [__USE_MISC]: Include strings.h.
index 67398475bdb6e1abf2a47d6da2e8476f678c4327..9164a4fec3acf47b1d48d85a7e43bcae28980cc7 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <stdio.h>
 
-#if defined HAVE_LIMITS_H || _LIBC
+#if defined HAVE_LIMITS_H || defined _LIBC
 # include <limits.h>
 #endif
 
index c05ec48ffc38d7a59bdcf944f68bae2bb0690fd3..6171d617aa9dddb945e92e42d142da36bb01396d 100644 (file)
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 /* Name of the FIFO.  */
 char tmpname[] = "fifoXXXXXX";
index 0780c19916e96d370080be24e8a72d1d3a73a791..89bdca9086816aecd17741fe4537a3727adef6c8 100644 (file)
@@ -5,6 +5,7 @@
 #include <dirent.h>
 #include <stdbool.h>
 #include <string.h>
+#include <sys/stat.h>
 
 #ifndef O_NOATIME
 # define O_NOATIME     0
index 3720809dc2673f2b0ab762df47ca94df882c6e6b..7709e4b3bcee295472335c690ad2369756f2acfc 100644 (file)
@@ -1,6 +1,7 @@
 #include <errno.h>
 #include <dirent.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <unistd.h>
 
 
index 6c1ff51f015a0819083ce8f58fc8806b9b6e9efc..09d19ab4e4aee61c9cfab27c74cbfb74100af548 100644 (file)
@@ -16,6 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <stdbool.h>
 #include <dirent.h>
 #include <errno.h>
 #include <stdio.h>
index 227a3b623a118958a6ac0c756a7e382af7dbfd18..573e37abd69e44d45dd49802cf09545da00a3825 100644 (file)
@@ -1,4 +1,6 @@
 #include <dlfcn.h>
+#include <link.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
index 7ac963aa2d9c17e16c141d51ca6dd66ad359f005..d2e1f3d86c4441b5241d7a76b0ad3ec714c3025a 100644 (file)
@@ -1,4 +1,5 @@
 #include <dlfcn.h>
+#include <stdlib.h>
 #include <stdio.h>
 
 static int
index b3519858a0d601a4010bc3e0825888bc1c44ddd5..347b2f5184e531e9d5037a9884378bbfb93ef670 100644 (file)
@@ -1,4 +1,5 @@
 #include <dlfcn.h>
+#include <stdlib.h>
 #include <stdio.h>
 
 static int
index c768fb6a5be707f6583fb34192334695bc108726..6dde9741585289547b419e0703c77fd3afe89c9b 100644 (file)
@@ -1,4 +1,5 @@
 #include <dlfcn.h>
+#include <stdlib.h>
 #include <stdio.h>
 
 static int
index 96b8e6bf7b95f78bb9595926263ea63fb6e5261a..ba4b8008d6417383145e81ef7cbd3dfc4bc2303e 100644 (file)
@@ -1,4 +1,5 @@
 #include <dlfcn.h>
+#include <stdlib.h>
 #include <stdio.h>
 
 static int
index 4e099d09f1d311354f41d203c90c92929e495f15..ace7dc68b2946a94f2b9f0c4967a42ceb8f4f110 100644 (file)
@@ -22,6 +22,7 @@
 #include <inttypes.h>
 #include <iconv.h>
 #include <byteswap.h>
+#include <endian.h>
 
 static int
 do_test (void)
index 277cf3143ece85b6660c1092334fd0650c313049..d20816462115ef745868d00460bb13c8a4f4afe1 100644 (file)
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <errno.h>
+#include <limits.h>
 
 // The longest test input sequence.
 #define MAXINBYTES    8
index e0207e679bc3b7255c22e08c32b4254b4e07320f..3e7583c9c0101af5bebf8a0ef9801291d8c729ca 100644 (file)
@@ -16,6 +16,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <fcntl.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/stat.h>
index 48532070a7112fcf3b5302ec79201f634daeb14e..7bdeed008c1d85f985b777c9eea24836be61cbb4 100644 (file)
@@ -6,6 +6,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index bfb75d62e5aa2f2e35dc21c88f494b02fff1afc9..7d4a8717ff5edfef3f2eafed84dbe3da56301a97 100644 (file)
@@ -6,6 +6,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index da8fd3b02314a923b68a2380af1031d3ccc38ea5..e8adf6229fc6033b018c951cd21c3dd59c6faed5 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index 5493102167d5788757dfdc9f44de3ca61ed5a13b..4766bb2e71f5b2b4e7e276f9ff9dd842df23bd5a 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index c1e8d93f4136dd711fc0c93e9aeff3a815abc22b..af58ad06ddb1b27c74e0782f0dc528091659cc02 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 #include <sys/time.h>
 
 
index d63c982751c252c26be61a7b3d5243ad693d87c5..97445b7954934bb31a0601c2dc7c90c9bb364419 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index 3efa4622ef3983d221445113b63c25a84dfb8386..a960c6651d1a458584998d0254b29dca1b71c3fd 100644 (file)
@@ -1,9 +1,11 @@
 #include <dirent.h>
 #include <fcntl.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index 2bf29f63af3893b5eadbd4377d0fed8dfd2dbffc..d87b587384a466ac0db2258c75aa48d6ec860147 100644 (file)
@@ -1,9 +1,11 @@
 #include <dirent.h>
 #include <fcntl.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index cba4dffadfcc13c356f38bed4c7515b9434f0bcd..9d58fdbe3a19327c73919f7620a93c8838d18126 100644 (file)
@@ -1,9 +1,11 @@
 #include <dirent.h>
 #include <fcntl.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index 0ceb7458805293c950fd718e4d7734a8bfe6dc6d..741b8d0ad2222baaaaff0794d64070ff26229bf4 100644 (file)
@@ -1,5 +1,6 @@
 #include <dirent.h>
 #include <fcntl.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 891b6e681792dffabe7601580fef3b42e9115cab..51fafc92d3bc8aae2e8e79575d1ceda549655cd7 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index a7c0ec16c495142fd4a697b1631dc020e55df68a..435302b52b39d41450aa82941e9810ca9882304d 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index 1e98588fc86cd96888e0944a9d8f4c70d6cc0d38..214a8e348e018ef438ddace694ca9200fe6f918f 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index c25443c27f114d8b0d3e5031303846336f8d1d29..e21d56f9f7bbfc060084b803cef30d585940c514 100644 (file)
@@ -1,5 +1,6 @@
 #include <dirent.h>
 #include <fcntl.h>
+#include <stdbool.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 8af36fee2daa6560f0bbbd9675fe87b5af095d9c..d1ecc79564df76797b305fb5f7936d7e7d6de87f 100644 (file)
@@ -1,5 +1,6 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 
 
 static int
index 22d67f71e93f481a743377e8425480bb8eca6721..709a3c6d66099ab9558ee830403e2103740ef084 100644 (file)
@@ -1,4 +1,5 @@
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <wchar.h>
 
index d29df87fc10859c5e82dbe827220c18db423fe49..fa64d5f0dc258f9521ff587927799dae55b7b759 100644 (file)
@@ -18,6 +18,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 static int
 do_test (void)
index d18f5cc22af8c19ff8cd35ed2fa78af79fd618a0..adc2aec257da51d1e42992378e903df2942eb0b1 100644 (file)
@@ -1,5 +1,6 @@
 #include <mcheck.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 
 #ifndef CHAR_T
index cbea4b2f97df186cb9ba899b3fc3d7f047d5f5de..d3874faaad7c3b1a3993fb2d65ca7847aa586653 100644 (file)
@@ -1,5 +1,6 @@
 #include <mcheck.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 
 #ifndef CHAR_T
index d8c82d74cd6dfb0a756be46d85f1ce17097ede02..ce201d15eb10e93be4c3980be8f7491349fe5fcf 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <mcheck.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <stdarg.h>
 #include <errno.h>
index 535b055a4039e2da54d4ea596566e9ce1c1030f5..e80e979299854be54a6ce090059bbcde21a135bc 100644 (file)
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <stdarg.h>
 #include <stddef.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 07f1f95d03de18b6064654a569bcb989eb6e6f80..29433123a2ec148ee8fc4b8bd20e1536e557216e 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
+#include <sys/stat.h>
 
 static void do_prepare (void);
 #define PREPARE(argc, argv)     do_prepare ()
index ff6b36be42b7eb4dd6e436b5736ed81e09730dbe..29a2461efe8d19c31d00a4a925c27f84aa4134b5 100644 (file)
@@ -1,4 +1,5 @@
 #include <errno.h>
+#include <limits.h>
 #include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>
index ed4205ec45a3fa3ee03b39060f1588339076e677..c724d8ae2d013feb8ba33e620377b27198af2cab 100644 (file)
@@ -1,4 +1,4 @@
-#include <pthreadP.h>
+#include <pthread.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
index 62e26222cc09c33b5fa9c42991409fd944a9bb0f..a68a3efb682cf83f8085d4b2cb670dbb06c11f1e 100644 (file)
@@ -19,6 +19,7 @@
 /* NOTE: this tests functionality beyond POSIX.  POSIX does not allow
    exit to be called more than once.  */
 
+#include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/msg.h>
 #include <unistd.h>
 #include <errno.h>
+#include <limits.h>
 #include <pthread.h>
 #include <fcntl.h>
 #include <termios.h>
 #include <sys/mman.h>
 #include <sys/poll.h>
 #include <sys/wait.h>
+#include <sys/stat.h>
 
 
 /* Since STREAMS are not supported in the standard Linux kernel and
index 14f5b964d506443deb33bc4363c5ae01336f80fe..05b5f7bfd02d7db70ddf27cd68c7b0b672468251 100644 (file)
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <stdio.h>
+#include <stddef.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
index a568c10e697cd72ef9f76ee766dbfb902f5770df..f7a87978b7df6ceb5861cfc44c73b6846e94a8d6 100644 (file)
@@ -18,6 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <stdio.h>
+#include <stddef.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/types.h>
index d3d7cca40eb9532d20ddc1fea7bef6b4d1579056..032677adcc4e2f6b369f59ca5ac50d2d15ac36a4 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <errno.h>
+#include <limits.h>
 #include <pthread.h>
 #include <stdbool.h>
 #include <stdio.h>
@@ -79,7 +80,7 @@ do_test (void)
   pthread_attr_t attr;
   int i, ret, sz;
   pthread_attr_init (&attr);
-  sz = __getpagesize ();
+  sz = sysconf (_SC_PAGESIZE);
   if (sz < PTHREAD_STACK_MIN)
          sz = PTHREAD_STACK_MIN;
   pthread_attr_setstacksize (&attr, sz);
index 8d77025d792877d66c2057de585f8ccb70007766..187f3af1df9d3d40fbf92e8186deb357ff6b3607 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <errno.h>
+#include <limits.h>
 #include <fcntl.h>
 #include <pthread.h>
 #include <stdbool.h>
@@ -90,7 +91,7 @@ do_test (void)
   pthread_attr_t attr;
   int i, ret, sz;
   pthread_attr_init (&attr);
-  sz = __getpagesize ();
+  sz = sysconf (_SC_PAGESIZE);
   if (sz < PTHREAD_STACK_MIN)
          sz = PTHREAD_STACK_MIN;
   pthread_attr_setstacksize (&attr, sz);
index c07218c282ab0c2f16ad12b44641a8729d7942fa..cc9c5c908af153c268cdfc9dd6375a6e86c25c9f 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <errno.h>
 #include <pthread.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 2dbe811634153af7398e2142c5d0891c8d0cdcbe..ebfd449ffbce7f7915f36ea6351bff0a64915048 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <errno.h>
 #include <pthread.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index d7fdc8a8ee64ca5c5b54f090428b48e325db84ad..fe319572e8dca444602efeb292c77a90af6bc80f 100644 (file)
@@ -22,6 +22,7 @@
 #include <pthread.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <limits.h>
 
 static int seen;
 
index 7829349c6f168329fda47b0cca4a29af29bf0cde..0f21d0ddc321ba3095fe90858869b284f30dd3a7 100644 (file)
@@ -19,6 +19,7 @@
 #include <errno.h>
 #include <pthread.h>
 #include <stdbool.h>
+#include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 5913f165770b59a2a00994bfc91b9305bb49de05..15da980ea24ee052e11da3537481e6e6446c6561 100644 (file)
 #include <dlfcn.h>
 #include <errno.h>
 #include <pthread.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
-#include <tls.h>
-
 
 #define N 3
 
index da902d9d61b38ea30b17e098a208f65817179f2e..cd44f4ec987560c19f0dfcff5fae412579e7c91a 100644 (file)
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <stdio.h>
+#include <stddef.h>
 #include <stdlib.h>
-#include <unistd.h>
-#include <tls.h>
-
 
 static __thread unsigned char foo [32]
   __attribute__ ((tls_model ("initial-exec"), aligned (sizeof (void *))));
index ebb1e53402244b4b2fe7df03ebfaa4f76d4b023f..a0b1f623cb7f988dbdc79708cd26acb9acc626c8 100644 (file)
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <stdio.h>
+#include <stddef.h>
 #include <stdlib.h>
-#include <unistd.h>
-#include <tls.h>
-
 
 static int i;
 int bar;
index 12f68b81963e05df22661e74ccb72d3a87807ad5..6c2e1b0d09763b33280945fd3f2e817917c55146 100644 (file)
@@ -1,7 +1,5 @@
 #include <stdint.h>
-#include <stdlib.h>
-#include <tls.h>
-
+#include <stddef.h>
 
 struct tls_obj
 {
index 13edca0a34f2981337d8b6a0d76ee03cced6f7c7..d8be4a8e8f27b36c9e4d085d6700ac1bc7aa81f7 100644 (file)
@@ -2,6 +2,7 @@
 #include <errno.h>
 #include <netdb.h>
 #include <unistd.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <sys/socket.h>
index eb3934492f735b8a9830a81bfd7936e40d3d8bb5..acb1c29964de1cc503a2dadf820652e613f38736 100644 (file)
@@ -19,6 +19,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
+#include <stdio.h>
 #include <string.h>
 
 static int
index 5014a2b2ac2aad55da13b3a4fbf94d8a02b92cbf..cce59e6d47bc8c4af35ed08e037f7ce49504025c 100644 (file)
@@ -21,6 +21,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 
 static void prepare (void);
index 2e7c07f3b0b0e937196809218351b5394c17f53d..45e36fc56f65e373b14eb1e56f80b26ad8b6f821 100644 (file)
@@ -19,6 +19,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/stat.h>
index 034f84d6965d363c86aa132a8a1f1680653f11a2..9468ed85a9475847a954b67f271f90c8ee422e38 100644 (file)
@@ -20,6 +20,7 @@
 #include <error.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 
 static void do_prepare (void);
 #define PREPARE(argc, argv)    do_prepare ()
index 112acf02f214206ce57bb7a1d815ad49c90f6009..df2c108be54264a54378e024a0b9335bd5c99211 100644 (file)
@@ -15,9 +15,6 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <spawn.h>
-#include "spawn_int.h"
-
 #include <assert.h>
 #include <errno.h>
 #include <error.h>
@@ -26,6 +23,7 @@
 #include <iconv.h>
 #include <locale.h>
 #include <mcheck.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index 8fbb4b1f5d2e912979845ca51c5cffc7e784caae..0dbd061973142a4fff58cfcb91db4bc8f2c0d7fa 100644 (file)
@@ -15,9 +15,6 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <spawn.h>
-#include "spawn_int.h"
-
 #include <sys/types.h>
 #include <regex.h>
 #include <locale.h>
index 4ee19733b44e2166e3652500e73318ce071f9854..c104271c44265d4686a614d73399f918264ebb09 100644 (file)
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
+#include <sys/stat.h>
 #include <sys/wait.h>
 
 static int do_test (void);
index 8ad069c2458e993a57f3342c43c86c2de58bd353..4bc0c262b1cd7aabffbca882cd2af7b0ffbeaab7 100644 (file)
@@ -20,6 +20,7 @@
 #include <netdb.h>
 #include <resolv.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <support/check.h>
 #include <support/check_nss.h>
index 73a0bc793f47bc9adb69f8074f980f2f59917c2c..20e5a5a448437840a1f016420cbcab2d5e1a6c5f 100644 (file)
@@ -19,6 +19,7 @@
 
 #include <errno.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include <time.h>
 #include <dlfcn.h>
index 53c22973baa1ffba3be22b94bdb605f3dddf54b0..a5406b3b0ecb28c4cd8dd4a2745ad9bc2d408355 100644 (file)
@@ -17,6 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <resolv.h>
+#include <stdlib.h>
 #include <string.h>
 #include <support/check.h>
 #include <support/check_nss.h>
index 9721b0c2ce8e63a09161dc85b41ec68dfdcf83eb..891b7ca111c4c9fe5eb6ce821f17fbab017672eb 100644 (file)
@@ -21,6 +21,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <sys/types.h>
+#include <stdint.h>
 #include <errno.h>
 
 /* Check fmemopen with user provided buffer open for write.  */
index 392d9bb9f7045cc3de907dbbcac240e4caefc111..c85190275a34d57075716c2ed4dbfcb60f112438 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <mcheck.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/resource.h>
 #include <wchar.h>
 
index c52d02a8a99727b949c5545f23f8e1add3a97ce5..d664f73c45474f019f2bf344dc510d8dcf0d5f53 100644 (file)
@@ -26,6 +26,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <sys/param.h>
+#include <sys/stat.h>
 
 /* Prototype for our test function.  */
 extern int do_test (int argc, char *argv[]);
index 42a30e080cc64a17bb5e3af1c2232b0fb133b30f..6dbf49d4602250c85f2432d63869332341fad272 100644 (file)
@@ -38,6 +38,7 @@
 #include <string.h>
 #include <errno.h>
 #include <link.h>
+#include <stdbool.h>
 
 #ifndef NO_DELETE
 # define LOADED_IS_GOOD false
index d62889ff8fb672f2909d3973f7417ce06a2cdeba..d64d10cb0e0977f1579c7defa9e36545b34e3576 100644 (file)
@@ -23,7 +23,9 @@
 #else
 # define TEST_NAME "wmemchr"
 #endif /* WIDE */
+
 #include "test-string.h"
+#include <stdint.h>
 
 #ifndef WIDE
 # define MEMCHR memchr
index 99f958ea16723671439bae34887f4255e26dfbc1..ae63228318d48f2130efa7be04e494a072102c30 100644 (file)
@@ -23,6 +23,7 @@
 #include <limits.h>
 #include <malloc.h>
 #include <stdbool.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 
index 1a09fb78f3e06497bcc499ba1dd963034097ac64..6866180555f8f3fb60c311aa903a013651ade7c9 100644 (file)
@@ -23,6 +23,7 @@
 #include <time.h>
 #include <unistd.h>
 #include <stdlib.h>
+#include <stdint.h>
 
 
 static void
index b0a6104fd0fdd83f2d35699cb200a25d2c68cd64..73cbcb324769aefa8727cce14575d16555a74bdb 100644 (file)
@@ -21,6 +21,7 @@
 #include <errno.h>
 #include <fcntl.h>
 #include <limits.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <sys/stat.h>
 
index 685f20f43004d100f3d8f3dbd931e82199dcc52d..bda2b3fe74c66c2cee584fb991aef406a523a3ea 100644 (file)
    <http://www.gnu.org/licenses/>.  */
 
 #include <fcntl.h>
+#include <limits.h>
 #include <paths.h>
 #include <stdio.h>
+#include <stdint.h>
 #include <stdlib.h>
 #include <unistd.h>
 #include <sys/uio.h>
index 98f7cf65481fc7975fb5cc07ece6bcc691612ab7..9278e3440bf2e02fe7086edeb77da3df7c8ede04 100644 (file)
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include <cpu-features.h>
+
 #if defined REQUIRE_AVX
-# include <init-arch.h>
 
 # define INIT_ARCH_EXT
-
 # define CHECK_ARCH_EXT                                        \
   do                                                           \
     {                                                          \
   while (0)
 
 #elif defined REQUIRE_AVX2
-# include <init-arch.h>
 
 # define INIT_ARCH_EXT
-
 # define CHECK_ARCH_EXT                                        \
   do                                                           \
     {                                                          \
   while (0)
 
 #elif defined REQUIRE_AVX512F
-# include <init-arch.h>
 
 # define INIT_ARCH_EXT
-
 # define CHECK_ARCH_EXT                                        \
   do                                                           \
     {                                                          \
index 3974842c19ae21bde83ee15dd960a155c10e360e..597d64e1e8eb15a1c4cec00fbae79541b0de7374 100644 (file)
@@ -16,7 +16,7 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#include <init-arch.h>
+#include <cpu-features.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index c5741b28c1d5b455a48a38c023fc603d373d88bf..5b9a985ca25d5099953aa714d105e14c2ef30e14 100644 (file)
@@ -19,6 +19,8 @@
    function parameter passing/return.  */
 
 #include <dlfcn.h>
+#include <link.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
index 1a41ca80c0a19cff3350de1fddae91039f3fe928..7aad92382e30dd6d8f59de6f7e5fa2d5ed5d36b0 100644 (file)
@@ -2,6 +2,8 @@
    function parameter passing/return.  */
 
 #include <dlfcn.h>
+#include <link.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
index 2b0d827e88bfb0f7157645b209dbf7041de79f91..1153ea442c9af824a6bae0c630582d336ebb8690 100644 (file)
@@ -2,6 +2,8 @@
    function parameter passing/return.  */
 
 #include <dlfcn.h>
+#include <link.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
index a74d261f03bd49cc4450f9887723b564c2ccb86a..6a280fd61b04cd15cb618724bfc3f8497282ae8b 100644 (file)
@@ -2,6 +2,8 @@
    function parameter passing/return.  */
 
 #include <dlfcn.h>
+#include <link.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
index 886fc33e9bd1c8184fc2c384a9ab7a6a089817ba..3533602c07de9882064da76493a22f9b32a7817d 100644 (file)
@@ -2,6 +2,8 @@
    function parameter passing/return.  */
 
 #include <dlfcn.h>
+#include <link.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
index b2ee24d8bf38e3b04af82371cb12177767ad8a09..8000e89224e98f25a45bcb9ee10e7902ccd2a3d6 100644 (file)
@@ -2,6 +2,8 @@
    function parameter passing/return.  */
 
 #include <dlfcn.h>
+#include <link.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
index f27076d3bb3c41ea21148f39dbecd22b9a280ef2..5abe6d1bc9fed33256b398682cd91c718087af06 100644 (file)
@@ -2,6 +2,8 @@
    function parameter passing/return.  */
 
 #include <dlfcn.h>
+#include <link.h>
+#include <stddef.h>
 #include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
index 13b7420e2e27d23aeeba193ab5b1236e8771f6f8..779c05d8d95a14fcb074ba8810fbf90b26cf1229 100644 (file)
@@ -3,6 +3,7 @@
 #include <stdlib.h>
 #include <time.h>
 #include <unistd.h>
+#include <stdint.h>
 
 volatile int gotit = 0;
 
index 16aa19d65488c8c5354865112a321cc85725c639..9bec7ae4bb6e97950c217c5f11d1197940e00a50 100644 (file)
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
+#include <stdint.h>
 
 struct
 {
index 95bd7f1b6b34f7b33782dc0606ae67573aa85454..1b505134f32a058a57cf1fd1f5580daf2bbb0e1b 100644 (file)
@@ -20,6 +20,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include <stdint.h>
 #include <unistd.h>
 
 int failed = 0;