OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / draft / man2 / clock_getres.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (c) 2003 Nick Clifford (zaf@nrc.co.nz), Jan 25, 2003
4 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl), Aug 24, 2003
5 .\"
6 .\" Permission is granted to make and distribute verbatim copies of this
7 .\" manual provided the copyright notice and this permission notice are
8 .\" preserved on all copies.
9 .\"
10 .\" Permission is granted to copy and distribute modified versions of this
11 .\" manual under the conditions for verbatim copying, provided that the
12 .\" entire resulting derived work is distributed under the terms of a
13 .\" permission notice identical to this one.
14 .\"
15 .\" Since the Linux kernel and libraries are constantly changing, this
16 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
17 .\" responsibility for errors or omissions, or for damages resulting from
18 .\" the use of the information contained herein.  The author(s) may not
19 .\" have taken the same level of care in the production of this manual,
20 .\" which is licensed free of charge, as they might when working
21 .\" professionally.
22 .\"
23 .\" Formatted or processed versions of this manual, if unaccompanied by
24 .\" the source, must acknowledge the copyright and authors of this work.
25 .\"
26 .\" 2003-08-23 Martin Schulze <joey@infodrom.org> improvements
27 .\" 2003-08-24 aeb, large parts rewritten
28 .\" 2004-08-06 Christoph Lameter <clameter@sgi.com>, SMP note
29 .\"
30 .\" Japanese Version Copyright (c) 2004-2005 Yuichi SATO
31 .\"         all rights reserved.
32 .\" Translated 2004-07-19, Yuichi SATO <ysato444@yahoo.co.jp>
33 .\" Updated & Modified 2005-01-10, Yuichi SATO
34 .\" Updated 2010-04-11, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
35 .\"
36 .TH CLOCK_GETRES 2 2010-02-03 "" "Linux Programmer's Manual"
37 .\"O .SH NAME
38 .SH Ì¾Á°
39 .\"O clock_getres, clock_gettime, clock_settime \- clock and time functions
40 clock_getres, clock_gettime, clock_settime \- ¥¯¥í¥Ã¥¯¤È»þ´Ö¤Î´Ø¿ô
41 .\"O .SH SYNOPSIS
42 .SH ½ñ¼°
43 .B #include <time.h>
44 .sp
45 .BI "int clock_getres(clockid_t " clk_id ", struct timespec *" res );
46
47 .BI "int clock_gettime(clockid_t " clk_id ", struct timespec *" tp );
48
49 .BI "int clock_settime(clockid_t " clk_id ", const struct timespec *" tp );
50 .sp
51 .\"O Link with \fI\-lrt\fP.
52 \fI\-lrt\fP ¤È¥ê¥ó¥¯¤¹¤ë¡£
53 .sp
54 .in -4n
55 .\"O Feature Test Macro Requirements for glibc (see
56 .\"O .BR feature_test_macros (7)):
57 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
58 .RB ( feature_test_macros (7)
59 »²¾È):
60 .in
61 .sp
62 .ad l
63 .BR clock_getres (),
64 .BR clock_gettime (),
65 .BR clock_settime ():
66 _POSIX_C_SOURCE\ >=\ 199309L
67 .ad b
68 .\"O .SH DESCRIPTION
69 .SH ÀâÌÀ
70 .\"O The function
71 .\"O .BR clock_getres ()
72 .\"O finds the resolution (precision) of the specified clock
73 .\"O .IR clk_id ,
74 .\"O and, if
75 .\"O .I res
76 .\"O is non-NULL, stores it in the \fIstruct timespec\fP pointed to by
77 .\"O .IR res .
78 ´Ø¿ô
79 .BR clock_getres ()
80 ¤Ï
81 »ØÄꤵ¤ì¤¿¥¯¥í¥Ã¥¯
82 .I clk_id
83 ¤Îʬ²òǽ (ÀºÅÙ) ¤òõ¤·½Ð¤¹¡£
84 .I res
85 ¤¬ NULL ¤Ç¤Ê¤¤¾ì¹ç¡¢¤½¤Îʬ²òǽ¤ò
86 .I res
87 ¤Ç»Ø¤µ¤ì¤ë \fIstruct timespec\fP ¤Ë³ÊǼ¤¹¤ë¡£
88 .\"O The resolution of clocks depends on the implementation and cannot be
89 .\"O configured by a particular process.
90 ¥¯¥í¥Ã¥¯¤Îʬ²òǽ¤Ï¼ÂÁõ¤Ë°Í¸¤·¡¢
91 ÆÃÄê¤Î¥×¥í¥»¥¹¤Ë¤è¤Ã¤ÆÀßÄꤹ¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
92 .\"O If the time value pointed to by the argument
93 .\"O .I tp
94 .\"O of
95 .\"O .BR clock_settime ()
96 .\"O is not a multiple of
97 .\"O .IR res ,
98 .\"O then it is truncated to a multiple of
99 .\"O .IR res .
100 .BR clock_settime ()
101 ¤Î°ú¤­¿ô
102 .I tp
103 ¤Ç»Ø¤µ¤ì¤ë»þ´Ö¤ÎÃͤ¬
104 .I res
105 ¤ÎÇÜ¿ô¤Ç¤Ê¤¤¾ì¹ç¡¢
106 .I res
107 ¤ÎÇÜ¿ô¤ËÀÚ¤êµÍ¤á¤é¤ì¤ë¡£
108 .PP
109 .\"O The functions
110 .\"O .BR clock_gettime ()
111 .\"O and
112 .\"O .BR clock_settime ()
113 .\"O retrieve and set the time of the specified clock
114 .\"O .IR clk_id .
115 ´Ø¿ô
116 .BR clock_gettime ()
117 ¤È
118 .BR clock_settime ()
119 ¤Ï¡¢»ØÄꤵ¤ì¤¿¥¯¥í¥Ã¥¯
120 .I clk_id
121 ¤Î»þ´Ö¤ò¼èÆÀ¤Þ¤¿¤ÏÀßÄꤹ¤ë¡£
122 .PP
123 .\"O The
124 .\"O .I res
125 .\"O and
126 .\"O .I tp
127 .\"O arguments are
128 .\"O .I timespec
129 .\"O structures, as specified  in
130 .\"O .IR <time.h> :
131 .I res
132 ¤È
133 .I tp
134 °ú¤­¿ô¤Ï
135 .I timespec
136 ¹½Â¤ÂΤǤ¢¤ê¡¢
137 .I <time.h>
138 ¤Ç°Ê²¼¤Î¤è¤¦¤Ëµ¬Äꤵ¤ì¤Æ¤¤¤ë:
139 .sp
140 .in +4n
141 .nf
142 struct timespec {
143     time_t   tv_sec;        /* seconds */
144     long     tv_nsec;       /* nanoseconds */
145 };
146 .fi
147 .in
148 .PP
149 .\"O The
150 .\"O .I clk_id
151 .\"O argument is the identifier of the particular clock on which to act.
152 .I clk_id
153 °ú¤­¿ô¤ÏÆÃÄê¤Î¥¯¥í¥Ã¥¯¤Î¼±Ê̻ҤǤ¢¤ê¡¢¤½¤Î¥¯¥í¥Ã¥¯¤ÇÆ°ºî¤¹¤ë¡£
154 .\"O A clock may be system-wide and hence visible for all processes, or
155 .\"O per-process if it measures time only within a single process.
156 ¥¯¥í¥Ã¥¯¤Ï¥·¥¹¥Æ¥àÁ´ÂΤËŬÍѤ¹¤ë¤³¤È¤â¤Ç¤­¡¢
157 ¤½¤Î¾ì¹ç¤ÏÁ´¤Æ¤Î¥×¥í¥»¥¹¤«¤é¸«¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
158 ¤Þ¤¿ 1 ¤Ä¤Î¥×¥í¥»¥¹Æâ¤Ç¤Î¤ß»þ´Ö¤ò·×¬¤¹¤ë¾ì¹ç¤Ï¡¢
159 ¥×¥í¥»¥¹Ëè¤ËŬÍѤ¹¤ë¤³¤È¤â¤Ç¤­¤ë¡£
160 .LP
161 .\"O All implementations support the system-wide real-time clock,
162 .\"O which is identified by
163 .\"O .BR CLOCK_REALTIME .
164 Á´¤Æ¤Î¼ÂÁõ¤Ë¤ª¤¤¤Æ¥·¥¹¥Æ¥àÁ´ÂΤΥꥢ¥ë¥¿¥¤¥à¥¯¥í¥Ã¥¯¤¬¥µ¥Ý¡¼¥È¤µ¤ì¡¢
165 .B CLOCK_REALTIME
166 ¤Ç¼±Ê̤µ¤ì¤ë¡£
167 .\"O Its time represents seconds and nanoseconds since the Epoch.
168 »þ´Ö¤Ïµª¸µ (the Epoch) ¤«¤é¤ÎÉäȥʥÎÉäÇɽ¤µ¤ì¤ë¡£
169 .\"O When its time is changed, timers for a relative interval are
170 .\"O unaffected, but timers for an absolute point in time are affected.
171 »þ´Ö¤¬Êѹ¹¤µ¤ì¤¿¾ì¹ç¡¢ÁêÂÐŪ¤Ê»þ´Ö´Ö³Ö¤Î¥¿¥¤¥Þ¤Ï±Æ¶Á¤ò¼õ¤±¤Ê¤¤¤¬¡¢
172 ÀäÂÐŪ¤Ê»þÅÀ¤Î¥¿¥¤¥Þ¤Ï±Æ¶Á¤ò¼õ¤±¤ë¡£
173 .LP
174 .\"O More clocks may be implemented.
175 .\"O The interpretation of the
176 .\"O corresponding time values and the effect on timers is unspecified.
177 ¤µ¤é¤Ë¤¤¤¯¤Ä¤«¤Î¥¯¥í¥Ã¥¯¤¬¼ÂÁõ¤µ¤ì¤Æ¤¤¤ë¤«¤â¤·¤ì¤Ê¤¤¡£
178 Âбþ¤¹¤ë»þ´Ö¤ÎÃͤò²ò¼á¤¹¤ëÊýË¡¤È¥¿¥¤¥Þ¤Ø¤Î±Æ¶Á¤Ï¡¢Äê¤á¤é¤ì¤Æ¤¤¤Ê¤¤¡£
179 .LP
180 .\"O Sufficiently recent versions of glibc and the Linux kernel
181 .\"O support the following clocks:
182 glibc ¤È Linux ¥«¡¼¥Í¥ë¤ÎºÇ¿·¤Î¥Ð¡¼¥¸¥ç¥ó¤Ç¤Ï¡¢
183 °Ê²¼¤Î¤è¤¦¤Ê½½Ê¬¤Ê¥¯¥í¥Ã¥¯¤¬¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤ë¡£
184 .TP
185 .B CLOCK_REALTIME
186 .\"O System-wide real-time clock.
187 ¥·¥¹¥Æ¥àÁ´ÂΤΥꥢ¥ë¥¿¥¤¥à¥¯¥í¥Ã¥¯¡£
188 .\"O Setting this clock requires appropriate privileges.
189 ¤³¤Î¥¯¥í¥Ã¥¯¤òÀßÄꤹ¤ë¤Ë¤ÏŬÀÚ¤ÊÆø¢¤¬É¬ÍפǤ¢¤ë¡£
190 .TP
191 .B CLOCK_MONOTONIC
192 .\"O Clock that cannot be set and represents monotonic time since
193 .\"O some unspecified starting point.
194 ¤¤¤¯¤Ä¤«¤Î³«»ÏÅÀ¤¬»ØÄꤵ¤ì¤Æ¤¤¤Ê¤¤¤¿¤á¡¢
195 ¥¯¥í¥Ã¥¯¤¬¥â¥Î¥È¥Ë¥Ã¥¯¥¿¥¤¥à¤òÀßÄꤷ¤¿¤êɽ¸½¤·¤¿¤ê¤Ç¤­¤Ê¤¤¡£
196 .TP
197 .\"O .BR CLOCK_MONOTONIC_RAW " (since Linux 2.6.28; Linux-specific)"
198 .BR CLOCK_MONOTONIC_RAW " (Linux 2.6.28 °Ê¹ß; Linux ÆÃÍ­)"
199 .\" Added in commit 2d42244ae71d6c7b0884b5664cf2eda30fb2ae68, John Stultz
200 .\"O Similar to
201 .\"O .BR CLOCK_MONOTONIC ,
202 .\"O but provides access to a raw hardware-based time
203 .\"O that is not subject to NTP adjustments.
204 .B CLOCK_MONOTONIC
205 ¤ÈƱÍͤÀ¤¬¡¢NTP ¤Ë¤è¤ëÄ´À°¤Î±Æ¶Á¤ò¼õ¤±¤Ê¤¤¡¢¥Ï¡¼¥É¥¦¥§¥¢¤Ë¤è¤ë
206 À¸¤Î»þ¹ï¤Ø¤Î¥¢¥¯¥»¥¹¤¬¤Ç¤­¤ë¡£
207 .TP
208 .B CLOCK_PROCESS_CPUTIME_ID
209 .\"O High-resolution per-process timer from the CPU.
210 CPU ¤Ë¤è¤ë¹âʬ²òǽ¤Î¥×¥í¥»¥¹Ëè¤Î¥¿¥¤¥Þ¡£
211 .TP
212 .B CLOCK_THREAD_CPUTIME_ID
213 .\"O Thread-specific CPU-time clock.
214 ¥¹¥ì¥Ã¥É¸ÇÍ­¤Î CPU ¥¿¥¤¥à¥¯¥í¥Ã¥¯¡£
215 .\"O .SH "RETURN VALUE"
216 .SH ÊÖ¤êÃÍ
217 .\"O .BR clock_gettime (),
218 .\"O .BR clock_settime ()
219 .\"O and
220 .\"O .BR clock_getres ()
221 .\"O return 0 for success, or \-1 for failure (in which case
222 .\"O .I errno
223 .\"O is set appropriately).
224 .BR clock_gettime (),
225 .BR clock_settime (),
226 .BR clock_getres ()
227 ¤ÏÀ®¸ù¤·¤¿¾ì¹ç¤Ë 0 ¤òÊÖ¤·¡¢¼ºÇÔ¤·¤¿¾ì¹ç¤Ë \-1 ¤òÊÖ¤¹
228 (¼ºÇÔ¤·¤¿¾ì¹ç¡¢
229 .I errno
230 ¤¬Å¬ÀÚ¤ËÀßÄꤵ¤ì¤ë)¡£
231 .\"O .SH ERRORS
232 .SH ¥¨¥é¡¼
233 .TP
234 .B EFAULT
235 .\"O .I tp
236 .\"O points outside the accessible address space.
237 .I tp
238 ¤¬¥¢¥¯¥»¥¹²Äǽ¤Ê¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤ò»Ø¤·¤¿¡£
239 .TP
240 .B EINVAL
241 .\"O The
242 .\"O .I clk_id
243 .\"O specified is not supported on this system.
244 .\" Linux also gives this error on attempts to set CLOCK_PROCESS_CPUTIME_ID
245 .\" and CLOCK_THREAD_CPUTIME_ID, when probably the proper error should be
246 .\" EPERM.
247 »ØÄꤵ¤ì¤¿
248 .I clk_id
249 ¤¬¤³¤Î¥·¥¹¥Æ¥à¤Ç¥µ¥Ý¡¼¥È¤µ¤ì¤Æ¤¤¤Ê¤¤¡£
250 .TP
251 .B EPERM
252 .\"O .BR clock_settime ()
253 .\"O does not have permission to set the clock indicated.
254 »Ø¼¨¤µ¤ì¤¿¥¯¥í¥Ã¥¯¤òÀßÄꤹ¤ë¸¢¸Â¤¬
255 .BR clock_settime ()
256 ¤Ë¤Ê¤¤¡£
257 .\"O .SH "CONFORMING TO"
258 .SH ½àµò
259 SUSv2, POSIX.1-2001.
260 .\"O .SH AVAILABILITY
261 .SH ²ÄÍÑÀ­
262 .\"O On POSIX systems on which these functions are available, the symbol
263 .\"O .B _POSIX_TIMERS
264 .\"O is defined in \fI<unistd.h>\fP to a value greater than 0.
265 ¤³¤ì¤é¤Î´Ø¿ô¤¬ÍøÍѲÄǽ¤Ê POSIX ¥·¥¹¥Æ¥à¤Ç¤Ï¡¢\fI<unistd.h>\fP ¤Ë¤ª¤¤¤Æ¥·¥ó¥Ü¥ë
266 .B _POSIX_TIMERS
267 ¤¬ 0 ¤è¤êÂ礭¤¤ÃͤËÄêµÁ¤µ¤ì¤Æ¤¤¤ë¡£
268 .\"O The symbols
269 .\"O .BR _POSIX_MONOTONIC_CLOCK ,
270 .\"O .BR _POSIX_CPUTIME ,
271 .\"O .B _POSIX_THREAD_CPUTIME
272 .\"O indicate that
273 .\"O .BR CLOCK_MONOTONIC ,
274 .\"O .BR CLOCK_PROCESS_CPUTIME_ID ,
275 .\"O .B CLOCK_THREAD_CPUTIME_ID
276 .\"O are available.
277 ¥·¥ó¥Ü¥ë
278 .BR _POSIX_MONOTONIC_CLOCK ,
279 .BR _POSIX_CPUTIME ,
280 .B _POSIX_THREAD_CPUTIME
281 ¤Ï
282 .BR CLOCK_MONOTONIC ,
283 .BR CLOCK_PROCESS_CPUTIME_ID ,
284 .B CLOCK_THREAD_CPUTIME_ID
285 ¤¬ÍøÍѲÄǽ¤Ê¤³¤È¤ò¼¨¤¹¡£
286 .\"O (See also
287 .\"O .BR sysconf (3).)
288 .RB ( sysconf (3)
289 ¤â»²¾È¤¹¤ë¤³¤È¡£)
290 .\"O .SH NOTES
291 .SH Ãí°Õ
292 .\"O .SS Note for SMP systems
293 .SS "SMP ¥·¥¹¥Æ¥à¤Ë¤Ä¤¤¤Æ¤ÎÃí°Õ"
294 .\"O The
295 .\"O .B CLOCK_PROCESS_CPUTIME_ID
296 .\"O and
297 .\"O .B CLOCK_THREAD_CPUTIME_ID
298 .\"O clocks are realized on many platforms using timers from the CPUs
299 .\"O (TSC on i386, AR.ITC on Itanium).
300 .B CLOCK_PROCESS_CPUTIME_ID
301 ¤È
302 .B CLOCK_THREAD_CPUTIME_ID
303 ¥¯¥í¥Ã¥¯¤Ï¡¢CPU ¤«¤é¤Î¥¿¥¤¥Þ
304 (i386 ¾å¤Î TSC¡¢Itanium ¾å¤Î AR.ITC) ¤òÍѤ¤¤Æ¼Â¸½¤µ¤ì¤Æ¤¤¤ë¡£
305 .\"O These registers may differ between CPUs and as a consequence
306 .\"O these clocks may return
307 .\"O .B bogus results
308 .\"O if a process is migrated to another CPU.
309 ¤³¤ì¤é¤Î¥ì¥¸¥¹¥¿¤Ï CPU ´Ö¤Ç°Û¤Ê¤ë²ÄǽÀ­¤¬¤¢¤ê¡¢
310 ¥×¥í¥»¥¹¤¬Â¾¤Î CPU ¤Ë°ÜÆ°¤µ¤»¤é¤ì¤¿¾ì¹ç¡¢
311 ·ë²Ì¤È¤·¤Æ¤³¤ì¤é¤Î¥¯¥í¥Ã¥¯¤¬\fBµ¶¤Î·ë²Ì\fR
312 (bogus results) ¤òÊÖ¤¹¤«¤â¤·¤ì¤Ê¤¤¡£
313 .PP
314 .\"O If the CPUs in an SMP system have different clock sources then
315 .\"O there is no way to maintain a correlation between the timer registers since
316 .\"O each CPU will run at a slightly different frequency.
317 .\"O If that is the case then
318 .\"O .I clock_getcpuclockid(0)
319 .\"O will return
320 .\"O .B ENOENT
321 .\"O to signify this condition.
322 .\"O The two clocks will then only be useful if it
323 .\"O can be ensured that a process stays on a certain CPU.
324 SMP ¥·¥¹¥Æ¥à¤Î³Æ CPU ¤¬ÊÌ¡¹¤Î¥¯¥í¥Ã¥¯¸»¤ò»ý¤Ä¾ì¹ç¡¢
325 ¥¿¥¤¥Þ¥ì¥¸¥¹¥¿´Ö¤ÎÁê¸ß´Ø·¸¤ò´ÉÍý¤¹¤ëÊýË¡¤Ï¤Ê¤¤¡£
326 ¤³¤ì¤Ï³Æ CPU ¤¬Èù̯¤Ë°Û¤Ê¤ë¼þÇÈ¿ô¤ÇÆ°ºî¤¹¤ë¤¿¤á¤Ç¤¢¤ë¡£
327 ¤³¤ì¤¬¿¿¼Â¤Î¾ì¹ç (ÌõÃð: ³Æ CPU ¤¬ÊÌ¡¹¤Î¥¯¥í¥Ã¥¯¸»¤ò»ý¤Ä¾ì¹ç)¡¢
328 .I clock_getcpuclockid(0)
329 ¤Ï
330 .B ENOENT
331 ¤òÊÖ¤·¤Æ¡¢¤½¤Î¾õ¶·¤òɽ¤¹¡£
332 2 ¤Ä¤Î¥¯¥í¥Ã¥¯¤Ï¡¢¥×¥í¥»¥¹¤¬ÆÃÄê¤Î CPU ¾å¤Ëα¤Þ¤Ã¤Æ¤¤¤ë¤³¤È¤¬
333 ÊݾڤǤ­¤ë¾ì¹ç¤Ë¤Î¤ßÍ­¸ú¤Ç¤¢¤ë¡£
334 .PP
335 .\"O The processors in an SMP system do not start all at exactly the same
336 .\"O time and therefore the timer registers are typically running at an offset.
337 SMP ¥·¥¹¥Æ¥à¤Î³Æ¥×¥í¥»¥Ã¥µ¤ÏÁ´¤¯Æ±¤¸»þ¹ï¤Ëµ¯Æ°¤¹¤ëÌõ¤Ç¤Ï¤Ê¤¤¤Î¤Ç¡¢
338 ³Æ¥¿¥¤¥Þ¥ì¥¸¥¹¥¿¤ÏÄ̾ï¤Ï¤¢¤ë¥ª¥Õ¥»¥Ã¥È¤ÇÆ°ºî¤·¤Æ¤¤¤ë¡£
339 .\"O Some architectures include code that attempts to limit these offsets on bootup.
340 ¥ª¥Õ¥»¥Ã¥È¤ò¥Ö¡¼¥È»þ¤ËÀ©¸Â¤¹¤ë¥³¡¼¥É¤¬´Þ¤Þ¤ì¤ë¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤â¤¢¤ë¡£
341 .\"O However, the code cannot guarantee to accurately tune the offsets.
342 ¤·¤«¤·¡¢¤³¤Î¥³¡¼¥É¤¬¥ª¥Õ¥»¥Ã¥È¤òÀµ³Î¤ËÄ´À°¤¹¤ë¤³¤È¤ÏÊݾڤǤ­¤Ê¤¤¡£
343 .\"O Glibc contains no provisions to deal with these offsets (unlike the Linux
344 .\"O Kernel).
345 .\"O Typically these offsets are small and therefore the effects may be
346 .\"O negligible in most cases.
347 glibc ¤Ï (Linux ¥«¡¼¥Í¥ë¤È¤Ï°Û¤Ê¤ê) ¥ª¥Õ¥»¥Ã¥È¤ò°·¤¦¤¿¤á¤Î¥³¡¼¥É¤òÄ󶡤·¤Ê¤¤¡£
348 Ä̾ï¤Ï¤³¤ì¤é¤Î¥ª¥Õ¥»¥Ã¥È¤¬¾®¤µ¤¤¤Î¤Ç¡¢Â¿¤¯¤Î¾ì¹ç¤Ç¤½¤Î±Æ¶Á¤Ï̵»ë¤Ç¤­¤ë¡£
349 .\"O .SH BUGS
350 .SH ¥Ð¥°
351 .\"O According to POSIX.1-2001, a process with "appropriate privileges" may set the
352 .\"O .B CLOCK_PROCESS_CPUTIME_ID
353 .\"O and
354 .\"O .B CLOCK_THREAD_CPUTIME_ID
355 .\"O clocks using
356 .\"O .BR clock_settime ().
357 .\"O On Linux, these clocks are not settable
358 .\"O (i.e., no process has "appropriate privileges").
359 POSIX.1-2001 ¤Ç¤Ï¡¢
360 ¡ÖŬÀÚ¤ÊÆø¢ (appropriate privileges)¡×¤ò»ý¤Ã¤¿¥×¥í¥»¥¹¤Ï¡¢
361 .BR clock_settime ()
362 ¤ò»È¤Ã¤Æ¡¢¥¯¥í¥Ã¥¯
363 .B CLOCK_PROCESS_CPUTIME_ID
364 ¤È
365 .B CLOCK_THREAD_CPUTIME_ID
366 ¤òÀßÄꤹ¤ë¤³¤È¤¬¤Ç¤­¤ë¤È¤µ¤ì¤Æ¤¤¤ë¡£
367 Linux ¤Ç¤Ï¡¢¤³¤ì¤é¤Î¥¯¥í¥Ã¥¯¤ÏÀßÄê²Äǽ¤Ç¤Ï¤Ê¤¤
368 (¤¹¤Ê¤ï¤Á¡¢¤É¤Î¥×¥í¥»¥¹¤â¡ÖŬÀÚ¤ÊÆø¢¡×¤ò»ý¤¿¤Ê¤¤)¡£
369 .\" See http://bugzilla.kernel.org/show_bug.cgi?id=11972
370 .\"O .SH "SEE ALSO"
371 .SH ´ØÏ¢¹àÌÜ
372 .BR date (1),
373 .BR adjtimex (2),
374 .BR gettimeofday (2),
375 .BR settimeofday (2),
376 .BR time (2),
377 .BR clock_getcpuclockid (3),
378 .BR ctime (3),
379 .BR ftime (3),
380 .BR pthread_getcpuclockid (3),
381 .BR sysconf (3),
382 .BR time (7)