1CLOCK_GETCPUCLOCKID(3P)    POSIX Programmer's Manual   CLOCK_GETCPUCLOCKID(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10
11

NAME

13       clock_getcpuclockid — access a process CPU-time clock  (ADVANCED  REAL‐
14       TIME)
15

SYNOPSIS

17       #include <time.h>
18
19       int clock_getcpuclockid(pid_t pid, clockid_t *clock_id);
20

DESCRIPTION

22       The  clock_getcpuclockid()  function  shall  return the clock ID of the
23       CPU-time clock of  the  process  specified  by  pid.   If  the  process
24       described  by  pid  exists  and the calling process has permission, the
25       clock ID of this clock shall be returned in clock_id.
26
27       If pid is zero, the clock_getcpuclockid()  function  shall  return  the
28       clock  ID  of  the  CPU-time  clock  of the process making the call, in
29       clock_id.
30
31       The conditions under which one process has  permission  to  obtain  the
32       CPU-time clock ID of other processes are implementation-defined.
33

RETURN VALUE

35       Upon  successful  completion,  clock_getcpuclockid() shall return zero;
36       otherwise, an error number shall be returned to indicate the error.
37

ERRORS

39       The clock_getcpuclockid() function shall fail if:
40
41       EPERM  The requesting process does not have permission  to  access  the
42              CPU-time clock for the process.
43
44       The clock_getcpuclockid() function may fail if:
45
46       ESRCH  No  process  can be found corresponding to the process specified
47              by pid.
48
49       The following sections are informative.
50

EXAMPLES

52       None.
53

APPLICATION USAGE

55       The clock_getcpuclockid() function is  part  of  the  Process  CPU-Time
56       Clocks option and need not be provided on all implementations.
57

RATIONALE

59       None.
60

FUTURE DIRECTIONS

62       None.
63

SEE ALSO

65       clock_getres(), timer_create()
66
67       The Base Definitions volume of POSIX.1‐2008, <time.h>
68
70       Portions  of  this text are reprinted and reproduced in electronic form
71       from IEEE Std 1003.1, 2013 Edition, Standard for Information Technology
72       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
73       Specifications Issue 7, Copyright (C) 2013 by the Institute of Electri‐
74       cal  and  Electronics  Engineers,  Inc  and  The  Open Group.  (This is
75       POSIX.1-2008 with the 2013 Technical Corrigendum  1  applied.)  In  the
76       event of any discrepancy between this version and the original IEEE and
77       The Open Group Standard, the original IEEE and The Open Group  Standard
78       is  the  referee document. The original Standard can be obtained online
79       at http://www.unix.org/online.html .
80
81       Any typographical or formatting errors that appear  in  this  page  are
82       most likely to have been introduced during the conversion of the source
83       files to man page format. To report such errors,  see  https://www.ker
84       nel.org/doc/man-pages/reporting_bugs.html .
85
86
87
88IEEE/The Open Group                  2013              CLOCK_GETCPUCLOCKID(3P)
Impressum