* time/tzfile.c (find_transition): Instead of a linear search try to
[glibc.git] / nptl / tst-mutexpp1.c
blob9b7d7fe2634a8337fadca4f48b97a4a1b5a09c83
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 #include "tst-mutex1.c"