sigwaitinfo.2: SYNOPSIS: Use 'restrict' in prototypes

POSIX specifies that the parameters of sigwaitinfo()
and sigtimedwait() shall be 'restrict'.
Glibc uses 'restrict' too.  Let's use it here too.

......

.../glibc$ grep_glibc_prototype sigwaitinfo
signal/signal.h:264:
extern int sigwaitinfo (const sigset_t *__restrict __set,
			siginfo_t *__restrict __info) __nonnull ((1));
.../glibc$ grep_glibc_prototype sigtimedwait
signal/signal.h:272:
extern int sigtimedwait (const sigset_t *__restrict __set,
			 siginfo_t *__restrict __info,
			 const struct timespec *__restrict __timeout)
     __nonnull ((1));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-02-14 00:10:20 +01:00 committed by Michael Kerrisk
parent 1c227750c0
commit c59ca53abd
1 changed files with 5 additions and 3 deletions

View File

@ -30,9 +30,11 @@ for queued signals
.nf
.B #include <signal.h>
.PP
.BI "int sigwaitinfo(const sigset_t *" set ", siginfo_t *" info ");"
.BI "int sigtimedwait(const sigset_t *" set ", siginfo_t *" info ,
.BI " const struct timespec *" timeout ");"
.BI "int sigwaitinfo(const sigset_t *restrict " set ,
.BI " siginfo_t *restrict " info );
.BI "int sigtimedwait(const sigset_t *restrict " set ,
.BI " siginfo_t *restrict " info ,
.BI " const struct timespec *restrict " timeout );
.fi
.PP
.RS -4