[rtems commit] POSIX timers: Add restrict keyword

Joel Sherrill joel at rtems.org
Sat Nov 30 00:06:29 UTC 2013


Module:    rtems
Branch:    master
Commit:    ad36dc2c36831325e93112b55e895561dff29974
Changeset: http://git.rtems.org/rtems/commit/?id=ad36dc2c36831325e93112b55e895561dff29974

Author:    Sahil Patnayakuni <sahil.patnayakuni at gmail.com>
Date:      Sun Nov 24 11:48:08 2013 -0600

POSIX timers: Add restrict keyword

+ timer_create()
+ timer_settime()

---

 cpukit/posix/src/timercreate.c  |    4 ++--
 cpukit/posix/src/timersettime.c |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/cpukit/posix/src/timercreate.c b/cpukit/posix/src/timercreate.c
index 3af7fc4..46258a4 100644
--- a/cpukit/posix/src/timercreate.c
+++ b/cpukit/posix/src/timercreate.c
@@ -34,8 +34,8 @@
 
 int timer_create(
   clockid_t        clock_id,
-  struct sigevent *evp,
-  timer_t         *timerid
+  struct sigevent *__restrict evp,
+  timer_t         *__restrict timerid
 )
 {
   POSIX_Timer_Control *ptimer;
diff --git a/cpukit/posix/src/timersettime.c b/cpukit/posix/src/timersettime.c
index c9040a9..3c37e7b 100644
--- a/cpukit/posix/src/timersettime.c
+++ b/cpukit/posix/src/timersettime.c
@@ -33,8 +33,8 @@
 int timer_settime(
   timer_t                  timerid,
   int                      flags,
-  const struct itimerspec *value,
-  struct itimerspec       *ovalue
+  const struct itimerspec *__restrict value,
+  struct itimerspec       *__restrict ovalue
 )
 {
   POSIX_Timer_Control *ptimer;




More information about the vc mailing list