[PATCH 01/24] sem_getvalue.3: SYNOPSIS: Use 'restrict' in prototypes

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

 



Both POSIX and glibc use 'restrict' in sem_getvalue().
Let's use it here too.

.../glibc$ grep_glibc_prototype sem_getvalue
sysdeps/pthread/semaphore.h:81:
extern int sem_getvalue (sem_t *__restrict __sem, int *__restrict __sval)
  __THROW __nonnull ((1, 2));
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx>
---
 man3/sem_getvalue.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/man3/sem_getvalue.3 b/man3/sem_getvalue.3
index ddfb1899a..084dc510d 100644
--- a/man3/sem_getvalue.3
+++ b/man3/sem_getvalue.3
@@ -29,7 +29,7 @@ sem_getvalue \- get the value of a semaphore
 .nf
 .B #include <semaphore.h>
 .PP
-.BI "int sem_getvalue(sem_t *" sem ", int *" sval );
+.BI "int sem_getvalue(sem_t *restrict " sem ", int *restrict " sval );
 .fi
 .PP
 Link with \fI\-pthread\fP.
-- 
2.30.1.721.g45526154a5




[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