signal methods: Add restrict keyword

This commit is contained in:
Bryan Dunsmore
2013-11-20 18:05:17 -06:00
committed by Joel Sherrill
parent 734f91825b
commit e5d60243f9
6 changed files with 13 additions and 13 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -28,8 +28,8 @@
*/
int sigprocmask(
int how,
const sigset_t *set,
sigset_t *oset
const sigset_t *__restrict set,
sigset_t *__restrict oset
)
{
/*

View File

@@ -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;

View File

@@ -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;

View File

@@ -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 );