aio: Remove support for BROKEN_THREAD_SIGNALS
[glibc.git] / nptl / tst-mutexpp1.c
blob8ec4673f1a8c81fee301185290ed3590348df6db
1 #include <pthread.h>
2 #include <stdio.h>
3 #include <stdlib.h>
5 #include "tst-tpp.h"
7 static pthread_mutexattr_t a;
9 static void
10 prepare (void)
12 init_tpp_test ();
14 if (pthread_mutexattr_init (&a) != 0)
16 puts ("mutexattr_init failed");
17 exit (1);
20 if (pthread_mutexattr_setprotocol (&a, PTHREAD_PRIO_PROTECT) != 0)
22 puts ("mutexattr_setprotocol failed");
23 exit (1);
26 if (pthread_mutexattr_setprioceiling (&a, 6) != 0)
28 puts ("mutexattr_setprioceiling failed");
29 exit (1);
32 #define PREPARE(argc, argv) prepare ()
34 static int do_test (void);
36 static int
37 do_test_wrapper (void)
39 init_tpp_test ();
40 return do_test ();
42 #define TEST_FUNCTION do_test_wrapper ()
44 #define ATTR &a
45 #define ATTR_NULL false
46 #include "tst-mutex1.c"