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 056b01
int(*p_sem_close)(sem_t*) = sem_close;
nsz 056b01
int(*p_sem_destroy)(sem_t*) = sem_destroy;
nsz 056b01
int(*p_sem_getvalue)(sem_t*restrict,int*restrict) = sem_getvalue;
nsz 056b01
int(*p_sem_init)(sem_t*,int,unsigned) = sem_init;
nsz 056b01
sem_t*(*p_sem_open)(const char*,int,...) = sem_open;
nsz 056b01
int(*p_sem_post)(sem_t*) = sem_post;
nsz 056b01
int(*p_sem_trywait)(sem_t*) = sem_trywait;
nsz 056b01
int(*p_sem_unlink)(const char*) = sem_unlink;
nsz 056b01
int(*p_sem_wait)(sem_t*) = sem_wait;
nsz b80923
}
nsz 056b01
#include <time.h>
nsz b80923
static void g()
nsz b80923
{
nsz 056b01
int(*p_sem_timedwait)(sem_t*restrict,const struct timespec*restrict) = sem_timedwait;
nsz 056b01
}