aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2021-03-10 19:31:28 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2021-03-14 21:40:12 +0100
commit3feebe29e7e2a4f5d35300071a5aa94c909aa39f (patch)
treef7ffff4179303cc4067e5f1050619dc2ef64fee1 /man3
parent439cb1d4ae7931bf331f57ed46e10a0627378bcc (diff)
downloadman-pages-3feebe29e7e2a4f5d35300071a5aa94c909aa39f.tar.gz
sem_wait.3: SYNOPSIS: Use 'restrict' in prototypes
Both POSIX and glibc use 'restrict' in sem_timedwait(). Let's use it here too. .../glibc$ grep_glibc_prototype sem_timedwait sysdeps/pthread/semaphore.h:62: extern int sem_timedwait (sem_t *__restrict __sem, const struct timespec *__restrict __abstime) __nonnull ((1, 2)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man3')
-rw-r--r--man3/sem_wait.33
1 files changed, 2 insertions, 1 deletions
diff --git a/man3/sem_wait.3 b/man3/sem_wait.3
index d57b6f6ce4..da7ae72c22 100644
--- a/man3/sem_wait.3
+++ b/man3/sem_wait.3
@@ -31,7 +31,8 @@ sem_wait, sem_timedwait, sem_trywait \- lock a semaphore
.PP
.BI "int sem_wait(sem_t *" sem );
.BI "int sem_trywait(sem_t *" sem );
-.BI "int sem_timedwait(sem_t *" sem ", const struct timespec *" abs_timeout );
+.BI "int sem_timedwait(sem_t *restrict " sem ,
+.BI " const struct timespec *restrict " abs_timeout );
.fi
.PP
Link with \fI\-pthread\fP.