]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
sem_getvalue.3: SYNOPSIS: Use 'restrict' in prototypes
authorAlejandro Colomar <alx.manpages@gmail.com>
Wed, 10 Mar 2021 18:31:27 +0000 (19:31 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 14 Mar 2021 20:40:12 +0000 (21:40 +0100)
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@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man3/sem_getvalue.3

index ddfb1899a9c9a8f2f32e1d2faaabde8ae4a3cc87..084dc510d03065b46d011e88eba487ab7cd78797 100644 (file)
@@ -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.