about summary refs log tree commit diff
path: root/nptl
diff options
context:
space:
mode:
Diffstat (limited to 'nptl')
-rw-r--r--nptl/tst-basic7.c1
-rw-r--r--nptl/tst-cancel25.c2
-rw-r--r--nptl/tst-cancel4.c3
-rw-r--r--nptl/tst-cancel4_1.c1
-rw-r--r--nptl/tst-cancel4_2.c1
-rw-r--r--nptl/tst-cond16.c3
-rw-r--r--nptl/tst-cond18.c3
-rw-r--r--nptl/tst-cond4.c1
-rw-r--r--nptl/tst-cond6.c1
-rw-r--r--nptl/tst-stack2.c1
-rw-r--r--nptl/tst-stackguard1.c1
-rw-r--r--nptl/tst-tls4.c3
-rw-r--r--nptl/tst-tls4moda.c5
-rw-r--r--nptl/tst-tls4modb.c5
-rw-r--r--nptl/tst-tls5.h4
15 files changed, 19 insertions, 16 deletions
diff --git a/nptl/tst-basic7.c b/nptl/tst-basic7.c
index ff6b36be42..29a2461efe 100644
--- a/nptl/tst-basic7.c
+++ b/nptl/tst-basic7.c
@@ -1,4 +1,5 @@
 #include <errno.h>
+#include <limits.h>
 #include <pthread.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/nptl/tst-cancel25.c b/nptl/tst-cancel25.c
index ed4205ec45..c724d8ae2d 100644
--- a/nptl/tst-cancel25.c
+++ b/nptl/tst-cancel25.c
@@ -1,4 +1,4 @@
-#include <pthreadP.h>
+#include <pthread.h>
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
diff --git a/nptl/tst-cancel4.c b/nptl/tst-cancel4.c
index 62e26222cc..a68a3efb68 100644
--- a/nptl/tst-cancel4.c
+++ b/nptl/tst-cancel4.c
@@ -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>
@@ -29,12 +30,14 @@
 #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
diff --git a/nptl/tst-cancel4_1.c b/nptl/tst-cancel4_1.c
index 14f5b964d5..05b5f7bfd0 100644
--- a/nptl/tst-cancel4_1.c
+++ b/nptl/tst-cancel4_1.c
@@ -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>
diff --git a/nptl/tst-cancel4_2.c b/nptl/tst-cancel4_2.c
index a568c10e69..f7a87978b7 100644
--- a/nptl/tst-cancel4_2.c
+++ b/nptl/tst-cancel4_2.c
@@ -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>
diff --git a/nptl/tst-cond16.c b/nptl/tst-cond16.c
index d3d7cca40e..032677adcc 100644
--- a/nptl/tst-cond16.c
+++ b/nptl/tst-cond16.c
@@ -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);
diff --git a/nptl/tst-cond18.c b/nptl/tst-cond18.c
index 8d77025d79..187f3af1df 100644
--- a/nptl/tst-cond18.c
+++ b/nptl/tst-cond18.c
@@ -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);
diff --git a/nptl/tst-cond4.c b/nptl/tst-cond4.c
index c07218c282..cc9c5c908a 100644
--- a/nptl/tst-cond4.c
+++ b/nptl/tst-cond4.c
@@ -18,6 +18,7 @@
 
 #include <errno.h>
 #include <pthread.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/nptl/tst-cond6.c b/nptl/tst-cond6.c
index 2dbe811634..ebfd449ffb 100644
--- a/nptl/tst-cond6.c
+++ b/nptl/tst-cond6.c
@@ -18,6 +18,7 @@
 
 #include <errno.h>
 #include <pthread.h>
+#include <stdint.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/nptl/tst-stack2.c b/nptl/tst-stack2.c
index d7fdc8a8ee..fe319572e8 100644
--- a/nptl/tst-stack2.c
+++ b/nptl/tst-stack2.c
@@ -22,6 +22,7 @@
 #include <pthread.h>
 #include <stdlib.h>
 #include <stdio.h>
+#include <limits.h>
 
 static int seen;
 
diff --git a/nptl/tst-stackguard1.c b/nptl/tst-stackguard1.c
index 7829349c6f..0f21d0ddc3 100644
--- a/nptl/tst-stackguard1.c
+++ b/nptl/tst-stackguard1.c
@@ -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>
diff --git a/nptl/tst-tls4.c b/nptl/tst-tls4.c
index 5913f16577..15da980ea2 100644
--- a/nptl/tst-tls4.c
+++ b/nptl/tst-tls4.c
@@ -19,11 +19,10 @@
 #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
 
diff --git a/nptl/tst-tls4moda.c b/nptl/tst-tls4moda.c
index da902d9d61..cd44f4ec98 100644
--- a/nptl/tst-tls4moda.c
+++ b/nptl/tst-tls4moda.c
@@ -16,11 +16,8 @@
    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 *))));
diff --git a/nptl/tst-tls4modb.c b/nptl/tst-tls4modb.c
index ebb1e53402..a0b1f623cb 100644
--- a/nptl/tst-tls4modb.c
+++ b/nptl/tst-tls4modb.c
@@ -16,11 +16,8 @@
    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;
diff --git a/nptl/tst-tls5.h b/nptl/tst-tls5.h
index 12f68b8196..6c2e1b0d09 100644
--- a/nptl/tst-tls5.h
+++ b/nptl/tst-tls5.h
@@ -1,7 +1,5 @@
 #include <stdint.h>
-#include <stdlib.h>
-#include <tls.h>
-
+#include <stddef.h>
 
 struct tls_obj
 {