[PATCH 07/14] sigaction.2: SYNOPSIS: Use 'restrict' in prototypes

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

 



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@xxxxxxxxx>
---
 man2/sigaction.2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man2/sigaction.2 b/man2/sigaction.2
index ce72cebf8..cc183198d 100644
--- a/man2/sigaction.2
+++ b/man2/sigaction.2
@@ -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
-- 
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