From 4ab3b5c0e7f470c2a4a31f60fcd78f83f89c5102 Mon Sep 17 00:00:00 2001 From: robert Date: Wed, 2 Oct 2002 10:53:44 +0000 Subject: 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. --- lib/libc_r/man/sigwait.3 | 2 +- lib/libc_r/uthread/uthread_sigwait.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc_r') diff --git a/lib/libc_r/man/sigwait.3 b/lib/libc_r/man/sigwait.3 index 76376a6..e20595e 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 a3da75f..c245e5d 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; -- cgit v1.1