diff options
| author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-03-10 19:31:28 +0100 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2021-03-14 21:40:12 +0100 |
| commit | 3feebe29e7e2a4f5d35300071a5aa94c909aa39f (patch) | |
| tree | f7ffff4179303cc4067e5f1050619dc2ef64fee1 /man3 | |
| parent | 439cb1d4ae7931bf331f57ed46e10a0627378bcc (diff) | |
| download | man-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.3 | 3 |
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. |
