diff options
author | robert <robert@FreeBSD.org> | 2002-10-02 10:53:44 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2002-10-02 10:53:44 +0000 |
commit | 4ab3b5c0e7f470c2a4a31f60fcd78f83f89c5102 (patch) | |
tree | e46b96148e29adb4f50d75525588c214bf815190 /lib/libc/sys | |
parent | aef5d44ac2ade131aba09b58aed0efe06c7b9a19 (diff) | |
download | FreeBSD-src-4ab3b5c0e7f470c2a4a31f60fcd78f83f89c5102.zip FreeBSD-src-4ab3b5c0e7f470c2a4a31f60fcd78f83f89c5102.tar.gz |
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.
Diffstat (limited to 'lib/libc/sys')
-rw-r--r-- | lib/libc/sys/sigaction.2 | 5 | ||||
-rw-r--r-- | lib/libc/sys/sigaltstack.2 | 2 | ||||
-rw-r--r-- | lib/libc/sys/sigprocmask.2 | 4 | ||||
-rw-r--r-- | lib/libc/sys/sigwait.2 | 2 |
4 files changed, 9 insertions, 4 deletions
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2 index 197e9f3..e23535a 100644 --- a/lib/libc/sys/sigaction.2 +++ b/lib/libc/sys/sigaction.2 @@ -57,7 +57,10 @@ struct sigaction { #define sa_sigaction __sigaction_u.__sa_sigaction .Ed .Ft int -.Fn sigaction "int sig" "const struct sigaction *act" "struct sigaction *oact" +.Fo sigaction +.Fa "int sig" "const struct sigaction * restrict act" +.Fa "struct sigaction * restrict oact" +.Fc .Sh DESCRIPTION The system defines a set of signals that may be delivered to a process. Signal delivery resembles the occurrence of a hardware interrupt: diff --git a/lib/libc/sys/sigaltstack.2 b/lib/libc/sys/sigaltstack.2 index b5605d7..b44db94 100644 --- a/lib/libc/sys/sigaltstack.2 +++ b/lib/libc/sys/sigaltstack.2 @@ -50,7 +50,7 @@ typedef struct sigaltstack { } stack_t; .Ed .Ft int -.Fn sigaltstack "const stack_t *ss" "stack_t *oss" +.Fn sigaltstack "const stack_t * restrict ss" "stack_t * restrict oss" .Sh DESCRIPTION .Fn Sigaltstack allows users to define an alternate stack on which signals diff --git a/lib/libc/sys/sigprocmask.2 b/lib/libc/sys/sigprocmask.2 index 62b3e45..6cb7e49 100644 --- a/lib/libc/sys/sigprocmask.2 +++ b/lib/libc/sys/sigprocmask.2 @@ -43,7 +43,9 @@ .Sh SYNOPSIS .In signal.h .Ft int -.Fn sigprocmask "int how" "const sigset_t *set" "sigset_t *oset" +.Fo sigprocmask +.Fa "int how" "const sigset_t * restrict set" "sigset_t * restrict oset" +.Fc .Sh DESCRIPTION The .Fn sigprocmask diff --git a/lib/libc/sys/sigwait.2 b/lib/libc/sys/sigwait.2 index 76376a6..e20595e 100644 --- a/lib/libc/sys/sigwait.2 +++ b/lib/libc/sys/sigwait.2 @@ -37,7 +37,7 @@ .Sh SYNOPSIS .In signal.h .Ft int -.Fn sigwait "const sigset_t *set" "int *sig" +.Fn sigwait "const sigset_t * restrict set" "int * restrict sig" .Sh DESCRIPTION The .Fn sigwait |