mirror of https://github.com/mkerrisk/man-pages
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 <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
c1603508a1
commit
1c227750c0
|
@ -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 ,
|
||||
|
|
Loading…
Reference in New Issue