mirror of git://sourceware.org/git/glibc.git
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>.
This commit is contained in:
parent
25d025ce77
commit
2c5567a08e
|
|
@ -23,6 +23,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
static pthread_mutex_t m;
|
static pthread_mutex_t m;
|
||||||
|
|
|
||||||
|
|
@ -139,7 +139,7 @@ do_test (void)
|
||||||
if (tv2.tv_sec > 0 || tv2.tv_usec > 100000)
|
if (tv2.tv_sec > 0 || tv2.tv_usec > 100000)
|
||||||
{
|
{
|
||||||
puts ("3rd timedlock didn't return right away");
|
puts ("3rd timedlock didn't return right away");
|
||||||
exit (1);
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pthread_mutex_destroy (&m) != 0)
|
if (pthread_mutex_destroy (&m) != 0)
|
||||||
|
|
|
||||||
|
|
@ -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.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||||
|
|
||||||
|
|
@ -25,6 +25,7 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/wait.h>
|
#include <sys/wait.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
|
||||||
static sigset_t ss;
|
static sigset_t ss;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue