aboutsummaryrefslogtreecommitdiffstats
path: root/include/signal.h
diff options
context:
space:
mode:
authorRobert Drehmel <robert@FreeBSD.org>2002-10-02 10:53:44 +0000
committerRobert Drehmel <robert@FreeBSD.org>2002-10-02 10:53:44 +0000
commite31d11c36aec6b6f0280769d724c6680235e4367 (patch)
treee46b96148e29adb4f50d75525588c214bf815190 /include/signal.h
parent54beeb39c221913fd041f1916a08556782378ed1 (diff)
downloadsrc-e31d11c36aec6b6f0280769d724c6680235e4367.tar.gz
src-e31d11c36aec6b6f0280769d724c6680235e4367.zip
Add the 'restrict' type qualifier to the prototypes of `sigaction',
`sigprocmask', `sigaltstack', and `sigwait' as well as to the prototypes of the apparantly unimplemented functions `sigtimedwait' and `sigwaitinfo'. This complies with IEEE Std 1003.1-2001.
Notes
Notes: svn path=/head/; revision=104368
Diffstat (limited to 'include/signal.h')
-rw-r--r--include/signal.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/signal.h b/include/signal.h
index ec6e5a045d22..7abb92074f0c 100644
--- a/include/signal.h
+++ b/include/signal.h
@@ -54,30 +54,31 @@ __BEGIN_DECLS
int raise(int);
#ifndef _ANSI_SOURCE
int kill(__pid_t, int);
-int sigaction(int, const struct sigaction *, struct sigaction *);
+int sigaction(int, const struct sigaction * __restrict,
+ struct sigaction * __restrict);
int sigaddset(sigset_t *, int);
int sigdelset(sigset_t *, int);
int sigemptyset(sigset_t *);
int sigfillset(sigset_t *);
int sigismember(const sigset_t *, int);
int sigpending(sigset_t *);
-int sigprocmask(int, const sigset_t *, sigset_t *);
+int sigprocmask(int, const sigset_t * __restrict, sigset_t * __restrict);
int sigsuspend(const sigset_t *);
int sigwait(const sigset_t *, int *);
-
#ifdef _P1003_1B_VISIBLE
__BEGIN_DECLS
int sigqueue(__pid_t, int, const union sigval);
-int sigtimedwait(const sigset_t *, siginfo_t *, const struct timespec *);
-int sigwaitinfo(const sigset_t *, siginfo_t *);
+int sigtimedwait(const sigset_t * __restrict, siginfo_t * __restrict,
+ const struct timespec * __restrict);
+int sigwaitinfo(const sigset_t * __restrict, siginfo_t * __restrict);
__END_DECLS
#endif
#ifndef _POSIX_SOURCE
int killpg(__pid_t, int);
-int sigaltstack(const stack_t *, stack_t *);
+int sigaltstack(const stack_t * __restrict, stack_t * __restrict);
int sigblock(int);
int siginterrupt(int, int);
int sigpause(int);