summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2003-03-17 02:48:28 +0000
committerRoland McGrath <roland@gnu.org>2003-03-17 02:48:28 +0000
commit2c5567a08e9b05c86f4e7272478beb69286ef93d (patch)
treebe0d8bdd57cac291daab8b2359cf2b777d3251a1
parent25d025ce77452fa37ffda90de8ccd774d0924dab (diff)
downloadglibc-2c5567a08e9b05c86f4e7272478beb69286ef93d.tar.gz
glibc-2c5567a08e9b05c86f4e7272478beb69286ef93d.tar.xz
glibc-2c5567a08e9b05c86f4e7272478beb69286ef93d.zip
2003-03-16 Roland McGrath <roland@redhat.com>
	* tst-fork4.c: Include <string.h>.
	* tst-signal2.c: Likewise.
	* tst-mutex5.c (do_test): exit -> return.
	* tst-mutex2.c: Include <stdlib.h>.
-rw-r--r--nptl/tst-fork4.c1
-rw-r--r--nptl/tst-mutex2.c1
-rw-r--r--nptl/tst-mutex5.c2
-rw-r--r--nptl/tst-signal2.c3
4 files changed, 5 insertions, 2 deletions
diff --git a/nptl/tst-fork4.c b/nptl/tst-fork4.c
index 7cb0f9c1f2..cca19f406f 100644
--- a/nptl/tst-fork4.c
+++ b/nptl/tst-fork4.c
@@ -23,6 +23,7 @@
 #include <unistd.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+#include <string.h>
 
 
 static int
diff --git a/nptl/tst-mutex2.c b/nptl/tst-mutex2.c
index ee90fa7346..f589a1ea17 100644
--- a/nptl/tst-mutex2.c
+++ b/nptl/tst-mutex2.c
@@ -20,6 +20,7 @@
 #include <errno.h>
 #include <pthread.h>
 #include <stdio.h>
+#include <stdlib.h>
 
 
 static pthread_mutex_t m;
diff --git a/nptl/tst-mutex5.c b/nptl/tst-mutex5.c
index 2ade6a7f83..7c414bc339 100644
--- a/nptl/tst-mutex5.c
+++ b/nptl/tst-mutex5.c
@@ -139,7 +139,7 @@ do_test (void)
   if (tv2.tv_sec > 0 || tv2.tv_usec > 100000)
     {
       puts ("3rd timedlock didn't return right away");
-      exit (1);
+      return 1;
     }
 
   if (pthread_mutex_destroy (&m) != 0)
diff --git a/nptl/tst-signal2.c b/nptl/tst-signal2.c
index 1c0a4118bd..3f2c75d1fb 100644
--- a/nptl/tst-signal2.c
+++ b/nptl/tst-signal2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -25,6 +25,7 @@
 #include <unistd.h>
 #include <sys/mman.h>
 #include <sys/wait.h>
+#include <string.h>
 
 
 static sigset_t ss;