mirror of https://github.com/mkerrisk/man-pages
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:
parent
3d54c17a6d
commit
c1603508a1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue