1 | .. comment SPDX-License-Identifier: CC-BY-SA-4.0 |
---|
2 | |
---|
3 | .. COMMENT: COPYRIGHT(c) 1988-2002. |
---|
4 | .. COMMENT: On-Line Applications Research Corporation(OAR). |
---|
5 | .. COMMENT: All rights reserved. |
---|
6 | |
---|
7 | Timer Manager |
---|
8 | ############# |
---|
9 | |
---|
10 | Introduction |
---|
11 | ============ |
---|
12 | |
---|
13 | The timer manager is ... |
---|
14 | |
---|
15 | The services provided by the timer manager are: |
---|
16 | |
---|
17 | - timer_create_ - Create a Per-Process Timer |
---|
18 | |
---|
19 | - timer_delete_ - Delete a Per-Process Timer |
---|
20 | |
---|
21 | - timer_settime_ - Set Next Timer Expiration |
---|
22 | |
---|
23 | - timer_gettime_ - Get Time Remaining on Timer |
---|
24 | |
---|
25 | - timer_getoverrun_ - Get Timer Overrun Count |
---|
26 | |
---|
27 | Background |
---|
28 | ========== |
---|
29 | |
---|
30 | Operations |
---|
31 | ========== |
---|
32 | |
---|
33 | System Calls |
---|
34 | ============ |
---|
35 | |
---|
36 | This section details the timer manager's services. A subsection is dedicated |
---|
37 | to each of this manager's services and describes the calling sequence, related |
---|
38 | constants, usage, and status codes. |
---|
39 | |
---|
40 | .. COMMENT: timer_create |
---|
41 | |
---|
42 | .. _timer_create: |
---|
43 | |
---|
44 | timer_create - Create a Per-Process Timer |
---|
45 | ----------------------------------------- |
---|
46 | |
---|
47 | **CALLING SEQUENCE:** |
---|
48 | |
---|
49 | .. code-block:: c |
---|
50 | |
---|
51 | #include <time.h> |
---|
52 | #include <signal.h> |
---|
53 | int timer_create( |
---|
54 | clockid_t clock_id, |
---|
55 | struct sigevent *evp, |
---|
56 | timer_t *timerid |
---|
57 | ); |
---|
58 | |
---|
59 | **STATUS CODES:** |
---|
60 | |
---|
61 | ``EXXX`` - |
---|
62 | |
---|
63 | **DESCRIPTION:** |
---|
64 | |
---|
65 | **NOTES:** |
---|
66 | |
---|
67 | .. COMMENT: timer_delete |
---|
68 | |
---|
69 | .. _timer_delete: |
---|
70 | |
---|
71 | timer_delete - Delete a Per-Process Timer |
---|
72 | ----------------------------------------- |
---|
73 | |
---|
74 | **CALLING SEQUENCE:** |
---|
75 | |
---|
76 | .. code-block:: c |
---|
77 | |
---|
78 | #include <time.h> |
---|
79 | int timer_delete( |
---|
80 | timer_t timerid |
---|
81 | ); |
---|
82 | |
---|
83 | **STATUS CODES:** |
---|
84 | |
---|
85 | ``EXXX`` - |
---|
86 | |
---|
87 | **DESCRIPTION:** |
---|
88 | |
---|
89 | **NOTES:** |
---|
90 | |
---|
91 | .. COMMENT: timer_settime |
---|
92 | |
---|
93 | .. _timer_settime: |
---|
94 | |
---|
95 | timer_settime - Set Next Timer Expiration |
---|
96 | ----------------------------------------- |
---|
97 | |
---|
98 | **CALLING SEQUENCE:** |
---|
99 | |
---|
100 | .. code-block:: c |
---|
101 | |
---|
102 | #include <time.h> |
---|
103 | int timer_settime( |
---|
104 | timer_t timerid, |
---|
105 | int flags, |
---|
106 | const struct itimerspec *value, |
---|
107 | struct itimerspec *ovalue |
---|
108 | ); |
---|
109 | |
---|
110 | **STATUS CODES:** |
---|
111 | |
---|
112 | ``EXXX`` - |
---|
113 | |
---|
114 | **DESCRIPTION:** |
---|
115 | |
---|
116 | **NOTES:** |
---|
117 | |
---|
118 | .. COMMENT: timer_gettime |
---|
119 | |
---|
120 | .. _timer_gettime: |
---|
121 | |
---|
122 | timer_gettime - Get Time Remaining on Timer |
---|
123 | ------------------------------------------- |
---|
124 | |
---|
125 | **CALLING SEQUENCE:** |
---|
126 | |
---|
127 | .. code-block:: c |
---|
128 | |
---|
129 | #include <time.h> |
---|
130 | int timer_gettime( |
---|
131 | timer_t timerid, |
---|
132 | struct itimerspec *value |
---|
133 | ); |
---|
134 | |
---|
135 | **STATUS CODES:** |
---|
136 | |
---|
137 | ``EXXX`` - |
---|
138 | |
---|
139 | **DESCRIPTION:** |
---|
140 | |
---|
141 | **NOTES:** |
---|
142 | |
---|
143 | .. COMMENT: timer_getoverrun |
---|
144 | |
---|
145 | .. _timer_getoverrun: |
---|
146 | |
---|
147 | timer_getoverrun - Get Timer Overrun Count |
---|
148 | ------------------------------------------ |
---|
149 | |
---|
150 | **CALLING SEQUENCE:** |
---|
151 | |
---|
152 | .. code-block:: c |
---|
153 | |
---|
154 | #include <time.h> |
---|
155 | int timer_getoverrun( |
---|
156 | timer_t timerid |
---|
157 | ); |
---|
158 | |
---|
159 | **STATUS CODES:** |
---|
160 | |
---|
161 | ``EXXX`` - |
---|
162 | |
---|
163 | **DESCRIPTION:** |
---|
164 | |
---|
165 | **NOTES:** |
---|