]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
clock_getres.2: wfix: s/clk_id/clockid/ throughout
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 2 Apr 2020 10:31:39 +0000 (12:31 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 2 Apr 2020 10:57:25 +0000 (12:57 +0200)
Most other manual pages use 'clockid' for the 'clockid_t'
argument.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/clock_getres.2

index 189bceb6eba596f0fe5d348cb87a51d6252c711f..0154f9d3247358e6a0bbbedacc9a6714f00ca248 100644 (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