(openlog_internal): Use SOCK_CLOEXEC if possible.
[glibc/history.git] / nptl / tst-mutexpi1.c
blob623ede9fa5a2f1ca92211fc28a67646115f1f106
1 #include <pthread.h>
2 #include <stdio.h>
3 #include <stdlib.h>
6 static pthread_mutexattr_t a;
8 static void
9 prepare (void)
11 if (pthread_mutexattr_init (&a) != 0)
13 puts ("mutexattr_init failed");
14 exit (1);
17 if (pthread_mutexattr_setprotocol (&a, PTHREAD_PRIO_INHERIT) != 0)
19 puts ("mutexattr_setprotocol failed");
20 exit (1);
23 #define PREPARE(argc, argv) prepare ()
26 #define ATTR &a
27 #include "tst-mutex1.c"