[PATCH 14/14] timer_settime.2: SYNOPSIS: Use 'restrict' in prototypes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 man2/timer_settime.2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man2/timer_settime.2 b/man2/timer_settime.2
index e6b299f46..cf7c1ee4c 100644
--- a/man2/timer_settime.2
+++ b/man2/timer_settime.2
@@ -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
-- 
2.30.0




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux