mirror of https://github.com/mkerrisk/man-pages
getitimer.2: Rename arguments for consistency with other timer pages
Also some other minor wording improvements Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
d6a54d42ba
commit
b8fb88249b
|
@ -4,17 +4,17 @@
|
||||||
.\" Modified Tue Oct 22 00:22:35 EDT 1996 by Eric S. Raymond <esr@thyrsus.com>
|
.\" Modified Tue Oct 22 00:22:35 EDT 1996 by Eric S. Raymond <esr@thyrsus.com>
|
||||||
.\" 2005-04-06 mtk, Matthias Lang <matthias@corelatus.se>
|
.\" 2005-04-06 mtk, Matthias Lang <matthias@corelatus.se>
|
||||||
.\" Noted MAX_SEC_IN_JIFFIES ceiling
|
.\" Noted MAX_SEC_IN_JIFFIES ceiling
|
||||||
.TH GETITIMER 2 2008-08-06 "Linux" "Linux Programmer's Manual"
|
.TH GETITIMER 2 2009-02-11 "Linux" "Linux Programmer's Manual"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
getitimer, setitimer \- get or set value of an interval timer
|
getitimer, setitimer \- get or set value of an interval timer
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
.nf
|
.nf
|
||||||
.B #include <sys/time.h>
|
.B #include <sys/time.h>
|
||||||
.sp
|
.sp
|
||||||
.BI "int getitimer(int " which ", struct itimerval *" value );
|
.BI "int getitimer(int " which ", struct itimerval *" curr_value );
|
||||||
.br
|
.br
|
||||||
.BI "int setitimer(int " which ", const struct itimerval *" value ,
|
.BI "int setitimer(int " which ", const struct itimerval *" new_value ,
|
||||||
.BI " struct itimerval *" ovalue );
|
.BI " struct itimerval *" old_value );
|
||||||
.fi
|
.fi
|
||||||
.SH DESCRIPTION
|
.SH DESCRIPTION
|
||||||
The system provides each process with three interval timers,
|
The system provides each process with three interval timers,
|
||||||
|
@ -62,9 +62,9 @@ struct timeval {
|
||||||
.LP
|
.LP
|
||||||
The function
|
The function
|
||||||
.BR getitimer ()
|
.BR getitimer ()
|
||||||
fills the structure indicated by
|
fills the structure pointed to by
|
||||||
.I value
|
.I curr_value
|
||||||
with the current setting for the timer indicated by
|
with the current setting for the timer specified by
|
||||||
.I which
|
.I which
|
||||||
(one of
|
(one of
|
||||||
.BR ITIMER_REAL ,
|
.BR ITIMER_REAL ,
|
||||||
|
@ -78,12 +78,13 @@ is disabled.
|
||||||
Similarly,
|
Similarly,
|
||||||
.I it_interval
|
.I it_interval
|
||||||
is set to the reset value.
|
is set to the reset value.
|
||||||
|
|
||||||
The function
|
The function
|
||||||
.BR setitimer ()
|
.BR setitimer ()
|
||||||
sets the indicated timer to the value in
|
sets the specified timer to the value in
|
||||||
.IR value .
|
.IR new_value .
|
||||||
If
|
If
|
||||||
.I ovalue
|
.I old_value
|
||||||
is non-NULL, the old value of the timer is stored there.
|
is non-NULL, the old value of the timer is stored there.
|
||||||
.LP
|
.LP
|
||||||
Timers decrement from
|
Timers decrement from
|
||||||
|
@ -121,10 +122,11 @@ is set appropriately.
|
||||||
.SH ERRORS
|
.SH ERRORS
|
||||||
.TP
|
.TP
|
||||||
.B EFAULT
|
.B EFAULT
|
||||||
.I value
|
.IR new_value ,
|
||||||
|
.IR old_value ,
|
||||||
or
|
or
|
||||||
.I ovalue
|
.I curr_value
|
||||||
are not valid pointers.
|
is not valid a pointer.
|
||||||
.TP
|
.TP
|
||||||
.B EINVAL
|
.B EINVAL
|
||||||
.I which
|
.I which
|
||||||
|
@ -135,7 +137,9 @@ or
|
||||||
.BR ITIMER_PROF ;
|
.BR ITIMER_PROF ;
|
||||||
or (since Linux 2.6.22) one of the
|
or (since Linux 2.6.22) one of the
|
||||||
.I tv_usec
|
.I tv_usec
|
||||||
fields contains a value outside the range 0 to 999999.
|
fields in the structure pointed to by
|
||||||
|
.I new_value
|
||||||
|
contains a value outside the range 0 to 999999.
|
||||||
.SH "CONFORMING TO"
|
.SH "CONFORMING TO"
|
||||||
POSIX.1-2001, SVr4, 4.4BSD (this call first appeared in 4.2BSD).
|
POSIX.1-2001, SVr4, 4.4BSD (this call first appeared in 4.2BSD).
|
||||||
POSIX.1-2008 marks
|
POSIX.1-2008 marks
|
||||||
|
|
Loading…
Reference in New Issue