Blame src/api/semaphore.c
|
nsz |
056b01 |
#include <semaphore.h>
|
|
nsz |
056b01 |
static void f()
|
|
nsz |
056b01 |
{
|
|
nsz |
056b01 |
{sem_t *x = SEM_FAILED;}
|
|
nsz |
0ef264 |
{int(*p)(sem_t*) = sem_close;}
|
|
nsz |
0ef264 |
{int(*p)(sem_t*) = sem_destroy;}
|
|
nsz |
0ef264 |
{int(*p)(sem_t*restrict,int*restrict) = sem_getvalue;}
|
|
nsz |
0ef264 |
{int(*p)(sem_t*,int,unsigned) = sem_init;}
|
|
nsz |
0ef264 |
{sem_t*(*p)(const char*,int,...) = sem_open;}
|
|
nsz |
0ef264 |
{int(*p)(sem_t*) = sem_post;}
|
|
nsz |
0ef264 |
{int(*p)(sem_t*) = sem_trywait;}
|
|
nsz |
0ef264 |
{int(*p)(const char*) = sem_unlink;}
|
|
nsz |
0ef264 |
{int(*p)(sem_t*) = sem_wait;}
|
|
nsz |
b80923 |
}
|
|
nsz |
056b01 |
#include <time.h>
|
|
nsz |
b80923 |
static void g()
|
|
nsz |
b80923 |
{
|
|
nsz |
0ef264 |
{int(*p)(sem_t*restrict,const struct timespec*restrict) = sem_timedwait;}
|
|
nsz |
056b01 |
}
|