e37235d4b99a5d41c9ce77165946c7f345b9b7b7
[libc-test] / src / api / semaphore.c
1 #include <semaphore.h>
2 static void f()
3 {
4 {sem_t *x = SEM_FAILED;}
5 int(*p_sem_close)(sem_t*) = sem_close;
6 int(*p_sem_destroy)(sem_t*) = sem_destroy;
7 int(*p_sem_getvalue)(sem_t*restrict,int*restrict) = sem_getvalue;
8 int(*p_sem_init)(sem_t*,int,unsigned) = sem_init;
9 sem_t*(*p_sem_open)(const char*,int,...) = sem_open;
10 int(*p_sem_post)(sem_t*) = sem_post;
11 int(*p_sem_trywait)(sem_t*) = sem_trywait;
12 int(*p_sem_unlink)(const char*) = sem_unlink;
13 int(*p_sem_wait)(sem_t*) = sem_wait;
14 }
15 #include <time.h>
16 static void g()
17 {
18 int(*p_sem_timedwait)(sem_t*restrict,const struct timespec*restrict) = sem_timedwait;
19 }