aboutsummaryrefslogtreecommitdiff
path: root/lib
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 /lib
parent54beeb39c221913fd041f1916a08556782378ed1 (diff)
Notes
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/sigaction.25
-rw-r--r--lib/libc/sys/sigaltstack.22
-rw-r--r--lib/libc/sys/sigprocmask.24
-rw-r--r--lib/libc/sys/sigwait.22
-rw-r--r--lib/libc_r/man/sigwait.32
-rw-r--r--lib/libc_r/uthread/uthread_sigwait.c2
-rw-r--r--lib/libkse/thread/thr_sigwait.c2
-rw-r--r--lib/libpthread/man/sigwait.32
-rw-r--r--lib/libpthread/thread/thr_sigwait.c2
9 files changed, 14 insertions, 9 deletions
diff --git a/lib/libc/sys/sigaction.2 b/lib/libc/sys/sigaction.2
index 197e9f37b8753..e23535a937b6b 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 b5605d73a26da..b44db94cf1150 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 62b3e453251bb..6cb7e4955f36d 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 76376a6d31317..e20595eaa94fa 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
diff --git a/lib/libc_r/man/sigwait.3 b/lib/libc_r/man/sigwait.3
index 76376a6d31317..e20595eaa94fa 100644
--- a/lib/libc_r/man/sigwait.3
+++ b/lib/libc_r/man/sigwait.3
@@ -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
diff --git a/lib/libc_r/uthread/uthread_sigwait.c b/lib/libc_r/uthread/uthread_sigwait.c
index a3da75fbfde72..c245e5da6ebbd 100644
--- a/lib/libc_r/uthread/uthread_sigwait.c
+++ b/lib/libc_r/uthread/uthread_sigwait.c
@@ -41,7 +41,7 @@
__weak_reference(_sigwait, sigwait);
int
-_sigwait(const sigset_t *set, int *sig)
+_sigwait(const sigset_t * __restrict set, int * __restrict sig)
{
struct pthread *curthread = _get_curthread();
int ret = 0;
diff --git a/lib/libkse/thread/thr_sigwait.c b/lib/libkse/thread/thr_sigwait.c
index 3cc9ff0385a5e..5364d665ba856 100644
--- a/lib/libkse/thread/thr_sigwait.c
+++ b/lib/libkse/thread/thr_sigwait.c
@@ -42,7 +42,7 @@
__weak_reference(_sigwait, sigwait);
int
-_sigwait(const sigset_t *set, int *sig)
+_sigwait(const sigset_t * __restrict set, int * __restrict sig)
{
/*
diff --git a/lib/libpthread/man/sigwait.3 b/lib/libpthread/man/sigwait.3
index 24c229718b587..6a2e05ee02cdf 100644
--- a/lib/libpthread/man/sigwait.3
+++ b/lib/libpthread/man/sigwait.3
@@ -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
diff --git a/lib/libpthread/thread/thr_sigwait.c b/lib/libpthread/thread/thr_sigwait.c
index 3cc9ff0385a5e..5364d665ba856 100644
--- a/lib/libpthread/thread/thr_sigwait.c
+++ b/lib/libpthread/thread/thr_sigwait.c
@@ -42,7 +42,7 @@
__weak_reference(_sigwait, sigwait);
int
-_sigwait(const sigset_t *set, int *sig)
+_sigwait(const sigset_t * __restrict set, int * __restrict sig)
{
/*