]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/clock_getcpuclockid.3
err.3: EXAMPLES: use EXIT_FAILURE rather than 1 as exit status
[thirdparty/man-pages.git] / man3 / clock_getcpuclockid.3
CommitLineData
9df71aff
MK
1.\" Copyright (c) 2008, Linux Foundation, written by Michael Kerrisk
2.\" <mtk.manpages@gmail.com>
3.\"
93015253 4.\" %%%LICENSE_START(VERBATIM)
9df71aff
MK
5.\" Permission is granted to make and distribute verbatim copies of this
6.\" manual provided the copyright notice and this permission notice are
7.\" preserved on all copies.
8.\"
9.\" Permission is granted to copy and distribute modified versions of this
10.\" manual under the conditions for verbatim copying, provided that the
11.\" entire resulting derived work is distributed under the terms of a
12.\" permission notice identical to this one.
13.\"
14.\" Since the Linux kernel and libraries are constantly changing, this
15.\" manual page may be incorrect or out-of-date. The author(s) assume no
16.\" responsibility for errors or omissions, or for damages resulting from
17.\" the use of the information contained herein. The author(s) may not
18.\" have taken the same level of care in the production of this manual,
19.\" which is licensed free of charge, as they might when working
20.\" professionally.
21.\"
22.\" Formatted or processed versions of this manual, if unaccompanied by
23.\" the source, must acknowledge the copyright and authors of this work.
4b72fb64 24.\" %%%LICENSE_END
9df71aff 25.\"
9ba01802 26.TH CLOCK_GETCPUCLOCKID 3 2019-03-06 "Linux" "Linux Programmer's Manual"
9df71aff
MK
27.SH NAME
28clock_getcpuclockid \- obtain ID of a process CPU-time clock
29.SH SYNOPSIS
30.B #include <time.h>
31.nf
68e4db0a 32.PP
9e099e69 33.BI "int clock_getcpuclockid(pid_t " pid ", clockid_t *" clockid );
9df71aff 34.fi
68e4db0a 35.PP
fb759ff4 36Link with \fI\-lrt\fP (only for glibc versions before 2.17).
68e4db0a 37.PP
9a30939e 38.ad l
9df71aff
MK
39.in -4n
40Feature Test Macro Requirements for glibc (see
41.BR feature_test_macros (7)):
42.in
68e4db0a 43.PP
9df71aff 44.BR clock_getcpuclockid ():
9a30939e 45.RS 4
a446ac0c 46_POSIX_C_SOURCE\ >=\ 200112L
9a30939e
MK
47.RE
48.ad
9df71aff
MK
49.SH DESCRIPTION
50The
51.BR clock_getcpuclockid ()