diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | include/semaphore.h | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -1,3 +1,7 @@ +2005-08-28 Neal H. Walfield <neal@gnu.org> + + * include/semaphore.h: Use __restrict, not restrict. + 2005-05-31 Neal H. Walfield <neal@gnu.org> * include/pthread/pthread.h: If clockid_t is still not defined diff --git a/include/semaphore.h b/include/semaphore.h index 5775925..8acb768 100644 --- a/include/semaphore.h +++ b/include/semaphore.h @@ -36,7 +36,7 @@ extern int sem_init (sem_t *sem, int pshared, unsigned value); extern int sem_destroy (sem_t *sem); /* Store the value of semaphore *SEM in *VALUE. */ -extern int sem_getvalue (sem_t *restrict sem, int *restrict value); +extern int sem_getvalue (sem_t *__restrict sem, int *__restrict value); /* Perform a down operation on semaphore *SEM. */ extern int sem_wait (sem_t *sem); @@ -47,8 +47,8 @@ extern int sem_trywait (sem_t *sem); /* Perform a down operation on semaphore *SEM but don't wait longer than TIMEOUT. */ -extern int sem_timedwait (sem_t *restrict sem, - const struct timespec *restrict timeout); +extern int sem_timedwait (sem_t *__restrict sem, + const struct timespec *__restrict timeout); /* Perform an up operation on semaphore *SEM. */ extern int sem_post (sem_t *sem); |