(Pathconf): Remove _PC_SOCK_MAXBUF.
[glibc/history.git] / nptl / tst-mutexpp6.c
blob2ddf6b45c6856cc47bfe14a5bdad74a971accc56
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-mutex6.c"