summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSahil Patnayakunii <sahilp@rtems.org>2013-07-24 13:08:37 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2013-07-24 13:14:28 -0500
commitf74a492cf6100806f0cc93f8c4c452af870a0f72 (patch)
tree2ae49fb50efc61619d60a87996cb8ea0c0209eb6 /cpukit
parentdoc/user/conf.t: Fix SMP_MAXIMUM_PROCESSORS and add Go configuration (diff)
downloadrtems-f74a492cf6100806f0cc93f8c4c452af870a0f72.tar.bz2
POSIX mqueue.h: Add restrict keyword per Single UNIX Specification
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/posix/include/mqueue.h10
-rw-r--r--cpukit/posix/src/mqueuesetattr.c4
-rw-r--r--cpukit/posix/src/mqueuetimedreceive.c6
3 files changed, 10 insertions, 10 deletions
diff --git a/cpukit/posix/include/mqueue.h b/cpukit/posix/include/mqueue.h
index 34a60657a7..5c121e98af 100644
--- a/cpukit/posix/include/mqueue.h
+++ b/cpukit/posix/include/mqueue.h
@@ -163,10 +163,10 @@ ssize_t mq_receive(
ssize_t mq_timedreceive(
mqd_t mqdes,
- char *msg_ptr,
+ char *__restrict msg_ptr,
size_t msg_len,
- unsigned int *msg_prio,
- const struct timespec *abstime
+ unsigned int *__restrict msg_prio,
+ const struct timespec *__restrict abstime
);
#endif /* _POSIX_TIMEOUTS */
@@ -193,8 +193,8 @@ int mq_notify(
*/
int mq_setattr(
mqd_t mqdes,
- const struct mq_attr *mqstat,
- struct mq_attr *omqstat
+ const struct mq_attr *__restrict mqstat,
+ struct mq_attr *__restrict omqstat
);
/*
diff --git a/cpukit/posix/src/mqueuesetattr.c b/cpukit/posix/src/mqueuesetattr.c
index 09a31d69fd..fc9cfaac3f 100644
--- a/cpukit/posix/src/mqueuesetattr.c
+++ b/cpukit/posix/src/mqueuesetattr.c
@@ -34,8 +34,8 @@
int mq_setattr(
mqd_t mqdes,
- const struct mq_attr *mqstat,
- struct mq_attr *omqstat
+ const struct mq_attr *__restrict mqstat,
+ struct mq_attr *__restrict omqstat
)
{
POSIX_Message_queue_Control_fd *the_mq_fd;
diff --git a/cpukit/posix/src/mqueuetimedreceive.c b/cpukit/posix/src/mqueuetimedreceive.c
index c4868d642d..81dd11a703 100644
--- a/cpukit/posix/src/mqueuetimedreceive.c
+++ b/cpukit/posix/src/mqueuetimedreceive.c
@@ -54,10 +54,10 @@
ssize_t mq_timedreceive(
mqd_t mqdes,
- char *msg_ptr,
+ char *__restrict msg_ptr,
size_t msg_len,
- unsigned int *msg_prio,
- const struct timespec *abstime
+ unsigned int *__restrict msg_prio,
+ const struct timespec *__restrict abstime
)
{
Watchdog_Interval ticks;