From 0b3f94cb8980dfbbf3fd7f3577e423d4f0474444 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Wed, 10 Mar 2021 19:31:33 +0100 Subject: [PATCH] sigwait.3: SYNOPSIS: Use 'restrict' in prototypes 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 Signed-off-by: Michael Kerrisk --- man3/sigwait.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/sigwait.3 b/man3/sigwait.3 index 47c79a24d..30b7af568 100644 --- a/man3/sigwait.3 +++ b/man3/sigwait.3 @@ -30,7 +30,7 @@ sigwait \- wait for a signal .nf .B #include .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