]> git.ipfire.org Git - thirdparty/glibc.git/blame - nptl/tst-mutexpi6.c
Rename sys/ucontext.h to bits/ucontext.h.
[thirdparty/glibc.git] / nptl / tst-mutexpi6.c
CommitLineData
df47504c
UD
1#include <pthread.h>
2#include <stdio.h>
3#include <stdlib.h>
4
5
485683c3
UD
6pthread_mutexattr_t a;
7pthread_mutexattr_t *attr;
df47504c
UD
8
9static void
10prepare (void)
11{
485683c3 12 attr = &a;
df47504c
UD
13 if (pthread_mutexattr_init (&a) != 0)
14 {
15 puts ("mutexattr_init failed");
16 exit (1);
17 }
18
19 if (pthread_mutexattr_setprotocol (&a, PTHREAD_PRIO_INHERIT) != 0)
20 {
21 puts ("mutexattr_setprotocol failed");
22 exit (1);
23 }
24}
25#define PREPARE(argc, argv) prepare ()
26
27
485683c3 28#define ATTR attr
df47504c 29#include "tst-mutex6.c"