]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
sigwait.3: SYNOPSIS: Use 'restrict' in prototypes
authorAlejandro Colomar <alx.manpages@gmail.com>
Wed, 10 Mar 2021 18:31:33 +0000 (19:31 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 14 Mar 2021 20:47:18 +0000 (21:47 +0100)
Both POSIX and glibc use 'restrict' in sigwait().
Let's use it here too.

.../glibc$ grep_glibc_prototype sigwait
signal/signal.h:255:
extern int sigwait (const sigset_t *__restrict __set, int *__restrict __sig)
     __nonnull ((1, 2));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/sigwait.3

index 47c79a24d80abeecee6a5d1cd9f727eac4b0073d..30b7af568437f8f227e6d289df60c04faaa4e539 100644 (file)
@@ -30,7 +30,7 @@ sigwait \- wait for a signal
 .nf
 .B #include <signal.h>
 .PP
-.BI "int sigwait(const sigset_t *" set ", int *" sig );
+.BI "int sigwait(const sigset_t *restrict " set ", int *restrict " sig );
 .fi
 .PP
 .RS -4