mirror of https://github.com/mkerrisk/man-pages
sigaction.2: SYNOPSIS: Use 'restrict' in prototypes
POSIX specifies that the parameters of sigaction() shall be 'restrict'. Glibc uses 'restrict' too. Let's use it here too. ...... .../glibc$ grep_glibc_prototype sigaction signal/signal.h:243: extern int sigaction (int __sig, const struct sigaction *__restrict __act, struct sigaction *__restrict __oact) __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
6b032bf01e
commit
3d54c17a6d
|
@ -52,8 +52,8 @@ sigaction, rt_sigaction \- examine and change a signal action
|
|||
.nf
|
||||
.B #include <signal.h>
|
||||
.PP
|
||||
.BI "int sigaction(int " signum ", const struct sigaction *" act ,
|
||||
.BI " struct sigaction *" oldact );
|
||||
.BI "int sigaction(int " signum ", const struct sigaction *restrict " act ,
|
||||
.BI " struct sigaction *restrict " oldact );
|
||||
.fi
|
||||
.PP
|
||||
.RS -4
|
||||
|
|
Loading…
Reference in New Issue