forked from Imagelibrary/rtems
signal methods: Add restrict keyword
This commit is contained in:
committed by
Joel Sherrill
parent
734f91825b
commit
e5d60243f9
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
*/
|
||||
int sigprocmask(
|
||||
int how,
|
||||
const sigset_t *set,
|
||||
sigset_t *oset
|
||||
const sigset_t *__restrict set,
|
||||
sigset_t *__restrict oset
|
||||
)
|
||||
{
|
||||
/*
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user