]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/clock_getcpuclockid.3
membarrier.2: Remove redundant mention of return value of MEMBARRIER_CMD_SHARED
[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.\"
460495ca 26.TH CLOCK_GETCPUCLOCKID 3 2015-08-08 "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
32.sp
d6a591bc 33.BI "int clock_getcpuclockid(pid_t " pid ", clockid_t *" clock_id );
9df71aff
MK
34.fi
35.sp
fb759ff4 36Link with \fI\-lrt\fP (only for glibc versions before 2.17).
9df71aff 37.sp
9a30939e 38.ad l
9df71aff
MK
39.in -4n
40Feature Test Macro Requirements for glibc (see
41.BR feature_test_macros (7)):
42.in
43.sp
44.BR clock_getcpuclockid ():
9a30939e
MK
45.RS 4
46_XOPEN_SOURCE\ >=\ 600 || _POSIX_C_SOURCE\ >=\ 200112L
47.RE
48.ad
9df71aff
MK
49.SH DESCRIPTION
50The
51.BR clock_getcpuclockid ()