sigaltstck: add missing include
[libc-test.git] / src / api / semaphore.c
blob292465a32b5734bd20c1f927836d1afd271af869
1 #include <semaphore.h>
2 static void f()
4 {sem_t *x = SEM_FAILED;}
5 {int(*p)(sem_t*) = sem_close;}
6 {int(*p)(sem_t*) = sem_destroy;}
7 {int(*p)(sem_t*restrict,int*restrict) = sem_getvalue;}
8 {int(*p)(sem_t*,int,unsigned) = sem_init;}
9 {sem_t*(*p)(const char*,int,...) = sem_open;}
10 {int(*p)(sem_t*) = sem_post;}
11 {int(*p)(sem_t*) = sem_trywait;}
12 {int(*p)(const char*) = sem_unlink;}
13 {int(*p)(sem_t*) = sem_wait;}
15 #include <time.h>
16 static void g()
18 {int(*p)(sem_t*restrict,const struct timespec*restrict) = sem_timedwait;}