mirror of https://github.com/mkerrisk/man-pages
clock_nanosleep.2: wfix: s/clock_id/clockid/ throughout
Most other section 2 pages use 'clockid' as the name of the 'clockid_t' argument. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
96d951a401
commit
717096082d
|
@ -30,7 +30,7 @@ clock_nanosleep \- high-resolution sleep with specifiable clock
|
||||||
.B #include <time.h>
|
.B #include <time.h>
|
||||||
.nf
|
.nf
|
||||||
.PP
|
.PP
|
||||||
.BI "int clock_nanosleep(clockid_t " clock_id ", int " flags ,
|
.BI "int clock_nanosleep(clockid_t " clockid ", int " flags ,
|
||||||
.BI " const struct timespec *" request ,
|
.BI " const struct timespec *" request ,
|
||||||
.BI " struct timespec *" remain );
|
.BI " struct timespec *" remain );
|
||||||
.fi
|
.fi
|
||||||
|
@ -73,7 +73,7 @@ struct timespec {
|
||||||
.in
|
.in
|
||||||
.PP
|
.PP
|
||||||
The
|
The
|
||||||
.I clock_id
|
.I clockid
|
||||||
argument specifies the clock against which the sleep interval
|
argument specifies the clock against which the sleep interval
|
||||||
is to be measured.
|
is to be measured.
|
||||||
This argument can have one of the following values:
|
This argument can have one of the following values:
|
||||||
|
@ -111,7 +111,7 @@ In addition, the CPU clock IDs returned by
|
||||||
and
|
and
|
||||||
.BR pthread_getcpuclockid (3)
|
.BR pthread_getcpuclockid (3)
|
||||||
can also be passed in
|
can also be passed in
|
||||||
.IR clock_id .
|
.IR clockid .
|
||||||
.\" Sleeping against CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM
|
.\" Sleeping against CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM
|
||||||
.\" is also possible (tested), with CAP_WAKE_ALARM, but I'm not
|
.\" is also possible (tested), with CAP_WAKE_ALARM, but I'm not
|
||||||
.\" sure if this is useful or needs to be documented.
|
.\" sure if this is useful or needs to be documented.
|
||||||
|
@ -122,7 +122,7 @@ is 0, then the value specified in
|
||||||
.I request
|
.I request
|
||||||
is interpreted as an interval relative to the current
|
is interpreted as an interval relative to the current
|
||||||
value of the clock specified by
|
value of the clock specified by
|
||||||
.IR clock_id .
|
.IR clockid .
|
||||||
.PP
|
.PP
|
||||||
If
|
If
|
||||||
.I flags
|
.I flags
|
||||||
|
@ -131,7 +131,7 @@ is
|
||||||
then
|
then
|
||||||
.I request
|
.I request
|
||||||
is interpreted as an absolute time as measured by the clock,
|
is interpreted as an absolute time as measured by the clock,
|
||||||
.IR clock_id .
|
.IR clockid .
|
||||||
If
|
If
|
||||||
.I request
|
.I request
|
||||||
is less than or equal to the current value of the clock,
|
is less than or equal to the current value of the clock,
|
||||||
|
@ -188,15 +188,15 @@ field was not in the range 0 to 999999999 or
|
||||||
was negative.
|
was negative.
|
||||||
.TP
|
.TP
|
||||||
.B EINVAL
|
.B EINVAL
|
||||||
.I clock_id
|
.I clockid
|
||||||
was invalid.
|
was invalid.
|
||||||
.RB ( CLOCK_THREAD_CPUTIME_ID
|
.RB ( CLOCK_THREAD_CPUTIME_ID
|
||||||
is not a permitted value for
|
is not a permitted value for
|
||||||
.IR clock_id .)
|
.IR clockid .)
|
||||||
.TP
|
.TP
|
||||||
.B ENOTSUP
|
.B ENOTSUP
|
||||||
The kernel does not support sleeping against this
|
The kernel does not support sleeping against this
|
||||||
.IR clock_id .
|
.IR clockid .
|
||||||
.SH VERSIONS
|
.SH VERSIONS
|
||||||
The
|
The
|
||||||
.BR clock_nanosleep ()
|
.BR clock_nanosleep ()
|
||||||
|
|
Loading…
Reference in New Issue