1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
2003-02-17  Ulrich Drepper  <drepper@redhat.com>

	* Makefile (tests): Add tst-basic6.
	* tst-basic6.c: New file.

	* tst-basic1.c: Add test for process ID.

	* Makefile (tests): Add tst-cancel10.
	* tst-cancel10.c: New file.

	* Makefile (tests): Add tst-signal4.
	* tst-signal4.c: New file.

	* sysdeps/pthread/pthread_sigmask.c (pthread_sigmask): Use
	__sigismember instead of sigismember.  Add __builtin_expect.
This commit is contained in:
Ulrich Drepper
2003-02-17 10:22:52 +00:00
parent 179ff175df
commit 5430d926c5
6 changed files with 200 additions and 7 deletions

View File

@ -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.
@ -20,10 +20,20 @@
#include <pthread.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
static void *tf (void *a)
static pid_t pid;
static void *
tf (void *a)
{
if (getpid () != pid)
{
write (2, "pid mismatch\n", 13);
_exit (1);
}
return a;
}
@ -31,6 +41,8 @@ static void *tf (void *a)
int
do_test (void)
{
pid = getpid ();
#define N 2
pthread_t t[N];
int i;