[rtems commit] signal methods: Add restrict keyword

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


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

Author:    Bryan Dunsmore <dunsmoreb at gmail.com>
Date:      Wed Nov 20 18:05:17 2013 -0600

signal methods: Add restrict keyword

---

 cpukit/posix/src/pthreadsigmask.c |    4 ++--
 cpukit/posix/src/sigaction.c      |    4 ++--
 cpukit/posix/src/sigprocmask.c    |    4 ++--
 cpukit/posix/src/sigtimedwait.c   |    6 +++---
 cpukit/posix/src/sigwait.c        |    4 ++--
 cpukit/posix/src/sigwaitinfo.c    |    4 ++--
 6 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/cpukit/posix/src/pthreadsigmask.c b/cpukit/posix/src/pthreadsigmask.c
index dc97b8d..d90902e 100644
--- a/cpukit/posix/src/pthreadsigmask.c
+++ b/cpukit/posix/src/pthreadsigmask.c
@@ -33,8 +33,8 @@
 
 int pthread_sigmask(
   int               how,
-  const sigset_t   *set,
-  sigset_t         *oset
+  const sigset_t   *__restrict set,
+  sigset_t         *__restrict oset
 )
 {
   POSIX_API_Control  *api;
diff --git a/cpukit/posix/src/sigaction.c b/cpukit/posix/src/sigaction.c
index d5300eb..ab06828 100644
--- a/cpukit/posix/src/sigaction.c
+++ b/cpukit/posix/src/sigaction.c
@@ -38,8 +38,8 @@ extern void PARAMETERS_PASSING_S (int num_signal, const struct sigaction inf);
 
 int sigaction(
   int                     sig,
-  const struct sigaction *act,
-  struct sigaction       *oact
+  const struct sigaction *__restrict act,
+  struct sigaction       *__restrict oact
 )
 {
   ISR_Level     level;
diff --git a/cpukit/posix/src/sigprocmask.c b/cpukit/posix/src/sigprocmask.c
index b6daf81..134662f 100644
--- a/cpukit/posix/src/sigprocmask.c
+++ b/cpukit/posix/src/sigprocmask.c
@@ -28,8 +28,8 @@
  */
 int sigprocmask(
   int               how,
-  const sigset_t   *set,
-  sigset_t         *oset
+  const sigset_t   *__restrict set,
+  sigset_t         *__restrict oset
 )
 {
   /*
diff --git a/cpukit/posix/src/sigtimedwait.c b/cpukit/posix/src/sigtimedwait.c
index a7fbc1f..2f1f2cc 100644
--- a/cpukit/posix/src/sigtimedwait.c
+++ b/cpukit/posix/src/sigtimedwait.c
@@ -67,9 +67,9 @@ found_it:
  *  3.3.8 Synchronously Accept a Signal, P1003.1b-1993, p. 76
  */
 int sigtimedwait(
-  const sigset_t         *set,
-  siginfo_t              *info,
-  const struct timespec  *timeout
+  const sigset_t         *__restrict set,
+  siginfo_t              *__restrict info,
+  const struct timespec  *__restrict timeout
 )
 {
   Thread_Control    *executing;
diff --git a/cpukit/posix/src/sigwait.c b/cpukit/posix/src/sigwait.c
index a51fe7b..5a7c95c 100644
--- a/cpukit/posix/src/sigwait.c
+++ b/cpukit/posix/src/sigwait.c
@@ -23,8 +23,8 @@
 #include <errno.h>
 
 int sigwait(
-  const sigset_t  *set,
-  int             *sig
+  const sigset_t  *__restrict set,
+  int             *__restrict sig
 )
 {
   int status;
diff --git a/cpukit/posix/src/sigwaitinfo.c b/cpukit/posix/src/sigwaitinfo.c
index 4538f5d..d28b22e 100644
--- a/cpukit/posix/src/sigwaitinfo.c
+++ b/cpukit/posix/src/sigwaitinfo.c
@@ -25,8 +25,8 @@
 #include <signal.h>
 
 int sigwaitinfo(
-  const sigset_t  *set,
-  siginfo_t       *info
+  const sigset_t  *__restrict set,
+  siginfo_t       *__restrict info
 )
 {
   return sigtimedwait( set, info, NULL );




More information about the vc mailing list