mirror of https://github.com/mkerrisk/man-pages
timer_settime.2: SYNOPSIS: Use 'restrict' in prototypes
POSIX specifies that the parameters of timer_settime() shall be 'restrict'. Glibc uses 'restrict' too. Let's use it here too. ...... .../glibc$ grep_glibc_prototype timer_settime time/time.h:242: extern int timer_settime (timer_t __timerid, int __flags, const struct itimerspec *__restrict __value, struct itimerspec *__restrict __ovalue) __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:
parent
3b184f9c85
commit
d14c4ba412
|
@ -32,8 +32,8 @@ state of POSIX per-process timer
|
|||
.B #include <time.h>
|
||||
.PP
|
||||
.BI "int timer_settime(timer_t " timerid ", int " flags ,
|
||||
.BI " const struct itimerspec *" new_value ,
|
||||
.BI " struct itimerspec *" old_value );
|
||||
.BI " const struct itimerspec *restrict " new_value ,
|
||||
.BI " struct itimerspec *restrict " old_value );
|
||||
.BI "int timer_gettime(timer_t " timerid ", struct itimerspec *" curr_value );
|
||||
.fi
|
||||
.PP
|
||||
|
|
Loading…
Reference in New Issue