POSIX deprecates them and recommends the almost identical
timer_[gs]ettime(2). Those use 'struct timespec' instead of
'struct timeval'.
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
---
man2/getitimer.2 | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
@@ -17,9 +17,10 @@ getitimer, setitimer \- get or set value of an interval timer
.nf
.B #include <sys/time.h>
.PP
-.BI "int getitimer(int " which ", struct itimerval *" curr_value );
-.BI "int setitimer(int " which ", const struct itimerval *restrict " new_value ,
-.BI " struct itimerval *restrict " old_value );
+.BI "[[deprecated]] int getitimer(int " which ", struct itimerval *" curr_value );
+.BI "[[deprecated]] int setitimer(int " which ,
+.BI " const struct itimerval *restrict " new_value ,
+.BI " struct itimerval *restrict " old_value );
.fi
.SH DESCRIPTION
These system calls provide access to interval timers, that is,