X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fapi%2Fsemaphore.c;h=292465a32b5734bd20c1f927836d1afd271af869;hb=629dbf8282882b7c512fd317d18b19044ca628ea;hp=e37235d4b99a5d41c9ce77165946c7f345b9b7b7;hpb=b80923949db9c815c5a4575147d84b8290fbe4d9;p=libc-test diff --git a/src/api/semaphore.c b/src/api/semaphore.c index e37235d..292465a 100644 --- a/src/api/semaphore.c +++ b/src/api/semaphore.c @@ -2,18 +2,18 @@ static void f() { {sem_t *x = SEM_FAILED;} -int(*p_sem_close)(sem_t*) = sem_close; -int(*p_sem_destroy)(sem_t*) = sem_destroy; -int(*p_sem_getvalue)(sem_t*restrict,int*restrict) = sem_getvalue; -int(*p_sem_init)(sem_t*,int,unsigned) = sem_init; -sem_t*(*p_sem_open)(const char*,int,...) = sem_open; -int(*p_sem_post)(sem_t*) = sem_post; -int(*p_sem_trywait)(sem_t*) = sem_trywait; -int(*p_sem_unlink)(const char*) = sem_unlink; -int(*p_sem_wait)(sem_t*) = sem_wait; +{int(*p)(sem_t*) = sem_close;} +{int(*p)(sem_t*) = sem_destroy;} +{int(*p)(sem_t*restrict,int*restrict) = sem_getvalue;} +{int(*p)(sem_t*,int,unsigned) = sem_init;} +{sem_t*(*p)(const char*,int,...) = sem_open;} +{int(*p)(sem_t*) = sem_post;} +{int(*p)(sem_t*) = sem_trywait;} +{int(*p)(const char*) = sem_unlink;} +{int(*p)(sem_t*) = sem_wait;} } #include static void g() { -int(*p_sem_timedwait)(sem_t*restrict,const struct timespec*restrict) = sem_timedwait; +{int(*p)(sem_t*restrict,const struct timespec*restrict) = sem_timedwait;} }