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:
Alejandro Colomar 2021-02-14 00:10:17 +01:00 committed by Michael Kerrisk
parent 6b032bf01e
commit 3d54c17a6d
1 changed files with 2 additions and 2 deletions

View File

@ -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