sigaltstack.2: SYNOPSIS: Use 'restrict' in prototypes

POSIX specifies that the parameters of sigaltstack()
shall be 'restrict'.  Glibc uses 'restrict' too.
Let's use it here too.

......

.../glibc$ grep_glibc_prototype sigaltstack
signal/signal.h:320:
extern int sigaltstack (const stack_t *__restrict __ss,
			stack_t *__restrict __oss) __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:18 +01:00 committed by Michael Kerrisk
parent 3d54c17a6d
commit c1603508a1
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ sigaltstack \- set and/or get signal stack context
.nf
.B #include <signal.h>
.PP
.BI "int sigaltstack(const stack_t *" ss ", stack_t *" old_ss );
.BI "int sigaltstack(const stack_t *restrict " ss \
", stack_t *restrict " old_ss );
.fi
.PP
.RS -4