X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=include%2Fsemaphore.h;h=20d46f0de2a70c6f4c1c9f10891af2e7b5dec787;hp=2e9b81005abe2618d3947044edca4fe36cd577a2;hb=8c741783fc96d559cfe79301c924c217b2905c0c;hpb=03dcc3417ce4388a652bdd053cb2b6af860daf00 diff --git a/include/semaphore.h b/include/semaphore.h index 2e9b8100..20d46f0d 100644 --- a/include/semaphore.h +++ b/include/semaphore.h @@ -4,6 +4,8 @@ extern "C" { #endif +#include + #define __NEED_time_t #define __NEED_struct_timespec #include @@ -18,11 +20,11 @@ typedef struct { int sem_close(sem_t *); int sem_destroy(sem_t *); -int sem_getvalue(sem_t *, int *); +int sem_getvalue(sem_t *__restrict, int *__restrict); int sem_init(sem_t *, int, unsigned); sem_t *sem_open(const char *, int, ...); int sem_post(sem_t *); -int sem_timedwait(sem_t *, const struct timespec *); +int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict); int sem_trywait(sem_t *); int sem_unlink(const char *); int sem_wait(sem_t *);