OSDN Git Service

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