36 |
extern int sem_destroy (sem_t *sem); |
extern int sem_destroy (sem_t *sem); |
37 |
|
|
38 |
/* Store the value of semaphore *SEM in *VALUE. */ |
/* Store the value of semaphore *SEM in *VALUE. */ |
39 |
extern int sem_getvalue (sem_t *restrict sem, int *restrict value); |
extern int sem_getvalue (sem_t *__restrict sem, int *__restrict value); |
40 |
|
|
41 |
/* Perform a down operation on semaphore *SEM. */ |
/* Perform a down operation on semaphore *SEM. */ |
42 |
extern int sem_wait (sem_t *sem); |
extern int sem_wait (sem_t *sem); |
47 |
|
|
48 |
/* Perform a down operation on semaphore *SEM but don't wait longer |
/* Perform a down operation on semaphore *SEM but don't wait longer |
49 |
than TIMEOUT. */ |
than TIMEOUT. */ |
50 |
extern int sem_timedwait (sem_t *restrict sem, |
extern int sem_timedwait (sem_t *__restrict sem, |
51 |
const struct timespec *restrict timeout); |
const struct timespec *__restrict timeout); |
52 |
|
|
53 |
/* Perform an up operation on semaphore *SEM. */ |
/* Perform an up operation on semaphore *SEM. */ |
54 |
extern int sem_post (sem_t *sem); |
extern int sem_post (sem_t *sem); |