summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/include/semaphore.h
diff options
context:
space:
mode:
authorSahil Patnayakunii <sahilp@rtems.org>2013-07-24 13:10:02 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-07-24 13:14:29 -0500
commitcc86fe1fd20fc116e7709e9504a4e08418606e8d (patch)
treef4f78ca3dcfd6cdc9802faadadd2333bff6f6706 /cpukit/posix/include/semaphore.h
parentPOSIX AIO: Add restrict keyword per Single UNIX Specification (diff)
downloadrtems-cc86fe1fd20fc116e7709e9504a4e08418606e8d.tar.bz2
POSIX Semaphore: Add restrict keyword per Single UNIX Specification
Diffstat (limited to 'cpukit/posix/include/semaphore.h')
-rw-r--r--cpukit/posix/include/semaphore.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/posix/include/semaphore.h b/cpukit/posix/include/semaphore.h
index 489258ecb0..109766f67d 100644
--- a/cpukit/posix/include/semaphore.h
+++ b/cpukit/posix/include/semaphore.h
@@ -124,8 +124,8 @@ int sem_trywait(
* @brief Lock a semaphore.
*/
int sem_timedwait(
- sem_t *sem,
- const struct timespec *timeout
+ sem_t *__restrict sem,
+ const struct timespec *__restrict timeout
);
#endif
@@ -144,8 +144,8 @@ int sem_post(
* 11.2.8 Get the Value of a Semaphore, P1003.1b-1993, p.229
*/
int sem_getvalue(
- sem_t *sem,
- int *sval
+ sem_t *__restrict sem,
+ int *__restrict sval
);
#endif /* _POSIX_SEMAPHORES */