[PATCH 08/14] sigaltstack.2: SYNOPSIS: Use 'restrict' in prototypes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 man2/sigaltstack.2 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man2/sigaltstack.2 b/man2/sigaltstack.2
index d78873d89..62284dbec 100644
--- a/man2/sigaltstack.2
+++ b/man2/sigaltstack.2
@@ -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
-- 
2.30.0




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux