From: Alejandro Colomar Date: Wed, 10 Mar 2021 18:31:27 +0000 (+0100) Subject: sem_getvalue.3: SYNOPSIS: Use 'restrict' in prototypes X-Git-Tag: man-pages-5.11~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=439cb1d4ae7931bf331f57ed46e10a0627378bcc;p=thirdparty%2Fman-pages.git sem_getvalue.3: SYNOPSIS: Use 'restrict' in prototypes 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 Signed-off-by: Michael Kerrisk --- diff --git a/man3/sem_getvalue.3 b/man3/sem_getvalue.3 index ddfb1899a9..084dc510d0 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 .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.