timer_create.2: SYNOPSIS: Use 'restrict' in prototypes

POSIX specifies that the parameters of timer_create()
shall be 'restrict'.  Glibc uses 'restrict' too.
Let's use it here too.

......

.../glibc$ grep_glibc_prototype timer_create
time/time.h:234:
extern int timer_create (clockid_t __clock_id,
			 struct sigevent *__restrict __evp,
			 timer_t *__restrict __timerid) __THROW;
.../glibc$

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Alejandro Colomar 2021-02-14 00:10:23 +01:00 committed by Michael Kerrisk
parent caed1954a1
commit 3b184f9c85
1 changed files with 2 additions and 2 deletions

View File

@ -31,8 +31,8 @@ timer_create \- create a POSIX per-process timer
.B #include <signal.h>
.B #include <time.h>
.PP
.BI "int timer_create(clockid_t " clockid ", struct sigevent *" sevp ,
.BI " timer_t *" timerid );
.BI "int timer_create(clockid_t " clockid ", struct sigevent *restrict " sevp ,
.BI " timer_t *restrict " timerid );
.fi
.PP
Link with \fI\-lrt\fP.