From 1c227750c035c659196a40e01879faeab6c92459 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 14 Feb 2021 00:10:19 +0100 Subject: [PATCH] sigprocmask.2: SYNOPSIS: Use 'restrict' in prototypes POSIX specifies that the parameters of sigprocmask() shall be 'restrict'. Glibc uses 'restrict' too. Let's use it here too. ...... .../glibc$ grep_glibc_prototype sigprocmask signal/signal.h:232: extern int sigprocmask (int __how, const sigset_t *__restrict __set, sigset_t *__restrict __oset) __THROW; .../glibc$ Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- man2/sigprocmask.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man2/sigprocmask.2 b/man2/sigprocmask.2 index b4899ff8a..ba78ccffd 100644 --- a/man2/sigprocmask.2 +++ b/man2/sigprocmask.2 @@ -34,7 +34,8 @@ sigprocmask, rt_sigprocmask \- examine and change blocked signals .PP .nf /* Prototype for the glibc wrapper function */ -.BI "int sigprocmask(int " how ", const sigset_t *" set ", sigset_t *" oldset ); +.BI "int sigprocmask(int " how ", const sigset_t *restrict " set , +.BI " sigset_t *restrict " oldset ); .PP /* Prototype for the underlying system call */ .BI "int rt_sigprocmask(int " how ", const kernel_sigset_t *" set ,