From c59ca53abd5fd1ae90f96d4b791cc53a8e92ad03 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 14 Feb 2021 00:10:20 +0100 Subject: [PATCH] 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 Signed-off-by: Michael Kerrisk --- man2/sigwaitinfo.2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/man2/sigwaitinfo.2 b/man2/sigwaitinfo.2 index 703b9b177..450e5f439 100644 --- a/man2/sigwaitinfo.2 +++ b/man2/sigwaitinfo.2 @@ -30,9 +30,11 @@ for queued signals .nf .B #include .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