clock_getres.2: wfix: s/clk_id/clockid/ throughout

Most other manual pages use 'clockid' for the 'clockid_t'
argument.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-04-02 12:31:39 +02:00
parent 717096082d
commit ba1c6b2081
1 changed files with 9 additions and 9 deletions

View File

@ -33,11 +33,11 @@ clock_getres, clock_gettime, clock_settime \- clock and time functions
.SH SYNOPSIS
.B #include <time.h>
.PP
.BI "int clock_getres(clockid_t " clk_id ", struct timespec *" res );
.BI "int clock_getres(clockid_t " clockid ", struct timespec *" res );
.PP
.BI "int clock_gettime(clockid_t " clk_id ", struct timespec *" tp );
.BI "int clock_gettime(clockid_t " clockid ", struct timespec *" tp );
.PP
.BI "int clock_settime(clockid_t " clk_id ", const struct timespec *" tp );
.BI "int clock_settime(clockid_t " clockid ", const struct timespec *" tp );
.PP
Link with \fI\-lrt\fP (only for glibc versions before 2.17).
.PP
@ -58,7 +58,7 @@ _POSIX_C_SOURCE\ >=\ 199309L
The function
.BR clock_getres ()
finds the resolution (precision) of the specified clock
.IR clk_id ,
.IR clockid ,
and, if
.I res
is non-NULL, stores it in the \fIstruct timespec\fP pointed to by
@ -79,7 +79,7 @@ The functions
and
.BR clock_settime ()
retrieve and set the time of the specified clock
.IR clk_id .
.IR clockid .
.PP
The
.I res
@ -100,7 +100,7 @@ struct timespec {
.in
.PP
The
.I clk_id
.I clockid
argument is the identifier of the particular clock on which to act.
A clock may be system-wide and hence visible for all processes, or
per-process if it measures time only within a single process.
@ -240,7 +240,7 @@ points outside the accessible address space.
.TP
.B EINVAL
The
.I clk_id
.I clockid
specified is not supported on this system.
.\" Linux also gives this error on attempts to set CLOCK_PROCESS_CPUTIME_ID
.\" and CLOCK_THREAD_CPUTIME_ID, when probably the proper error should be
@ -255,7 +255,7 @@ is outside the range [0..999,999,999].
.TP
.B EINVAL
The
.I clk_id
.I clockid
specified in a call to
.BR clock_settime ()
is not a settable clock.
@ -265,7 +265,7 @@ is not a settable clock.
A call to
.BR clock_settime ()
with a
.I clk_id
.I clockid
of
.B CLOCK_REALTIME
attempted to set the time to a value less than