OSDN Git Service

51755bfab0cf9367a3ccd34091b0cd8b189839d4
[linuxjm/LDP_man-pages.git] / po4a / sched / po / ja.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: PACKAGE VERSION\n"
9 "POT-Creation-Date: 2014-04-13 10:27+0900\n"
10 "PO-Revision-Date: 2013-09-30 02:43+0900\n"
11 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
12 "Language-Team: LANGUAGE <LL@li.org>\n"
13 "Language: \n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17
18 #. type: TH
19 #: build/C/man3/CPU_SET.3:27
20 #, no-wrap
21 msgid "CPU_SET"
22 msgstr "CPU_SET"
23
24 #. type: TH
25 #: build/C/man3/CPU_SET.3:27
26 #, no-wrap
27 msgid "2012-03-15"
28 msgstr "2012-03-15"
29
30 #. type: TH
31 #: build/C/man3/CPU_SET.3:27 build/C/man2/clone.2:45 build/C/man2/kcmp.2:28
32 #: build/C/man2/sched_get_priority_max.2:29 build/C/man3/sched_getcpu.3:26
33 #: build/C/man2/sched_rr_get_interval.2:29 build/C/man2/sched_setaffinity.2:34
34 #: build/C/man2/sched_setparam.2:30 build/C/man2/sched_setscheduler.2:46
35 #: build/C/man2/sched_yield.2:29 build/C/man2/setns.2:8
36 #: build/C/man2/unshare.2:20
37 #, no-wrap
38 msgid "Linux"
39 msgstr "Linux"
40
41 #. type: TH
42 #: build/C/man3/CPU_SET.3:27 build/C/man2/clone.2:45 build/C/man2/kcmp.2:28
43 #: build/C/man2/sched_get_priority_max.2:29 build/C/man3/sched_getcpu.3:26
44 #: build/C/man2/sched_rr_get_interval.2:29 build/C/man2/sched_setaffinity.2:34
45 #: build/C/man2/sched_setparam.2:30 build/C/man2/sched_setscheduler.2:46
46 #: build/C/man2/sched_yield.2:29 build/C/man2/setns.2:8
47 #: build/C/man2/unshare.2:20
48 #, no-wrap
49 msgid "Linux Programmer's Manual"
50 msgstr "Linux Programmer's Manual"
51
52 #. type: SH
53 #: build/C/man3/CPU_SET.3:28 build/C/man2/clone.2:46 build/C/man2/kcmp.2:29
54 #: build/C/man2/sched_get_priority_max.2:30 build/C/man3/sched_getcpu.3:27
55 #: build/C/man2/sched_rr_get_interval.2:30 build/C/man2/sched_setaffinity.2:35
56 #: build/C/man2/sched_setparam.2:31 build/C/man2/sched_setscheduler.2:47
57 #: build/C/man2/sched_yield.2:30 build/C/man2/setns.2:9
58 #: build/C/man2/unshare.2:21
59 #, no-wrap
60 msgid "NAME"
61 msgstr "名前"
62
63 #. type: Plain text
64 #: build/C/man3/CPU_SET.3:35
65 msgid ""
66 "CPU_SET, CPU_CLR, CPU_ISSET, CPU_ZERO, CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR, "
67 "CPU_EQUAL, CPU_ALLOC, CPU_ALLOC_SIZE, CPU_FREE, CPU_SET_S, CPU_CLR_S, "
68 "CPU_ISSET_S, CPU_ZERO_S, CPU_COUNT_S, CPU_AND_S, CPU_OR_S, CPU_XOR_S, "
69 "CPU_EQUAL_S - macros for manipulating CPU sets"
70 msgstr ""
71 "CPU_SET, CPU_CLR, CPU_ISSET, CPU_ZERO, CPU_COUNT, CPU_AND, CPU_OR, CPU_XOR, "
72 "CPU_EQUAL, CPU_ALLOC, CPU_ALLOC_SIZE, CPU_FREE, CPU_SET_S, CPU_CLR_S, "
73 "CPU_ISSET_S, CPU_ZERO_S, CPU_COUNT_S, CPU_AND_S, CPU_OR_S, CPU_XOR_S, "
74 "CPU_EQUAL_S - CPU 集合を操作するためのマクロ"
75
76 #. type: SH
77 #: build/C/man3/CPU_SET.3:35 build/C/man2/clone.2:48 build/C/man2/kcmp.2:31
78 #: build/C/man2/sched_get_priority_max.2:32 build/C/man3/sched_getcpu.3:29
79 #: build/C/man2/sched_rr_get_interval.2:32 build/C/man2/sched_setaffinity.2:38
80 #: build/C/man2/sched_setparam.2:33 build/C/man2/sched_setscheduler.2:50
81 #: build/C/man2/sched_yield.2:32 build/C/man2/setns.2:11
82 #: build/C/man2/unshare.2:23
83 #, no-wrap
84 msgid "SYNOPSIS"
85 msgstr "書式"
86
87 #. type: Plain text
88 #: build/C/man3/CPU_SET.3:39 build/C/man2/sched_setaffinity.2:42
89 #: build/C/man2/setns.2:15
90 #, no-wrap
91 msgid ""
92 "B<#define _GNU_SOURCE>             /* See feature_test_macros(7) */\n"
93 "B<#include E<lt>sched.hE<gt>>\n"
94 msgstr ""
95 "B<#define _GNU_SOURCE>             /* feature_test_macros(7) 参照 */\n"
96 "B<#include E<lt>sched.hE<gt>>\n"
97
98 #. type: Plain text
99 #: build/C/man3/CPU_SET.3:41
100 #, no-wrap
101 msgid "B<void CPU_ZERO(cpu_set_t *>I<set>B<);>\n"
102 msgstr "B<void CPU_ZERO(cpu_set_t *>I<set>B<);>\n"
103
104 #. type: Plain text
105 #: build/C/man3/CPU_SET.3:45
106 #, no-wrap
107 msgid ""
108 "B<void CPU_SET(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
109 "B<void CPU_CLR(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
110 "B<int  CPU_ISSET(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
111 msgstr ""
112 "B<void CPU_SET(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
113 "B<void CPU_CLR(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
114 "B<int  CPU_ISSET(int >I<cpu>B<, cpu_set_t *>I<set>B<);>\n"
115
116 #. type: Plain text
117 #: build/C/man3/CPU_SET.3:47
118 #, no-wrap
119 msgid "B<int  CPU_COUNT(cpu_set_t *>I<set>B<);>\n"
120 msgstr "B<int  CPU_COUNT(cpu_set_t *>I<set>B<);>\n"
121
122 #. type: Plain text
123 #: build/C/man3/CPU_SET.3:54
124 #, no-wrap
125 msgid ""
126 "B<void CPU_AND(cpu_set_t *>I<destset>B<,>\n"
127 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
128 "B<void CPU_OR(cpu_set_t *>I<destset>B<,>\n"
129 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
130 "B<void CPU_XOR(cpu_set_t *>I<destset>B<,>\n"
131 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
132 msgstr ""
133 "B<void CPU_AND(cpu_set_t *>I<destset>B<,>\n"
134 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
135 "B<void CPU_OR(cpu_set_t *>I<destset>B<,>\n"
136 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
137 "B<void CPU_XOR(cpu_set_t *>I<destset>B<,>\n"
138 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
139
140 #. type: Plain text
141 #: build/C/man3/CPU_SET.3:56
142 #, no-wrap
143 msgid "B<int  CPU_EQUAL(cpu_set_t *>I<set1>B<, cpu_set_t *>I<set2>B<);>\n"
144 msgstr "B<int  CPU_EQUAL(cpu_set_t *>I<set1>B<, cpu_set_t *>I<set2>B<);>\n"
145
146 #. type: Plain text
147 #: build/C/man3/CPU_SET.3:60
148 #, no-wrap
149 msgid ""
150 "B<cpu_set_t *CPU_ALLOC(int >I<num_cpus>B<);>\n"
151 "B<void CPU_FREE(cpu_set_t *>I<set>B<);>\n"
152 "B<size_t CPU_ALLOC_SIZE(int >I<num_cpus>B<);>\n"
153 msgstr ""
154 "B<cpu_set_t *CPU_ALLOC(int >I<num_cpus>B<);>\n"
155 "B<void CPU_FREE(cpu_set_t *>I<set>B<);>\n"
156 "B<size_t CPU_ALLOC_SIZE(int >I<num_cpus>B<);>\n"
157
158 #. type: Plain text
159 #: build/C/man3/CPU_SET.3:62
160 #, no-wrap
161 msgid "B<void CPU_ZERO_S(size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
162 msgstr "B<void CPU_ZERO_S(size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
163
164 #. type: Plain text
165 #: build/C/man3/CPU_SET.3:66
166 #, no-wrap
167 msgid ""
168 "B<void CPU_SET_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
169 "B<void CPU_CLR_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
170 "B<int  CPU_ISSET_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
171 msgstr ""
172 "B<void CPU_SET_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
173 "B<void CPU_CLR_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
174 "B<int  CPU_ISSET_S(int >I<cpu>B<, size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
175
176 #. type: Plain text
177 #: build/C/man3/CPU_SET.3:68
178 #, no-wrap
179 msgid "B<int  CPU_COUNT_S(size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
180 msgstr "B<int  CPU_COUNT_S(size_t >I<setsize>B<, cpu_set_t *>I<set>B<);>\n"
181
182 #. type: Plain text
183 #: build/C/man3/CPU_SET.3:75
184 #, no-wrap
185 msgid ""
186 "B<void CPU_AND_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
187 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
188 "B<void CPU_OR_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
189 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
190 "B<void CPU_XOR_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
191 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
192 msgstr ""
193 "B<void CPU_AND_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
194 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
195 "B<void CPU_OR_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
196 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
197 "B<void CPU_XOR_S(size_t >I<setsize>B<, cpu_set_t *>I<destset>B<,>\n"
198 "B<             cpu_set_t *>I<srcset1>B<, cpu_set_t *>I<srcset2>B<);>\n"
199
200 #. type: Plain text
201 #: build/C/man3/CPU_SET.3:78
202 #, no-wrap
203 msgid "B<int  CPU_EQUAL_S(size_t >I<setsize>B<, cpu_set_t *>I<set1>B<, cpu_set_t *>I<set2>B<);>\n"
204 msgstr "B<int  CPU_EQUAL_S(size_t >I<setsize>B<, cpu_set_t *>I<set1>B<, cpu_set_t *>I<set2>B<);>\n"
205
206 #. type: SH
207 #: build/C/man3/CPU_SET.3:79 build/C/man2/clone.2:86 build/C/man2/kcmp.2:41
208 #: build/C/man2/sched_get_priority_max.2:38 build/C/man3/sched_getcpu.3:55
209 #: build/C/man2/sched_rr_get_interval.2:36 build/C/man2/sched_setaffinity.2:49
210 #: build/C/man2/sched_setparam.2:47 build/C/man2/sched_setscheduler.2:66
211 #: build/C/man2/sched_yield.2:36 build/C/man2/setns.2:18
212 #: build/C/man2/unshare.2:50
213 #, no-wrap
214 msgid "DESCRIPTION"
215 msgstr "説明"
216
217 #. type: Plain text
218 #: build/C/man3/CPU_SET.3:86
219 msgid ""
220 "The I<cpu_set_t> data structure represents a set of CPUs.  CPU sets are used "
221 "by B<sched_setaffinity>(2)  and similar interfaces."
222 msgstr ""
223 "I<cpu_set_t> データ構造体は CPU 集合を表現している。 CPU 集合は "
224 "B<sched_setaffinity>(2) や同様のインタフェースで使用されている。"
225
226 #. type: Plain text
227 #: build/C/man3/CPU_SET.3:93
228 msgid ""
229 "The I<cpu_set_t> data type is implemented as a bitset.  However, the data "
230 "structure treated as considered opaque: all manipulation of CPU sets should "
231 "be done via the macros described in this page."
232 msgstr ""
233 "I<cpu_set_t> データ型はビット集合として実装されている。 しかし、 データ構造体"
234 "はその実装を意識せずに扱うものとされており、 CPU 集合のすべての操作は、 この"
235 "ページで説明されているマクロを通して行うべきである。"
236
237 #. type: Plain text
238 #: build/C/man3/CPU_SET.3:96
239 msgid "The following macros are provided to operate on the CPU set I<set>:"
240 msgstr "以下のマクロが CPU 集合 I<set> を操作するために提供されている。"
241
242 #. type: TP
243 #: build/C/man3/CPU_SET.3:96
244 #, no-wrap
245 msgid "B<CPU_ZERO>()"
246 msgstr "B<CPU_ZERO>()"
247
248 #. type: Plain text
249 #: build/C/man3/CPU_SET.3:101
250 msgid "Clears I<set>, so that it contains no CPUs."
251 msgstr "I<set> をクリアする。 集合には何も CPU が含まれない状態となる。"
252
253 #. type: TP
254 #: build/C/man3/CPU_SET.3:101
255 #, no-wrap
256 msgid "B<CPU_SET>()"
257 msgstr "B<CPU_SET>()"
258
259 #. type: Plain text
260 #: build/C/man3/CPU_SET.3:107
261 msgid "Add CPU I<cpu> to I<set>."
262 msgstr "I<set> に I<cpu> を追加する。"
263
264 #. type: TP
265 #: build/C/man3/CPU_SET.3:107
266 #, no-wrap
267 msgid "B<CPU_CLR>()"
268 msgstr "B<CPU_CLR>()"
269
270 #. type: Plain text
271 #: build/C/man3/CPU_SET.3:113
272 msgid "Remove CPU I<cpu> from I<set>."
273 msgstr "I<set> から I<cpu> を削除する。"
274
275 #. type: TP
276 #: build/C/man3/CPU_SET.3:113
277 #, no-wrap
278 msgid "B<CPU_ISSET>()"
279 msgstr "B<CPU_ISSET>()"
280
281 #. type: Plain text
282 #: build/C/man3/CPU_SET.3:119
283 msgid "Test to see if CPU I<cpu> is a member of I<set>."
284 msgstr "CPU I<cpu> が I<set> のメンバーであるかを検査する。"
285
286 #. type: TP
287 #: build/C/man3/CPU_SET.3:119
288 #, no-wrap
289 msgid "B<CPU_COUNT>()"
290 msgstr "B<CPU_COUNT>()"
291
292 #. type: Plain text
293 #: build/C/man3/CPU_SET.3:123
294 msgid "Return the number of CPUs in I<set>."
295 msgstr "I<set> に含まれる CPU 数を返す。"
296
297 #. type: Plain text
298 #: build/C/man3/CPU_SET.3:128
299 msgid ""
300 "Where a I<cpu> argument is specified, it should not produce side effects, "
301 "since the above macros may evaluate the argument more than once."
302 msgstr ""
303 "I<cpu> 引き数が指定する場合、 その引き数は副作用を伴うべきではない。 上記のマ"
304 "クロは引き数を複数回評価する可能性があるからである。"
305
306 #. type: Plain text
307 #: build/C/man3/CPU_SET.3:139
308 msgid ""
309 "The first available CPU on the system corresponds to a I<cpu> value of 0, "
310 "the next CPU corresponds to a I<cpu> value of 1, and so on.  The constant "
311 "B<CPU_SETSIZE> (currently 1024) specifies a value one greater than the "
312 "maximum CPU number that can be stored in I<cpu_set_t>."
313 msgstr ""
314 "そのシステムで利用可能な最初の CPU が I<cpu> 値 0 に対応し、 次の CPU が "
315 "I<cpu> 値 1 に対応し、 以降も同様である。 定数 B<CPU_SETSIZE> (現在のところ "
316 "1024) は I<cpu_set_t> に格納できる最大 CPU 数よりも大きな値である。"
317
318 #. type: Plain text
319 #: build/C/man3/CPU_SET.3:141
320 msgid "The following macros perform logical operations on CPU sets:"
321 msgstr "以下のマクロは CPU 集合どうしの論理操作を行う。"
322
323 #. type: TP
324 #: build/C/man3/CPU_SET.3:141
325 #, no-wrap
326 msgid "B<CPU_AND>()"
327 msgstr "B<CPU_AND>()"
328
329 #. type: Plain text
330 #: build/C/man3/CPU_SET.3:150
331 msgid ""
332 "Store the intersection of the sets I<srcset1> and I<srcset2> in I<destset> "
333 "(which may be one of the source sets)."
334 msgstr ""
335 "集合 I<srcset1> と I<srcset2> の積集合を I<destset> に格納する (元の集合のい"
336 "ずれかが I<destset> として使用される場合もある)。"
337
338 #. type: TP
339 #: build/C/man3/CPU_SET.3:150
340 #, no-wrap
341 msgid "B<CPU_OR>()"
342 msgstr "B<CPU_OR>()"
343
344 #. type: Plain text
345 #: build/C/man3/CPU_SET.3:159
346 msgid ""
347 "Store the union of the sets I<srcset1> and I<srcset2> in I<destset> (which "
348 "may be one of the source sets)."
349 msgstr ""
350 "集合 I<srcset1> と I<srcset2> の和集合を I<destset> に格納する (元の集合のい"
351 "ずれかが I<destset> として使用される場合もある)。"
352
353 #. type: TP
354 #: build/C/man3/CPU_SET.3:159
355 #, no-wrap
356 msgid "B<CPU_XOR>()"
357 msgstr "B<CPU_XOR>()"
358
359 #. type: Plain text
360 #: build/C/man3/CPU_SET.3:173
361 msgid ""
362 "Store the XOR of the sets I<srcset1> and I<srcset2> in I<destset> (which may "
363 "be one of the source sets).  The XOR means the set of CPUs that are in "
364 "either I<srcset1> or I<srcset2>, but not both."
365 msgstr ""
366 "集合 I<srcset1> と I<srcset2> の XOR を I<destset> に格納する (元の集合のいず"
367 "れかが I<destset> として使用される場合もある)。 XOR とは、 I<srcset1> か "
368 "I<srcset2> のいずれかに含まれるが、両方には含まれない集合のことである。"
369
370 #. type: TP
371 #: build/C/man3/CPU_SET.3:173
372 #, no-wrap
373 msgid "B<CPU_EQUAL>()"
374 msgstr "B<CPU_EQUAL>()"
375
376 #. type: Plain text
377 #: build/C/man3/CPU_SET.3:176
378 msgid "Test whether two CPU set contain exactly the same CPUs."
379 msgstr "二つの CPU 集合が全く同じ CPU を含んでいるかを検査する。"
380
381 #. type: SS
382 #: build/C/man3/CPU_SET.3:176
383 #, no-wrap
384 msgid "Dynamically sized CPU sets"
385 msgstr "動的に大きさが決まる CPU 集合"
386
387 #. type: Plain text
388 #: build/C/man3/CPU_SET.3:182
389 msgid ""
390 "Because some applications may require the ability to dynamically size CPU "
391 "sets (e.g., to allocate sets larger than that defined by the standard "
392 "I<cpu_set_t> data type), glibc nowadays provides a set of macros to support "
393 "this."
394 msgstr ""
395 "いくつかのアプリケーションでは CPU 集合の大きさを動的に決める能力 (例えば、 "
396 "標準の I<cpu_set_t> データ型で定義されたよりも大きい集合を割り当てるなど) が"
397 "必要となることがあるため、 現在 glibc はこれに対応するためにいくつかのマクロ"
398 "を提供している。"
399
400 #. type: Plain text
401 #: build/C/man3/CPU_SET.3:184
402 msgid "The following macros are used to allocate and deallocate CPU sets:"
403 msgstr "以下のマクロを使うと CPU 集合の割り当てと解放ができる。"
404
405 #. type: TP
406 #: build/C/man3/CPU_SET.3:184
407 #, no-wrap
408 msgid "B<CPU_ALLOC>()"
409 msgstr "B<CPU_ALLOC>()"
410
411 #. type: Plain text
412 #: build/C/man3/CPU_SET.3:189
413 msgid ""
414 "Allocate a CPU set large enough to hold CPUs in the range 0 to I<num_cpus-1>."
415 msgstr ""
416 "0 から I<num_cpus-1> までの範囲の CPU を保持するのに十分な大きさの CPU 集合を"
417 "割り当てる。"
418
419 #. type: TP
420 #: build/C/man3/CPU_SET.3:189
421 #, no-wrap
422 msgid "B<CPU_ALLOC_SIZE>()"
423 msgstr "B<CPU_ALLOC_SIZE>()"
424
425 #. type: Plain text
426 #: build/C/man3/CPU_SET.3:199
427 msgid ""
428 "Return the size in bytes of the CPU set that would be needed to hold CPUs in "
429 "the range 0 to I<num_cpus-1>.  This macro provides the value that can be "
430 "used for the I<setsize> argument in the B<CPU_*_S>()  macros described below."
431 msgstr ""
432 "0 から I<num_cpus-1> までの範囲の CPU を保持するのに必要な CPU 集合の大きさを"
433 "バイト数で返す。 このマクロが返す値は、 後述の B<CPU_*_S>() マクロの "
434 "I<setsize> 引き数として使用できる。"
435
436 #. type: TP
437 #: build/C/man3/CPU_SET.3:199
438 #, no-wrap
439 msgid "B<CPU_FREE>()"
440 msgstr "B<CPU_FREE>()"
441
442 #. type: Plain text
443 #: build/C/man3/CPU_SET.3:203
444 msgid "Free a CPU set previously allocated by B<CPU_ALLOC>()."
445 msgstr "以前に B<CPU_ALLOC>() で割り当てられた CPU 集合を解放する。"
446
447 #. type: Plain text
448 #: build/C/man3/CPU_SET.3:210
449 msgid ""
450 "The macros whose names end with \"_S\" are the analogs of the similarly "
451 "named macros without the suffix.  These macros perform the same tasks as "
452 "their analogs, but operate on the dynamically allocated CPU set(s) whose "
453 "size is I<setsize> bytes."
454 msgstr ""
455 "名前が \"_S\" で終わるマクロは \"_S\" なしの同じ名前のマクロと同等である。 こ"
456 "れらのマクロは \"_S\" なしのものと同じ動作をするが、 動的に割り当てられた、 "
457 "大きさが I<setsize> バイトの CPU 集合に対して操作を行う点が異なる。"
458
459 #. type: SH
460 #: build/C/man3/CPU_SET.3:210 build/C/man2/clone.2:878 build/C/man2/kcmp.2:127
461 #: build/C/man2/sched_get_priority_max.2:100 build/C/man3/sched_getcpu.3:58
462 #: build/C/man2/sched_rr_get_interval.2:73
463 #: build/C/man2/sched_setaffinity.2:107 build/C/man2/sched_setparam.2:87
464 #: build/C/man2/sched_setscheduler.2:423 build/C/man2/sched_yield.2:41
465 #: build/C/man2/setns.2:70 build/C/man2/unshare.2:207
466 #, no-wrap
467 msgid "RETURN VALUE"
468 msgstr "返り値"
469
470 #. type: Plain text
471 #: build/C/man3/CPU_SET.3:219
472 msgid ""
473 "B<CPU_ISSET>()  and B<CPU_ISSET_S>()  return nonzero if I<cpu> is in I<set>; "
474 "otherwise, it returns 0."
475 msgstr ""
476 "B<CPU_ISSET>() と B<CPU_ISSET_S>() は、 I<cpu> が I<set> に含まれていれば 0 "
477 "以外を返し、含まれない場合 0 を返す。"
478
479 #. type: Plain text
480 #: build/C/man3/CPU_SET.3:225
481 msgid ""
482 "B<CPU_COUNT>()  and B<CPU_COUNT_S>()  return the number of CPUs in I<set>."
483 msgstr "B<CPU_COUNT>() と B<CPU_COUNT_S>() は I<set> に含まれる CPU 数を返す。"
484
485 #. type: Plain text
486 #: build/C/man3/CPU_SET.3:230
487 msgid ""
488 "B<CPU_EQUAL>()  and B<CPU_EQUAL_S>()  return nonzero if the two CPU sets are "
489 "equal; otherwise it returns 0."
490 msgstr ""
491 "B<CPU_EQUAL>() と B<CPU_EQUAL_S>() は、 二つの CPU 集合が等しければ 0 以外を"
492 "返し、 等しくない場合 0 を返す。"
493
494 #. type: Plain text
495 #: build/C/man3/CPU_SET.3:235
496 msgid ""
497 "B<CPU_ALLOC>()  returns a pointer on success, or NULL on failure.  (Errors "
498 "are as for B<malloc>(3).)"
499 msgstr ""
500 "B<CPU_ALLOC>() は成功するとポインタを返し、 失敗すると NULL を返す (エラーは "
501 "B<malloc>(3) と同じである)。"
502
503 #. type: Plain text
504 #: build/C/man3/CPU_SET.3:239
505 msgid ""
506 "B<CPU_ALLOC_SIZE>()  returns the number of bytes required to store a CPU set "
507 "of the specified cardinality."
508 msgstr ""
509 "B<CPU_ALLOC_SIZE>() は指定された大きさの CPU 集合を格納するのに必要なバイト数"
510 "を返す。"
511
512 #. type: Plain text
513 #: build/C/man3/CPU_SET.3:241
514 msgid "The other functions do not return a value."
515 msgstr "他の関数は値を返さない。"
516
517 #. type: SH
518 #: build/C/man3/CPU_SET.3:241 build/C/man2/clone.2:995 build/C/man2/kcmp.2:198
519 #: build/C/man3/sched_getcpu.3:70 build/C/man2/sched_setaffinity.2:148
520 #: build/C/man2/setns.2:97 build/C/man2/unshare.2:224
521 #, no-wrap
522 msgid "VERSIONS"
523 msgstr "バージョン"
524
525 #. type: Plain text
526 #: build/C/man3/CPU_SET.3:249
527 msgid ""
528 "The B<CPU_ZERO>(), B<CPU_SET>(), B<CPU_CLR>(), and B<CPU_ISSET>()  macros "
529 "were added in glibc 2.3.3."
530 msgstr ""
531 "マクロ B<CPU_ZERO>(), B<CPU_SET>(), B<CPU_CLR>(), B<CPU_ISSET>() は glibc "
532 "2.3.3 で追加された。"
533
534 #. type: Plain text
535 #: build/C/man3/CPU_SET.3:252
536 msgid "B<CPU_COUNT>()  first appeared in glibc 2.6."
537 msgstr "B<CPU_COUNT>() は glibc 2.6 で初めて登場した。"
538
539 #. type: Plain text
540 #: build/C/man3/CPU_SET.3:270
541 msgid ""
542 "B<CPU_AND>(), B<CPU_OR>(), B<CPU_XOR>(), B<CPU_EQUAL>(), B<CPU_ALLOC>(), "
543 "B<CPU_ALLOC_SIZE>(), B<CPU_FREE>(), B<CPU_ZERO_S>(), B<CPU_SET_S>(), "
544 "B<CPU_CLR_S>(), B<CPU_ISSET_S>(), B<CPU_AND_S>(), B<CPU_OR_S>(), B<CPU_XOR_S>"
545 "(), and B<CPU_EQUAL_S>()  first appeared in glibc 2.7."
546 msgstr ""
547 "B<CPU_AND>(), B<CPU_OR>(), B<CPU_XOR>(), B<CPU_EQUAL>(), B<CPU_ALLOC>(), "
548 "B<CPU_ALLOC_SIZE>(), B<CPU_FREE>(), B<CPU_ZERO_S>(), B<CPU_SET_S>(), "
549 "B<CPU_CLR_S>(), B<CPU_ISSET_S>(), B<CPU_AND_S>(), B<CPU_OR_S>(), B<CPU_XOR_S>"
550 "(), B<CPU_EQUAL_S>() は glibc 2.7 で初めて登場した。"
551
552 #. type: SH
553 #: build/C/man3/CPU_SET.3:270 build/C/man2/clone.2:1002
554 #: build/C/man2/kcmp.2:202 build/C/man2/sched_get_priority_max.2:116
555 #: build/C/man3/sched_getcpu.3:72 build/C/man2/sched_rr_get_interval.2:94
556 #: build/C/man2/sched_setaffinity.2:159 build/C/man2/sched_setparam.2:110
557 #: build/C/man2/sched_setscheduler.2:445 build/C/man2/sched_yield.2:52
558 #: build/C/man2/setns.2:102 build/C/man2/unshare.2:228
559 #, no-wrap
560 msgid "CONFORMING TO"
561 msgstr "準拠"
562
563 #. type: Plain text
564 #: build/C/man3/CPU_SET.3:272
565 msgid "These interfaces are Linux-specific."
566 msgstr "これらのインタフェースは Linux 固有である。"
567
568 #. type: SH
569 #: build/C/man3/CPU_SET.3:272 build/C/man2/clone.2:1006
570 #: build/C/man2/kcmp.2:205 build/C/man3/sched_getcpu.3:75
571 #: build/C/man2/sched_rr_get_interval.2:96
572 #: build/C/man2/sched_setaffinity.2:161 build/C/man2/sched_setparam.2:112
573 #: build/C/man2/sched_setscheduler.2:448 build/C/man2/sched_yield.2:54
574 #: build/C/man2/setns.2:106 build/C/man2/unshare.2:232
575 #, no-wrap
576 msgid "NOTES"
577 msgstr "注意"
578
579 #. type: Plain text
580 #: build/C/man3/CPU_SET.3:275
581 msgid "To duplicate a CPU set, use B<memcpy>(3)."
582 msgstr "CPU 集合を複製するには、 B<memcpy>(3) を使用する。"
583
584 #. type: Plain text
585 #: build/C/man3/CPU_SET.3:282
586 msgid ""
587 "Since CPU sets are bitsets allocated in units of long words, the actual "
588 "number of CPUs in a dynamically allocated CPU set will be rounded up to the "
589 "next multiple of I<sizeof(unsigned long)>.  An application should consider "
590 "the contents of these extra bits to be undefined."
591 msgstr ""
592 "CPU 集合はロングワード単位に割り当てられるビット集合なので、 動的に割り当てら"
593 "れた CPU 集合の実際の CPU 数は I<sizeof(unsigned long)> の次の倍数に切り上げ"
594 "られることになる。 アプリケーションは、 これらの余分なビットの内容は不定と考"
595 "えるべきである。"
596
597 #. type: Plain text
598 #: build/C/man3/CPU_SET.3:294
599 msgid ""
600 "Notwithstanding the similarity in the names, note that the constant "
601 "B<CPU_SETSIZE> indicates the number of CPUs in the I<cpu_set_t> data type "
602 "(thus, it is effectively a count of bits in the bitset), while the "
603 "I<setsize> argument of the B<CPU_*_S>()  macros is a size in bytes."
604 msgstr ""
605 "名前は似ているが、 定数 B<CPU_SETSIZE> は I<cpu_set_t> データ型に含まれる "
606 "CPU 数 (つまり、事実上ビット集合内のビットカウント) を示すのに対して、 マク"
607 "ロ B<CPU_*_S>() の I<setsize> 引き数はバイト単位のサイズである点に注意するこ"
608 "と。"
609
610 #. type: Plain text
611 #: build/C/man3/CPU_SET.3:300
612 msgid ""
613 "The data types for arguments and return values shown in the SYNOPSIS are "
614 "hints what about is expected in each case.  However, since these interfaces "
615 "are implemented as macros, the compiler won't necessarily catch all type "
616 "errors if you violate the suggestions."
617 msgstr ""
618 "「書式」に書かれている引き数と返り値のデータ型は、それぞれの場合でどんな型が"
619 "期待されるかのヒントである。 しかしながら、 これらのインタフェースはマクロと"
620 "して実装されているため、 このヒントを守らなかった場合に、 コンパイラが必ずし"
621 "も全ての型エラーを捕捉できるとは限らない。"
622
623 #. type: SH
624 #: build/C/man3/CPU_SET.3:300 build/C/man2/clone.2:1031
625 #: build/C/man2/sched_setscheduler.2:531
626 #, no-wrap
627 msgid "BUGS"
628 msgstr "バグ"
629
630 #.  http://sourceware.org/bugzilla/show_bug.cgi?id=7029
631 #. type: Plain text
632 #: build/C/man3/CPU_SET.3:312
633 msgid ""
634 "On 32-bit platforms with glibc 2.8 and earlier, B<CPU_ALLOC>()  allocates "
635 "twice as much space as is required, and B<CPU_ALLOC_SIZE>()  returns a value "
636 "twice as large as it should.  This bug should not affect the semantics of a "
637 "program, but does result in wasted memory and less efficient operation of "
638 "the macros that operate on dynamically allocated CPU sets.  These bugs are "
639 "fixed in glibc 2.9."
640 msgstr ""
641 "glibc 2.8 以前の 32 ビットプラットフォームでは、 B<CPU_ALLOC>() は必要な空間"
642 "の割り当てを二度行い、 B<CPU_ALLOC_SIZE>() は本来あるべき値の二倍の値を返"
643 "す。 このバグはプログラムの動作には影響を与えないはずだが、 無駄にメモリを消"
644 "費し、 動的に割り当てられた CPU 集合に対して操作を行うマクロの動作の効率が下"
645 "がる結果となる。 これらのバグは glibc 2.9 で修正された。"
646
647 #. type: SH
648 #: build/C/man3/CPU_SET.3:312 build/C/man2/clone.2:1073
649 #: build/C/man2/setns.2:112
650 #, no-wrap
651 msgid "EXAMPLE"
652 msgstr "例"
653
654 #. type: Plain text
655 #: build/C/man3/CPU_SET.3:315
656 msgid ""
657 "The following program demonstrates the use of some of the macros used for "
658 "dynamically allocated CPU sets."
659 msgstr ""
660 "以下のプログラムは、動的に割り当てた CPU 集合に対していくつかのマクロを使用す"
661 "る例を示している。"
662
663 #. type: Plain text
664 #: build/C/man3/CPU_SET.3:323
665 #, no-wrap
666 msgid ""
667 "#define _GNU_SOURCE\n"
668 "#include E<lt>sched.hE<gt>\n"
669 "#include E<lt>stdlib.hE<gt>\n"
670 "#include E<lt>unistd.hE<gt>\n"
671 "#include E<lt>stdio.hE<gt>\n"
672 "#include E<lt>assert.hE<gt>\n"
673 msgstr ""
674 "#define _GNU_SOURCE\n"
675 "#include E<lt>sched.hE<gt>\n"
676 "#include E<lt>stdlib.hE<gt>\n"
677 "#include E<lt>unistd.hE<gt>\n"
678 "#include E<lt>stdio.hE<gt>\n"
679 "#include E<lt>assert.hE<gt>\n"
680
681 #. type: Plain text
682 #: build/C/man3/CPU_SET.3:330
683 #, no-wrap
684 msgid ""
685 "int\n"
686 "main(int argc, char *argv[])\n"
687 "{\n"
688 "    cpu_set_t *cpusetp;\n"
689 "    size_t size;\n"
690 "    int num_cpus, cpu;\n"
691 msgstr ""
692 "int\n"
693 "main(int argc, char *argv[])\n"
694 "{\n"
695 "    cpu_set_t *cpusetp;\n"
696 "    size_t size;\n"
697 "    int num_cpus, cpu;\n"
698
699 #. type: Plain text
700 #: build/C/man3/CPU_SET.3:335
701 #, no-wrap
702 msgid ""
703 "    if (argc E<lt> 2) {\n"
704 "        fprintf(stderr, \"Usage: %s E<lt>num-cpusE<gt>\\en\", argv[0]);\n"
705 "        exit(EXIT_FAILURE);\n"
706 "    }\n"
707 msgstr ""
708 "    if (argc E<lt> 2) {\n"
709 "        fprintf(stderr, \"Usage: %s E<lt>num-cpusE<gt>\\en\", argv[0]);\n"
710 "        exit(EXIT_FAILURE);\n"
711 "    }\n"
712
713 #. type: Plain text
714 #: build/C/man3/CPU_SET.3:337
715 #, no-wrap
716 msgid "    num_cpus = atoi(argv[1]);\n"
717 msgstr "    num_cpus = atoi(argv[1]);\n"
718
719 #. type: Plain text
720 #: build/C/man3/CPU_SET.3:343
721 #, no-wrap
722 msgid ""
723 "    cpusetp = CPU_ALLOC(num_cpus);\n"
724 "    if (cpusetp == NULL) {\n"
725 "        perror(\"CPU_ALLOC\");\n"
726 "        exit(EXIT_FAILURE);\n"
727 "    }\n"
728 msgstr ""
729 "    cpusetp = CPU_ALLOC(num_cpus);\n"
730 "    if (cpusetp == NULL) {\n"
731 "        perror(\"CPU_ALLOC\");\n"
732 "        exit(EXIT_FAILURE);\n"
733 "    }\n"
734
735 #. type: Plain text
736 #: build/C/man3/CPU_SET.3:345
737 #, no-wrap
738 msgid "    size = CPU_ALLOC_SIZE(num_cpus);\n"
739 msgstr "    size = CPU_ALLOC_SIZE(num_cpus);\n"
740
741 #. type: Plain text
742 #: build/C/man3/CPU_SET.3:349
743 #, no-wrap
744 msgid ""
745 "    CPU_ZERO_S(size, cpusetp);\n"
746 "    for (cpu = 0; cpu E<lt> num_cpus; cpu += 2)\n"
747 "        CPU_SET_S(cpu, size, cpusetp);\n"
748 msgstr ""
749 "    CPU_ZERO_S(size, cpusetp);\n"
750 "    for (cpu = 0; cpu E<lt> num_cpus; cpu += 2)\n"
751 "        CPU_SET_S(cpu, size, cpusetp);\n"
752
753 #. type: Plain text
754 #: build/C/man3/CPU_SET.3:351
755 #, no-wrap
756 msgid "    printf(\"CPU_COUNT() of set:    %d\\en\", CPU_COUNT_S(size, cpusetp));\n"
757 msgstr "    printf(\"CPU_COUNT() of set:    %d\\en\", CPU_COUNT_S(size, cpusetp));\n"
758
759 #. type: Plain text
760 #: build/C/man3/CPU_SET.3:355
761 #, no-wrap
762 msgid ""
763 "    CPU_FREE(cpusetp);\n"
764 "    exit(EXIT_SUCCESS);\n"
765 "}\n"
766 msgstr ""
767 "    CPU_FREE(cpusetp);\n"
768 "    exit(EXIT_SUCCESS);\n"
769 "}\n"
770
771 #. type: SH
772 #: build/C/man3/CPU_SET.3:356 build/C/man2/clone.2:1170
773 #: build/C/man2/kcmp.2:222 build/C/man2/sched_get_priority_max.2:118
774 #: build/C/man3/sched_getcpu.3:95 build/C/man2/sched_rr_get_interval.2:132
775 #: build/C/man2/sched_setaffinity.2:214 build/C/man2/sched_setparam.2:118
776 #: build/C/man2/sched_setscheduler.2:539 build/C/man2/sched_yield.2:79
777 #: build/C/man2/setns.2:199 build/C/man2/unshare.2:266
778 #, no-wrap
779 msgid "SEE ALSO"
780 msgstr "関連項目"
781
782 #. type: Plain text
783 #: build/C/man3/CPU_SET.3:361
784 msgid ""
785 "B<sched_setaffinity>(2), B<pthread_attr_setaffinity_np>(3), "
786 "B<pthread_setaffinity_np>(3), B<cpuset>(7)"
787 msgstr ""
788 "B<sched_setaffinity>(2), B<pthread_attr_setaffinity_np>(3), "
789 "B<pthread_setaffinity_np>(3), B<cpuset>(7)"
790
791 #. type: SH
792 #: build/C/man3/CPU_SET.3:361 build/C/man2/clone.2:1184
793 #: build/C/man2/kcmp.2:225 build/C/man2/sched_get_priority_max.2:130
794 #: build/C/man3/sched_getcpu.3:97 build/C/man2/sched_rr_get_interval.2:138
795 #: build/C/man2/sched_setaffinity.2:233 build/C/man2/sched_setparam.2:134
796 #: build/C/man2/sched_setscheduler.2:567 build/C/man2/sched_yield.2:85
797 #: build/C/man2/setns.2:205 build/C/man2/unshare.2:275
798 #, no-wrap
799 msgid "COLOPHON"
800 msgstr "この文書について"
801
802 #. type: Plain text
803 #: build/C/man3/CPU_SET.3:368 build/C/man2/clone.2:1191
804 #: build/C/man2/kcmp.2:232 build/C/man2/sched_get_priority_max.2:137
805 #: build/C/man3/sched_getcpu.3:104 build/C/man2/sched_rr_get_interval.2:145
806 #: build/C/man2/sched_setaffinity.2:240 build/C/man2/sched_setparam.2:141
807 #: build/C/man2/sched_setscheduler.2:574 build/C/man2/sched_yield.2:92
808 #: build/C/man2/setns.2:212 build/C/man2/unshare.2:282
809 #, fuzzy
810 #| msgid ""
811 #| "This page is part of release 3.54 of the Linux I<man-pages> project.  A "
812 #| "description of the project, and information about reporting bugs, can be "
813 #| "found at \\%http://www.kernel.org/doc/man-pages/."
814 msgid ""
815 "This page is part of release 3.63 of the Linux I<man-pages> project.  A "
816 "description of the project, and information about reporting bugs, can be "
817 "found at \\%http://www.kernel.org/doc/man-pages/."
818 msgstr ""
819 "この man ページは Linux I<man-pages> プロジェクトのリリース 3.54 の一部\n"
820 "である。プロジェクトの説明とバグ報告に関する情報は\n"
821 "http://www.kernel.org/doc/man-pages/ に書かれている。"
822
823 #. type: TH
824 #: build/C/man2/clone.2:45
825 #, no-wrap
826 msgid "CLONE"
827 msgstr "CLONE"
828
829 #. type: TH
830 #: build/C/man2/clone.2:45
831 #, fuzzy, no-wrap
832 #| msgid "2013-02-12"
833 msgid "2014-02-27"
834 msgstr "2013-02-12"
835
836 #. type: Plain text
837 #: build/C/man2/clone.2:48
838 msgid "clone, __clone2 - create a child process"
839 msgstr "clone, __clone2 - 子プロセスを作成する"
840
841 #. type: Plain text
842 #: build/C/man2/clone.2:51
843 #, no-wrap
844 msgid "/* Prototype for the glibc wrapper function */\n"
845 msgstr "/* glibc ラッパー関数のプロトタイプ */\n"
846
847 #. type: Plain text
848 #: build/C/man2/clone.2:53 build/C/man3/sched_getcpu.3:32
849 #: build/C/man2/sched_setparam.2:36 build/C/man2/sched_setscheduler.2:53
850 #: build/C/man2/unshare.2:26
851 #, no-wrap
852 msgid "B<#include E<lt>sched.hE<gt>>\n"
853 msgstr "B<#include E<lt>sched.hE<gt>>\n"
854
855 #. type: Plain text
856 #: build/C/man2/clone.2:58
857 #, no-wrap
858 msgid ""
859 "B<int clone(int (*>I<fn>B<)(void *), void *>I<child_stack>B<,>\n"
860 "B<          int >I<flags>B<, void *>I<arg>B<, ... >\n"
861 "B<          /* pid_t *>I<ptid>B<, struct user_desc *>I<tls>B<, pid_t *>I<ctid>B< */ );>\n"
862 msgstr ""
863 "B<int clone(int (*>I<fn>B<)(void *), void *>I<child_stack>B<,>\n"
864 "B<          int >I<flags>B<, void *>I<arg>B<, ... >\n"
865 "B<          /* pid_t *>I<ptid>B<, struct user_desc *>I<tls>B<, pid_t *>I<ctid>B< */ );>\n"
866
867 #. type: Plain text
868 #: build/C/man2/clone.2:60
869 #, no-wrap
870 msgid "/* Prototype for the raw system call */\n"
871 msgstr "/* 素のシステムコールのプロトタイプ */\n"
872
873 #. type: Plain text
874 #: build/C/man2/clone.2:64
875 #, no-wrap
876 msgid ""
877 "B<long clone(unsigned long >I<flags>B<, void *>I<child_stack>B<,>\n"
878 "B<          void *>I<ptid>B<, void *>I<ctid>B<,>\n"
879 "B<          struct pt_regs *>I<regs>B<);>\n"
880 msgstr ""
881 "B<long clone(unsigned long >I<flags>B<, void *>I<child_stack>B<,>\n"
882 "B<          void *>I<ptid>B<, void *>I<ctid>B<,>\n"
883 "B<          struct pt_regs *>I<regs>B<);>\n"
884
885 #. type: Plain text
886 #: build/C/man2/clone.2:69
887 msgid ""
888 "Feature Test Macro Requirements for glibc wrapper function (see "
889 "B<feature_test_macros>(7)):"
890 msgstr ""
891 "glibc ラッパー関数の機能検査マクロの要件 (B<feature_test_macros>(7) 参照):"
892
893 #. type: Plain text
894 #: build/C/man2/clone.2:72
895 msgid "B<clone>():"
896 msgstr "B<clone>():"
897
898 #. type: TP
899 #: build/C/man2/clone.2:75 build/C/man3/sched_getcpu.3:45
900 #: build/C/man2/unshare.2:39
901 #, no-wrap
902 msgid "Since glibc 2.14:"
903 msgstr "glibc 2.14 以降:"
904
905 #. type: Plain text
906 #: build/C/man2/clone.2:78 build/C/man3/sched_getcpu.3:48
907 #: build/C/man2/unshare.2:42
908 msgid "_GNU_SOURCE"
909 msgstr "_GNU_SOURCE"
910
911 #.  See http://sources.redhat.com/bugzilla/show_bug.cgi?id=4749
912 #. type: TP
913 #: build/C/man2/clone.2:78 build/C/man3/sched_getcpu.3:48
914 #: build/C/man2/unshare.2:42
915 #, no-wrap
916 msgid "Before glibc 2.14:"
917 msgstr "glibc 2.14 より前:"
918
919 #. type: Plain text
920 #: build/C/man2/clone.2:83 build/C/man3/sched_getcpu.3:52
921 #: build/C/man2/unshare.2:47
922 #, no-wrap
923 msgid ""
924 "_BSD_SOURCE || _SVID_SOURCE\n"
925 "    /* _GNU_SOURCE also suffices */\n"
926 msgstr ""
927 "_BSD_SOURCE || _SVID_SOURCE\n"
928 "    /* _GNU_SOURCE も定義される */\n"
929
930 #. type: Plain text
931 #: build/C/man2/clone.2:90
932 msgid "B<clone>()  creates a new process, in a manner similar to B<fork>(2)."
933 msgstr "B<clone>() は、 B<fork>(2) と似た方法で新しいプロセスを作成する。"
934
935 #. type: Plain text
936 #: build/C/man2/clone.2:97
937 msgid ""
938 "This page describes both the glibc B<clone>()  wrapper function and the "
939 "underlying system call on which it is based.  The main text describes the "
940 "wrapper function; the differences for the raw system call are described "
941 "toward the end of this page."
942 msgstr ""
943 "このページでは、 glibc の B<clone>() ラッパー関数とその裏で呼ばれるシステム"
944 "コールの両方について説明している。 メインの説明はラッパー関数に関するものであ"
945 "る。 素のシステムコールにおける差分はこのページの最後の方で説明する。"
946
947 #. type: Plain text
948 #: build/C/man2/clone.2:109
949 msgid ""
950 "Unlike B<fork>(2), B<clone>()  allows the child process to share parts of "
951 "its execution context with the calling process, such as the memory space, "
952 "the table of file descriptors, and the table of signal handlers.  (Note that "
953 "on this manual page, \"calling process\" normally corresponds to \"parent "
954 "process\".  But see the description of B<CLONE_PARENT> below.)"
955 msgstr ""
956 "B<fork>(2) とは異なり、B<clone>() では、子プロセス (child process)  と呼び出"
957 "し元のプロセスとが、メモリ空間、ファイルディスクリプタのテーブル、シグナル・"
958 "ハンドラのテーブルなどの 実行コンテキストの一部を共有できる。 (このマニュアル"
959 "における「呼び出し元のプロセス」は、通常は 「親プロセス」と一致する。但し、後"
960 "述の B<CLONE_PARENT> の項も参照のこと)"
961
962 #. type: Plain text
963 #: build/C/man2/clone.2:114
964 msgid ""
965 "The main use of B<clone>()  is to implement threads: multiple threads of "
966 "control in a program that run concurrently in a shared memory space."
967 msgstr ""
968 "B<clone>()  の主要な使用法はスレッド (threads) を実装することである: 一つのプ"
969 "ログラムの中の複数のスレッドは共有されたメモリ空間で 同時に実行される。"
970
971 #. type: Plain text
972 #: build/C/man2/clone.2:134
973 msgid ""
974 "When the child process is created with B<clone>(), it executes the function "
975 "I<fn>(I<arg>).  (This differs from B<fork>(2), where execution continues in "
976 "the child from the point of the B<fork>(2)  call.)  The I<fn> argument is a "
977 "pointer to a function that is called by the child process at the beginning "
978 "of its execution.  The I<arg> argument is passed to the I<fn> function."
979 msgstr ""
980 "B<clone>()  で子プロセスが作成された時に、作成された子プロセスは関数 I<fn>"
981 "(I<arg>)  を実行する。 (この点が B<fork>(2)  とは異なる。 B<fork>(2)  の場"
982 "合、子プロセスは B<fork>(2)  が呼び出された場所から実行を続ける。)  I<fn> 引"
983 "き数は、子プロセスが実行を始める時に子プロセスが呼び出す 関数へのポインタであ"
984 "る。 I<arg> 引き数はそのまま I<fn> 関数へと渡される。"
985
986 #. type: Plain text
987 #: build/C/man2/clone.2:144
988 msgid ""
989 "When the I<fn>(I<arg>)  function application returns, the child process "
990 "terminates.  The integer returned by I<fn> is the exit code for the child "
991 "process.  The child process may also terminate explicitly by calling B<exit>"
992 "(2)  or after receiving a fatal signal."
993 msgstr ""
994 "I<fn>(I<arg>)  関数が終了すると、子プロセスは終了する。 I<fn> によって返され"
995 "た整数が子プロセスの終了コードとなる。 子プロセスは、 B<exit>(2)  を呼んで明"
996 "示的に終了することもあるし、致命的なシグナルを受信した 場合に終了することもあ"
997 "る。"
998
999 #. type: Plain text
1000 #: build/C/man2/clone.2:160
1001 msgid ""
1002 "The I<child_stack> argument specifies the location of the stack used by the "
1003 "child process.  Since the child and calling process may share memory, it is "
1004 "not possible for the child process to execute in the same stack as the "
1005 "calling process.  The calling process must therefore set up memory space for "
1006 "the child stack and pass a pointer to this space to B<clone>().  Stacks grow "
1007 "downward on all processors that run Linux (except the HP PA processors), so "
1008 "I<child_stack> usually points to the topmost address of the memory space set "
1009 "up for the child stack."
1010 msgstr ""
1011 "I<child_stack> 引き数は、子プロセスによって使用されるスタックの位置を指定す"
1012 "る。 子プロセスと呼び出し元のプロセスはメモリを共有することがあるため、 子プ"
1013 "ロセスは呼び出し元のプロセスと同じスタックで実行することができない。 このた"
1014 "め、呼び出し元のプロセスは子プロセスのスタックのためのメモリ空間を 用意して、"
1015 "この空間へのポインタを B<clone>()  へ渡さなければならない。 (HP PA プロセッサ"
1016 "以外の) Linux が動作する全てのプロセッサでは、 スタックは下方 (アドレスが小さ"
1017 "い方向) へと伸びる。このため、普通は I<child_stack> は子プロセスのスタックの"
1018 "ために用意したメモリ空間の一番大きい アドレスを指すようにする。"
1019
1020 #. type: Plain text
1021 #: build/C/man2/clone.2:176
1022 msgid ""
1023 "The low byte of I<flags> contains the number of the I<termination signal> "
1024 "sent to the parent when the child dies.  If this signal is specified as "
1025 "anything other than B<SIGCHLD>, then the parent process must specify the "
1026 "B<__WALL> or B<__WCLONE> options when waiting for the child with B<wait>"
1027 "(2).  If no signal is specified, then the parent process is not signaled "
1028 "when the child terminates."
1029 msgstr ""
1030 "I<flags> の下位 1 バイトは子プロセスが死んだ場合に親プロセスへと送られる I<終"
1031 "了シグナル (termination signal)> の番号を指定する。このシグナルとして "
1032 "B<SIGCHLD> 以外が指定された場合、親プロセスは、 B<wait>(2)  で子プロセスを待"
1033 "つ際に、オプションとして B<__WALL> または B<__WCLONE> を指定しなければならな"
1034 "い。 どのシグナルも指定されなかった場合、子プロセスが終了した時に親プロセス "
1035 "にシグナルは送られない。"
1036
1037 #. type: Plain text
1038 #: build/C/man2/clone.2:181
1039 msgid ""
1040 "I<flags> may also be bitwise-or'ed with zero or more of the following "
1041 "constants, in order to specify what is shared between the calling process "
1042 "and the child process:"
1043 msgstr ""
1044 "I<flags> には、以下の定数のうち 0個以上をビット毎の論理和 (bitwise-or)  を"
1045 "とったものを指定できる。これらの定数は呼び出し元のプロセスと 子プロセスの間で"
1046 "何を共有するかを指定する:"
1047
1048 #. type: TP
1049 #: build/C/man2/clone.2:181
1050 #, no-wrap
1051 msgid "B<CLONE_CHILD_CLEARTID> (since Linux 2.5.49)"
1052 msgstr "B<CLONE_CHILD_CLEARTID> (Linux 2.5.49 以降)"
1053
1054 #. type: Plain text
1055 #: build/C/man2/clone.2:191
1056 msgid ""
1057 "Erase child thread ID at location I<ctid> in child memory when the child "
1058 "exits, and do a wakeup on the futex at that address.  The address involved "
1059 "may be changed by the B<set_tid_address>(2)  system call.  This is used by "
1060 "threading libraries."
1061 msgstr ""
1062 "子プロセスが終了したときに子プロセスのメモリ内の I<ctid> が指す場所にある子プ"
1063 "ロセスのスレッド ID を消去し、 そのアドレスで futex を wake (起床) させる。 "
1064 "このアドレスは B<set_tid_address>(2)  システムコールで変更することができる。 "
1065 "この機能はスレッドライブラリで使用される。"
1066
1067 #. type: TP
1068 #: build/C/man2/clone.2:191
1069 #, no-wrap
1070 msgid "B<CLONE_CHILD_SETTID> (since Linux 2.5.49)"
1071 msgstr "B<CLONE_CHILD_SETTID> (Linux 2.5.49 以降)"
1072
1073 #. type: Plain text
1074 #: build/C/man2/clone.2:196
1075 msgid "Store child thread ID at location I<ctid> in child memory."
1076 msgstr ""
1077 "子プロセスのメモリ内の I<ctid> が指す場所に子プロセスのスレッド ID を格納す"
1078 "る。"
1079
1080 #. type: TP
1081 #: build/C/man2/clone.2:196
1082 #, no-wrap
1083 msgid "B<CLONE_FILES> (since Linux 2.0)"
1084 msgstr "B<CLONE_FILES> (Linux 2.0 以降)"
1085
1086 #. type: Plain text
1087 #: build/C/man2/clone.2:209
1088 msgid ""
1089 "If B<CLONE_FILES> is set, the calling process and the child process share "
1090 "the same file descriptor table.  Any file descriptor created by the calling "
1091 "process or by the child process is also valid in the other process.  "
1092 "Similarly, if one of the processes closes a file descriptor, or changes its "
1093 "associated flags (using the B<fcntl>(2)  B<F_SETFD> operation), the other "
1094 "process is also affected."
1095 msgstr ""
1096 "B<CLONE_FILES> が設定された場合、呼び出し元のプロセスと子プロセスはファイル"
1097 "ディスクリプタの テーブルを共有する。 呼び出し元プロセスとその子プロセスの一"
1098 "方が作成した ファイルディスクリプタは、もう一方においても有効である。 同じよ"
1099 "うに、一方のプロセスがファイルディスクリプタを閉じたり、 (B<fcntl>(2)  "
1100 "B<F_SETFD> 操作を使って) ディスクリプタに関連するフラグを変更したりすると、 "
1101 "もう一方のプロセスにも影響する。"
1102
1103 #. type: Plain text
1104 #: build/C/man2/clone.2:223
1105 msgid ""
1106 "If B<CLONE_FILES> is not set, the child process inherits a copy of all file "
1107 "descriptors opened in the calling process at the time of B<clone>().  (The "
1108 "duplicated file descriptors in the child refer to the same open file "
1109 "descriptions (see B<open>(2))  as the corresponding file descriptors in the "
1110 "calling process.)  Subsequent operations that open or close file "
1111 "descriptors, or change file descriptor flags, performed by either the "
1112 "calling process or the child process do not affect the other process."
1113 msgstr ""
1114 "B<CLONE_FILES> が設定されていない場合、子プロセスは、 B<clone>()  が実行され"
1115 "た時点で、呼び出し元のプロセスがオープンしている全ての ファイルディスクリプタ"
1116 "のコピーを継承する (子プロセスの複製されたファイルディスクリプタは、 対応する"
1117 "呼び出し元のプロセスのファイルディスクリプタと 同じファイル記述 (B<open>(2)  "
1118 "参照) を参照する)。 これ以降に、呼び出し元のプロセスと子プロセスの一方が ファ"
1119 "イルディスクリプタの操作 (ファイルディスクリプタの オープン・クローズや、ファ"
1120 "イルディスクリプタ・フラグの変更)  を行っても、もう一方のプロセスには影響を与"
1121 "えない。"
1122
1123 #. type: TP
1124 #: build/C/man2/clone.2:223
1125 #, no-wrap
1126 msgid "B<CLONE_FS> (since Linux 2.0)"
1127 msgstr "B<CLONE_FS> (Linux 2.0 以降)"
1128
1129 #. type: Plain text
1130 #: build/C/man2/clone.2:238
1131 msgid ""
1132 "If B<CLONE_FS> is set, the caller and the child process share the same "
1133 "filesystem information.  This includes the root of the filesystem, the "
1134 "current working directory, and the umask.  Any call to B<chroot>(2), B<chdir>"
1135 "(2), or B<umask>(2)  performed by the calling process or the child process "
1136 "also affects the other process."
1137 msgstr ""
1138 "B<CLONE_FS> が設定された場合、呼び出し元のプロセスと子プロセスが同じファイ"
1139 "ル・システム 情報を共有する。ファイル・システム情報は、ファイル・システムの"
1140 "ルート (root)、 カレント・ワーキング・ディレクトリ (current working "
1141 "directory)  や umask などである。 呼び出し元のプロセスや子プロセスのどちらか"
1142 "一方によって B<chroot>(2), B<chdir>(2), B<umask>(2)  が呼び出されると、もう一"
1143 "方のプロセスにも影響が及ぶ。"
1144
1145 #. type: Plain text
1146 #: build/C/man2/clone.2:250
1147 msgid ""
1148 "If B<CLONE_FS> is not set, the child process works on a copy of the "
1149 "filesystem information of the calling process at the time of the B<clone>()  "
1150 "call.  Calls to B<chroot>(2), B<chdir>(2), B<umask>(2)  performed later by "
1151 "one of the processes do not affect the other process."
1152 msgstr ""
1153 "B<CLONE_FS> が設定されていない場合、子プロセスは、 B<clone>()  が実行された時"
1154 "点での、呼び出し元のプロセスのファイル・システム情報のコピーを 使用する。 こ"
1155 "れ以降は、呼び出し元のプロセスと子プロセスの一方が B<chroot>(2), B<chdir>"
1156 "(2), B<umask>(2)  を呼び出しても、もう一方のプロセスには影響を与えない。"
1157
1158 #. type: TP
1159 #: build/C/man2/clone.2:250
1160 #, no-wrap
1161 msgid "B<CLONE_IO> (since Linux 2.6.25)"
1162 msgstr "B<CLONE_IO> (Linux 2.6.25 以降)"
1163
1164 #. type: Plain text
1165 #: build/C/man2/clone.2:259
1166 msgid ""
1167 "If B<CLONE_IO> is set, then the new process shares an I/O context with the "
1168 "calling process.  If this flag is not set, then (as with B<fork>(2))  the "
1169 "new process has its own I/O context."
1170 msgstr ""
1171 "B<CLONE_IO> が設定された場合、新しいプロセスは呼び出し元のプロセスと I/O コン"
1172 "テキストを共有する。 このフラグが設定されていない場合には、 (B<fork>(2)  の場"
1173 "合と同様) 新しいプロセスは自分専用の I/O コンテキストを持つ。"
1174
1175 #.  The following based on text from Jens Axboe
1176 #.  the anticipatory and CFQ scheduler
1177 #.  with CFQ and AS.
1178 #. type: Plain text
1179 #: build/C/man2/clone.2:276
1180 msgid ""
1181 "The I/O context is the I/O scope of the disk scheduler (i.e, what the I/O "
1182 "scheduler uses to model scheduling of a process's I/O).  If processes share "
1183 "the same I/O context, they are treated as one by the I/O scheduler.  As a "
1184 "consequence, they get to share disk time.  For some I/O schedulers, if two "
1185 "processes share an I/O context, they will be allowed to interleave their "
1186 "disk access.  If several threads are doing I/O on behalf of the same process "
1187 "(B<aio_read>(3), for instance), they should employ B<CLONE_IO> to get better "
1188 "I/O performance."
1189 msgstr ""
1190 "I/O コンテキストは、ディスクスケジュールの I/O スコープである (言い換えると、"
1191 "I/O コンテキストは I/O スケジューラがプロセス I/O の スケジューリングをモデル"
1192 "化するのに使用される)。 複数のプロセスが同じ I/O コンテキストを共有する場"
1193 "合、 これらのプロセスは I/O スケジューラからは一つとして扱われる。 結果とし"
1194 "て、これらのプロセスはディスクアクセスの時間を共有するようになる。 いくつか"
1195 "の I/O スケジューラでは、 二つのプロセスが I/O コンテキストを共有している場"
1196 "合、 これらのプロセスはディスクアクセスを交互に行うことができる。 同じプロセ"
1197 "スの複数のスレッドが I/O を実行している場合 (例えば B<aio_read>(3))、 "
1198 "B<CLONE_IO> を利用することで I/O 性能を良くすることができる。"
1199
1200 #. type: Plain text
1201 #: build/C/man2/clone.2:280
1202 msgid ""
1203 "If the kernel is not configured with the B<CONFIG_BLOCK> option, this flag "
1204 "is a no-op."
1205 msgstr ""
1206 "カーネルの設定が B<CONFIG_BLOCK> オプション付きでない場合、 このフラグは何の"
1207 "意味も持たない。"
1208
1209 #. type: TP
1210 #: build/C/man2/clone.2:280 build/C/man2/unshare.2:96
1211 #, no-wrap
1212 msgid "B<CLONE_NEWIPC> (since Linux 2.6.19)"
1213 msgstr "B<CLONE_NEWIPC> (Linux 2.6.19 以降)"
1214
1215 #. type: Plain text
1216 #: build/C/man2/clone.2:290
1217 msgid ""
1218 "If B<CLONE_NEWIPC> is set, then create the process in a new IPC namespace.  "
1219 "If this flag is not set, then (as with B<fork>(2)), the process is created "
1220 "in the same IPC namespace as the calling process.  This flag is intended for "
1221 "the implementation of containers."
1222 msgstr ""
1223 "B<CLONE_NEWIPC> が設定された場合、新しい IPC 名前空間 (namespace) でプロセス"
1224 "を作成する。 このフラグが設定されていない場合、 (B<fork>(2)  の場合と同様) 呼"
1225 "び出し元のプロセスと同じ IPC 名前空間でプロセスが 作成される。 このフラグは、"
1226 "コンテナの実装での使用を意図して用意されたものである。"
1227
1228 #.  commit 7eafd7c74c3f2e67c27621b987b28397110d643f
1229 #.  https://lwn.net/Articles/312232/
1230 #. type: Plain text
1231 #: build/C/man2/clone.2:302
1232 msgid ""
1233 "An IPC namespace provides an isolated view of System V IPC objects (see "
1234 "B<svipc>(7))  and (since Linux 2.6.30)  POSIX message queues (see "
1235 "B<mq_overview>(7)).  The common characteristic of these IPC mechanisms is "
1236 "that IPC objects are identified by mechanisms other than filesystem "
1237 "pathnames."
1238 msgstr ""
1239 "IPC 名前空間は、独立の System V IPC オブジェクト空間 (B<svipc>(7) 参照) を提"
1240 "供する 。 (Linux 2.6.30 以降では) 独立した POSIX メッセージキュー空間 "
1241 "(B<mq_overview>(7) 参照) も提供される。 これらの IPC 機構に共通の特徴とし"
1242 "て、 IPC オブジェクトはファイルシステムのパス名とは違った仕組みで識別されると"
1243 "いう点がある。"
1244
1245 #. type: Plain text
1246 #: build/C/man2/clone.2:306
1247 msgid ""
1248 "Objects created in an IPC namespace are visible to all other processes that "
1249 "are members of that namespace, but are not visible to processes in other IPC "
1250 "namespaces."
1251 msgstr ""
1252 "ある IPC 名前空間に作成されたオブジェクトは、 その名前空間のメンバーである他"
1253 "のすべてのプロセスからも見えるが、 違う IPC 名前空間のプロセスからは見えな"
1254 "い。"
1255
1256 #. type: Plain text
1257 #: build/C/man2/clone.2:310
1258 msgid ""
1259 "When an IPC namespace is destroyed (i.e., when the last process that is a "
1260 "member of the namespace terminates), all IPC objects in the namespace are "
1261 "automatically destroyed."
1262 msgstr ""
1263 "IPC 名前空間が破棄される時 (すなわち、その名前空間のメンバーの最後のプロセス"
1264 "が終了する時)、 その名前空間の全ての IPC オブジェクトは自動的に破棄される。"
1265
1266 #. type: Plain text
1267 #: build/C/man2/clone.2:319
1268 msgid ""
1269 "Use of this flag requires: a kernel configured with the B<CONFIG_SYSVIPC> "
1270 "and B<CONFIG_IPC_NS> options and that the process be privileged "
1271 "(B<CAP_SYS_ADMIN>).  This flag can't be specified in conjunction with "
1272 "B<CLONE_SYSVSEM>."
1273 msgstr ""
1274 "このフラグを使用するためには、 カーネルでオプション B<CONFIG_SYSVIPC> と "
1275 "B<CONFIG_IPC_NS> を有効になっていること、 プロセスが特権 (B<CAP_SYS_ADMIN>)  "
1276 "を持っていることが必要である。 このフラグは B<CLONE_SYSVSEM> と組み合わせて使"
1277 "うことはできない。"
1278
1279 #. type: TP
1280 #: build/C/man2/clone.2:319 build/C/man2/unshare.2:113
1281 #, no-wrap
1282 msgid "B<CLONE_NEWNET> (since Linux 2.6.24)"
1283 msgstr "B<CLONE_NEWNET> (Linux 2.6.24 以降)"
1284
1285 #.  FIXME Check when the implementation was completed
1286 #. type: Plain text
1287 #: build/C/man2/clone.2:324
1288 msgid ""
1289 "(The implementation of this flag was completed only by about kernel version "
1290 "2.6.29.)"
1291 msgstr "(このフラグの実装は、Linux 2.6.29 あたりまでには完成した。)"
1292
1293 #. type: Plain text
1294 #: build/C/man2/clone.2:333
1295 msgid ""
1296 "If B<CLONE_NEWNET> is set, then create the process in a new network "
1297 "namespace.  If this flag is not set, then (as with B<fork>(2)), the process "
1298 "is created in the same network namespace as the calling process.  This flag "
1299 "is intended for the implementation of containers."
1300 msgstr ""
1301 "B<CLONE_NEWNET> が設定された場合、新しいネットワーク名前空間 (network "
1302 "namaspace)  でプロセスを作成する。 このフラグが設定されていない場合、 "
1303 "(B<fork>(2)  の場合と同様) 呼び出し元のプロセスと同じネットワーク名前空間でプ"
1304 "ロセスが 作成される。 このフラグは、コンテナの実装での使用を意図して用意され"
1305 "たものである。"
1306
1307 #.  FIXME Add pointer to veth(4) page when it is eventually completed
1308 #. type: Plain text
1309 #: build/C/man2/clone.2:348
1310 msgid ""
1311 "A network namespace provides an isolated view of the networking stack "
1312 "(network device interfaces, IPv4 and IPv6 protocol stacks, IP routing "
1313 "tables, firewall rules, the I</proc/net> and I</sys/class/net> directory "
1314 "trees, sockets, etc.).  A physical network device can live in exactly one "
1315 "network namespace.  A virtual network device (\"veth\") pair provides a pipe-"
1316 "like abstraction that can be used to create tunnels between network "
1317 "namespaces, and can be used to create a bridge to a physical network device "
1318 "in another namespace."
1319 msgstr ""
1320 "ネットワーク名前空間は、分離されたネットワークスタックを提供するものである "
1321 "(ネットワークスタックとは、 ネットワークデバイスインタフェース、IPv4 や IPv6 "
1322 "プロトコルスタック、 I</proc/net>、 I</sys/class/net> ディレクトリツリー、ソ"
1323 "ケットなどである)。 物理ネットワークデバイスが所属できるネットワーク名前空間"
1324 "は一つだけである。 仮想ネットワークデバイス (\"veth\") のペアにより パイプ風"
1325 "の抽象化 (abstraction) が実現されており、 これを使うことで、ネットワーク名前"
1326 "空間間のトンネルを作成したり、 別の名前空間の物理ネットワークデバイスへのブ"
1327 "リッジを作成したり することができる。"
1328
1329 #. type: Plain text
1330 #: build/C/man2/clone.2:353
1331 msgid ""
1332 "When a network namespace is freed (i.e., when the last process in the "
1333 "namespace terminates), its physical network devices are moved back to the "
1334 "initial network namespace (not to the parent of the process)."
1335 msgstr ""
1336 "ネットワーク名前空間が解放される時 (すなわち、その名前空間の最後のプロセスが"
1337 "終了する時)、 物理ネットワークデバイスは初期ネットワーク名前空間 (initial "
1338 "network namespace) に戻される (親プロセスのネットワーク名前空間に戻される訳で"
1339 "はない)。"
1340
1341 #. type: Plain text
1342 #: build/C/man2/clone.2:358
1343 msgid ""
1344 "Use of this flag requires: a kernel configured with the B<CONFIG_NET_NS> "
1345 "option and that the process be privileged (B<CAP_SYS_ADMIN>)."
1346 msgstr ""
1347 "このフラグを使用するためには、 カーネルでオプション B<CONFIG_NET_NS> を有効に"
1348 "なっていること、 プロセスが特権 (B<CAP_SYS_ADMIN>)  を持っていることが必要で"
1349 "ある。"
1350
1351 #. type: TP
1352 #: build/C/man2/clone.2:358
1353 #, no-wrap
1354 msgid "B<CLONE_NEWNS> (since Linux 2.4.19)"
1355 msgstr "B<CLONE_NEWNS> (Linux 2.4.19 以降)"
1356
1357 #. type: Plain text
1358 #: build/C/man2/clone.2:361
1359 msgid "Start the child in a new mount namespace."
1360 msgstr "子プロセスを新しいマウント名前空間 (mount namespace) で開始する。"
1361
1362 #. type: Plain text
1363 #: build/C/man2/clone.2:382
1364 msgid ""
1365 "Every process lives in a mount namespace.  The I<namespace> of a process is "
1366 "the data (the set of mounts) describing the file hierarchy as seen by that "
1367 "process.  After a B<fork>(2)  or B<clone>()  where the B<CLONE_NEWNS> flag "
1368 "is not set, the child lives in the same mount namespace as the parent.  The "
1369 "system calls B<mount>(2)  and B<umount>(2)  change the mount namespace of "
1370 "the calling process, and hence affect all processes that live in the same "
1371 "namespace, but do not affect processes in a different mount namespace."
1372 msgstr ""
1373 "各プロセスはある一つのマウント名前空間中に存在する。プロセスの I<名前空間 "
1374 "(namespace)> は、そのプロセスから見えるファイル階層を表すデータ (mount の集"
1375 "合) である。 B<CLONE_NEWNS> フラグがセットされずに B<fork>(2)  か B<clone>"
1376 "()  が呼ばれると、子プロセスは親プロセスと同じマウント名前空間に作成される。 "
1377 "システムコール B<mount>(2)、 B<umount>(2)  が呼ばれると呼び出し元のプロセスの"
1378 "マウント名前空間が変更され、この結果 呼び出し元のプロセスと同じ名前空間にいる"
1379 "プロセスはすべて影響を受けるが、 異なるマウント名前空間にいるプロセスは影響を"
1380 "受けない。"
1381
1382 #. type: Plain text
1383 #: build/C/man2/clone.2:389
1384 msgid ""
1385 "After a B<clone>()  where the B<CLONE_NEWNS> flag is set, the cloned child "
1386 "is started in a new mount namespace, initialized with a copy of the "
1387 "namespace of the parent."
1388 msgstr ""
1389 "B<CLONE_NEWNS> フラグがセットされて B<clone>()  が呼ばれると、clone で作成さ"
1390 "れた子プロセスは新しいマウント名前空間で 開始される。新しい名前空間は親プロセ"
1391 "スの名前空間のコピーで初期化される。"
1392
1393 #. type: Plain text
1394 #: build/C/man2/clone.2:401
1395 msgid ""
1396 "Only a privileged process (one having the B<CAP_SYS_ADMIN> capability)  may "
1397 "specify the B<CLONE_NEWNS> flag.  It is not permitted to specify both "
1398 "B<CLONE_NEWNS> and B<CLONE_FS> in the same B<clone>()  call."
1399 msgstr ""
1400 "特権プロセス (B<CAP_SYS_ADMIN> ケーパビリティを持つプロセス) のみが "
1401 "B<CLONE_NEWNS> フラグを指定することができる。 一つの B<clone>()  呼び出し"
1402 "で、 B<CLONE_NEWNS> と B<CLONE_FS> の両方を指定することはできない。"
1403
1404 #. type: TP
1405 #: build/C/man2/clone.2:401
1406 #, no-wrap
1407 msgid "B<CLONE_NEWPID> (since Linux 2.6.24)"
1408 msgstr "B<CLONE_NEWPID> (Linux 2.6.24 以降)"
1409
1410 #.  This explanation draws a lot of details from
1411 #.  http://lwn.net/Articles/259217/
1412 #.  Authors: Pavel Emelyanov <xemul@openvz.org>
1413 #.  and Kir Kolyshkin <kir@openvz.org>
1414 #.  The primary kernel commit is 30e49c263e36341b60b735cbef5ca37912549264
1415 #.  Author: Pavel Emelyanov <xemul@openvz.org>
1416 #. type: Plain text
1417 #: build/C/man2/clone.2:418
1418 msgid ""
1419 "If B<CLONE_NEWPID> is set, then create the process in a new PID namespace.  "
1420 "If this flag is not set, then (as with B<fork>(2)), the process is created "
1421 "in the same PID namespace as the calling process.  This flag is intended for "
1422 "the implementation of containers."
1423 msgstr ""
1424 "B<CLONE_NEWPID> が設定された場合、新しい PID 名前空間でプロセスを作成する。 "
1425 "このフラグが設定されていない場合、 (B<fork>(2)  の場合と同様) 呼び出し元のプ"
1426 "ロセスと同じ PID 名前空間で プロセスが作成される。 このフラグは、コンテナの実"
1427 "装での使用を意図して用意されたものである。"
1428
1429 #. type: Plain text
1430 #: build/C/man2/clone.2:427
1431 msgid ""
1432 "A PID namespace provides an isolated environment for PIDs: PIDs in a new "
1433 "namespace start at 1, somewhat like a standalone system, and calls to B<fork>"
1434 "(2), B<vfork>(2), or B<clone>()  will produce processes with PIDs that are "
1435 "unique within the namespace."
1436 msgstr ""
1437 "PID 名前空間は、PID に関して分離された環境を提供するものである。 新しい名前空"
1438 "間における PID は 1 から始まり (これはスタンドアロンのシステムと似たような感"
1439 "じ)、 B<fork>(2), B<vfork>(2), B<clone>()  を呼び出すと、その名前空間で一意"
1440 "な PID を持ったプロセスが作成される。"
1441
1442 #. type: Plain text
1443 #: build/C/man2/clone.2:439
1444 msgid ""
1445 "The first process created in a new namespace (i.e., the process created "
1446 "using the B<CLONE_NEWPID> flag) has the PID 1, and is the \"init\" process "
1447 "for the namespace.  Children that are orphaned within the namespace will be "
1448 "reparented to this process rather than B<init>(8).  Unlike the traditional "
1449 "B<init> process, the \"init\" process of a PID namespace can terminate, and "
1450 "if it does, all of the processes in the namespace are terminated."
1451 msgstr ""
1452 "新しい名前空間で作成される最初のプロセス (つまり、 B<CLONE_NEWPID> フラグを"
1453 "使って作成されたプロセス) の PID は 1 であり、 このプロセスはその名前空間にお"
1454 "ける \"init\" プロセスとなる。 この名前空間において孤児 (orphaned) となった子"
1455 "プロセスについては、 B<init>(8)  ではなくこのプロセスが親プロセスとなる。 昔"
1456 "ながらの B<init> プロセスとは違い、PID 名前空間の \"init\" プロセスは終了 "
1457 "(terminated) する ことができ、その場合には、この名前空間の全てのプロセスが終"
1458 "了される。"
1459
1460 #. type: Plain text
1461 #: build/C/man2/clone.2:458
1462 msgid ""
1463 "PID namespaces form a hierarchy.  When a new PID namespace is created, the "
1464 "processes in that namespace are visible in the PID namespace of the process "
1465 "that created the new namespace; analogously, if the parent PID namespace is "
1466 "itself the child of another PID namespace, then processes in the child and "
1467 "parent PID namespaces will both be visible in the grandparent PID "
1468 "namespace.  Conversely, the processes in the \"child\" PID namespace do not "
1469 "see the processes in the parent namespace.  The existence of a namespace "
1470 "hierarchy means that each process may now have multiple PIDs: one for each "
1471 "namespace in which it is visible; each of these PIDs is unique within the "
1472 "corresponding namespace.  (A call to B<getpid>(2)  always returns the PID "
1473 "associated with the namespace in which the process lives.)"
1474 msgstr ""
1475 "PID 名前空間間には階層構造が形成される。 新しい PID 名前空間が作成されると、"
1476 "その名前空間のプロセスは、 新しい名前空間を作成したプロセスの PID 名前空間で"
1477 "見える。 同様に、親の PID 名前空間自体が別の PID 名前空間の子供の場合には、 "
1478 "子供の PID 名前空間と親の PID 名前空間のプロセスはどれも 親の親の PID 名前空"
1479 "間でも見えることになる。 反対に、「子供」の PID 名前空間のプロセスには、 親の"
1480 "名前空間のプロセスは見えない。 名前空間に階層構造が存在するということは、個々"
1481 "のプロセスは 複数の PID を持つということを意味している。 そのプロセスが見える"
1482 "名前空間一つにつき PID が一つあり、 それぞれの PID は対応する名前空間において"
1483 "一意である。 (B<getpid>(2)  を呼び出すと、常にそのプロセスが存在している名前"
1484 "空間における PID が返される。)"
1485
1486 #.  mount -t proc proc /proc
1487 #. type: Plain text
1488 #: build/C/man2/clone.2:474
1489 msgid ""
1490 "After creating the new namespace, it is useful for the child to change its "
1491 "root directory and mount a new procfs instance at I</proc> so that tools "
1492 "such as B<ps>(1)  work correctly.  (If B<CLONE_NEWNS> is also included in "
1493 "I<flags>, then it isn't necessary to change the root directory: a new procfs "
1494 "instance can be mounted directly over I</proc>.)"
1495 msgstr ""
1496 "新しい名前空間の作成後には、 子プロセスにおいて、 B<ps>(1)  といったツールが"
1497 "正しく動作するように、 自身の root ディレクトリを変更し、 I</proc> に新しい "
1498 "procfs インスタンスをマウントするのがよいだろう。 (B<flags> に "
1499 "B<CLONE_NEWNS> も指定されていた場合には、root ディレクトリを変更する必要はな"
1500 "く、 いきなり新しい procfs インスタンスを I</proc> にマウントすることができ"
1501 "る。)"
1502
1503 #. type: Plain text
1504 #: build/C/man2/clone.2:481
1505 msgid ""
1506 "Use of this flag requires: a kernel configured with the B<CONFIG_PID_NS> "
1507 "option and that the process be privileged (B<CAP_SYS_ADMIN>).  This flag "
1508 "can't be specified in conjunction with B<CLONE_THREAD>."
1509 msgstr ""
1510 "このフラグを使用するためには、 カーネルでオプション B<CONFIG_PID_NS> を有効に"
1511 "なっていること、 プロセスが特権 (B<CAP_SYS_ADMIN>)  を持っていることが必要で"
1512 "ある。 このフラグは B<CLONE_THREAD> と組み合わせて使うことはできない。"
1513
1514 #. type: TP
1515 #: build/C/man2/clone.2:481 build/C/man2/unshare.2:149
1516 #, no-wrap
1517 msgid "B<CLONE_NEWUTS> (since Linux 2.6.19)"
1518 msgstr "B<CLONE_NEWUTS> (Linux 2.6.19 以降)"
1519
1520 #. type: Plain text
1521 #: build/C/man2/clone.2:493
1522 msgid ""
1523 "If B<CLONE_NEWUTS> is set, then create the process in a new UTS namespace, "
1524 "whose identifiers are initialized by duplicating the identifiers from the "
1525 "UTS namespace of the calling process.  If this flag is not set, then (as "
1526 "with B<fork>(2)), the process is created in the same UTS namespace as the "
1527 "calling process.  This flag is intended for the implementation of containers."
1528 msgstr ""
1529 "B<CLONE_NEWUTS> が設定された場合、新しい UTS 名前空間でプロセスを作成する。 "
1530 "新しい UTS 名前空間の識別子の初期値は、呼び出し元のプロセスの UTS 名前空間の"
1531 "識別子を複製したものとなる。 このフラグが設定されていない場合、 (B<fork>(2)  "
1532 "の場合と同様) 呼び出し元のプロセスと同じ UTS 名前空間で プロセスが作成され"
1533 "る。 このフラグは、コンテナの実装での使用を意図して用意されたものである。"
1534
1535 #. type: Plain text
1536 #: build/C/man2/clone.2:504
1537 #, fuzzy
1538 #| msgid ""
1539 #| "A UTS namespace is the set of identifiers returned by B<uname>(2); among "
1540 #| "these, the domain name and the host name can be modified by "
1541 #| "B<setdomainname>(2)  and B<sethostname>(2), respectively.  Changes made "
1542 #| "to the identifiers in a UTS namespace are visible to all other processes "
1543 #| "in the same namespace, but are not visible to processes in other UTS "
1544 #| "namespaces."
1545 msgid ""
1546 "A UTS namespace is the set of identifiers returned by B<uname>(2); among "
1547 "these, the domain name and the hostname can be modified by B<setdomainname>"
1548 "(2)  and B<sethostname>(2), respectively.  Changes made to the identifiers "
1549 "in a UTS namespace are visible to all other processes in the same namespace, "
1550 "but are not visible to processes in other UTS namespaces."
1551 msgstr ""
1552 "UTS 名前空間は、 B<uname>(2)  が返す識別子の集合である。 識別子としてはドメイ"
1553 "ン名とホスト名があり、 それぞれ B<setdomainname>(2), B<sethostname>(2)  で修"
1554 "正することができる。 ある UTS 名前空間における識別子の変更は同じ名前空間の他"
1555 "のすべての プロセスに見えるが、別の UTS 名前空間のプロセスには見えない。"
1556
1557 #. type: Plain text
1558 #: build/C/man2/clone.2:509
1559 msgid ""
1560 "Use of this flag requires: a kernel configured with the B<CONFIG_UTS_NS> "
1561 "option and that the process be privileged (B<CAP_SYS_ADMIN>)."
1562 msgstr ""
1563 "このフラグを使用するためには、 カーネルでオプション B<CONFIG_UTS_NS> を有効に"
1564 "なっていること、 プロセスが特権 (B<CAP_SYS_ADMIN>)  を持っていることが必要で"
1565 "ある。"
1566
1567 #. type: TP
1568 #: build/C/man2/clone.2:509
1569 #, no-wrap
1570 msgid "B<CLONE_PARENT> (since Linux 2.3.12)"
1571 msgstr "B<CLONE_PARENT> (Linux 2.3.12 以降)"
1572
1573 #. type: Plain text
1574 #: build/C/man2/clone.2:516
1575 msgid ""
1576 "If B<CLONE_PARENT> is set, then the parent of the new child (as returned by "
1577 "B<getppid>(2))  will be the same as that of the calling process."
1578 msgstr ""
1579 "B<CLONE_PARENT> が設定された場合、新しい子供の (B<getppid>(2)  で返される) 親"
1580 "プロセスは呼び出し元のプロセスの親プロセスと同じになる。"
1581
1582 #. type: Plain text
1583 #: build/C/man2/clone.2:522
1584 msgid ""
1585 "If B<CLONE_PARENT> is not set, then (as with B<fork>(2))  the child's parent "
1586 "is the calling process."
1587 msgstr ""
1588 "B<CLONE_PARENT> が設定されていない場合、 (B<fork>(2)  と同様に) 呼び出し元の"
1589 "プロセスがその子供の親になる。"
1590
1591 #. type: Plain text
1592 #: build/C/man2/clone.2:530
1593 msgid ""
1594 "Note that it is the parent process, as returned by B<getppid>(2), which is "
1595 "signaled when the child terminates, so that if B<CLONE_PARENT> is set, then "
1596 "the parent of the calling process, rather than the calling process itself, "
1597 "will be signaled."
1598 msgstr ""
1599 "子供が終了した時にシグナルが送られるのは B<getppid>(2)  が返す親プロセスであ"
1600 "る点に注意すること。このため B<CLONE_PARENT> が設定された場合、呼び出し元のプ"
1601 "ロセスではなく呼び出し元のプロセスの 親プロセスにシグナルが送られる。"
1602
1603 #. type: TP
1604 #: build/C/man2/clone.2:530
1605 #, no-wrap
1606 msgid "B<CLONE_PARENT_SETTID> (since Linux 2.5.49)"
1607 msgstr "B<CLONE_PARENT_SETTID> (Linux 2.5.49 以降)"
1608
1609 #. type: Plain text
1610 #: build/C/man2/clone.2:538
1611 msgid ""
1612 "Store child thread ID at location I<ptid> in parent and child memory.  (In "
1613 "Linux 2.5.32-2.5.48 there was a flag B<CLONE_SETTID> that did this.)"
1614 msgstr ""
1615 "親プロセスと子プロセスのメモリ内の I<ptid> が指す領域に子プロセスのスレッド "
1616 "ID を格納する。 (Linux 2.5.32-2.5.48 では、 同じことをする B<CLONE_SETTID> と"
1617 "いうフラグが存在した。)"
1618
1619 #. type: TP
1620 #: build/C/man2/clone.2:538
1621 #, no-wrap
1622 msgid "B<CLONE_PID> (obsolete)"
1623 msgstr "B<CLONE_PID> (廃止予定)"
1624
1625 #. type: Plain text
1626 #: build/C/man2/clone.2:549
1627 msgid ""
1628 "If B<CLONE_PID> is set, the child process is created with the same process "
1629 "ID as the calling process.  This is good for hacking the system, but "
1630 "otherwise of not much use.  Since 2.3.21 this flag can be specified only by "
1631 "the system boot process (PID 0).  It disappeared in Linux 2.5.16."
1632 msgstr ""
1633 "B<CLONE_PID> が設定された場合、子プロセスは呼び出し元のプロセスと同じプロセ"
1634 "ス ID で作成される。これはシステムをハッキングするのには便利だが、 それ以外に"
1635 "はあまり使われない。 Linux 2.3.21 以降では、 システムのブートプロセス (PID "
1636 "0) だけがこのフラグを指定できる。 Linux 2.5.16 で削除された。"
1637
1638 #. type: TP
1639 #: build/C/man2/clone.2:549
1640 #, no-wrap
1641 msgid "B<CLONE_PTRACE> (since Linux 2.2)"
1642 msgstr "B<CLONE_PTRACE> (Linux 2.2 以降)"
1643
1644 #. type: Plain text
1645 #: build/C/man2/clone.2:556
1646 msgid ""
1647 "If B<CLONE_PTRACE> is specified, and the calling process is being traced, "
1648 "then trace the child also (see B<ptrace>(2))."
1649 msgstr ""
1650 "B<CLONE_PTRACE> が指定され、かつ呼び出し元のプロセスが追跡 (trace) されていた"
1651 "場合、子プロセスも 同様に追跡される。 (B<ptrace>(2)  を参照のこと)"
1652
1653 #. type: TP
1654 #: build/C/man2/clone.2:556
1655 #, no-wrap
1656 msgid "B<CLONE_SETTLS> (since Linux 2.5.32)"
1657 msgstr "B<CLONE_SETTLS> (Linux 2.5.32 以降)"
1658
1659 #. type: Plain text
1660 #: build/C/man2/clone.2:563
1661 msgid ""
1662 "The I<newtls> argument is the new TLS (Thread Local Storage) descriptor.  "
1663 "(See B<set_thread_area>(2).)"
1664 msgstr ""
1665 "I<newtls> 引き数は、新しい TLS (Thread Local Storage) ディスクリプタである。 "
1666 "(B<set_thread_area>(2)  を参照のこと)"
1667
1668 #. type: TP
1669 #: build/C/man2/clone.2:563
1670 #, no-wrap
1671 msgid "B<CLONE_SIGHAND> (since Linux 2.0)"
1672 msgstr "B<CLONE_SIGHAND> (Linux 2.0 以降)"
1673
1674 #. type: Plain text
1675 #: build/C/man2/clone.2:579
1676 msgid ""
1677 "If B<CLONE_SIGHAND> is set, the calling process and the child process share "
1678 "the same table of signal handlers.  If the calling process or child process "
1679 "calls B<sigaction>(2)  to change the behavior associated with a signal, the "
1680 "behavior is changed in the other process as well.  However, the calling "
1681 "process and child processes still have distinct signal masks and sets of "
1682 "pending signals.  So, one of them may block or unblock some signals using "
1683 "B<sigprocmask>(2)  without affecting the other process."
1684 msgstr ""
1685 "B<CLONE_SIGHAND> が設定された場合、呼び出し元のプロセスと子プロセスは同じシグ"
1686 "ナル・ハン ドラのテーブルを共有する。呼び出し元のプロセスまたは子プロセスのど"
1687 "ちらかが B<sigaction>(2)  を呼び出してシグナルに対応する動作を変更した場合、 "
1688 "もう一方のプロセスのシグナル動作も変更される。 但し、呼び出し元のプロセスと子"
1689 "プロセスは、 プロセス毎に、シグナル・マスク (signal mask) と処理待ちシグナル"
1690 "の集合 を持っている。このため、あるプロセスは、 B<sigprocmask>(2)  を使用し"
1691 "て、もう一方のプロセスに影響を与えずに シグナルを禁止 (block) したり許可 "
1692 "(unblock) したりできる。"
1693
1694 #. type: Plain text
1695 #: build/C/man2/clone.2:590
1696 msgid ""
1697 "If B<CLONE_SIGHAND> is not set, the child process inherits a copy of the "
1698 "signal handlers of the calling process at the time B<clone>()  is called.  "
1699 "Calls to B<sigaction>(2)  performed later by one of the processes have no "
1700 "effect on the other process."
1701 msgstr ""
1702 "B<CLONE_SIGHAND> が設定されていない場合、子プロセスは B<clone>()  が実行され"
1703 "た時点での、呼び出し元のプロセスのシグナル・ハンドラの コピーを継承する。これ"
1704 "以降は、一方のプロセスが B<sigaction>(2)  を呼び出しても、もう一方のプロセス"
1705 "には影響を与えない。"
1706
1707 #. type: Plain text
1708 #: build/C/man2/clone.2:598
1709 msgid ""
1710 "Since Linux 2.6.0-test6, I<flags> must also include B<CLONE_VM> if "
1711 "B<CLONE_SIGHAND> is specified"
1712 msgstr ""
1713 "Linux 2.6.0-test6 以降では、 B<CLONE_SIGHAND> を指定する場合、 B<CLONE_VM> "
1714 "も I<flags> に含めなければならない。"
1715
1716 #. type: TP
1717 #: build/C/man2/clone.2:598
1718 #, no-wrap
1719 msgid "B<CLONE_STOPPED> (since Linux 2.6.0-test2)"
1720 msgstr "B<CLONE_STOPPED> (Linux 2.6.0-test2 以降)"
1721
1722 #. type: Plain text
1723 #: build/C/man2/clone.2:607
1724 msgid ""
1725 "If B<CLONE_STOPPED> is set, then the child is initially stopped (as though "
1726 "it was sent a B<SIGSTOP> signal), and must be resumed by sending it a "
1727 "B<SIGCONT> signal."
1728 msgstr ""
1729 "B<CLONE_STOPPED> が設定されると、子プロセスは最初 (B<SIGSTOP> シグナルを送ら"
1730 "れたかのように) 停止した状態となる。 子プロセスを再開させるには B<SIGCONT> シ"
1731 "グナルを送信しなければならない。"
1732
1733 #.  glibc 2.8 removed this defn from bits/sched.h
1734 #. type: Plain text
1735 #: build/C/man2/clone.2:615
1736 msgid ""
1737 "This flag was I<deprecated> from Linux 2.6.25 onward, and was I<removed> "
1738 "altogether in Linux 2.6.38."
1739 msgstr ""
1740 "このフラグは Linux 2.6.25 以降ではI<非推奨>であり、\n"
1741 "Linux 2.6.38 で完全にI<削除>された。"
1742
1743 #. type: TP
1744 #: build/C/man2/clone.2:615
1745 #, no-wrap
1746 msgid "B<CLONE_SYSVSEM> (since Linux 2.5.10)"
1747 msgstr "B<CLONE_SYSVSEM> (Linux 2.5.10 以降)"
1748
1749 #. type: Plain text
1750 #: build/C/man2/clone.2:624
1751 msgid ""
1752 "If B<CLONE_SYSVSEM> is set, then the child and the calling process share a "
1753 "single list of System V semaphore undo values (see B<semop>(2)).  If this "
1754 "flag is not set, then the child has a separate undo list, which is initially "
1755 "empty."
1756 msgstr ""
1757 "B<CLONE_SYSVSEM> がセットされると、子プロセスと呼び出し元プロセスは一つの "
1758 "System V セマフォのアンドゥ値リスト (B<semop>(2)  参照) を共有する。このフラ"
1759 "グがセットされていなければ、 子プロセスは独自のアンドゥリストを持つ (リストの"
1760 "初期値は空である)。"
1761
1762 #. type: TP
1763 #: build/C/man2/clone.2:624
1764 #, no-wrap
1765 msgid "B<CLONE_THREAD> (since Linux 2.4.0-test8)"
1766 msgstr "B<CLONE_THREAD> (Linux 2.4.0-test8以降)"
1767
1768 #. type: Plain text
1769 #: build/C/man2/clone.2:633
1770 msgid ""
1771 "If B<CLONE_THREAD> is set, the child is placed in the same thread group as "
1772 "the calling process.  To make the remainder of the discussion of "
1773 "B<CLONE_THREAD> more readable, the term \"thread\" is used to refer to the "
1774 "processes within a thread group."
1775 msgstr ""
1776 "B<CLONE_THREAD> が設定された場合、子プロセスは呼び出し元のプロセスと同じス"
1777 "レッド・グループに 置かれる。 B<CLONE_THREAD> についての以降の議論を読みやす"
1778 "くするため、 「スレッド」という用語はスレッド・グループの中のプロセスを 参照"
1779 "するのに使うこととする。"
1780
1781 #. type: Plain text
1782 #: build/C/man2/clone.2:641
1783 msgid ""
1784 "Thread groups were a feature added in Linux 2.4 to support the POSIX threads "
1785 "notion of a set of threads that share a single PID.  Internally, this shared "
1786 "PID is the so-called thread group identifier (TGID) for the thread group.  "
1787 "Since Linux 2.4, calls to B<getpid>(2)  return the TGID of the caller."
1788 msgstr ""
1789 "スレッド・グループは、 スレッド集合で一つの PID を共有するという POSIX スレッ"
1790 "ドの概念をサポートするために Linux 2.4 に加えられた機能であった。 内部的に"
1791 "は、この共有 PID はいわゆるそのスレッドグループの スレッド・グループ識別子 "
1792 "(TGID) である。 Linux 2.4 以降では、 B<getpid>(2)  の呼び出しではそのプロセス"
1793 "のスレッド・グループ ID を返す。"
1794
1795 #. type: Plain text
1796 #: build/C/man2/clone.2:650
1797 msgid ""
1798 "The threads within a group can be distinguished by their (system-wide)  "
1799 "unique thread IDs (TID).  A new thread's TID is available as the function "
1800 "result returned to the caller of B<clone>(), and a thread can obtain its own "
1801 "TID using B<gettid>(2)."
1802 msgstr ""
1803 "あるグループに属するスレッドは (システム全体で) 一意なスレッド ID (TID)  で区"
1804 "別できる。新しいスレッドの TID は B<clone>()  の呼び出し元へ関数の結果として"
1805 "返され、 スレッドは自分自身の TID を B<gettid>(2)  で取得できる。"
1806
1807 #. type: Plain text
1808 #: build/C/man2/clone.2:660
1809 msgid ""
1810 "When a call is made to B<clone>()  without specifying B<CLONE_THREAD>, then "
1811 "the resulting thread is placed in a new thread group whose TGID is the same "
1812 "as the thread's TID.  This thread is the I<leader> of the new thread group."
1813 msgstr ""
1814 "B<CLONE_THREAD> を指定せずに B<clone>()  の呼び出しが行われると、 生成された"
1815 "スレッドはそのスレッドの TID と同じ値の TGID を持つ 新しいスレッド・グループ"
1816 "に置かれる。このスレッドは 新しいスレッド・グループの「リーダー」である。"
1817
1818 #. type: Plain text
1819 #: build/C/man2/clone.2:682
1820 msgid ""
1821 "A new thread created with B<CLONE_THREAD> has the same parent process as the "
1822 "caller of B<clone>()  (i.e., like B<CLONE_PARENT>), so that calls to "
1823 "B<getppid>(2)  return the same value for all of the threads in a thread "
1824 "group.  When a B<CLONE_THREAD> thread terminates, the thread that created it "
1825 "using B<clone>()  is not sent a B<SIGCHLD> (or other termination) signal; "
1826 "nor can the status of such a thread be obtained using B<wait>(2).  (The "
1827 "thread is said to be I<detached>.)"
1828 msgstr ""
1829 "B<CLONE_THREAD> を指定して作成された新しいスレッドは、 (B<CLONE_PARENT> の場"
1830 "合と同様に)  B<clone>()  を呼び出し元と同じ親プロセスを持つ。 そのため、 "
1831 "B<getppid>(2)  を呼ぶと、一つのスレッド・グループに属すスレッドは全て同じ値を"
1832 "返す。 B<CLONE_THREAD> で作られたスレッドが終了した際に、 そのスレッドを "
1833 "B<clone>()  を使って生成したスレッドには B<SIGCHLD> (もしくは他の終了シグナ"
1834 "ル) は送信されない。 また、 B<wait>(2)  を使って終了したスレッドの状態を取得"
1835 "することもできない (そのようなスレッドは I<detached> (分離された) といわれ"
1836 "る)。"
1837
1838 #. type: Plain text
1839 #: build/C/man2/clone.2:687
1840 msgid ""
1841 "After all of the threads in a thread group terminate the parent process of "
1842 "the thread group is sent a B<SIGCHLD> (or other termination) signal."
1843 msgstr ""
1844 "スレッド・グループに属す全てのスレッドが終了した後、 そのスレッド・グループの"
1845 "親プロセスに B<SIGCHLD> (もしくは他の終了シグナル) が送られる。"
1846
1847 #. type: Plain text
1848 #: build/C/man2/clone.2:692
1849 msgid ""
1850 "If any of the threads in a thread group performs an B<execve>(2), then all "
1851 "threads other than the thread group leader are terminated, and the new "
1852 "program is executed in the thread group leader."
1853 msgstr ""
1854 "スレッド・グループに属すいずれかのスレッドが B<execve>(2)  を実行すると、ス"
1855 "レッド・グループ・リーダー以外の全てのスレッドは 終了され、新しいプロセスがそ"
1856 "のスレッド・グループ・リーダーの下で 実行される。"
1857
1858 #. type: Plain text
1859 #: build/C/man2/clone.2:698
1860 msgid ""
1861 "If one of the threads in a thread group creates a child using B<fork>(2), "
1862 "then any thread in the group can B<wait>(2)  for that child."
1863 msgstr ""
1864 "スレッド・グループに属すスレッドの一つが B<fork>(2)  を使って子プロセスを作成"
1865 "した場合、 スレッド・グループのどのスレッドであっても その子供を B<wait>(2)  "
1866 "できる。"
1867
1868 #. type: Plain text
1869 #: build/C/man2/clone.2:711
1870 #, fuzzy
1871 #| msgid ""
1872 #| "Since Linux 2.5.35, I<flags> must also include B<CLONE_SIGHAND> if "
1873 #| "B<CLONE_THREAD> is specified."
1874 msgid ""
1875 "Since Linux 2.5.35, I<flags> must also include B<CLONE_SIGHAND> if "
1876 "B<CLONE_THREAD> is specified (and note that, since Linux 2.6.0-test6, "
1877 "B<CLONE_SIGHAND> also requires B<CLONE_VM> to be included)."
1878 msgstr ""
1879 "Linux 2.5.35 以降では、 B<CLONE_THREAD> を指定する場合、 I<flags> に "
1880 "B<CLONE_SIGHAND> も含まれていなければならない。"
1881
1882 #. type: Plain text
1883 #: build/C/man2/clone.2:716
1884 msgid ""
1885 "Signals may be sent to a thread group as a whole (i.e., a TGID) using B<kill>"
1886 "(2), or to a specific thread (i.e., TID) using B<tgkill>(2)."
1887 msgstr ""
1888 "B<kill>(2)  を使ってスレッド・グループ全体 (つまり TGID) にシグナルを送ること"
1889 "もできれば、 B<tgkill>(2)  を使って特定のスレッド (つまり TID) にシグナルを送"
1890 "ることもできる。"
1891
1892 #. type: Plain text
1893 #: build/C/man2/clone.2:721
1894 msgid ""
1895 "Signal dispositions and actions are process-wide: if an unhandled signal is "
1896 "delivered to a thread, then it will affect (terminate, stop, continue, be "
1897 "ignored in)  all members of the thread group."
1898 msgstr ""
1899 "シグナルの配送と処理はプロセス全体に影響する: ハンドラを設定していないシグナ"
1900 "ルがあるスレッドに配送されると、 そのシグナルはスレッド・グループの全メンバー"
1901 "に影響を及ぼす (終了したり、停止したり、動作を継続したり、無視されたりする)。"
1902
1903 #. type: Plain text
1904 #: build/C/man2/clone.2:734
1905 msgid ""
1906 "Each thread has its own signal mask, as set by B<sigprocmask>(2), but "
1907 "signals can be pending either: for the whole process (i.e., deliverable to "
1908 "any member of the thread group), when sent with B<kill>(2); or for an "
1909 "individual thread, when sent with B<tgkill>(2).  A call to B<sigpending>(2)  "
1910 "returns a signal set that is the union of the signals pending for the whole "
1911 "process and the signals that are pending for the calling thread."
1912 msgstr ""
1913 "各々のスレッドは独自のシグナルマスクを持っており、 B<sigprocmask>(2)  で設定"
1914 "できる。 だが、処理待ちのシグナルには、 B<kill>(2)  で送信されるプロセス全体"
1915 "に対するもの (つまり、スレッド・グループの どのメンバーにも配送できるもの) "
1916 "と、 B<tgkill>(2)  で送信される個々のスレッドに対するものがありえる。 "
1917 "B<sigpending>(2)  を呼び出すと、プロセス全体に対する処理待ちシグナルと呼び出"
1918 "し元の スレッドに対する処理待ちシグナルを結合したシグナル集合が返される。"
1919
1920 #. type: Plain text
1921 #: build/C/man2/clone.2:746
1922 msgid ""
1923 "If B<kill>(2)  is used to send a signal to a thread group, and the thread "
1924 "group has installed a handler for the signal, then the handler will be "
1925 "invoked in exactly one, arbitrarily selected member of the thread group that "
1926 "has not blocked the signal.  If multiple threads in a group are waiting to "
1927 "accept the same signal using B<sigwaitinfo>(2), the kernel will arbitrarily "
1928 "select one of these threads to receive a signal sent using B<kill>(2)."
1929 msgstr ""
1930 "B<kill>(2)  を使ってスレッド・グループにシグナルが送られた場合で、 そのスレッ"
1931 "ド・グループがそのシグナルに対するシグナル・ハンドラが 登録されていたときに"
1932 "は、シグナル・ハンドラはスレッド・グループの メンバーのうち、ただ一つのスレッ"
1933 "ドでだけ起動される。ハンドラが 起動されるスレッドは、そのシグナルを禁止 "
1934 "(block) していない メンバーの中から一つだけが勝手に (arbitrarily) 選ばれる。 "
1935 "スレッド・グループに属す複数のスレッドが B<sigwaitinfo>(2)  を使って同じシグ"
1936 "ナルを待っている場合、 これらのスレッドの中から一つをカーネルが勝手に選択"
1937 "し、 そのスレッドが B<kill (2)> を使って送信されたシグナルを受信する。"
1938
1939 #. type: TP
1940 #: build/C/man2/clone.2:746
1941 #, no-wrap
1942 msgid "B<CLONE_UNTRACED> (since Linux 2.5.46)"
1943 msgstr "B<CLONE_UNTRACED> (Linux 2.5.46 以降)"
1944
1945 #. type: Plain text
1946 #: build/C/man2/clone.2:753
1947 msgid ""
1948 "If B<CLONE_UNTRACED> is specified, then a tracing process cannot force "
1949 "B<CLONE_PTRACE> on this child process."
1950 msgstr ""
1951 "B<CLONE_UNTRACED> が指定されると、 trace を行っているプロセスは この子プロセ"
1952 "スに B<CLONE_PTRACE> を適用することができない。"
1953
1954 #. type: TP
1955 #: build/C/man2/clone.2:753
1956 #, no-wrap
1957 msgid "B<CLONE_VFORK> (since Linux 2.2)"
1958 msgstr "B<CLONE_VFORK> (Linux 2.2 以降)"
1959
1960 #. type: Plain text
1961 #: build/C/man2/clone.2:765
1962 msgid ""
1963 "If B<CLONE_VFORK> is set, the execution of the calling process is suspended "
1964 "until the child releases its virtual memory resources via a call to B<execve>"
1965 "(2)  or B<_exit>(2)  (as with B<vfork>(2))."
1966 msgstr ""
1967 "B<CLONE_VFORK> が設定された場合、 (B<vfork>(2)  と同様に) 子プロセスが "
1968 "B<execve>(2)  または B<_exit>(2)  によって仮想メモリを解放するまで、呼び出し"
1969 "元のプロセスの実行は停止される。"
1970
1971 #. type: Plain text
1972 #: build/C/man2/clone.2:771
1973 msgid ""
1974 "If B<CLONE_VFORK> is not set then both the calling process and the child are "
1975 "schedulable after the call, and an application should not rely on execution "
1976 "occurring in any particular order."
1977 msgstr ""
1978 "B<CLONE_VFORK> が設定されていない場合、 B<clone>()  呼び出し後は、呼び出し元"
1979 "のプロセスと子プロセスの 両方がスケジュール対象となり、アプリケーションはこれ"
1980 "らのプロセスの 実行順序に依存しないようにすべきである。"
1981
1982 #. type: TP
1983 #: build/C/man2/clone.2:771
1984 #, no-wrap
1985 msgid "B<CLONE_VM> (since Linux 2.0)"
1986 msgstr "B<CLONE_VM> (Linux 2.0 以降)"
1987
1988 #. type: Plain text
1989 #: build/C/man2/clone.2:784
1990 msgid ""
1991 "If B<CLONE_VM> is set, the calling process and the child process run in the "
1992 "same memory space.  In particular, memory writes performed by the calling "
1993 "process or by the child process are also visible in the other process.  "
1994 "Moreover, any memory mapping or unmapping performed with B<mmap>(2)  or "
1995 "B<munmap>(2)  by the child or calling process also affects the other process."
1996 msgstr ""
1997 "B<CLONE_VM> が設定された場合、呼び出し元のプロセスと子プロセスは同じメモリ空"
1998 "間で 実行される。特に、呼び出し元のプロセスや子プロセスの一方がメモリに 書き"
1999 "込んだ内容はもう一方のプロセスからも見ることができる。さらに、 子プロセスや呼"
2000 "び出し元のプロセスの一方が B<mmap>(2)  や B<munmap>(2)  を使ってメモリをマッ"
2001 "プしたりアンマップした場合、 もう一方のプロセスにも影響が及ぶ。"
2002
2003 #. type: Plain text
2004 #: build/C/man2/clone.2:793
2005 msgid ""
2006 "If B<CLONE_VM> is not set, the child process runs in a separate copy of the "
2007 "memory space of the calling process at the time of B<clone>().  Memory "
2008 "writes or file mappings/unmappings performed by one of the processes do not "
2009 "affect the other, as with B<fork>(2)."
2010 msgstr ""
2011 "B<CLONE_VM> が設定されていない場合、子プロセスは B<clone>()  が実行された時点"
2012 "での、親プロセスのメモリ空間をコピーした 別のメモリ空間で実行される。 一方の"
2013 "プロセスが行ったメモリへの書き込みや ファイルのマップ/アンマップは、 B<fork>"
2014 "(2)  の場合と同様、もう一方のプロセスには影響しない。"
2015
2016 #. type: SS
2017 #: build/C/man2/clone.2:793
2018 #, no-wrap
2019 msgid "The raw system call interface"
2020 msgstr "素のシステムコールのインターフェース"
2021
2022 #. type: Plain text
2023 #: build/C/man2/clone.2:809
2024 msgid ""
2025 "The raw B<clone>()  system call corresponds more closely to B<fork>(2)  in "
2026 "that execution in the child continues from the point of the call.  As such, "
2027 "the I<fn> and I<arg> arguments of the B<clone>()  wrapper function are "
2028 "omitted.  Furthermore, the argument order changes.  The raw system call "
2029 "interface on x86 and many other architectures is roughly:"
2030 msgstr ""
2031 "素の B<clone> システムコールは、より B<fork>(2) に近いかたちになっており、 子"
2032 "プロセスの実行が呼び出しが行われた場所から続けられる。 そのため、 B<clone>() "
2033 "ラッパー関数の引き数 I<fn> と I<arg> は省略される。 また、 引き数の順序も違っ"
2034 "ている。 x86 と他の多くのアーキテクチャにおける、 素のシステムコールのイン"
2035 "ターフェースは、 おおまかには次のようになっている。"
2036
2037 #. type: Plain text
2038 #: build/C/man2/clone.2:815
2039 #, no-wrap
2040 msgid ""
2041 "B<long clone(unsigned long >I<flags>B<, void *>I<child_stack>B<,>\n"
2042 "B<           void *>I<ptid>B<, void *>I<ctid>B<,>\n"
2043 "B<           struct pt_regs *>I<regs>B<);>\n"
2044 msgstr ""
2045 "B<long clone(unsigned long >I<flags>B<, void *>I<child_stack>B<,>\n"
2046 "B<           void *>I<ptid>B<, void *>I<ctid>B<,>\n"
2047 "B<           struct pt_regs *>I<regs>B<);>\n"
2048
2049 #. type: Plain text
2050 #: build/C/man2/clone.2:826
2051 msgid ""
2052 "Another difference for the raw system call is that the I<child_stack> "
2053 "argument may be zero, in which case copy-on-write semantics ensure that the "
2054 "child gets separate copies of stack pages when either process modifies the "
2055 "stack.  In this case, for correct operation, the B<CLONE_VM> option should "
2056 "not be specified."
2057 msgstr ""
2058 "生のシステムコールのもう一つの違いは、 I<child_stack> 引き数がゼロでも良いこ"
2059 "とである。この場合には、どちらかのプロセスが スタックを変更した時に、書き込み"
2060 "時コピー (copy-on-write) 方式により 子プロセスがスタック・ページの独立したコ"
2061 "ピーを得られることが保証される。 この場合、正常に動作させるためには、 "
2062 "B<CLONE_VM> オプションを指定してはならない。"
2063
2064 #. type: Plain text
2065 #: build/C/man2/clone.2:834
2066 msgid ""
2067 "For some architectures, the order of the arguments for the system call "
2068 "differs from that shown above.  On the score, microblaze, ARM, ARM 64, PA-"
2069 "RISC, arc, Power PC, xtensa, and MIPS architectures, the order of the fourth "
2070 "and fifth arguments is reversed.  On the cris and s390 architectures, the "
2071 "order of the first and second arguments is reversed."
2072 msgstr ""
2073 "いくつかのアーキテクチャでは、システムコールの引き数の順序は上記とは異なって"
2074 "いる。 microblaze, ARM, ARM 64, PA-RISC, arc, Power PC, xtensa, MIPS アーキテ"
2075 "クチャでは、 4 番目と 5 番目の引き数の順番が逆である。 cris と s390 アーキテ"
2076 "クチャでは、最初と 2 番目の引き数の順番が逆である。"
2077
2078 #. type: SS
2079 #: build/C/man2/clone.2:834
2080 #, no-wrap
2081 msgid "blackfin, m68k, and sparc"
2082 msgstr "blackfin, m68k, sparc"
2083
2084 #. type: Plain text
2085 #: build/C/man2/clone.2:838
2086 msgid ""
2087 "The argument-passing conventions on blackfin, m68k, and sparc are different "
2088 "from descriptions above.  For details, see the kernel (and glibc) source."
2089 msgstr ""
2090 "blackfin, m68k, sparc では引き数渡しの規約が上記の説明とは異なる。 詳細は、"
2091 "カーネル (と glibc) のソースを参照のこと。"
2092
2093 #. type: SS
2094 #: build/C/man2/clone.2:838
2095 #, no-wrap
2096 msgid "ia64"
2097 msgstr "ia64"
2098
2099 #. type: Plain text
2100 #: build/C/man2/clone.2:840
2101 msgid "On ia64, a different interface is used:"
2102 msgstr "ia64 では、別のインターフェースが使用される:"
2103
2104 #. type: Plain text
2105 #: build/C/man2/clone.2:847
2106 #, no-wrap
2107 msgid ""
2108 "B<int __clone2(int (*>I<fn>B<)(void *), >\n"
2109 "B<             void *>I<child_stack_base>B<, size_t >I<stack_size>B<,>\n"
2110 "B<             int >I<flags>B<, void *>I<arg>B<, ... >\n"
2111 "B<          /* pid_t *>I<ptid>B<, struct user_desc *>I<tls>B<, pid_t *>I<ctid>B< */ );>\n"
2112 msgstr ""
2113 "B<int __clone2(int (*>I<fn>B<)(void *), >\n"
2114 "B<             void *>I<child_stack_base>B<, size_t >I<stack_size>B<,>\n"
2115 "B<             int >I<flags>B<, void *>I<arg>B<, ... >\n"
2116 "B<          /* pid_t *>I<ptid>B<, struct user_desc *>I<tls>B<, pid_t *>I<ctid>B< */ );>\n"
2117
2118 #. type: Plain text
2119 #: build/C/man2/clone.2:859
2120 msgid ""
2121 "The prototype shown above is for the glibc wrapper function; the raw system "
2122 "call interface has no I<fn> or I<arg> argument, and changes the order of the "
2123 "arguments so that I<flags> is the first argument, and I<tls> is the last "
2124 "argument."
2125 msgstr ""
2126 "上記のプロトタイプは glibc ラッパー関数用のものである。 素のシステムコールの"
2127 "インターフェースには引き数 I<fn> と I<arg> がない。 また、引き数の順序が変わ"
2128 "り、 I<flags> が最初の引き数で、 I<tls> が最後の引き数である。"
2129
2130 #. type: Plain text
2131 #: build/C/man2/clone.2:870
2132 msgid ""
2133 "B<__clone2>()  operates in the same way as B<clone>(), except that "
2134 "I<child_stack_base> points to the lowest address of the child's stack area, "
2135 "and I<stack_size> specifies the size of the stack pointed to by "
2136 "I<child_stack_base>."
2137 msgstr ""
2138 "B<__clone2>() は B<clone>() と同じように動作するが、以下の点が異なる: "
2139 "I<child_stack_base> は子プロセスのスタックエリアの最小のアドレスを指し、 "
2140 "I<stack_size> は I<child_stack_base> が指し示すスタックエリアの大きさを示す。"
2141
2142 #. type: SS
2143 #: build/C/man2/clone.2:870
2144 #, no-wrap
2145 msgid "Linux 2.4 and earlier"
2146 msgstr "Linux 2.4 以前"
2147
2148 #. type: Plain text
2149 #: build/C/man2/clone.2:878
2150 msgid ""
2151 "In Linux 2.4 and earlier, B<clone>()  does not take arguments I<ptid>, "
2152 "I<tls>, and I<ctid>."
2153 msgstr ""
2154 "Linux 2.4 以前では、 B<clone>()  は引き数 I<ptid>, I<tls>, I<ctid> を取らな"
2155 "い。"
2156
2157 #.  gettid(2) returns current->pid;
2158 #.  getpid(2) returns current->tgid;
2159 #. type: Plain text
2160 #: build/C/man2/clone.2:887
2161 msgid ""
2162 "On success, the thread ID of the child process is returned in the caller's "
2163 "thread of execution.  On failure, -1 is returned in the caller's context, no "
2164 "child process will be created, and I<errno> will be set appropriately."
2165 msgstr ""
2166 "成功した場合、呼び出し元の実行スレッドには子プロセスのスレッドID が返され"
2167 "る。 失敗した場合、 呼び出し元のコンテキストには -1 が返され、子プロセスは 作"
2168 "成されず、 I<errno> が適切に設定される。"
2169
2170 #. type: SH
2171 #: build/C/man2/clone.2:887 build/C/man2/kcmp.2:170
2172 #: build/C/man2/sched_get_priority_max.2:110 build/C/man3/sched_getcpu.3:65
2173 #: build/C/man2/sched_rr_get_interval.2:80
2174 #: build/C/man2/sched_setaffinity.2:116 build/C/man2/sched_setparam.2:96
2175 #: build/C/man2/sched_setscheduler.2:433 build/C/man2/sched_yield.2:48
2176 #: build/C/man2/setns.2:77 build/C/man2/unshare.2:212
2177 #, no-wrap
2178 msgid "ERRORS"
2179 msgstr "エラー"
2180
2181 #. type: TP
2182 #: build/C/man2/clone.2:888
2183 #, no-wrap
2184 msgid "B<EAGAIN>"
2185 msgstr "B<EAGAIN>"
2186
2187 #. type: Plain text
2188 #: build/C/man2/clone.2:891
2189 msgid "Too many processes are already running."
2190 msgstr "すでに実行中のプロセスが多すぎる。"
2191
2192 #. type: TP
2193 #: build/C/man2/clone.2:891 build/C/man2/clone.2:898 build/C/man2/clone.2:913
2194 #: build/C/man2/clone.2:921 build/C/man2/clone.2:929 build/C/man2/clone.2:937
2195 #: build/C/man2/clone.2:943 build/C/man2/clone.2:953 build/C/man2/clone.2:961
2196 #: build/C/man2/clone.2:969 build/C/man2/kcmp.2:181
2197 #: build/C/man2/sched_get_priority_max.2:111
2198 #: build/C/man2/sched_rr_get_interval.2:84
2199 #: build/C/man2/sched_setaffinity.2:120 build/C/man2/sched_setaffinity.2:128
2200 #: build/C/man2/sched_setparam.2:97 build/C/man2/sched_setscheduler.2:434
2201 #: build/C/man2/setns.2:82 build/C/man2/unshare.2:213
2202 #, no-wrap
2203 msgid "B<EINVAL>"
2204 msgstr "B<EINVAL>"
2205
2206 #. type: Plain text
2207 #: build/C/man2/clone.2:898
2208 msgid ""
2209 "B<CLONE_SIGHAND> was specified, but B<CLONE_VM> was not.  (Since Linux 2.6.0-"
2210 "test6.)"
2211 msgstr ""
2212 "B<CLONE_SIGHAND> が指定されていたが、 B<CLONE_VM> が指定されていなかった。 "
2213 "(Linux 2.6.0-test6 以降)"
2214
2215 #.  .TP
2216 #.  .B EINVAL
2217 #.  Precisely one of
2218 #.  .B CLONE_DETACHED
2219 #.  and
2220 #.  .B CLONE_THREAD
2221 #.  was specified.
2222 #.  (Since Linux 2.6.0-test6.)
2223 #. type: Plain text
2224 #: build/C/man2/clone.2:913
2225 msgid ""
2226 "B<CLONE_THREAD> was specified, but B<CLONE_SIGHAND> was not.  (Since Linux "
2227 "2.5.35.)"
2228 msgstr ""
2229 "B<CLONE_THREAD> が指定されていたが、 B<CLONE_SIGHAND> が指定されていなかっ"
2230 "た。 (Linux 2.5.35 以降)"
2231
2232 #. type: Plain text
2233 #: build/C/man2/clone.2:921
2234 msgid "Both B<CLONE_FS> and B<CLONE_NEWNS> were specified in I<flags>."
2235 msgstr "B<CLONE_FS> と B<CLONE_NEWNS> の両方が I<flags> に指定された。"
2236
2237 #. type: Plain text
2238 #: build/C/man2/clone.2:929
2239 msgid "Both B<CLONE_NEWIPC> and B<CLONE_SYSVSEM> were specified in I<flags>."
2240 msgstr "B<CLONE_NEWIPC> と B<CLONE_SYSVSEM> の両方が I<flags> に指定された。"
2241
2242 #. type: Plain text
2243 #: build/C/man2/clone.2:937
2244 msgid "Both B<CLONE_NEWPID> and B<CLONE_THREAD> were specified in I<flags>."
2245 msgstr "B<CLONE_NEWPID> と B<CLONE_THREAD> の両方が I<flags> に指定された。"
2246
2247 #. type: Plain text
2248 #: build/C/man2/clone.2:943
2249 msgid ""
2250 "Returned by B<clone>()  when a zero value is specified for I<child_stack>."
2251 msgstr "I<child_stack> にゼロを指定した場合に B<clone>()  が返す。"
2252
2253 #. type: Plain text
2254 #: build/C/man2/clone.2:953
2255 msgid ""
2256 "B<CLONE_NEWIPC> was specified in I<flags>, but the kernel was not configured "
2257 "with the B<CONFIG_SYSVIPC> and B<CONFIG_IPC_NS> options."
2258 msgstr ""
2259 "I<flags> に B<CLONE_NEWIPC> が指定されたが、カーネルでオプション "
2260 "B<CONFIG_SYSVIPC> と B<CONFIG_IPC_NS> が有効になっていなかった。"
2261
2262 #. type: Plain text
2263 #: build/C/man2/clone.2:961
2264 msgid ""
2265 "B<CLONE_NEWNET> was specified in I<flags>, but the kernel was not configured "
2266 "with the B<CONFIG_NET_NS> option."
2267 msgstr ""
2268 "I<flags> に B<CLONE_NEWNET> が指定されたが、カーネルでオプション "
2269 "B<CONFIG_NET_NS> が有効になっていなかった。"
2270
2271 #. type: Plain text
2272 #: build/C/man2/clone.2:969
2273 msgid ""
2274 "B<CLONE_NEWPID> was specified in I<flags>, but the kernel was not configured "
2275 "with the B<CONFIG_PID_NS> option."
2276 msgstr ""
2277 "I<flags> に B<CLONE_NEWPID> が指定されたが、カーネルでオプション "
2278 "B<CONFIG_PID_NS> が有効になっていなかった。"
2279
2280 #. type: Plain text
2281 #: build/C/man2/clone.2:977
2282 msgid ""
2283 "B<CLONE_NEWUTS> was specified in I<flags>, but the kernel was not configured "
2284 "with the B<CONFIG_UTS> option."
2285 msgstr ""
2286 "I<flags> に B<CLONE_NEWUTS> が指定されたが、カーネルでオプション "
2287 "B<CONFIG_UTS> が有効になっていなかった。"
2288
2289 #. type: TP
2290 #: build/C/man2/clone.2:977 build/C/man2/setns.2:89 build/C/man2/unshare.2:217
2291 #, no-wrap
2292 msgid "B<ENOMEM>"
2293 msgstr "B<ENOMEM>"
2294
2295 #. type: Plain text
2296 #: build/C/man2/clone.2:982
2297 msgid ""
2298 "Cannot allocate sufficient memory to allocate a task structure for the "
2299 "child, or to copy those parts of the caller's context that need to be copied."
2300 msgstr ""
2301 "子プロセスのために確保すべきタスク構造体や、呼び出し元のコンテキストの 一部を"
2302 "コピーするのに必要なメモリを十分に割り当てることができない。"
2303
2304 #. type: TP
2305 #: build/C/man2/clone.2:982 build/C/man2/clone.2:991 build/C/man2/kcmp.2:185
2306 #: build/C/man2/sched_setaffinity.2:135 build/C/man2/sched_setparam.2:101
2307 #: build/C/man2/sched_setscheduler.2:439 build/C/man2/setns.2:92
2308 #: build/C/man2/unshare.2:221
2309 #, no-wrap
2310 msgid "B<EPERM>"
2311 msgstr "B<EPERM>"
2312
2313 #. type: Plain text
2314 #: build/C/man2/clone.2:991
2315 msgid ""
2316 "B<CLONE_NEWIPC>, B<CLONE_NEWNET>, B<CLONE_NEWNS>, B<CLONE_NEWPID>, or "
2317 "B<CLONE_NEWUTS> was specified by an unprivileged process (process without "
2318 "B<CAP_SYS_ADMIN>)."
2319 msgstr ""
2320 "非特権プロセス (B<CAP_SYS_ADMIN> を持たないプロセス) が B<CLONE_NEWIPC>, "
2321 "B<CLONE_NEWNET>, B<CLONE_NEWNS>, B<CLONE_NEWPID>, B<CLONE_NEWUTS> を指定し"
2322 "た。"
2323
2324 #. type: Plain text
2325 #: build/C/man2/clone.2:995
2326 msgid "B<CLONE_PID> was specified by a process other than process 0."
2327 msgstr "PID が 0 以外のプロセスによって B<CLONE_PID> が指定された。"
2328
2329 #. type: Plain text
2330 #: build/C/man2/clone.2:1002
2331 msgid ""
2332 "There is no entry for B<clone>()  in libc5.  glibc2 provides B<clone>()  as "
2333 "described in this manual page."
2334 msgstr ""
2335 "libc5 には B<clone>()  はない。glibc2 では B<clone>()  が提供されており、この"
2336 "マニュアルページに記載の通りである。"
2337
2338 #. type: Plain text
2339 #: build/C/man2/clone.2:1006
2340 msgid ""
2341 "B<clone>()  is Linux-specific and should not be used in programs intended to "
2342 "be portable."
2343 msgstr ""
2344 "B<clone>() は Linux 特有であり、移植を考慮したプログラムでは使用すべき ではな"
2345 "い。"
2346
2347 #. type: Plain text
2348 #: build/C/man2/clone.2:1016
2349 msgid ""
2350 "In the kernel 2.4.x series, B<CLONE_THREAD> generally does not make the "
2351 "parent of the new thread the same as the parent of the calling process.  "
2352 "However, for kernel versions 2.4.7 to 2.4.18 the B<CLONE_THREAD> flag "
2353 "implied the B<CLONE_PARENT> flag (as in kernel 2.6)."
2354 msgstr ""
2355 "カーネル 2.4.x 系列では、一般的には B<CLONE_THREAD> フラグを指定しても新しい"
2356 "スレッドの親を 呼び出し元プロセスの親と同じにはしない。 しかし、バージョン "
2357 "2.4.7〜2.4.18 のカーネルでは、 (カーネル 2.6 と同じように) CLONE_THREAD フラ"
2358 "グを指定すると、 暗黙のうちに CLONE_PARENT フラグを指定したことになる。"
2359
2360 #. type: Plain text
2361 #: build/C/man2/clone.2:1026
2362 msgid ""
2363 "For a while there was B<CLONE_DETACHED> (introduced in 2.5.32): parent wants "
2364 "no child-exit signal.  In 2.6.2 the need to give this together with "
2365 "B<CLONE_THREAD> disappeared.  This flag is still defined, but has no effect."
2366 msgstr ""
2367 "B<CLONE_DETACHED> というフラグが、2.5.32 で導入されて以来しばらくの間存在し"
2368 "た。 このフラグは親プロセスが子プロセス終了のシグナルを必要としないことを 表"
2369 "すものである。 2.6.2 で、 CLONE_DETATCHED を CLONE_THREAD と一緒に指定する必"
2370 "要はなくなった。 このフラグはまだ定義されているが、何の効果もない。"
2371
2372 #. type: Plain text
2373 #: build/C/man2/clone.2:1031
2374 msgid ""
2375 "On i386, B<clone>()  should not be called through vsyscall, but directly "
2376 "through I<int $0x80>."
2377 msgstr ""
2378 "i386 上では、 B<clone>()  は vsyscall 経由ではなく、直接 I<int $0x80> 経由で"
2379 "呼び出すべきである。"
2380
2381 #. type: Plain text
2382 #: build/C/man2/clone.2:1062
2383 msgid ""
2384 "Versions of the GNU C library that include the NPTL threading library "
2385 "contain a wrapper function for B<getpid>(2)  that performs caching of PIDs.  "
2386 "This caching relies on support in the glibc wrapper for B<clone>(), but as "
2387 "currently implemented, the cache may not be up to date in some "
2388 "circumstances.  In particular, if a signal is delivered to the child "
2389 "immediately after the B<clone>()  call, then a call to B<getpid>(2)  in a "
2390 "handler for the signal may return the PID of the calling process (\"the "
2391 "parent\"), if the clone wrapper has not yet had a chance to update the PID "
2392 "cache in the child.  (This discussion ignores the case where the child was "
2393 "created using B<CLONE_THREAD>, when B<getpid>(2)  I<should> return the same "
2394 "value in the child and in the process that called B<clone>(), since the "
2395 "caller and the child are in the same thread group.  The stale-cache problem "
2396 "also does not occur if the I<flags> argument includes B<CLONE_VM>.)  To get "
2397 "the truth, it may be necessary to use code such as the following:"
2398 msgstr ""
2399 "NPTL スレッド・ライブラリを含んでいる GNU C ライブラリのいくつかのバージョン "
2400 "には、 B<getpid>(2)  のラッパー関数が含まれており、このラッパー関数は PID を"
2401 "キャッシュする。 このキャッシュ処理が正しく動作するためには glibc の B<clone>"
2402 "()  のラッパー関数での助けが必要だが、現状の実装では、 ある状況下において"
2403 "キャッシュが最新とならない可能性がある。 特に、 B<clone>()  の呼び出し直後に"
2404 "シグナルが子プロセスに配送された場合に、 そのシグナルに対するハンドラ内で "
2405 "B<getpid>(2)  を呼び出すと、それまでに clone のラッパー関数が子プロセスの "
2406 "PID キャッシュを 更新する機会が得られていなければ、呼び出し元プロセス (\"親プ"
2407 "ロセス\") の PID が 返される可能性がある。 (この議論では、子プロセスが "
2408 "B<CLONE_THREAD> を使って作成された場合のことは無視している。 子プロセスが "
2409 "B<CLONE_THREAD> を作って作成された場合には、 呼び出し元と子プロセスは同じス"
2410 "レッド・グループに属すので、 B<getpid>(2)  は子プロセスと B<clone>()  を呼び"
2411 "出したプロセスで同じ値を返すのが「正しい」。 キャッシュが最新とならない問題 "
2412 "(stale-cache problem) は、 I<flags> に B<CLONE_VM> が含まれている場合にも発生"
2413 "しない。)  本当の値を得るためには、次のようなコードを使う必要があるかもしれな"
2414 "い。"
2415
2416 #. type: Plain text
2417 #: build/C/man2/clone.2:1065
2418 #, no-wrap
2419 msgid "    #include E<lt>syscall.hE<gt>\n"
2420 msgstr "    #include E<lt>syscall.hE<gt>\n"
2421
2422 #. type: Plain text
2423 #: build/C/man2/clone.2:1067
2424 #, no-wrap
2425 msgid "    pid_t mypid;\n"
2426 msgstr "    pid_t mypid;\n"
2427
2428 #. type: Plain text
2429 #: build/C/man2/clone.2:1069
2430 #, no-wrap
2431 msgid "    mypid = syscall(SYS_getpid);\n"
2432 msgstr "    mypid = syscall(SYS_getpid);\n"
2433
2434 #. type: Plain text
2435 #: build/C/man2/clone.2:1083
2436 msgid ""
2437 "The following program demonstrates the use of B<clone>()  to create a child "
2438 "process that executes in a separate UTS namespace.  The child changes the "
2439 "hostname in its UTS namespace.  Both parent and child then display the "
2440 "system hostname, making it possible to see that the hostname differs in the "
2441 "UTS namespaces of the parent and child.  For an example of the use of this "
2442 "program, see B<setns>(2)."
2443 msgstr ""
2444 "以下のプログラムは、 別の UTS 名前空間で動作する子プロセスを B<clone>() を"
2445 "使って作成する例である。 子プロセスは、自分の UTS 名前空間においてホスト名を"
2446 "変更する。 それから、親プロセスと子プロセスの両方でシステムのホスト名を表示"
2447 "し、 親プロセスと子プロセスの UTS 名前空間でホスト名が異なることを確認する。 "
2448 "このプログラムの使用方法については B<setns>(2) を参照。"
2449
2450 #. type: SS
2451 #: build/C/man2/clone.2:1083 build/C/man2/setns.2:166
2452 #, no-wrap
2453 msgid "Program source"
2454 msgstr "プログラムのソース"
2455
2456 #. type: Plain text
2457 #: build/C/man2/clone.2:1093
2458 #, no-wrap
2459 msgid ""
2460 "#define _GNU_SOURCE\n"
2461 "#include E<lt>sys/wait.hE<gt>\n"
2462 "#include E<lt>sys/utsname.hE<gt>\n"
2463 "#include E<lt>sched.hE<gt>\n"
2464 "#include E<lt>string.hE<gt>\n"
2465 "#include E<lt>stdio.hE<gt>\n"
2466 "#include E<lt>stdlib.hE<gt>\n"
2467 "#include E<lt>unistd.hE<gt>\n"
2468 msgstr ""
2469 "#define _GNU_SOURCE\n"
2470 "#include E<lt>sys/wait.hE<gt>\n"
2471 "#include E<lt>sys/utsname.hE<gt>\n"
2472 "#include E<lt>sched.hE<gt>\n"
2473 "#include E<lt>string.hE<gt>\n"
2474 "#include E<lt>stdio.hE<gt>\n"
2475 "#include E<lt>stdlib.hE<gt>\n"
2476 "#include E<lt>unistd.hE<gt>\n"
2477
2478 #. type: Plain text
2479 #: build/C/man2/clone.2:1096 build/C/man2/setns.2:177
2480 #, no-wrap
2481 msgid ""
2482 "#define errExit(msg)    do { perror(msg); exit(EXIT_FAILURE); \\e\n"
2483 "                        } while (0)\n"
2484 msgstr ""
2485 "#define errExit(msg)    do { perror(msg); exit(EXIT_FAILURE); \\e\n"
2486 "                        } while (0)\n"
2487
2488 #. type: Plain text
2489 #: build/C/man2/clone.2:1101
2490 #, no-wrap
2491 msgid ""
2492 "static int              /* Start function for cloned child */\n"
2493 "childFunc(void *arg)\n"
2494 "{\n"
2495 "    struct utsname uts;\n"
2496 msgstr ""
2497 "static int              /* clone された子プロセスの開始関数 */\n"
2498 "childFunc(void *arg)\n"
2499 "{\n"
2500 "    struct utsname uts;\n"
2501
2502 #. type: Plain text
2503 #: build/C/man2/clone.2:1103
2504 #, no-wrap
2505 msgid "    /* Change hostname in UTS namespace of child */\n"
2506 msgstr "    /* 子プロセスの UTS 名前空間でホスト名を変更する */\n"
2507
2508 #. type: Plain text
2509 #: build/C/man2/clone.2:1106
2510 #, no-wrap
2511 msgid ""
2512 "    if (sethostname(arg, strlen(arg)) == -1)\n"
2513 "        errExit(\"sethostname\");\n"
2514 msgstr ""
2515 "    if (sethostname(arg, strlen(arg)) == -1)\n"
2516 "        errExit(\"sethostname\");\n"
2517
2518 #. type: Plain text
2519 #: build/C/man2/clone.2:1108
2520 #, no-wrap
2521 msgid "    /* Retrieve and display hostname */\n"
2522 msgstr "    /* ホスト名を取得し表示する */\n"
2523
2524 #. type: Plain text
2525 #: build/C/man2/clone.2:1112
2526 #, no-wrap
2527 msgid ""
2528 "    if (uname(&uts) == -1)\n"
2529 "        errExit(\"uname\");\n"
2530 "    printf(\"uts.nodename in child:  %s\\en\", uts.nodename);\n"
2531 msgstr ""
2532 "    if (uname(&uts) == -1)\n"
2533 "        errExit(\"uname\");\n"
2534 "    printf(\"uts.nodename in child:  %s\\en\", uts.nodename);\n"
2535
2536 #. type: Plain text
2537 #: build/C/man2/clone.2:1116
2538 #, no-wrap
2539 msgid ""
2540 "    /* Keep the namespace open for a while, by sleeping.\n"
2541 "       This allows some experimentation--for example, another\n"
2542 "       process might join the namespace. */\n"
2543 msgstr ""
2544 "    /* sleep を使ってしばらく名前空間をオープンされたままにする。\n"
2545 "       これにより実験を行うことができる -- 例えば、\n"
2546 "       別のプロセスがこの名前空間に参加するなど。 */\n"
2547
2548 #. type: Plain text
2549 #: build/C/man2/clone.2:1118
2550 #, no-wrap
2551 msgid "    sleep(200);\n"
2552 msgstr "    sleep(200);\n"
2553
2554 #. type: Plain text
2555 #: build/C/man2/clone.2:1121
2556 #, no-wrap
2557 msgid ""
2558 "    return 0;           /* Child terminates now */\n"
2559 "}\n"
2560 msgstr ""
2561 "    return 0;           /* 子プロセスを終了する */\n"
2562 "}\n"
2563
2564 #. type: Plain text
2565 #: build/C/man2/clone.2:1123
2566 #, no-wrap
2567 msgid "#define STACK_SIZE (1024 * 1024)    /* Stack size for cloned child */\n"
2568 msgstr "#define STACK_SIZE (1024 * 1024)    /* clone される子プロセスのスタックサイズ */\n"
2569
2570 #. type: Plain text
2571 #: build/C/man2/clone.2:1131
2572 #, no-wrap
2573 msgid ""
2574 "int\n"
2575 "main(int argc, char *argv[])\n"
2576 "{\n"
2577 "    char *stack;                    /* Start of stack buffer */\n"
2578 "    char *stackTop;                 /* End of stack buffer */\n"
2579 "    pid_t pid;\n"
2580 "    struct utsname uts;\n"
2581 msgstr ""
2582 "int\n"
2583 "main(int argc, char *argv[])\n"
2584 "{\n"
2585 "    char *stack;                    /* スタックバッファの先頭 */\n"
2586 "    char *stackTop;                 /* スタックバッファの末尾 */\n"
2587 "    pid_t pid;\n"
2588 "    struct utsname uts;\n"
2589
2590 #. type: Plain text
2591 #: build/C/man2/clone.2:1136
2592 #, no-wrap
2593 msgid ""
2594 "    if (argc E<lt> 2) {\n"
2595 "        fprintf(stderr, \"Usage: %s E<lt>child-hostnameE<gt>\\en\", argv[0]);\n"
2596 "        exit(EXIT_SUCCESS);\n"
2597 "    }\n"
2598 msgstr ""
2599 "    if (argc E<lt> 2) {\n"
2600 "        fprintf(stderr, \"Usage: %s E<lt>child-hostnameE<gt>\\en\", argv[0]);\n"
2601 "        exit(EXIT_SUCCESS);\n"
2602 "    }\n"
2603
2604 #. type: Plain text
2605 #: build/C/man2/clone.2:1138
2606 #, no-wrap
2607 msgid "    /* Allocate stack for child */\n"
2608 msgstr "    /* 子プロセス用のスタックを割り当てる */\n"
2609
2610 #. type: Plain text
2611 #: build/C/man2/clone.2:1143
2612 #, no-wrap
2613 msgid ""
2614 "    stack = malloc(STACK_SIZE);\n"
2615 "    if (stack == NULL)\n"
2616 "        errExit(\"malloc\");\n"
2617 "    stackTop = stack + STACK_SIZE;  /* Assume stack grows downward */\n"
2618 msgstr ""
2619 "    stack = malloc(STACK_SIZE);\n"
2620 "    if (stack == NULL)\n"
2621 "        errExit(\"malloc\");\n"
2622 "    stackTop = stack + STACK_SIZE;  /* スタックは下方向に伸びるものとする */\n"
2623
2624 #. type: Plain text
2625 #: build/C/man2/clone.2:1146
2626 #, no-wrap
2627 msgid ""
2628 "    /* Create child that has its own UTS namespace;\n"
2629 "       child commences execution in childFunc() */\n"
2630 msgstr ""
2631 "    /* 自分専用の UTS 名前空間を持つ子プロセスを作成する;\n"
2632 "       子プロセスは childFunc() の実行を開始する */\n"
2633
2634 #. type: Plain text
2635 #: build/C/man2/clone.2:1151
2636 #, no-wrap
2637 msgid ""
2638 "    pid = clone(childFunc, stackTop, CLONE_NEWUTS | SIGCHLD, argv[1]);\n"
2639 "    if (pid == -1)\n"
2640 "        errExit(\"clone\");\n"
2641 "    printf(\"clone() returned %ld\\en\", (long) pid);\n"
2642 msgstr ""
2643 "    pid = clone(childFunc, stackTop, CLONE_NEWUTS | SIGCHLD, argv[1]);\n"
2644 "    if (pid == -1)\n"
2645 "        errExit(\"clone\");\n"
2646 "    printf(\"clone() returned %ld\\en\", (long) pid);\n"
2647
2648 #. type: Plain text
2649 #: build/C/man2/clone.2:1153
2650 #, no-wrap
2651 msgid "    /* Parent falls through to here */\n"
2652 msgstr "    /* 親プロセスの実行はここに来る */\n"
2653
2654 #. type: Plain text
2655 #: build/C/man2/clone.2:1155
2656 #, no-wrap
2657 msgid "    sleep(1);           /* Give child time to change its hostname */\n"
2658 msgstr "    sleep(1);           /* 子プロセスがホスト名を変更する時間を与える */\n"
2659
2660 #. type: Plain text
2661 #: build/C/man2/clone.2:1158
2662 #, no-wrap
2663 msgid ""
2664 "    /* Display hostname in parent\\(aqs UTS namespace. This will be\n"
2665 "       different from hostname in child\\(aqs UTS namespace. */\n"
2666 msgstr ""
2667 "    /* 親プロセスの UTS 名前空間でのホスト名を表示する;\n"
2668 "       これは子プロセスの UTS 名前空間でのホスト名とは異なる */\n"
2669
2670 #. type: Plain text
2671 #: build/C/man2/clone.2:1162
2672 #, no-wrap
2673 msgid ""
2674 "    if (uname(&uts) == -1)\n"
2675 "        errExit(\"uname\");\n"
2676 "    printf(\"uts.nodename in parent: %s\\en\", uts.nodename);\n"
2677 msgstr ""
2678 "    if (uname(&uts) == -1)\n"
2679 "        errExit(\"uname\");\n"
2680 "    printf(\"uts.nodename in parent: %s\\en\", uts.nodename);\n"
2681
2682 #. type: Plain text
2683 #: build/C/man2/clone.2:1166
2684 #, no-wrap
2685 msgid ""
2686 "    if (waitpid(pid, NULL, 0) == -1)    /* Wait for child */\n"
2687 "        errExit(\"waitpid\");\n"
2688 "    printf(\"child has terminated\\en\");\n"
2689 msgstr ""
2690 "    if (waitpid(pid, NULL, 0) == -1)    /* 子プロセスを待つ */\n"
2691 "        errExit(\"waitpid\");\n"
2692 "    printf(\"child has terminated\\en\");\n"
2693
2694 #. type: Plain text
2695 #: build/C/man2/clone.2:1169
2696 #, no-wrap
2697 msgid ""
2698 "    exit(EXIT_SUCCESS);\n"
2699 "}\n"
2700 msgstr ""
2701 "    exit(EXIT_SUCCESS);\n"
2702 "}\n"
2703
2704 #. type: Plain text
2705 #: build/C/man2/clone.2:1184
2706 msgid ""
2707 "B<fork>(2), B<futex>(2), B<getpid>(2), B<gettid>(2), B<kcmp>(2), "
2708 "B<set_thread_area>(2), B<set_tid_address>(2), B<setns>(2), B<tkill>(2), "
2709 "B<unshare>(2), B<wait>(2), B<capabilities>(7), B<pthreads>(7)"
2710 msgstr ""
2711 "B<fork>(2), B<futex>(2), B<getpid>(2), B<gettid>(2), B<kcmp>(2), "
2712 "B<set_thread_area>(2), B<set_tid_address>(2), B<setns>(2), B<tkill>(2), "
2713 "B<unshare>(2), B<wait>(2), B<capabilities>(7), B<pthreads>(7)"
2714
2715 #. type: TH
2716 #: build/C/man2/kcmp.2:28
2717 #, no-wrap
2718 msgid "KCMP"
2719 msgstr "KCMP"
2720
2721 #. type: TH
2722 #: build/C/man2/kcmp.2:28
2723 #, fuzzy, no-wrap
2724 #| msgid "2013-01-01"
2725 msgid "2013-12-08"
2726 msgstr "2013-01-01"
2727
2728 #. type: Plain text
2729 #: build/C/man2/kcmp.2:31
2730 msgid ""
2731 "kcmp - compare two processes to determine if they share a kernel resource"
2732 msgstr "kcmp - 二つのプロセスが同じカーネルリソースを共有しているかを比較する"
2733
2734 #. type: Plain text
2735 #: build/C/man2/kcmp.2:34
2736 #, no-wrap
2737 msgid "B<#include E<lt>linux/kcmp.hE<gt>>\n"
2738 msgstr "B<#include E<lt>linux/kcmp.hE<gt>>\n"
2739
2740 #. type: Plain text
2741 #: build/C/man2/kcmp.2:37
2742 #, no-wrap
2743 msgid ""
2744 "B<int kcmp(pid_t >I<pid1>B<, pid_t >I<pid2>B<, int >I<type>B<,>\n"
2745 "B<         unsigned long >I<idx1>B<, unsigned long >I<idx2>B<);>\n"
2746 msgstr ""
2747 "B<int kcmp(pid_t >I<pid1>B<, pid_t >I<pid2>B<, int >I<type>B<,>\n"
2748 "B<         unsigned long >I<idx1>B<, unsigned long >I<idx2>B<);>\n"
2749
2750 #. type: Plain text
2751 #: build/C/man2/kcmp.2:41
2752 msgid "I<Note>: There is no glibc wrapper for this system call; see NOTES."
2753 msgstr ""
2754 "I<注>: このシステムコールには glibc のラッパー関数は存在しない。「注意」の節"
2755 "を参照。"
2756
2757 #. type: Plain text
2758 #: build/C/man2/kcmp.2:50
2759 msgid ""
2760 "The B<kcmp>()  system call can be used to check whether the two processes "
2761 "identified by I<pid1> and I<pid2> share a kernel resource such as virtual "
2762 "memory, file descriptors, and so on."
2763 msgstr ""
2764 "システムコール B<kcmp>() を使うと、 ID が I<pid1> と I<pid2> の二つのプロセス"
2765 "が、 仮想メモリやファイルディスクリプタなどの、 同じカーネルリソースを共有し"
2766 "ているかどうかを検査できる。"
2767
2768 #. type: Plain text
2769 #: build/C/man2/kcmp.2:55
2770 msgid ""
2771 "The I<type> argument specifies which resource is to be compared in the two "
2772 "processes.  It has one of the following values:"
2773 msgstr ""
2774 "I<type> 引き数は 2 つのプロセス間でどのリソースを比較するかを指定する。 以下"
2775 "のいずれかの値を指定する。"
2776
2777 #. type: TP
2778 #: build/C/man2/kcmp.2:55
2779 #, no-wrap
2780 msgid "B<KCMP_FILE>"
2781 msgstr "B<KCMP_FILE>"
2782
2783 #. type: Plain text
2784 #: build/C/man2/kcmp.2:67
2785 msgid ""
2786 "Check whether a file descriptor I<idx1> in the process I<pid1> refers to the "
2787 "same open file description (see B<open>(2))  as file descriptor I<idx2> in "
2788 "the process I<pid2>."
2789 msgstr ""
2790 "プロセス I<pid1> のファイルディスクリプタ I<idx1> が、 プロセス I<pid2> の"
2791 "ファイルディスクリプタ I<idx2> と同じオープンファイル記述 (open file "
2792 "description) を参照しているかを検査する。"
2793
2794 #. type: TP
2795 #: build/C/man2/kcmp.2:67
2796 #, no-wrap
2797 msgid "B<KCMP_FILES>"
2798 msgstr "B<KCMP_FILES>"
2799
2800 #. type: Plain text
2801 #: build/C/man2/kcmp.2:75
2802 msgid ""
2803 "Check whether the process share the same set of open file descriptors.  The "
2804 "arguments I<idx1> and I<idx2> are ignored."
2805 msgstr ""
2806 "二つのプロセスが同じオープンファイル記述の集合を共有しているかを検査する。 引"
2807 "き数 I<idx1> と I<idx2> は無視される。"
2808
2809 #. type: TP
2810 #: build/C/man2/kcmp.2:75
2811 #, no-wrap
2812 msgid "B<KCMP_FS>"
2813 msgstr "B<KCMP_FS>"
2814
2815 #. type: Plain text
2816 #: build/C/man2/kcmp.2:84
2817 msgid ""
2818 "Check whether the processes share the same filesystem information (i.e., "
2819 "file mode creation mask, working directory, and filesystem root).  The "
2820 "arguments I<idx1> and I<idx2> are ignored."
2821 msgstr ""
2822 "二つのプロセスが同じファイルシステム情報 (すなわち、ファイルのモード作成マス"
2823 "ク、作業ディレクトリ、ファイルシステムのルート) を共有しているかを検査する。 "
2824 "引き数 I<idx1> と I<idx2> は無視される。"
2825
2826 #. type: TP
2827 #: build/C/man2/kcmp.2:84
2828 #, no-wrap
2829 msgid "B<KCMP_IO>"
2830 msgstr "B<KCMP_IO>"
2831
2832 #. type: Plain text
2833 #: build/C/man2/kcmp.2:92
2834 msgid ""
2835 "Check whether the processes share I/O context.  The arguments I<idx1> and "
2836 "I<idx2> are ignored."
2837 msgstr ""
2838 "二つのプロセスが I/O コンテキストを共有しているかを検査する。 引き数 I<idx1> "
2839 "と I<idx2> は無視される。"
2840
2841 #. type: TP
2842 #: build/C/man2/kcmp.2:92
2843 #, no-wrap
2844 msgid "B<KCMP_SIGHAND>"
2845 msgstr "B<KCMP_SIGHAND>"
2846
2847 #. type: Plain text
2848 #: build/C/man2/kcmp.2:100
2849 msgid ""
2850 "Check whether the processes share the same table of signal dispositions.  "
2851 "The arguments I<idx1> and I<idx2> are ignored."
2852 msgstr ""
2853 "二つのプロセスがシグナル配送 (disposition) テーブルを共有しているかを検査す"
2854 "る。 引き数 I<idx1> と I<idx2> は無視される。"
2855
2856 #. type: TP
2857 #: build/C/man2/kcmp.2:100
2858 #, no-wrap
2859 msgid "B<KCMP_SYSVSEM>"
2860 msgstr "B<KCMP_SYSVSEM>"
2861
2862 #. type: Plain text
2863 #: build/C/man2/kcmp.2:109
2864 msgid ""
2865 "Check whether the processes share the same list of System V semaphore undo "
2866 "operations.  The arguments I<idx1> and I<idx2> are ignored."
2867 msgstr ""
2868 "二つのプロセスが同じ System V セマフォ undo 操作のリストを共有しているかを検"
2869 "査する。 引き数 I<idx1> と I<idx2> は無視される。"
2870
2871 #. type: TP
2872 #: build/C/man2/kcmp.2:109
2873 #, no-wrap
2874 msgid "B<KCMP_VM>"
2875 msgstr "B<KCMP_VM>"
2876
2877 #. type: Plain text
2878 #: build/C/man2/kcmp.2:117
2879 msgid ""
2880 "Check whether the processes share the same address space.  The arguments "
2881 "I<idx1> and I<idx2> are ignored."
2882 msgstr ""
2883 "二つのプロセスが同じアドレス空間を共有しているかを検査する。 引き数 I<idx1> "
2884 "と I<idx2> は無視される。"
2885
2886 #. type: Plain text
2887 #: build/C/man2/kcmp.2:127
2888 #, fuzzy
2889 #| msgid ""
2890 #| "Note the B<kcmp>()  is not protected against false positives which may "
2891 #| "have place if tasks are running.  Which means one should stop tasks being "
2892 #| "inspected with this syscall to obtain meaningful results."
2893 msgid ""
2894 "Note the B<kcmp>()  is not protected against false positives which may occur "
2895 "if tasks are running.  One should stop tasks by sending B<SIGSTOP> (see "
2896 "B<signal>(7))  prior to inspection with this system call to obtain "
2897 "meaningful results."
2898 msgstr ""
2899 "B<kcmp>() には、タスクが実行されている場合に起こり得る誤判定 (false "
2900 "positive) に関する保護はない。 ということは、 意味のある結果を得るためには、 "
2901 "このシステムコールで検査されているタスクを停止すべきだということだ。"
2902
2903 #. type: Plain text
2904 #: build/C/man2/kcmp.2:133
2905 msgid ""
2906 "The return value of a successful call to B<kcmp>()  is simply the result of "
2907 "arithmetic comparison of kernel pointers (when the kernel compares "
2908 "resources, it uses their memory addresses)."
2909 msgstr ""
2910 "B<kcmp>() の呼び出しが成功した場合の返り値は、単にカーネルポインタを数値で比"
2911 "較した結果となる (カーネルはリソースを比較する際、リソースのメモリアドレスを"
2912 "使用する)。"
2913
2914 #. type: Plain text
2915 #: build/C/man2/kcmp.2:141
2916 msgid ""
2917 "The easiest way to explain is to consider an example.  Suppose that I<v1> "
2918 "and I<v2> are the addresses of appropriate resources, then the return value "
2919 "is one of the following:"
2920 msgstr ""
2921 "これを説明するには、例を見るのが一番簡単である。 I<v1> と I<v2> を適切なリ"
2922 "ソースのアドレスとすると、 返り値は以下のいずれか一つとなる。"
2923
2924 #. type: IP
2925 #: build/C/man2/kcmp.2:142
2926 #, no-wrap
2927 msgid "0"
2928 msgstr "0"
2929
2930 #. type: Plain text
2931 #: build/C/man2/kcmp.2:147
2932 msgid ""
2933 "I<v1> is equal to I<v2>; in other words, the two processes share the "
2934 "resource."
2935 msgstr ""
2936 "I<v1> は I<v2> と等しい。言い換えれば、二つのプロセスはそのリソースを共有して"
2937 "いる。"
2938
2939 #. type: IP
2940 #: build/C/man2/kcmp.2:147
2941 #, no-wrap
2942 msgid "1"
2943 msgstr "1"
2944
2945 #. type: Plain text
2946 #: build/C/man2/kcmp.2:151
2947 msgid "I<v1> is less than I<v2>."
2948 msgstr "I<v1> は I<v2> より小さい。"
2949
2950 #. type: IP
2951 #: build/C/man2/kcmp.2:151
2952 #, no-wrap
2953 msgid "2"
2954 msgstr "2"
2955
2956 #. type: Plain text
2957 #: build/C/man2/kcmp.2:155
2958 msgid "I<v1> is greater than I<v2>."
2959 msgstr "I<v1> は I<v2> より大きい。"
2960
2961 #. type: IP
2962 #: build/C/man2/kcmp.2:155
2963 #, no-wrap
2964 msgid "3"
2965 msgstr "3"
2966
2967 #. type: Plain text
2968 #: build/C/man2/kcmp.2:160
2969 msgid "I<v1> is not equal to I<v2>, but ordering information is unavailable."
2970 msgstr "I<v1> は I<v2> と等しくないが、順序情報がない。"
2971
2972 #. type: Plain text
2973 #: build/C/man2/kcmp.2:165
2974 msgid "On error, -1 is returned, and I<errno> is set appropriately."
2975 msgstr "エラーの場合は -1 が返され、 I<errno> が適切に設定される。"
2976
2977 #. type: Plain text
2978 #: build/C/man2/kcmp.2:170
2979 #, fuzzy
2980 #| msgid ""
2981 #| "B<kcmp ()> was designed to return values suitable for sorting.  This is "
2982 #| "particularly handy if one needs to compare a large number of file "
2983 #| "descriptors."
2984 msgid ""
2985 "B<kcmp>()  was designed to return values suitable for sorting.  This is "
2986 "particularly handy if one needs to compare a large number of file "
2987 "descriptors."
2988 msgstr ""
2989 "B<kcmp ()> は、ソートに適した値を返すように設計された。 大量のファイルディス"
2990 "クリプタを比較する必要がある場合に、特に役に立つ。"
2991
2992 #. type: TP
2993 #: build/C/man2/kcmp.2:171 build/C/man2/setns.2:78
2994 #, no-wrap
2995 msgid "B<EBADF>"
2996 msgstr "B<EBADF>"
2997
2998 #. type: Plain text
2999 #: build/C/man2/kcmp.2:181
3000 msgid ""
3001 "I<type> is B<KCMP_FILE> and I<fd1> or I<fd2> is not an open file descriptor."
3002 msgstr ""
3003 "I<type> が B<KCMP_FILE> で、かつ I<fd1> か I<fd2> がオープンファイル記述でな"
3004 "い。"
3005
3006 #. type: Plain text
3007 #: build/C/man2/kcmp.2:185
3008 msgid "I<type> is invalid."
3009 msgstr "I<type> が無効である。"
3010
3011 #. type: Plain text
3012 #: build/C/man2/kcmp.2:191
3013 msgid ""
3014 "Insufficient permission to inspect process resources.  The B<CAP_SYS_PTRACE> "
3015 "capability is required to inspect processes that you do not own."
3016 msgstr ""
3017 "プロセスのリソースを検査するのに十分な許可がない。 自分が所有していないプロセ"
3018 "スを検査するためには B<CAP_SYS_PTRACE> ケーパビリティが必要である。"
3019
3020 #. type: TP
3021 #: build/C/man2/kcmp.2:191 build/C/man2/sched_rr_get_interval.2:90
3022 #: build/C/man2/sched_setaffinity.2:145 build/C/man2/sched_setparam.2:107
3023 #: build/C/man2/sched_setscheduler.2:442
3024 #, no-wrap
3025 msgid "B<ESRCH>"
3026 msgstr "B<ESRCH>"
3027
3028 #. type: Plain text
3029 #: build/C/man2/kcmp.2:198
3030 msgid "Process I<pid1> or I<pid2> does not exist."
3031 msgstr "プロセス I<pid1> か I<pid2> が存在しない。"
3032
3033 #. type: Plain text
3034 #: build/C/man2/kcmp.2:202
3035 msgid "The B<kcmp>()  system call first appeared in Linux 3.5."
3036 msgstr "B<kcmp>() システムコールは Linux 3.5 で初めて登場した。"
3037
3038 #. type: Plain text
3039 #: build/C/man2/kcmp.2:205
3040 #, fuzzy
3041 #| msgid ""
3042 #| "B<kcmp>()  is Linux specific and should not be used in programs intended "
3043 #| "to be portable."
3044 msgid ""
3045 "B<kcmp>()  is Linux-specific and should not be used in programs intended to "
3046 "be portable."
3047 msgstr ""
3048 "B<kcmp>() は Linux 特有であり、 移植を考慮したプログラムでは使用すべきではな"
3049 "い。"
3050
3051 #. type: Plain text
3052 #: build/C/man2/kcmp.2:208
3053 msgid ""
3054 "Glibc does not provide a wrapper for this system call; call it using "
3055 "B<syscall>(2)."
3056 msgstr ""
3057 "glibc はこのシステムコールに対するラッパー関数を提供していない。 B<syscall>"
3058 "(2) を使って呼び出すこと。"
3059
3060 #. type: Plain text
3061 #: build/C/man2/kcmp.2:217
3062 msgid ""
3063 "This system call is available only if the kernel was configured with "
3064 "B<CONFIG_CHECKPOINT_RESTORE>.  The main use of the system call is for the "
3065 "checkpoint/restore in user space (CRIU) feature.  The alternative to this "
3066 "system call would have been to expose suitable process information via the "
3067 "B<proc>(5)  filesystem; this was deemed to be unsuitable for security "
3068 "reasons."
3069 msgstr ""
3070 "このシステムコールが利用できるのは、 カーネルの B<CONFIG_CHECKPOINT_RESTORE> "
3071 "オプションが有効になっている場合だけである。 このシステムコールの主な用途"
3072 "は、 ユーザ空間でのチェックポイント/リストア (checkpoint/restore in user "
3073 "space; CRIU) 機能である。 このシステムコールを使わないとすると、 B<proc>(5) "
3074 "ファイルシステム経由で必要なプロセス情報を公開することになるが、 これはセキュ"
3075 "リティ上の理由から不適切とみなされた。"
3076
3077 #. type: Plain text
3078 #: build/C/man2/kcmp.2:222
3079 msgid ""
3080 "See B<clone>(2)  for some background information on the shared resources "
3081 "referred to on this page."
3082 msgstr ""
3083 "このページで参照されている共有リソースに関する背景についての情報は B<clone>"
3084 "(2) を参照のこと。"
3085
3086 #. type: Plain text
3087 #: build/C/man2/kcmp.2:225
3088 msgid "B<clone>(2), B<unshare>(2)"
3089 msgstr "B<clone>(2), B<unshare>(2)"
3090
3091 #. type: TH
3092 #: build/C/man2/sched_get_priority_max.2:29
3093 #, no-wrap
3094 msgid "SCHED_GET_PRIORITY_MAX"
3095 msgstr "SCHED_GET_PRIORITY_MAX"
3096
3097 #. type: TH
3098 #: build/C/man2/sched_get_priority_max.2:29
3099 #, fuzzy, no-wrap
3100 #| msgid "2013-09-17"
3101 msgid "2013-09-23"
3102 msgstr "2013-09-17"
3103
3104 #. type: Plain text
3105 #: build/C/man2/sched_get_priority_max.2:32
3106 msgid ""
3107 "sched_get_priority_max, sched_get_priority_min - get static priority range"
3108 msgstr ""
3109 "sched_get_priority_max, sched_get_priority_min - 静的プライオリティの範囲を取"
3110 "得する"
3111
3112 #. type: Plain text
3113 #: build/C/man2/sched_get_priority_max.2:34
3114 #: build/C/man2/sched_rr_get_interval.2:34 build/C/man2/sched_yield.2:34
3115 msgid "B<#include E<lt>sched.hE<gt>>"
3116 msgstr "B<#include E<lt>sched.hE<gt>>"
3117
3118 #. type: Plain text
3119 #: build/C/man2/sched_get_priority_max.2:36
3120 msgid "B<int sched_get_priority_max(int >I<policy>B<);>"
3121 msgstr "B<int sched_get_priority_max(int >I<policy>B<);>"
3122
3123 #. type: Plain text
3124 #: build/C/man2/sched_get_priority_max.2:38
3125 msgid "B<int sched_get_priority_min(int >I<policy>B<);>"
3126 msgstr "B<int sched_get_priority_min(int >I<policy>B<);>"
3127
3128 #. type: Plain text
3129 #: build/C/man2/sched_get_priority_max.2:58
3130 #, fuzzy
3131 #| msgid ""
3132 #| "B<sched_get_priority_max>()  returns the maximum priority value that can "
3133 #| "be used with the scheduling algorithm identified by I<policy>.  "
3134 #| "B<sched_get_priority_min>()  returns the minimum priority value that can "
3135 #| "be used with the scheduling algorithm identified by I<policy>.  Supported "
3136 #| "I<policy> values are B<SCHED_FIFO>, B<SCHED_RR>, B<SCHED_OTHER>, and "
3137 #| "B<SCHED_BATCH>.  Further details about these policies can be found in "
3138 #| "B<sched_setscheduler>(2)."
3139 msgid ""
3140 "B<sched_get_priority_max>()  returns the maximum priority value that can be "
3141 "used with the scheduling algorithm identified by I<policy>.  "
3142 "B<sched_get_priority_min>()  returns the minimum priority value that can be "
3143 "used with the scheduling algorithm identified by I<policy>.  Supported "
3144 "I<policy> values are B<SCHED_FIFO>, B<SCHED_RR>, B<SCHED_OTHER>, "
3145 "B<SCHED_BATCH>, and B<SCHED_IDLE>.  Further details about these policies can "
3146 "be found in B<sched_setscheduler>(2)."
3147 msgstr ""
3148 "B<sched_get_priority_max>()  はI<policy> によって指定されたスケジューリングの"
3149 "アルゴリズムで 使用されるプライオリティの最大値を返す。 "
3150 "B<sched_get_priority_min>()  はI<policy> によって指定されたスケジューリングの"
3151 "アルゴリズムで 使用されるプライオリティの最小値を返す。 サポートされる "
3152 "I<policy> の値は B<SCHED_FIFO>、 B<SCHED_RR>、 B<SCHED_OTHER>、 "
3153 "B<SCHED_BATCH> である。これらのスケジューリング方針に関する詳細は "
3154 "B<sched_setscheduler>(2)  に書かれている。"
3155
3156 #. type: Plain text
3157 #: build/C/man2/sched_get_priority_max.2:67
3158 msgid ""
3159 "Processes with numerically higher priority values are scheduled before "
3160 "processes with numerically lower priority values.  Thus, the value returned "
3161 "by B<sched_get_priority_max>()  will be greater than the value returned by "
3162 "B<sched_get_priority_min>()."
3163 msgstr ""
3164 "数値的に大きなプライオリティ値を持つプロセスは小さな プライオリティ値を持つプ"
3165 "ロセスより前にスケジュールされる。 このため B<sched_get_priority_max>()  が返"
3166 "す値は B<sched_get_priority_min>()  が返す値よりも大きい。"
3167
3168 #. type: Plain text
3169 #: build/C/man2/sched_get_priority_max.2:79
3170 #, fuzzy
3171 #| msgid ""
3172 #| "Linux allows the static priority value range 1 to 99 for B<SCHED_FIFO> "
3173 #| "and B<SCHED_RR> and the priority 0 for B<SCHED_OTHER> and "
3174 #| "B<SCHED_BATCH>.  Scheduling priority ranges for the various policies are "
3175 #| "not alterable."
3176 msgid ""
3177 "Linux allows the static priority value range 1 to 99 for B<SCHED_FIFO> and "
3178 "B<SCHED_RR> and the priority 0 for B<SCHED_OTHER>, B<SCHED_BATCH>, and "
3179 "B<SCHED_IDLE>.  Scheduling priority ranges for the various policies are not "
3180 "alterable."
3181 msgstr ""
3182 "Linux では B<SCHED_FIFO> と B<SCHED_RR> では 1 から 99 の範囲の 静的プライオ"
3183 "リティーを持ち、B<SCHED_OTHER> と B<SCHED_BATCH> では プライオリティとして 0 "
3184 "を持つ。 それぞれの方針のスケジューリング・プライオリティの範囲は 変更するこ"
3185 "とができない。"
3186
3187 #. type: Plain text
3188 #: build/C/man2/sched_get_priority_max.2:91
3189 msgid ""
3190 "The range of scheduling priorities may vary on other POSIX systems, thus it "
3191 "is a good idea for portable applications to use a virtual priority range and "
3192 "map it to the interval given by B<sched_get_priority_max>()  and "
3193 "B<sched_get_priority_min>().  POSIX.1-2001 requires a spread of at least 32 "
3194 "between the maximum and the minimum values for B<SCHED_FIFO> and B<SCHED_RR>."
3195 msgstr ""
3196 "スケジューリング・プライオリティの範囲は他の POSIX システムと 異なっているか"
3197 "もしれない。それで、移植性(portable)のある アプリケーションでは仮想的な範囲を"
3198 "用い B<sched_get_priority_max>()  と B<sched_get_priority_min>()  で与えられ"
3199 "た間隔にマップして使用することはいい考えである。 POSIX.1-2001 では "
3200 "B<SCHED_FIFO> と B<SCHED_RR> における 最大値と最小値の間隔を少なくとも 32 に"
3201 "することを要求している。"
3202
3203 #. type: Plain text
3204 #: build/C/man2/sched_get_priority_max.2:100
3205 msgid ""
3206 "POSIX systems on which B<sched_get_priority_max>()  and "
3207 "B<sched_get_priority_min>()  are available define "
3208 "B<_POSIX_PRIORITY_SCHEDULING> in I<E<lt>unistd.hE<gt>>."
3209 msgstr ""
3210 "POSIX システムでは B<sched_get_priority_max>()  と B<sched_get_priority_min>"
3211 "()  は I<E<lt>unistd.hE<gt>> に B<_POSIX_PRIORITY_SCHEDULING> が定義されてい"
3212 "る場合にのみ使用可能である。"
3213
3214 #. type: Plain text
3215 #: build/C/man2/sched_get_priority_max.2:110
3216 msgid ""
3217 "On success, B<sched_get_priority_max>()  and B<sched_get_priority_min>()  "
3218 "return the maximum/minimum priority value for the named scheduling policy.  "
3219 "On error, -1 is returned, and I<errno> is set appropriately."
3220 msgstr ""
3221 "成功した場合は B<sched_get_priority_max>()  と B<sched_get_priority_min>()  "
3222 "は指定されたスケジューリング方針のプライオリティの最大値/最小値を返す。 エ"
3223 "ラーの場合は -1 が返され、 I<errno> が適切に設定される。"
3224
3225 #. type: Plain text
3226 #: build/C/man2/sched_get_priority_max.2:116
3227 msgid "The argument I<policy> does not identify a defined scheduling policy."
3228 msgstr "引き数 I<policy> が定義されているスケジューリング方針と一致しない。"
3229
3230 #. type: Plain text
3231 #: build/C/man2/sched_get_priority_max.2:118
3232 #: build/C/man2/sched_rr_get_interval.2:96 build/C/man2/sched_setparam.2:112
3233 #: build/C/man2/sched_yield.2:54
3234 msgid "POSIX.1-2001."
3235 msgstr "POSIX.1-2001."
3236
3237 #. type: Plain text
3238 #: build/C/man2/sched_get_priority_max.2:127
3239 msgid ""
3240 "B<sched_getaffinity>(2), B<sched_getparam>(2), B<sched_getscheduler>(2), "
3241 "B<sched_setaffinity>(2), B<sched_setparam>(2), B<sched_setscheduler>(2)"
3242 msgstr ""
3243 "B<sched_getaffinity>(2), B<sched_getparam>(2)  B<sched_getscheduler>(2), "
3244 "B<sched_setaffinity>(2), B<sched_setparam>(2), B<sched_setscheduler>(2),"
3245
3246 #. type: Plain text
3247 #: build/C/man2/sched_get_priority_max.2:130
3248 #: build/C/man2/sched_rr_get_interval.2:138 build/C/man2/sched_setparam.2:134
3249 #: build/C/man2/sched_setscheduler.2:564 build/C/man2/sched_yield.2:85
3250 msgid ""
3251 "I<Programming for the real world - POSIX.4> by Bill O. Gallmeister, O'Reilly "
3252 "& Associates, Inc., ISBN 1-56592-074-0."
3253 msgstr ""
3254 "I<Programming for the real world - POSIX.4> by Bill O. Gallmeister, O'Reilly "
3255 "& Associates, Inc., ISBN 1-56592-074-0."
3256
3257 #. type: TH
3258 #: build/C/man3/sched_getcpu.3:26
3259 #, no-wrap
3260 msgid "SCHED_GETCPU"
3261 msgstr "SCHED_GETCPU"
3262
3263 #. type: TH
3264 #: build/C/man3/sched_getcpu.3:26 build/C/man2/unshare.2:20
3265 #, no-wrap
3266 msgid "2013-04-17"
3267 msgstr "2013-04-17"
3268
3269 #. type: Plain text
3270 #: build/C/man3/sched_getcpu.3:29
3271 msgid "sched_getcpu - determine CPU on which the calling thread is running"
3272 msgstr "sched_getcpu - 呼び出したスレッドが実行されている CPU を知る"
3273
3274 #. type: Plain text
3275 #: build/C/man3/sched_getcpu.3:34
3276 #, no-wrap
3277 msgid "B<int sched_getcpu(void);>\n"
3278 msgstr "B<int sched_getcpu(void);>\n"
3279
3280 #. type: Plain text
3281 #: build/C/man3/sched_getcpu.3:39 build/C/man2/unshare.2:33
3282 msgid ""
3283 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
3284 msgstr "glibc 向けの機能検査マクロの要件 (B<feature_test_macros>(7)  参照):"
3285
3286 #. type: Plain text
3287 #: build/C/man3/sched_getcpu.3:42
3288 msgid "B<sched_getcpu>():"
3289 msgstr "B<sched_getcpu>():"
3290
3291 #. type: Plain text
3292 #: build/C/man3/sched_getcpu.3:58
3293 msgid ""
3294 "B<sched_getcpu>()  returns the number of the CPU on which the calling thread "
3295 "is currently executing."
3296 msgstr ""
3297 "B<sched_getcpu>()  は、呼び出したスレッドが現在実行されている CPU の番号を返"
3298 "す。"
3299
3300 #. type: Plain text
3301 #: build/C/man3/sched_getcpu.3:65
3302 msgid ""
3303 "On success, B<sched_getcpu>()  returns a nonnegative CPU number.  On error, "
3304 "-1 is returned and I<errno> is set to indicate the error."
3305 msgstr ""
3306 "成功すると、 B<sched_getcpu>()  は非負の CPU 番号を返す。 エラーの場合、-1 を"
3307 "返し、 I<errno> にエラーを示す値を設定する。"
3308
3309 #. type: TP
3310 #: build/C/man3/sched_getcpu.3:66 build/C/man2/sched_rr_get_interval.2:87
3311 #, no-wrap
3312 msgid "B<ENOSYS>"
3313 msgstr "B<ENOSYS>"
3314
3315 #. type: Plain text
3316 #: build/C/man3/sched_getcpu.3:70
3317 msgid "This kernel does not implement B<getcpu>(2)."
3318 msgstr "このカーネルでは B<getcpu>(2)  が実装されていない。"
3319
3320 #. type: Plain text
3321 #: build/C/man3/sched_getcpu.3:72
3322 msgid "This function is available since glibc 2.6."
3323 msgstr "この関数は glibc 2.6 以降で利用可能である。"
3324
3325 #. type: Plain text
3326 #: build/C/man3/sched_getcpu.3:75
3327 #, fuzzy
3328 #| msgid "B<sched_getcpu>()  is glibc specific."
3329 msgid "B<sched_getcpu>()  is glibc-specific."
3330 msgstr "B<sched_getcpu>()  は glibc 固有である。"
3331
3332 #. type: Plain text
3333 #: build/C/man3/sched_getcpu.3:77
3334 msgid "The call"
3335 msgstr "呼び出し"
3336
3337 #. type: Plain text
3338 #: build/C/man3/sched_getcpu.3:81
3339 #, no-wrap
3340 msgid "cpu = sched_getcpu();\n"
3341 msgstr "cpu = sched_getcpu();\n"
3342
3343 #. type: Plain text
3344 #: build/C/man3/sched_getcpu.3:87
3345 msgid "is equivalent to the following B<getcpu>(2)  call:"
3346 msgstr "は、以下の B<getcpu>(2)  呼び出しと等価である。"
3347
3348 #. type: Plain text
3349 #: build/C/man3/sched_getcpu.3:93
3350 #, no-wrap
3351 msgid ""
3352 "int c, s;\n"
3353 "s = getcpu(&c, NULL, NULL);\n"
3354 "cpu = (s == -1) ? s : c;\n"
3355 msgstr ""
3356 "int c, s;\n"
3357 "s = getcpu(&c, NULL, NULL);\n"
3358 "cpu = (s == -1) ? s : c;\n"
3359
3360 #. type: Plain text
3361 #: build/C/man3/sched_getcpu.3:97
3362 msgid "B<getcpu>(2)"
3363 msgstr "B<getcpu>(2)"
3364
3365 #. type: TH
3366 #: build/C/man2/sched_rr_get_interval.2:29
3367 #, no-wrap
3368 msgid "SCHED_RR_GET_INTERVAL"
3369 msgstr "SCHED_RR_GET_INTERVAL"
3370
3371 #. type: TH
3372 #: build/C/man2/sched_rr_get_interval.2:29
3373 #, no-wrap
3374 msgid "2013-03-18"
3375 msgstr "2013-03-18"
3376
3377 #. type: Plain text
3378 #: build/C/man2/sched_rr_get_interval.2:32
3379 msgid "sched_rr_get_interval - get the SCHED_RR interval for the named process"
3380 msgstr "sched_rr_get_interval - 指定されたプロセスの SCHED_RR 間隔を取得する"
3381
3382 #. type: Plain text
3383 #: build/C/man2/sched_rr_get_interval.2:36
3384 msgid ""
3385 "B<int sched_rr_get_interval(pid_t >I<pid>B<, struct timespec * >I<tp>B<);>"
3386 msgstr ""
3387 "B<int sched_rr_get_interval(pid_t >I<pid>B<, struct timespec *>I<tp>B<);>"
3388
3389 #. type: Plain text
3390 #: build/C/man2/sched_rr_get_interval.2:47
3391 msgid ""
3392 "B<sched_rr_get_interval>()  writes into the I<timespec> structure pointed to "
3393 "by I<tp> the round-robin time quantum for the process identified by I<pid>.  "
3394 "The specified process should be running under the B<SCHED_RR> scheduling "
3395 "policy."
3396 msgstr ""
3397 "B<sched_rr_get_interval>() は I<tp> で指定された I<timespec> 構造体に\n"
3398 "I<pid> で指定されたプロセスのラウンドロビン時間量 (round robin time\n"
3399 "quantum) を書き込む。指定されたプロセスは B<SCHED_RR> スケジューリング\n"
3400 "ポリシーで動作しているはずである。"
3401
3402 #. type: Plain text
3403 #: build/C/man2/sched_rr_get_interval.2:51
3404 msgid "The I<timespec> structure has the following form:"
3405 msgstr "I<timespec> 構造体は以下の通りである:"
3406
3407 #. type: Plain text
3408 #: build/C/man2/sched_rr_get_interval.2:58
3409 #, no-wrap
3410 msgid ""
3411 "struct timespec {\n"
3412 "    time_t tv_sec;    /* seconds */\n"
3413 "    long   tv_nsec;   /* nanoseconds */\n"
3414 "};\n"
3415 msgstr ""
3416 "struct timespec {\n"
3417 "    time_t tv_sec;    /* seconds */\n"
3418 "    long   tv_nsec;   /* nanoseconds */\n"
3419 "};\n"
3420
3421 #
3422 #.  FIXME . On Linux, sched_rr_get_interval()
3423 #.  returns the timeslice for SCHED_OTHER processes -- this timeslice
3424 #.  is influenced by the nice value.
3425 #.  For SCHED_FIFO processes, this always returns 0.
3426 #.  The round-robin time quantum value is not alterable under Linux
3427 #.  1.3.81.
3428 #. type: Plain text
3429 #: build/C/man2/sched_rr_get_interval.2:73
3430 msgid ""
3431 "If I<pid> is zero, the time quantum for the calling process is written into "
3432 "I<*tp>."
3433 msgstr ""
3434 "I<pid> が 0 の場合、呼び出したプロセスの時間量 (time quantum) が\n"
3435 "I<*tp> に書き込まれる。"
3436
3437 #. type: Plain text
3438 #: build/C/man2/sched_rr_get_interval.2:80
3439 msgid ""
3440 "On success, B<sched_rr_get_interval>()  returns 0.  On error, -1 is "
3441 "returned, and I<errno> is set appropriately."
3442 msgstr ""
3443 "成功した場合は B<sched_rr_get_interval>()  は 0 を返す。 エラーの場合は -1 が"
3444 "返され、 I<errno> が適切に設定される。"
3445
3446 #. type: TP
3447 #: build/C/man2/sched_rr_get_interval.2:81
3448 #: build/C/man2/sched_setaffinity.2:117
3449 #, no-wrap
3450 msgid "B<EFAULT>"
3451 msgstr "B<EFAULT>"
3452
3453 #. type: Plain text
3454 #: build/C/man2/sched_rr_get_interval.2:84
3455 msgid "Problem with copying information to user space."
3456 msgstr "情報をユーザ空間にコピーする時に問題が起きた。"
3457
3458 #. type: Plain text
3459 #: build/C/man2/sched_rr_get_interval.2:87
3460 msgid "Invalid pid."
3461 msgstr "PID が不正である。"
3462
3463 #. type: Plain text
3464 #: build/C/man2/sched_rr_get_interval.2:90
3465 msgid "The system call is not yet implemented (only on rather old kernels)."
3466 msgstr ""
3467 "システム・コールがまだ実装されていない (かなり古いカーネルにおいてのみ)。"
3468
3469 #. type: Plain text
3470 #: build/C/man2/sched_rr_get_interval.2:94
3471 msgid "Could not find a process with the ID I<pid>."
3472 msgstr "プロセス ID が I<pid> のプロセスが見つからなかった。"
3473
3474 #. type: Plain text
3475 #: build/C/man2/sched_rr_get_interval.2:103
3476 msgid ""
3477 "POSIX systems on which B<sched_rr_get_interval>()  is available define "
3478 "B<_POSIX_PRIORITY_SCHEDULING> in I<E<lt>unistd.hE<gt>>."
3479 msgstr ""
3480 "POSIX システムで B<sched_rr_get_interval>() は I<E<lt>unistd.hE<gt>> に\n"
3481 "B<_POSIX_PRIORITY_SCHEDULING> が定義されている場合にのみ使用可能である。"
3482
3483 #. type: SS
3484 #: build/C/man2/sched_rr_get_interval.2:103
3485 #, no-wrap
3486 msgid "Linux notes"
3487 msgstr "Linux での注意"
3488
3489 #.  commit a4ec24b48ddef1e93f7578be53270f0b95ad666c
3490 #. type: Plain text
3491 #: build/C/man2/sched_rr_get_interval.2:117
3492 msgid ""
3493 "POSIX does not specify any mechanism for controlling the size of the round-"
3494 "robin time quantum.  Older Linux kernels provide a (nonportable) method of "
3495 "doing this.  The quantum can be controlled by adjusting the process's nice "
3496 "value (see B<setpriority>(2)).  Assigning a negative (i.e., high) nice value "
3497 "results in a longer quantum; assigning a positive (i.e., low) nice value "
3498 "results in a shorter quantum.  The default quantum is 0.1 seconds; the "
3499 "degree to which changing the nice value affects the quantum has varied "
3500 "somewhat across kernel versions.  This method of adjusting the quantum was "
3501 "removed starting with Linux 2.6.24."
3502 msgstr ""
3503 "POSIX ではラウンドロビン時間量の大きさを制御する仕組みが規定されていない。 古"
3504 "い Linux カーネルではこれを変更する方法が提供されている (この方法に移植性はな"
3505 "い)。 プロセスの nice 値を調整することで時間量を制御できる (B<setpriority>"
3506 "(2) 参照)。 負の nice 値 (すなわち、高い nice 値) を割り当てると時間量は長く"
3507 "なり、 正の nice 値 (すなわち、低い nice 値) を割り当てると時間量は短くな"
3508 "る。 デフォルトの時間量は 0.1 秒である。 nice 値の変更が時間量にどの程度影響"
3509 "を与えるかは カーネルのバージョンにより多少異なる。時間量を調整するこのメソッ"
3510 "ドは Linux 2.6.24 以降で削除された。"
3511
3512 #.  commit ce0dbbbb30aee6a835511d5be446462388ba9eee
3513 #.  .SH BUGS
3514 #.  As of Linux 1.3.81
3515 #.  .BR sched_rr_get_interval ()
3516 #.  returns with error
3517 #.  ENOSYS, because SCHED_RR has not yet been fully implemented and tested
3518 #.  properly.
3519 #. type: Plain text
3520 #: build/C/man2/sched_rr_get_interval.2:132
3521 msgid ""
3522 "Linux 3.9 added a new mechanism for adjusting (and viewing) the B<SCHED_RR> "
3523 "quantum: the I</proc/sys/kernel/sched_rr_timeslice_ms> file exposes the "
3524 "quantum as a millisecond value, whose default is 100.  Writing 0 to this "
3525 "file resets the quantum to the default value."
3526 msgstr ""
3527 "Linux 3.9 で、 B<SCHED_RR> の時間量の調整 (と参照) を行う新しい機構が追加され"
3528 "た。 I</proc/sys/kernel/sched_rr_timeslice_ms> ファイルでミリ秒単位の時間量の"
3529 "値が参照でき、 デフォルト値は 100 である。 このファイルに 0 を書き込むと、 時"
3530 "間量をデフォルト値に戻すことができる。"
3531
3532 #. type: Plain text
3533 #: build/C/man2/sched_rr_get_interval.2:135
3534 #: build/C/man2/sched_setaffinity.2:177
3535 msgid ""
3536 "B<sched_setscheduler>(2)  has a description of the Linux scheduling scheme."
3537 msgstr ""
3538 "B<sched_setscheduler>(2) に Linux のスケジューリング方式についての説明\n"
3539 "がある。"
3540
3541 #. type: TH
3542 #: build/C/man2/sched_setaffinity.2:34
3543 #, no-wrap
3544 msgid "SCHED_SETAFFINITY"
3545 msgstr "SCHED_SETAFFINITY"
3546
3547 #. type: TH
3548 #: build/C/man2/sched_setaffinity.2:34 build/C/man2/sched_setparam.2:30
3549 #: build/C/man2/sched_setscheduler.2:46
3550 #, no-wrap
3551 msgid "2013-09-17"
3552 msgstr "2013-09-17"
3553
3554 #. type: Plain text
3555 #: build/C/man2/sched_setaffinity.2:38
3556 msgid ""
3557 "sched_setaffinity, sched_getaffinity - set and get a thread's CPU affinity "
3558 "mask"
3559 msgstr ""
3560 "sched_setaffinity, sched_getaffinity - スレッドの CPU affinity マスクを設定・"
3561 "取得する"
3562
3563 #. type: Plain text
3564 #: build/C/man2/sched_setaffinity.2:45
3565 #, no-wrap
3566 msgid ""
3567 "B<int sched_setaffinity(pid_t >I<pid>B<, size_t >I<cpusetsize>B<,>\n"
3568 "B<                      cpu_set_t *>I<mask>B<);>\n"
3569 msgstr ""
3570 "B<int sched_setaffinity(pid_t >I<pid>B<, size_t >I<cpusetsize>B<,>\n"
3571 "B<                      cpu_set_t *>I<mask>B<);>\n"
3572
3573 #. type: Plain text
3574 #: build/C/man2/sched_setaffinity.2:48
3575 #, no-wrap
3576 msgid ""
3577 "B<int sched_getaffinity(pid_t >I<pid>B<, size_t >I<cpusetsize>B<,>\n"
3578 "B<                      cpu_set_t *>I<mask>B<);>\n"
3579 msgstr ""
3580 "B<int sched_getaffinity(pid_t >I<pid>B<, size_t >I<cpusetsize>B<,>\n"
3581 "B<                      cpu_set_t *>I<mask>B<);>\n"
3582
3583 #. type: Plain text
3584 #: build/C/man2/sched_setaffinity.2:63
3585 msgid ""
3586 "A thread's CPU affinity mask determines the set of CPUs on which it is "
3587 "eligible to run.  On a multiprocessor system, setting the CPU affinity mask "
3588 "can be used to obtain performance benefits.  For example, by dedicating one "
3589 "CPU to a particular thread (i.e., setting the affinity mask of that thread "
3590 "to specify a single CPU, and setting the affinity mask of all other threads "
3591 "to exclude that CPU), it is possible to ensure maximum execution speed for "
3592 "that thread.  Restricting a thread to run on a single CPU also avoids the "
3593 "performance cost caused by the cache invalidation that occurs when a thread "
3594 "ceases to execute on one CPU and then recommences execution on a different "
3595 "CPU."
3596 msgstr ""
3597 "スレッドの CPU affinity (親和度) マスクは、そのスレッドが 実行を許可されてい"
3598 "る CPU の集合を決定する。 マルチプロセッサ・システムでは、CPU affinity マスク"
3599 "を設定することで 性能上のメリットを得られる可能性がある。 例えば、特定のス"
3600 "レッドを一つの CPU に括り付け (すなわち、そのスレッドの affinity マスクを一つ"
3601 "の CPU に設定し)、 他の全てのスレッドの affinity マスクからその CPU を除外す"
3602 "ることで、 確実にそのスレッドの実行速度を最大にすることができる。 また、ある"
3603 "スレッドの実行を一つの CPU に限定することで、 一つの CPU での実行を停止してか"
3604 "ら別の CPU で実行を再開するときに発生する キャッシュ無効化 (cache "
3605 "invalidation) による性能面の劣化を避けることもできる。"
3606
3607 #. type: Plain text
3608 #: build/C/man2/sched_setaffinity.2:70
3609 msgid ""
3610 "A CPU affinity mask is represented by the I<cpu_set_t> structure, a \"CPU set"
3611 "\", pointed to by I<mask>.  A set of macros for manipulating CPU sets is "
3612 "described in B<CPU_SET>(3)."
3613 msgstr ""
3614 "CPU affinity マスクは「CPU の集合」を表す I<cpu_set_t> 構造体で表現され、 "
3615 "I<cpu_set_t> へのポインタ I<mask> で指定される。 CPU 集合を操作するためのマク"
3616 "ロ群については B<CPU_SET>(3)  で記載されている。"
3617
3618 #. type: Plain text
3619 #: build/C/man2/sched_setaffinity.2:85
3620 msgid ""
3621 "B<sched_setaffinity>()  sets the CPU affinity mask of the thread whose ID is "
3622 "I<pid> to the value specified by I<mask>.  If I<pid> is zero, then the "
3623 "calling thread is used.  The argument I<cpusetsize> is the length (in bytes) "
3624 "of the data pointed to by I<mask>.  Normally this argument would be "
3625 "specified as I<sizeof(cpu_set_t)>."
3626 msgstr ""
3627 "B<sched_setaffinity>()  は、スレッド ID が I<pid> のスレッドの CPU affinity "
3628 "マスクを I<mask> で指定された値に設定する。 I<pid> が 0 の場合、呼び出し元ス"
3629 "レッドが使われる。 I<cpusetsize> 引き数には I<mask> が指すデータの長さ (バイ"
3630 "ト単位) である。 通常は、この引き数には I<sizeof(cpu_set_t)> を指定すればよ"
3631 "い。"
3632
3633 #. type: Plain text
3634 #: build/C/man2/sched_setaffinity.2:92
3635 msgid ""
3636 "If the thread specified by I<pid> is not currently running on one of the "
3637 "CPUs specified in I<mask>, then that thread is migrated to one of the CPUs "
3638 "specified in I<mask>."
3639 msgstr ""
3640 "I<pid> で指定されたスレッドが I<mask> で指定された CPU のいずれかで現在実行さ"
3641 "れていない場合、 そのスレッドは I<mask> で指定された CPU のいずれかに移動され"
3642 "る。"
3643
3644 #. type: Plain text
3645 #: build/C/man2/sched_setaffinity.2:107
3646 msgid ""
3647 "B<sched_getaffinity>()  writes the affinity mask of the thread whose ID is "
3648 "I<pid> into the I<cpu_set_t> structure pointed to by I<mask>.  The "
3649 "I<cpusetsize> argument specifies the size (in bytes) of I<mask>.  If I<pid> "
3650 "is zero, then the mask of the calling thread is returned."
3651 msgstr ""
3652 "B<sched_getaffinity>()  は、 スレッド ID が I<pid> のスレッドの affinity マス"
3653 "クを I<mask> が指す I<cpu_set_t> 構造体に書き込む。 I<cpusetsize> 引き数には "
3654 "I<mask> の (バイト単位の) 大きさを指定する。"
3655
3656 #. type: Plain text
3657 #: build/C/man2/sched_setaffinity.2:116
3658 msgid ""
3659 "On success, B<sched_setaffinity>()  and B<sched_getaffinity>()  return 0.  "
3660 "On error, -1 is returned, and I<errno> is set appropriately."
3661 msgstr ""
3662 "成功した場合、 B<sched_setaffinity>()  と B<sched_getaffinity>()  は 0 を返"
3663 "す。 エラーの場合は -1 を返し、 I<errno> を適切に設定する。"
3664
3665 #. type: Plain text
3666 #: build/C/man2/sched_setaffinity.2:120
3667 msgid "A supplied memory address was invalid."
3668 msgstr "指定されたメモリ番地が不正である。"
3669
3670 #. type: Plain text
3671 #: build/C/man2/sched_setaffinity.2:128
3672 msgid ""
3673 "The affinity bit mask I<mask> contains no processors that are currently "
3674 "physically on the system and permitted to the thread according to any "
3675 "restrictions that may be imposed by the \"cpuset\" mechanism described in "
3676 "B<cpuset>(7)."
3677 msgstr ""
3678 "システム上に現在実際に存在し、かつ \"cpuset\" 機構が課す制限においてそのス"
3679 "レッドに対して許可されている プロセッサが、 affinity ビットマスク I<mask> に"
3680 "含まれていない。 \"cpuset\" 機構については B<cpuset>(7)  を参照。"
3681
3682 #. type: Plain text
3683 #: build/C/man2/sched_setaffinity.2:135
3684 msgid ""
3685 "(B<sched_getaffinity>()  and, in kernels before 2.6.9, B<sched_setaffinity>"
3686 "())  I<cpusetsize> is smaller than the size of the affinity mask used by the "
3687 "kernel."
3688 msgstr ""
3689 "(B<sched_getaffinity>()  と、カーネル 2.6.9 以前の B<sched_setaffinity>())  "
3690 "I<cpusetsize> がカーネルで使われている affinity マスクのサイズより小さい。"
3691
3692 #. type: Plain text
3693 #: build/C/man2/sched_setaffinity.2:145
3694 msgid ""
3695 "(B<sched_setaffinity>())  The calling thread does not have appropriate "
3696 "privileges.  The caller needs an effective user ID equal to the real user ID "
3697 "or effective user ID of the thread identified by I<pid>, or it must possess "
3698 "the B<CAP_SYS_NICE> capability."
3699 msgstr ""
3700 "(B<sched_setaffinity>())  呼び出し元のスレッドに適切な特権がなかった。 呼び出"
3701 "し元は、実効ユーザ ID が I<pid> で識別されるスレッドの実ユーザ ID または実効"
3702 "ユーザ ID と同じであるか、 B<CAP_SYS_NICE> ケーパビリティ (capability) を持た"
3703 "なければならない。"
3704
3705 #. type: Plain text
3706 #: build/C/man2/sched_setaffinity.2:148 build/C/man2/sched_setscheduler.2:445
3707 msgid "The thread whose ID is I<pid> could not be found."
3708 msgstr "ID が I<pid> のスレッドが見つからなかった。"
3709
3710 #. type: Plain text
3711 #: build/C/man2/sched_setaffinity.2:159
3712 msgid ""
3713 "The CPU affinity system calls were introduced in Linux kernel 2.5.8.  The "
3714 "system call wrappers were introduced in glibc 2.3.  Initially, the glibc "
3715 "interfaces included a I<cpusetsize> argument, typed as I<unsigned int>.  In "
3716 "glibc 2.3.3, the I<cpusetsize> argument was removed, but was then restored "
3717 "in glibc 2.3.4, with type I<size_t>."
3718 msgstr ""
3719 "CPU affinity システムコールは Linux kernel 2.5.8 で導入された。 これらのシス"
3720 "テムコールのラッパー関数は glibc 2.3 で導入された。 最初は、glibc のインタ"
3721 "フェースには I<unsigned int> 型の I<cpusetsize> 引き数が入っていた。 glibc "
3722 "2.3.3 では I<cpusetsize> 引き数が削除されたが、glibc 2.3.4 で I<size_t> 型で"
3723 "復活した。"
3724
3725 #. type: Plain text
3726 #: build/C/man2/sched_setaffinity.2:161
3727 msgid "These system calls are Linux-specific."
3728 msgstr "これらのシステムコールは Linux 固有である。"
3729
3730 #. type: Plain text
3731 #: build/C/man2/sched_setaffinity.2:174
3732 msgid ""
3733 "After a call to B<sched_setaffinity>(), the set of CPUs on which the thread "
3734 "will actually run is the intersection of the set specified in the I<mask> "
3735 "argument and the set of CPUs actually present on the system.  The system may "
3736 "further restrict the set of CPUs on which the thread runs if the \"cpuset\" "
3737 "mechanism described in B<cpuset>(7)  is being used.  These restrictions on "
3738 "the actual set of CPUs on which the thread will run are silently imposed by "
3739 "the kernel."
3740 msgstr ""
3741 "B<sched_setaffinity>()  を呼び出した後は、スレッドが実際に実行される CPU の集"
3742 "合は、 I<mask> 引き数で指定された集合と、システム上に実際に存在する CPU の集"
3743 "合の 共通集合 (AND) となる。 \"cpuset\" 機構が使用されている場合には、スレッ"
3744 "ドが動作する CPU 集合 に対してシステムはさらに制限を加えるかもしれない "
3745 "(\"cpuset\" 機構については B<cpuset>(7)  を参照)。 スレッドが動作する実際の "
3746 "CPU 集合に対する制限はカーネルにより 暗黙のうちに適用される。"
3747
3748 #. type: Plain text
3749 #: build/C/man2/sched_setaffinity.2:194
3750 msgid ""
3751 "The affinity mask is a per-thread attribute that can be adjusted "
3752 "independently for each of the threads in a thread group.  The value returned "
3753 "from a call to B<gettid>(2)  can be passed in the argument I<pid>.  "
3754 "Specifying I<pid> as 0 will set the attribute for the calling thread, and "
3755 "passing the value returned from a call to B<getpid>(2)  will set the "
3756 "attribute for the main thread of the thread group.  (If you are using the "
3757 "POSIX threads API, then use B<pthread_setaffinity_np>(3)  instead of "
3758 "B<sched_setaffinity>().)"
3759 msgstr ""
3760 "affinity マスクはスレッド単位の属性で、スレッドグループの 各スレッド単位に独"
3761 "立して調整することができる。 B<gettid>(2)  コールからの返り値をこのコールの "
3762 "I<pid> 引き数として渡すことができる。 I<pid> に 0 を指定すると呼び出し元のス"
3763 "レッドの属性が設定され、 B<getpid>(2)  コールからの返り値を I<pid> に指定する"
3764 "とスレッドグループのメインスレッドの属性が設定される (POSIX スレッド API を使"
3765 "用している場合、 B<sched_setaffinity>()  の代わりに B<pthread_setaffinity_np>"
3766 "(3)  を使用すること)。"
3767
3768 #. type: Plain text
3769 #: build/C/man2/sched_setaffinity.2:200
3770 msgid ""
3771 "A child created via B<fork>(2)  inherits its parent's CPU affinity mask.  "
3772 "The affinity mask is preserved across an B<execve>(2)."
3773 msgstr ""
3774 "B<fork>(2)  経由で生成された子プロセスは親プロセスの CPU affinity マスクを継"
3775 "承する。 affinity マスクは B<execve>(2)  の前後で保存される。"
3776
3777 #. type: Plain text
3778 #: build/C/man2/sched_setaffinity.2:214
3779 msgid ""
3780 "This manual page describes the glibc interface for the CPU affinity calls.  "
3781 "The actual system call interface is slightly different, with the I<mask> "
3782 "being typed as I<unsigned long\\ *>, reflecting the fact that the underlying "
3783 "implementation of CPU sets is a simple bit mask.  On success, the raw "
3784 "B<sched_getaffinity>()  system call returns the size (in bytes) of the "
3785 "I<cpumask_t> data type that is used internally by the kernel to represent "
3786 "the CPU set bit mask."
3787 msgstr ""
3788 "このマニュアルページでは CPU affinity コールの glibc インタフェースを 説明し"
3789 "ている。実際のシステムコール・インタフェースは少し違っており、 実際の実装で"
3790 "は CPU 集合は簡単なビットマスクであるという実状を反映し、 I<mask> の型が "
3791 "I<unsigned long\\ *> となっている。 成功時には、生の B<sched_getaffinity>()  "
3792 "システムコール自身は I<cpumask_t> データ型の (バイト単位の) 大きさを返す。 "
3793 "I<cpumask_t> はカーネル内部で CPU 集合のビットマスクを表現するのに 使われてい"
3794 "るデータ型である。"
3795
3796 #. type: Plain text
3797 #: build/C/man2/sched_setaffinity.2:233
3798 msgid ""
3799 "B<taskset>(1), B<clone>(2), B<getcpu>(2), B<getpriority>(2), B<gettid>(2), "
3800 "B<nice>(2), B<sched_get_priority_max>(2), B<sched_get_priority_min>(2), "
3801 "B<sched_getscheduler>(2), B<sched_setscheduler>(2), B<setpriority>(2), "
3802 "B<CPU_SET>(3), B<pthread_setaffinity_np>(3), B<sched_getcpu>(3), "
3803 "B<capabilities>(7), B<cpuset>(7)"
3804 msgstr ""
3805 "B<taskset>(1), B<clone>(2), B<getcpu>(2), B<getpriority>(2), B<gettid>(2), "
3806 "B<nice>(2), B<sched_get_priority_max>(2), B<sched_get_priority_min>(2), "
3807 "B<sched_getscheduler>(2), B<sched_setscheduler>(2), B<setpriority>(2), "
3808 "B<CPU_SET>(3), B<pthread_setaffinity_np>(3), B<sched_getcpu>(3), "
3809 "B<capabilities>(7), B<cpuset>(7)"
3810
3811 #. type: TH
3812 #: build/C/man2/sched_setparam.2:30
3813 #, no-wrap
3814 msgid "SCHED_SETPARAM"
3815 msgstr "SCHED_SETPARAM"
3816
3817 #. type: Plain text
3818 #: build/C/man2/sched_setparam.2:33
3819 msgid "sched_setparam, sched_getparam - set and get scheduling parameters"
3820 msgstr ""
3821 "sched_setparam, sched_getparam - スケジューリング・パラメータの設定と取得を行"
3822 "なう"
3823
3824 #. type: Plain text
3825 #: build/C/man2/sched_setparam.2:38
3826 #, no-wrap
3827 msgid "B<int sched_setparam(pid_t >I<pid>B<, const struct sched_param *>I<param>B<);>\n"
3828 msgstr "B<int sched_setparam(pid_t >I<pid>B<, const struct sched_param *>I<param>B<);>\n"
3829
3830 #. type: Plain text
3831 #: build/C/man2/sched_setparam.2:40
3832 #, no-wrap
3833 msgid "B<int sched_getparam(pid_t >I<pid>B<, struct sched_param *>I<param>B<);>\n"
3834 msgstr "B<int sched_getparam(pid_t >I<pid>B<, struct sched_param *>I<param>B<);>\n"
3835
3836 #. type: Plain text
3837 #: build/C/man2/sched_setparam.2:46 build/C/man2/sched_setscheduler.2:65
3838 #, no-wrap
3839 msgid ""
3840 "B<struct sched_param {\n"
3841 "    ...\n"
3842 "    int >I<sched_priority>B<;\n"
3843 "    ...\n"
3844 "};>\n"
3845 msgstr ""
3846 "B<struct sched_param {\n"
3847 "    ...\n"
3848 "    int >I<sched_priority>B<;\n"
3849 "    ...\n"
3850 "};>\n"
3851
3852 #. type: Plain text
3853 #: build/C/man2/sched_setparam.2:60
3854 msgid ""
3855 "B<sched_setparam>()  sets the scheduling parameters associated with the "
3856 "scheduling policy for the process identified by I<pid>.  If I<pid> is zero, "
3857 "then the parameters of the calling process are set.  The interpretation of "
3858 "the argument I<param> depends on the scheduling policy of the process "
3859 "identified by I<pid>.  See B<sched_setscheduler>(2)  for a description of "
3860 "the scheduling policies supported under Linux."
3861 msgstr ""
3862 "B<sched_setparam>()  は I<pid> で指定されたプロセスのスケジューリング方針 "
3863 "(scheduling policy) に 関連するスケジューリング・パラメータを設定する。 "
3864 "I<pid> が 0 ならば、呼び出し元のプロセスのパラメータが設定される。 引き数 "
3865 "I<param> の解釈は、 I<pid> で指定されたプロセスのスケジューリング方針によって"
3866 "異なる。 Linux でサポートされているスケジューリング方針の説明は "
3867 "B<sched_setscheduler>(2)  を参照のこと。"
3868
3869 #. type: Plain text
3870 #: build/C/man2/sched_setparam.2:66
3871 msgid ""
3872 "B<sched_getparam>()  retrieves the scheduling parameters for the process "
3873 "identified by I<pid>.  If I<pid> is zero, then the parameters of the calling "
3874 "process are retrieved."
3875 msgstr ""
3876 "B<sched_getparam>()  は I<pid> で指定されたプロセスのスケジューリング・パラ"
3877 "メータを取得する。 I<pid> が 0 ならば、呼び出し元のプロセスのパラメータを取得"
3878 "する。"
3879
3880 #. type: Plain text
3881 #: build/C/man2/sched_setparam.2:75
3882 msgid ""
3883 "B<sched_setparam>()  checks the validity of I<param> for the scheduling "
3884 "policy of the thread.  The value I<param-E<gt>sched_priority> must lie "
3885 "within the range given by B<sched_get_priority_min>(2)  and "
3886 "B<sched_get_priority_max>(2)."
3887 msgstr ""
3888 "B<sched_setparam>()  はスレッドのスケジューリング方針における I<param> の妥当"
3889 "性をチェックする。 I<param-E<gt>sched_priority> の値は "
3890 "B<sched_get_priority_min>(2)  と B<sched_get_priority_max>(2)  の範囲に入って"
3891 "いなければならない。"
3892
3893 #. type: Plain text
3894 #: build/C/man2/sched_setparam.2:79
3895 msgid ""
3896 "For a discussion of the privileges and resource limits related to scheduling "
3897 "priority and policy, see B<sched_setscheduler>(2)."
3898 msgstr ""
3899 "スケジューリングの優先度と方針に関連する特権とリソース制限の 議論に関しては "
3900 "B<sched_setscheduler>(2)  を参照のこと。"
3901
3902 #. type: Plain text
3903 #: build/C/man2/sched_setparam.2:87
3904 msgid ""
3905 "POSIX systems on which B<sched_setparam>()  and B<sched_getparam>()  are "
3906 "available define B<_POSIX_PRIORITY_SCHEDULING> in I<E<lt>unistd.hE<gt>>."
3907 msgstr ""
3908 "B<sched_setparam>()  と B<sched_getparam>()  が使用できる POSIX システムで"
3909 "は、 I<E<lt>unistd.hE<gt>> に B<_POSIX_PRIORITY_SCHEDULING> が定義されてい"
3910 "る。"
3911
3912 #. type: Plain text
3913 #: build/C/man2/sched_setparam.2:96
3914 msgid ""
3915 "On success, B<sched_setparam>()  and B<sched_getparam>()  return 0.  On "
3916 "error, -1 is returned, and I<errno> is set appropriately."
3917 msgstr ""
3918 "成功した場合は B<sched_setparam>()  と B<sched_getparam>()  は 0 を返す。 エ"
3919 "ラーの場合は -1 が返され、 I<errno> が適切に設定される。"
3920
3921 #. type: Plain text
3922 #: build/C/man2/sched_setparam.2:101
3923 msgid ""
3924 "The argument I<param> does not make sense for the current scheduling policy."
3925 msgstr "引き数 I<param> が現在のスケジューリング方針においては 無意味である。"
3926
3927 #. type: Plain text
3928 #: build/C/man2/sched_setparam.2:107
3929 msgid ""
3930 "The calling process does not have appropriate privileges (Linux: does not "
3931 "have the B<CAP_SYS_NICE> capability)."
3932 msgstr ""
3933 "呼び出し元のプロセスが適切な特権を持っていない (Linux では、 B<CAP_SYS_NICE> "
3934 "ケーパビリティを持っていない)。"
3935
3936 #. type: Plain text
3937 #: build/C/man2/sched_setparam.2:110
3938 msgid "The process whose ID is I<pid> could not be found."
3939 msgstr "プロセス ID I<pid> のプロセスが見つからなかった。"
3940
3941 #. type: Plain text
3942 #: build/C/man2/sched_setparam.2:118
3943 msgid ""
3944 "Scheduling parameters are in fact per-thread attributes on Linux; see "
3945 "B<sched_setscheduler>(2)."
3946 msgstr ""
3947 "Linux では、スケジューリングパラメータは実際にはスレッド単位の属性である。 "
3948 "B<sched_setscheduler>(2) 参照。"
3949
3950 #. type: Plain text
3951 #: build/C/man2/sched_setparam.2:131
3952 msgid ""
3953 "B<getpriority>(2), B<nice>(2), B<sched_get_priority_max>(2), "
3954 "B<sched_get_priority_min>(2), B<sched_getaffinity>(2), B<sched_getscheduler>"
3955 "(2), B<sched_setaffinity>(2), B<sched_setscheduler>(2), B<setpriority>(2), "
3956 "B<capabilities>(7)"
3957 msgstr ""
3958 "B<getpriority>(2), B<nice>(2), B<sched_get_priority_max>(2), "
3959 "B<sched_get_priority_min>(2), B<sched_getaffinity>(2), B<sched_getscheduler>"
3960 "(2), B<sched_setaffinity>(2), B<sched_setscheduler>(2), B<setpriority>(2), "
3961 "B<capabilities>(7)"
3962
3963 #. type: TH
3964 #: build/C/man2/sched_setscheduler.2:46
3965 #, no-wrap
3966 msgid "SCHED_SETSCHEDULER"
3967 msgstr "SCHED_SETSCHEDULER"
3968
3969 #. type: Plain text
3970 #: build/C/man2/sched_setscheduler.2:50
3971 msgid ""
3972 "sched_setscheduler, sched_getscheduler - set and get scheduling policy/"
3973 "parameters"
3974 msgstr ""
3975 "sched_setscheduler, sched_getscheduler - スケジューリング・ポリシーとパラメー"
3976 "タを設定/取得する"
3977
3978 #. type: Plain text
3979 #: build/C/man2/sched_setscheduler.2:55
3980 #, no-wrap
3981 msgid "B<int sched_setscheduler(pid_t >I<pid>B<, int >I<policy>B<,>\n"
3982 msgstr "B<int sched_setscheduler(pid_t >I<pid>B<, int >I<policy>B<,>\n"
3983
3984 #. type: Plain text
3985 #: build/C/man2/sched_setscheduler.2:57
3986 #, no-wrap
3987 msgid "B<                       const struct sched_param *>I<param>B<);>\n"
3988 msgstr "B<                       const struct sched_param *>I<param>B<);>\n"
3989
3990 #. type: Plain text
3991 #: build/C/man2/sched_setscheduler.2:59
3992 #, no-wrap
3993 msgid "B<int sched_getscheduler(pid_t >I<pid>B<);>\n"
3994 msgstr "B<int sched_getscheduler(pid_t >I<pid>B<);>\n"
3995
3996 #. type: Plain text
3997 #: build/C/man2/sched_setscheduler.2:76
3998 msgid ""
3999 "B<sched_setscheduler>()  sets both the scheduling policy and the associated "
4000 "parameters for the thread whose ID is specified in I<pid>.  If I<pid> equals "
4001 "zero, the scheduling policy and parameters of the calling thread will be "
4002 "set.  The interpretation of the argument I<param> depends on the selected "
4003 "policy.  Currently, Linux supports the following \"normal\" (i.e., non-real-"
4004 "time) scheduling policies:"
4005 msgstr ""
4006 "B<sched_setscheduler>()  は I<pid> で指定された ID を持つスレッドのスケジュー"
4007 "リング・ポリシーや それに関連するパラメータを設定する。I<pid> が 0 の場合は "
4008 "呼び出したスレッドのスケジューリング・ポリシーとパラメータが設定される。 引き"
4009 "数 I<param> の解釈は選択されたポリシーによる。 現在のところ、Linux では 以下"
4010 "に示す「通常」(リアルタイムでない) スケジューリング・ポリシーが サポートされ"
4011 "ている。"
4012
4013 #. type: TP
4014 #: build/C/man2/sched_setscheduler.2:76
4015 #, no-wrap
4016 msgid "B<SCHED_OTHER>"
4017 msgstr "B<SCHED_OTHER>"
4018
4019 #.  In the 2.6 kernel sources, SCHED_OTHER is actually called
4020 #.  SCHED_NORMAL.
4021 #. type: Plain text
4022 #: build/C/man2/sched_setscheduler.2:81
4023 msgid "the standard round-robin time-sharing policy;"
4024 msgstr "標準の、ラウンドロビンによる時分割型のスケジューリング・ポリシー。"
4025
4026 #. type: TP
4027 #: build/C/man2/sched_setscheduler.2:81
4028 #, no-wrap
4029 msgid "B<SCHED_BATCH>"
4030 msgstr "B<SCHED_BATCH>"
4031
4032 #. type: Plain text
4033 #: build/C/man2/sched_setscheduler.2:84
4034 msgid "for \"batch\" style execution of processes; and"
4035 msgstr "「バッチ」形式でのプロセスの実行用。"
4036
4037 #. type: TP
4038 #: build/C/man2/sched_setscheduler.2:84
4039 #, no-wrap
4040 msgid "B<SCHED_IDLE>"
4041 msgstr "B<SCHED_IDLE>"
4042
4043 #. type: Plain text
4044 #: build/C/man2/sched_setscheduler.2:89
4045 msgid "for running I<very> low priority background jobs."
4046 msgstr "「非常に」低い優先度で動作するバックグラウンド・ジョブ用。"
4047
4048 #. type: Plain text
4049 #: build/C/man2/sched_setscheduler.2:93
4050 msgid ""
4051 "The following \"real-time\" policies are also supported, for special time-"
4052 "critical applications that need precise control over the way in which "
4053 "runnable threads are selected for execution:"
4054 msgstr ""
4055 "どの実行可能スレッドを選択するかについて、より正確な制御を必要とする 時間の制"
4056 "約が厳しい特別なアプリケーション用として、 以下の「リアルタイム」ポリシーもサ"
4057 "ポートされている。"
4058
4059 #. type: TP
4060 #: build/C/man2/sched_setscheduler.2:93
4061 #, no-wrap
4062 msgid "B<SCHED_FIFO>"
4063 msgstr "B<SCHED_FIFO>"
4064
4065 #. type: Plain text
4066 #: build/C/man2/sched_setscheduler.2:96
4067 msgid "a first-in, first-out policy; and"
4068 msgstr "ファーストイン、ファーストアウト型のポリシー。"
4069
4070 #. type: TP
4071 #: build/C/man2/sched_setscheduler.2:96
4072 #, no-wrap
4073 msgid "B<SCHED_RR>"
4074 msgstr "B<SCHED_RR>"
4075
4076 #. type: Plain text
4077 #: build/C/man2/sched_setscheduler.2:99
4078 msgid "a round-robin policy."
4079 msgstr "ラウンドロビン型のポリシー。"
4080
4081 #. type: Plain text
4082 #: build/C/man2/sched_setscheduler.2:101
4083 msgid "The semantics of each of these policies are detailed below."
4084 msgstr "これらのポリシーのそれぞれの動作については以下で説明する。"
4085
4086 #. type: Plain text
4087 #: build/C/man2/sched_setscheduler.2:108
4088 msgid ""
4089 "B<sched_getscheduler>()  queries the scheduling policy currently applied to "
4090 "the thread identified by I<pid>.  If I<pid> equals zero, the policy of the "
4091 "calling thread will be retrieved."
4092 msgstr ""
4093 "B<sched_getscheduler>()  は I<pid> で識別されるスレッドに現在適用されている "
4094 "スケジューリング・ポリシーを尋ねる。I<pid> が 0 ならば、呼び出した スレッド自"
4095 "身のスケジューリング・ポリシーが返される。"
4096
4097 #. type: SS
4098 #: build/C/man2/sched_setscheduler.2:108
4099 #, no-wrap
4100 msgid "Scheduling policies"
4101 msgstr "スケジューリング・ポリシー (scheduling policy)"
4102
4103 #. type: Plain text
4104 #: build/C/man2/sched_setscheduler.2:117
4105 msgid ""
4106 "The scheduler is the kernel component that decides which runnable thread "
4107 "will be executed by the CPU next.  Each thread has an associated scheduling "
4108 "policy and a I<static> scheduling priority, I<sched_priority>; these are the "
4109 "settings that are modified by B<sched_setscheduler>().  The scheduler makes "
4110 "it decisions based on knowledge of the scheduling policy and static priority "
4111 "of all threads on the system."
4112 msgstr ""
4113 "スケジューラ (scheduler) とはカーネルの構成要素で、 次に CPU で実行される実行"
4114 "可能なスレッドを決定するものである。 各々のスレッドには、スケジューリング・ポ"
4115 "リシーと 「静的」なスケジューリング優先度 I<sched_priority> が対応付けられ、 "
4116 "これらの設定は B<sched_setscheduler>()  で変更できる。 スケジューラは、システ"
4117 "ム上の全スレッドのスケジューリング・ポリシーと 静的優先度に関する知識に基づい"
4118 "て決定を行う。"
4119
4120 #. type: Plain text
4121 #: build/C/man2/sched_setscheduler.2:122
4122 msgid ""
4123 "For threads scheduled under one of the normal scheduling policies "
4124 "(B<SCHED_OTHER>, B<SCHED_IDLE>, B<SCHED_BATCH>), I<sched_priority> is not "
4125 "used in scheduling decisions (it must be specified as 0)."
4126 msgstr ""
4127 "通常のスケジューリング・ポリシー (B<SCHED_OTHER>, B<SCHED_IDLE>, "
4128 "B<SCHED_BATCH>)  の下でスケジューリングされるスレッドでは、 "
4129 "I<sched_priority> はスケジューリングの決定に使用されない (I<sched_priority> "
4130 "には 0 を指定しなければならない)。"
4131
4132 #. type: Plain text
4133 #: build/C/man2/sched_setscheduler.2:136
4134 msgid ""
4135 "Processes scheduled under one of the real-time policies (B<SCHED_FIFO>, "
4136 "B<SCHED_RR>) have a I<sched_priority> value in the range 1 (low) to 99 "
4137 "(high).  (As the numbers imply, real-time threads always have higher "
4138 "priority than normal threads.)  Note well: POSIX.1-2001 requires an "
4139 "implementation to support only a minimum 32 distinct priority levels for the "
4140 "real-time policies, and some systems supply just this minimum.  Portable "
4141 "programs should use B<sched_get_priority_min>(2)  and "
4142 "B<sched_get_priority_max>(2)  to find the range of priorities supported for "
4143 "a particular policy."
4144 msgstr ""
4145 "リアルタイム・スケジューリング・ポリシー (B<SCHED_FIFO>, B<SCHED_RR>)  の下で"
4146 "スケジューリングされるスレッドは、 I<sched_priority> の値は 1 (最低) から 99 "
4147 "(最高) の範囲となる (数字から分かるように、リアルタイム・スレッドは常に通常の"
4148 "スレッドよりも 高い優先度を持つ)。 ここで注意すべきなのは、POSIX.1-2001 が要"
4149 "求しているのは、 リアルタイム・ポリシーの実装において最低 32 種類の異なる優先"
4150 "度レベルが サポートされることだけであり、いくつかのシステムではこの最低限の数"
4151 "の 優先度しか提供されていない、ということである。 移植性が必要なプログラムで"
4152 "は、 B<sched_get_priority_min>(2)  と B<sched_get_priority_max>(2)  を使っ"
4153 "て、あるポリシーがサポートする優先度の範囲を調べるべきである。"
4154
4155 #. type: Plain text
4156 #: build/C/man2/sched_setscheduler.2:142
4157 msgid ""
4158 "Conceptually, the scheduler maintains a list of runnable threads for each "
4159 "possible I<sched_priority> value.  In order to determine which thread runs "
4160 "next, the scheduler looks for the nonempty list with the highest static "
4161 "priority and selects the thread at the head of this list."
4162 msgstr ""
4163 "概念としては、 スケジューラはその I<sched_priority> の値それぞれに対して 実行"
4164 "可能なスレッドのリストを管理している。 どのスレッドを次に実行するかを決定する"
4165 "ために、 スケジューラは静的優先度の最も高い空でないリストを探して、 そのリス"
4166 "トの先頭のスレッドを選択する。"
4167
4168 #. type: Plain text
4169 #: build/C/man2/sched_setscheduler.2:146
4170 msgid ""
4171 "A thread's scheduling policy determines where it will be inserted into the "
4172 "list of threads with equal static priority and how it will move inside this "
4173 "list."
4174 msgstr ""
4175 "各スレッドのスケジューリング・ポリシーは、 そのスレッドが同じ静的優先度を持つ"
4176 "スレッドのリストの中のどこに挿入され、 このリストの中をどのように移動するかを"
4177 "決定する。"
4178
4179 #. type: Plain text
4180 #: build/C/man2/sched_setscheduler.2:154
4181 msgid ""
4182 "All scheduling is preemptive: if a thread with a higher static priority "
4183 "becomes ready to run, the currently running thread will be preempted and "
4184 "returned to the wait list for its static priority level.  The scheduling "
4185 "policy determines the ordering only within the list of runnable threads with "
4186 "equal static priority."
4187 msgstr ""
4188 "全てのスケジューリングはプリエンプティブ (preemptive) である: より高い優先度"
4189 "のスレッドが実行可能になると、現在実行中のスレッドは実行権を 取り上げられ "
4190 "(preempted)、そのスレッドの静的優先度レベルの待ちリストに 戻される。スケ"
4191 "ジューリング・ポリシーは同じ静的優先度を持つ実行可能な スレッドのリストの中で"
4192 "順番のみを決定する。"
4193
4194 #. type: SS
4195 #: build/C/man2/sched_setscheduler.2:154
4196 #, no-wrap
4197 msgid "SCHED_FIFO: First in-first out scheduling"
4198 msgstr "SCHED_FIFO: ファーストイン・ファーストアウト・スケジューリング"
4199
4200 #. type: Plain text
4201 #: build/C/man2/sched_setscheduler.2:163
4202 msgid ""
4203 "B<SCHED_FIFO> can be used only with static priorities higher than 0, which "
4204 "means that when a B<SCHED_FIFO> threads becomes runnable, it will always "
4205 "immediately preempt any currently running B<SCHED_OTHER>, B<SCHED_BATCH>, or "
4206 "B<SCHED_IDLE> thread.  B<SCHED_FIFO> is a simple scheduling algorithm "
4207 "without time slicing.  For threads scheduled under the B<SCHED_FIFO> policy, "
4208 "the following rules apply:"
4209 msgstr ""
4210 "B<SCHED_FIFO> は 0 より大きな静的優先度でのみ使用できる。このポリシーでは、 "
4211 "B<SCHED_FIFO> スレッドが実行可能になった場合、 そのポリシーが "
4212 "B<SCHED_OTHER>、 B<SCHED_BATCH>、 B<SCHED_IDLE> の 現在実行中のスレッドは直ち"
4213 "に実行権を取り上げられる。 B<SCHED_FIFO> は時分割のない単純なスケジューリン"
4214 "グ・アルゴリズムである。 B<SCHED_FIFO> ポリシーでスケジューリングされているス"
4215 "レッドには以下の ルールが適用される:"
4216
4217 #. type: IP
4218 #: build/C/man2/sched_setscheduler.2:163 build/C/man2/sched_setscheduler.2:168
4219 #: build/C/man2/sched_setscheduler.2:171 build/C/man2/sched_setscheduler.2:185
4220 #: build/C/man2/sched_setscheduler.2:288 build/C/man2/sched_setscheduler.2:296
4221 #: build/C/man2/sched_setscheduler.2:337 build/C/man2/sched_setscheduler.2:345
4222 #: build/C/man2/sched_setscheduler.2:350 build/C/man2/sched_setscheduler.2:355
4223 #, no-wrap
4224 msgid "*"
4225 msgstr "*"
4226
4227 #. type: Plain text
4228 #: build/C/man2/sched_setscheduler.2:168
4229 msgid ""
4230 "A B<SCHED_FIFO> thread that has been preempted by another thread of higher "
4231 "priority will stay at the head of the list for its priority and will resume "
4232 "execution as soon as all threads of higher priority are blocked again."
4233 msgstr ""
4234 "より高い優先度の他のスレッドによって取って代わられた B<SCHED_FIFO> スレッドは"
4235 "その優先度のリストの先頭に留まり続け、 より高い優先度のスレッド全てが停止 "
4236 "(block) した場合に実行を再開する。"
4237
4238 #. type: Plain text
4239 #: build/C/man2/sched_setscheduler.2:171
4240 msgid ""
4241 "When a B<SCHED_FIFO> thread becomes runnable, it will be inserted at the end "
4242 "of the list for its priority."
4243 msgstr ""
4244 "B<SCHED_FIFO> スレッドが実行可能になった時、その優先度のリストの最後 に挿入さ"
4245 "れる。"
4246
4247 #.  In 2.2.x and 2.4.x, the thread is placed at the front of the queue
4248 #.  In 2.0.x, the Right Thing happened: the thread went to the back -- MTK
4249 #. type: Plain text
4250 #: build/C/man2/sched_setscheduler.2:185
4251 msgid ""
4252 "A call to B<sched_setscheduler>()  or B<sched_setparam>(2)  will put the "
4253 "B<SCHED_FIFO> (or B<SCHED_RR>) thread identified by I<pid> at the start of "
4254 "the list if it was runnable.  As a consequence, it may preempt the currently "
4255 "running thread if it has the same priority.  (POSIX.1-2001 specifies that "
4256 "the thread should go to the end of the list.)"
4257 msgstr ""
4258 "B<sched_setscheduler>()  や B<sched_setparam>(2)  は I<pid> で指定された "
4259 "B<SCHED_FIFO> (または B<SCHED_RR>) スレッドが 実行可能な場合、リストの最初に"
4260 "置く。 結果として、もし優先度が同じだった場合、 現在実行中のスレッドに先んじ"
4261 "るかもしれない。 (POSIX.1-2001 ではスレッドはリストの最後に行くべきと規定され"
4262 "ている。)"
4263
4264 #. type: Plain text
4265 #: build/C/man2/sched_setscheduler.2:189
4266 msgid "A thread calling B<sched_yield>(2)  will be put at the end of the list."
4267 msgstr "B<sched_yield>(2)  を呼び出したスレッドはリストの最後に置かれる。"
4268
4269 #. type: Plain text
4270 #: build/C/man2/sched_setscheduler.2:193
4271 msgid ""
4272 "No other events will move a thread scheduled under the B<SCHED_FIFO> policy "
4273 "in the wait list of runnable threads with equal static priority."
4274 msgstr ""
4275 "その他のイベントによって B<SCHED_FIFO> ポリシーでスケジューリングされるスレッ"
4276 "ドが同じ優先度の実行可能なスレッドの待ちリストの中を移動することはない。"
4277
4278 #. type: Plain text
4279 #: build/C/man2/sched_setscheduler.2:198
4280 msgid ""
4281 "A B<SCHED_FIFO> thread runs until either it is blocked by an I/O request, it "
4282 "is preempted by a higher priority thread, or it calls B<sched_yield>(2)."
4283 msgstr ""
4284 "B<SCHED_FIFO> スレッドは I/O 要求によって停止するか、 より高い優先度のスレッ"
4285 "ドによって置きかえられるか、 B<sched_yield>(2)  を呼び出すまで実行を続ける。"
4286
4287 #. type: SS
4288 #: build/C/man2/sched_setscheduler.2:198
4289 #, no-wrap
4290 msgid "SCHED_RR: Round-robin scheduling"
4291 msgstr "SCHED_RR: ラウンドロビン (round-robin)・スケジューリング"
4292
4293 #.  On Linux 2.4, the length of the RR interval is influenced
4294 #.  by the process nice value -- MTK
4295 #. type: Plain text
4296 #: build/C/man2/sched_setscheduler.2:217
4297 msgid ""
4298 "B<SCHED_RR> is a simple enhancement of B<SCHED_FIFO>.  Everything described "
4299 "above for B<SCHED_FIFO> also applies to B<SCHED_RR>, except that each thread "
4300 "is allowed to run only for a maximum time quantum.  If a B<SCHED_RR> thread "
4301 "has been running for a time period equal to or longer than the time quantum, "
4302 "it will be put at the end of the list for its priority.  A B<SCHED_RR> "
4303 "thread that has been preempted by a higher priority thread and subsequently "
4304 "resumes execution as a running thread will complete the unexpired portion of "
4305 "its round-robin time quantum.  The length of the time quantum can be "
4306 "retrieved using B<sched_rr_get_interval>(2)."
4307 msgstr ""
4308 "B<SCHED_RR> は B<SCHED_FIFO> の単純な拡張である。 上述された\n"
4309 "B<SCHED_FIFO> に関する記述は全て B<SCHED_RR> に 適用できる。異なるのは\n"
4310 "それぞれのスレッドは最大時間単位までしか実行できない ということである。\n"
4311 "B<SCHED_RR> スレッドが時間単位と同じかそれより 長い時間実行されると、\n"
4312 "その優先度のリストの最後に置かれる。 より高い優先度のスレッドによって\n"
4313 "置きかえられ、その後実行を再開した B<SCHED_RR> スレッドは、そのラウンド\n"
4314 "ロビン時間単位を完全に使い切る まで実行される。その時間単位の長さは\n"
4315 "B<sched_rr_get_interval>(2) を使って取得できる。"
4316
4317 #. type: SS
4318 #: build/C/man2/sched_setscheduler.2:217
4319 #, no-wrap
4320 msgid "SCHED_OTHER: Default Linux time-sharing scheduling"
4321 msgstr "SCHED_OTHER: Linux のデフォルトの時分割スケジューリング"
4322
4323 #. type: Plain text
4324 #: build/C/man2/sched_setscheduler.2:233
4325 msgid ""
4326 "B<SCHED_OTHER> can be used at only static priority 0.  B<SCHED_OTHER> is the "
4327 "standard Linux time-sharing scheduler that is intended for all threads that "
4328 "do not require the special real-time mechanisms.  The thread to run is "
4329 "chosen from the static priority 0 list based on a I<dynamic> priority that "
4330 "is determined only inside this list.  The dynamic priority is based on the "
4331 "nice value (set by B<nice>(2)  or B<setpriority>(2))  and increased for each "
4332 "time quantum the thread is ready to run, but denied to run by the "
4333 "scheduler.  This ensures fair progress among all B<SCHED_OTHER> threads."
4334 msgstr ""
4335 "B<SCHED_OTHER> は静的優先度 0 でのみ使用できる。 B<SCHED_OTHER> は Linux 標準"
4336 "の時分割スケジューラで、 特別なリアルタイム機構を必要としていない全てのスレッ"
4337 "ドで使用される。 実行するスレッドは、静的優先度 0 のリストから、このリストの"
4338 "中だけで 決定される「動的な」優先度 (dynamic priority) に基いて決定される。 "
4339 "動的な優先度は (B<nice>(2)  や B<setpriority>(2)  により設定される) nice 値に"
4340 "基づいて決定されるもので、 単位時間毎に、スレッドが実行可能だが、スケジューラ"
4341 "により実行が拒否された 場合にインクリメントされる。 これにより、全ての "
4342 "B<SCHED_OTHER> スレッドでの公平性が保証される。"
4343
4344 #. type: SS
4345 #: build/C/man2/sched_setscheduler.2:233
4346 #, no-wrap
4347 msgid "SCHED_BATCH: Scheduling batch processes"
4348 msgstr "SCHED_BATCH: バッチプロセスのスケジューリング"
4349
4350 #. type: Plain text
4351 #: build/C/man2/sched_setscheduler.2:245
4352 msgid ""
4353 "(Since Linux 2.6.16.)  B<SCHED_BATCH> can be used only at static priority "
4354 "0.  This policy is similar to B<SCHED_OTHER> in that it schedules the thread "
4355 "according to its dynamic priority (based on the nice value).  The difference "
4356 "is that this policy will cause the scheduler to always assume that the "
4357 "thread is CPU-intensive.  Consequently, the scheduler will apply a small "
4358 "scheduling penalty with respect to wakeup behaviour, so that this thread is "
4359 "mildly disfavored in scheduling decisions."
4360 msgstr ""
4361 "(Linux 2.6.16 以降)  B<SCHED_BATCH> は静的優先度 0 でのみ使用できる。 このポ"
4362 "リシーは (nice 値に基づく) 動的な優先度にしたがってスレッドの スケジューリン"
4363 "グが行われるという点で、B<SCHED_OTHER> に似ている。 異なるのは、このポリシー"
4364 "では、スレッドが常に CPU に負荷のかかる (CPU-intensive)  処理を行うと、スケ"
4365 "ジューラが仮定する点である。 スケジューラはスレッドを呼び起こす毎にそのスレッ"
4366 "ドにスケジューリング上の ペナルティを少し課し、その結果、このスレッドはスケ"
4367 "ジューリングの決定で 若干冷遇されるようになる。"
4368
4369 #.  The following paragraph is drawn largely from the text that
4370 #.  accompanied Ingo Molnar's patch for the implementation of
4371 #.  SCHED_BATCH.
4372 #.  commit b0a9499c3dd50d333e2aedb7e894873c58da3785
4373 #. type: Plain text
4374 #: build/C/man2/sched_setscheduler.2:255
4375 msgid ""
4376 "This policy is useful for workloads that are noninteractive, but do not want "
4377 "to lower their nice value, and for workloads that want a deterministic "
4378 "scheduling policy without interactivity causing extra preemptions (between "
4379 "the workload's tasks)."
4380 msgstr ""
4381 "このポリシーは、非対話的な処理だがその nice 値を下げたくない処理や、 (処理の"
4382 "タスク間で) 余計なタスクの置き換えの原因とある対話的な処理なしで 確定的な "
4383 "(deterministic) スケジューリング・ポリシーを適用したい処理に 対して有効であ"
4384 "る。"
4385
4386 #. type: SS
4387 #: build/C/man2/sched_setscheduler.2:255
4388 #, no-wrap
4389 msgid "SCHED_IDLE: Scheduling very low priority jobs"
4390 msgstr "SCHED_IDLE: 非常に優先度の低いジョブのスケジューリング"
4391
4392 #. type: Plain text
4393 #: build/C/man2/sched_setscheduler.2:259
4394 msgid ""
4395 "(Since Linux 2.6.23.)  B<SCHED_IDLE> can be used only at static priority 0; "
4396 "the process nice value has no influence for this policy."
4397 msgstr ""
4398 "(Linux 2.6.23 以降)  B<SCHED_IDLE> は静的優先度 0 でのみ使用できる。 このポリ"
4399 "シーではプロセスの nice 値はスケジューリングに影響を与えない。"
4400
4401 #. type: Plain text
4402 #: build/C/man2/sched_setscheduler.2:267
4403 msgid ""
4404 "This policy is intended for running jobs at extremely low priority (lower "
4405 "even than a +19 nice value with the B<SCHED_OTHER> or B<SCHED_BATCH> "
4406 "policies)."
4407 msgstr ""
4408 "非常に低い優先度でのジョブの実行を目的としたものである (非常に低い優先度と"
4409 "は、ポリシー B<SCHED_OTHER> か B<SCHED_BATCH> での nice 値 +19 よりさらに低い"
4410 "優先度である)。"
4411
4412 #. type: SS
4413 #: build/C/man2/sched_setscheduler.2:267
4414 #, no-wrap
4415 msgid "Resetting scheduling policy for child processes"
4416 msgstr "子プロセスでのスケジューリング・ポリシーのリセット"
4417
4418 #. type: Plain text
4419 #: build/C/man2/sched_setscheduler.2:283
4420 msgid ""
4421 "Since Linux 2.6.32, the B<SCHED_RESET_ON_FORK> flag can be ORed in I<policy> "
4422 "when calling B<sched_setscheduler>().  As a result of including this flag, "
4423 "children created by B<fork>(2)  do not inherit privileged scheduling "
4424 "policies.  This feature is intended for media-playback applications, and can "
4425 "be used to prevent applications evading the B<RLIMIT_RTTIME> resource limit "
4426 "(see B<getrlimit>(2))  by creating multiple child processes."
4427 msgstr ""
4428 "Linux 2.6.32 以降では、 B<sched_setscheduler>() を呼び出す際に I<policy> に "
4429 "B<SCHED_RESET_ON_FORK> フラグを OR で指定できる。このフラグが指定されると、 "
4430 "B<fork>(2) で作成された子プロセスは特権が必要なスケジューリング・ポリシーを継"
4431 "承しない。この機能はメディア再生を行うアプリケーションを想定して作られ、この"
4432 "機能を使うことで、アプリケーションが複数の子プロセスを作成することで "
4433 "B<RLIMIT_RTTIME> リソース上限 (B<getrlimit>(2) 参照) を回避するのを防ぐことが"
4434 "できる。"
4435
4436 #. type: Plain text
4437 #: build/C/man2/sched_setscheduler.2:288
4438 msgid ""
4439 "More precisely, if the B<SCHED_RESET_ON_FORK> flag is specified, the "
4440 "following rules apply for subsequently created children:"
4441 msgstr ""
4442 "より正確には、 B<SCHED_RESET_ON_FORK> フラグが指定された場合、それ以降に作成"
4443 "される子プロセスに以下のルールが適用される。"
4444
4445 #. type: Plain text
4446 #: build/C/man2/sched_setscheduler.2:296
4447 msgid ""
4448 "If the calling thread has a scheduling policy of B<SCHED_FIFO> or "
4449 "B<SCHED_RR>, the policy is reset to B<SCHED_OTHER> in child processes."
4450 msgstr ""
4451 "呼び出したスレッドのスケジューリング・ポリシーが B<SCHED_FIFO> か "
4452 "B<SCHED_RR> の場合、子プロセスのポリシーは B<SCHED_OTHER> にリセットされる。"
4453
4454 #. type: Plain text
4455 #: build/C/man2/sched_setscheduler.2:299
4456 msgid ""
4457 "If the calling process has a negative nice value, the nice value is reset to "
4458 "zero in child processes."
4459 msgstr ""
4460 "子プロセスが負の nice 値を持っている場合、子プロセスの nice 値は 0 にリセット"
4461 "される。"
4462
4463 #. type: Plain text
4464 #: build/C/man2/sched_setscheduler.2:308
4465 msgid ""
4466 "After the B<SCHED_RESET_ON_FORK> flag has been enabled, it can be reset only "
4467 "if the thread has the B<CAP_SYS_NICE> capability.  This flag is disabled in "
4468 "child processes created by B<fork>(2)."
4469 msgstr ""
4470 "一度 B<SCHED_RESET_ON_FORK> フラグが有効にされた後は、このフラグをリセットで"
4471 "きるのは、スレッドが B<CAP_SYS_NICE> ケーパビリティを持つ場合だけである。この"
4472 "フラグは B<fork>(2) で作成された子プロセスでは無効になる。"
4473
4474 #. type: Plain text
4475 #: build/C/man2/sched_setscheduler.2:314
4476 msgid ""
4477 "The B<SCHED_RESET_ON_FORK> flag is visible in the policy value returned by "
4478 "B<sched_getscheduler>()"
4479 msgstr ""
4480 "B<SCHED_RESET_ON_FORK> フラグは、 B<sched_getscheduler>() が返すポリシー値で"
4481 "参照できる。"
4482
4483 #. type: SS
4484 #: build/C/man2/sched_setscheduler.2:314
4485 #, no-wrap
4486 msgid "Privileges and resource limits"
4487 msgstr "特権とリソース制限"
4488
4489 #. type: Plain text
4490 #: build/C/man2/sched_setscheduler.2:327
4491 msgid ""
4492 "In Linux kernels before 2.6.12, only privileged (B<CAP_SYS_NICE>)  threads "
4493 "can set a nonzero static priority (i.e., set a real-time scheduling "
4494 "policy).  The only change that an unprivileged thread can make is to set the "
4495 "B<SCHED_OTHER> policy, and this can be done only if the effective user ID of "
4496 "the caller of B<sched_setscheduler>()  matches the real or effective user ID "
4497 "of the target thread (i.e., the thread specified by I<pid>)  whose policy is "
4498 "being changed."
4499 msgstr ""
4500 "2.6.12 より前のバージョンの Linux カーネルでは、 特権スレッド "
4501 "(B<CAP_SYS_NICE> ケーパビリティを持つスレッド) だけが 0 以外の静的優先度を設"
4502 "定する (すなわち、リアルタイム・スケジューリング・ポリシーを設定する) ことが"
4503 "できる。 非特権スレッドができる変更は B<SCHED_OTHER> ポリシーを設定することだ"
4504 "けであり、さらにこの変更を行えるのは B<sched_setscheduler>()  の呼び出し元の"
4505 "実効ユーザ ID がポリシーの変更対象スレッド (I<pid> で指定されたスレッド) の実"
4506 "ユーザ ID か実効ユーザ ID と 一致する場合だけである。"
4507
4508 #. type: Plain text
4509 #: build/C/man2/sched_setscheduler.2:337
4510 msgid ""
4511 "Since Linux 2.6.12, the B<RLIMIT_RTPRIO> resource limit defines a ceiling on "
4512 "an unprivileged thread's static priority for the B<SCHED_RR> and "
4513 "B<SCHED_FIFO> policies.  The rules for changing scheduling policy and "
4514 "priority are as follows:"
4515 msgstr ""
4516 "Linux 2.6.12 以降では、リソース制限 B<RLIMIT_RTPRIO> が定義されており、 スケ"
4517 "ジューリング・ポリシーが B<SCHED_RR> と B<SCHED_FIFO> の場合の、非特権スレッ"
4518 "ドの静的優先度の上限を定めている。 スケジューリング・ポリシーと優先度を変更す"
4519 "る際のルールは以下の通りである。"
4520
4521 #. type: Plain text
4522 #: build/C/man2/sched_setscheduler.2:345
4523 msgid ""
4524 "If an unprivileged thread has a nonzero B<RLIMIT_RTPRIO> soft limit, then it "
4525 "can change its scheduling policy and priority, subject to the restriction "
4526 "that the priority cannot be set to a value higher than the maximum of its "
4527 "current priority and its B<RLIMIT_RTPRIO> soft limit."
4528 msgstr ""
4529 "非特権スレッドに 0 以外の B<RLIMIT_RTPRIO> ソフト・リミットが設定されている場"
4530 "合、 非特権スレッドはそのスレッドのスケジューリング・ポリシーと優先度を 変更"
4531 "できるが、優先度を現在の自身の優先度と B<RLIMIT_RTPRIO> ソフト・リミットの大"
4532 "きい方よりも高い値に設定できないという制限が課される。"
4533
4534 #. type: Plain text
4535 #: build/C/man2/sched_setscheduler.2:350
4536 msgid ""
4537 "If the B<RLIMIT_RTPRIO> soft limit is 0, then the only permitted changes are "
4538 "to lower the priority, or to switch to a non-real-time policy."
4539 msgstr ""
4540 "B<RLIMIT_RTPRIO> ソフト・リミットが 0 の場合、優先度を下げるか、 リアルタイム"
4541 "でないポリシーへ切り替えるかの変更だけが許可される。"
4542
4543 #. type: Plain text
4544 #: build/C/man2/sched_setscheduler.2:355
4545 msgid ""
4546 "Subject to the same rules, another unprivileged thread can also make these "
4547 "changes, as long as the effective user ID of the thread making the change "
4548 "matches the real or effective user ID of the target thread."
4549 msgstr ""
4550 "ある非特権スレッドが別のスレッドに対してこれらの変更を行う際にも、 同じルール"
4551 "が適用される。変更を行えるのは、変更を行おうとするスレッド の実効ユーザ ID が"
4552 "変更対象のスレッドの実ユーザ ID か実効ユーザ ID と 一致している場合に限られ"
4553 "る。"
4554
4555 #.  commit c02aa73b1d18e43cfd79c2f193b225e84ca497c8
4556 #. type: Plain text
4557 #: build/C/man2/sched_setscheduler.2:373
4558 msgid ""
4559 "Special rules apply for the B<SCHED_IDLE>.  In Linux kernels before 2.6.39, "
4560 "an unprivileged thread operating under this policy cannot change its policy, "
4561 "regardless of the value of its B<RLIMIT_RTPRIO> resource limit.  In Linux "
4562 "kernels since 2.6.39, an unprivileged thread can switch to either the "
4563 "B<SCHED_BATCH> or the B<SCHED_NORMAL> policy so long as its nice value falls "
4564 "within the range permitted by its B<RLIMIT_NICE> resource limit (see "
4565 "B<getrlimit>(2))."
4566 msgstr ""
4567 "B<SCHED_IDLE> の場合には特別なルールが適用される。 2.6.39 より前の Linux カー"
4568 "ネルでは、このポリシーで動作する非特権スレッドは、 B<RLIMIT_RTPRIO> リソース"
4569 "上限の値に関わらず、自分のポリシーを変更することができない。 2.6.39 以降の "
4570 "Linux カーネルでは、非特権スレッドは、自分の nice 値が B<RLIMIT_NICE> リソー"
4571 "ス上限 (B<getrlimit>(2) 参照) で許可された範囲である限りは、自分のスケジュー"
4572 "リング・ポリシーを B<SCHED_BATCH> か B<SCHED_NORMAL> ポリシーに切り替えること"
4573 "ができる。"
4574
4575 #. type: Plain text
4576 #: build/C/man2/sched_setscheduler.2:384
4577 msgid ""
4578 "Privileged (B<CAP_SYS_NICE>)  threads ignore the B<RLIMIT_RTPRIO> limit; as "
4579 "with older kernels, they can make arbitrary changes to scheduling policy and "
4580 "priority.  See B<getrlimit>(2)  for further information on B<RLIMIT_RTPRIO>."
4581 msgstr ""
4582 "特権スレッド (B<CAP_SYS_NICE> ケーパビリティを持つスレッド) の場合、 "
4583 "B<RLIMIT_RTPRIO> の制限は無視される; 古いカーネルと同じように、スケジューリン"
4584 "グ・ポリシーと優先度に対し 任意の変更を行うことができる。 B<RLIMIT_RTPRIO> に"
4585 "関するもっと詳しい情報は B<getrlimit>(2)  を参照のこと。"
4586
4587 #. type: SS
4588 #: build/C/man2/sched_setscheduler.2:384
4589 #, no-wrap
4590 msgid "Response time"
4591 msgstr "応答時間 (response time)"
4592
4593 #.  as described in
4594 #.  .BR request_irq (9).
4595 #. type: Plain text
4596 #: build/C/man2/sched_setscheduler.2:392
4597 msgid ""
4598 "A blocked high priority thread waiting for the I/O has a certain response "
4599 "time before it is scheduled again.  The device driver writer can greatly "
4600 "reduce this response time by using a \"slow interrupt\" interrupt handler."
4601 msgstr ""
4602 "I/O 待ちで停止したより高い優先度のスレッドは再びスケジューリングされる 前にい"
4603 "くらかの応答時間がかかる。デバイス・ドライバーを書く場合には \"slow interrupt"
4604 "\" 割り込みハンドラーを使用することで この応答時間を劇的に減少させることがで"
4605 "きる。"
4606
4607 #. type: SS
4608 #: build/C/man2/sched_setscheduler.2:392
4609 #, no-wrap
4610 msgid "Miscellaneous"
4611 msgstr "その他"
4612
4613 #. type: Plain text
4614 #: build/C/man2/sched_setscheduler.2:397
4615 msgid ""
4616 "Child processes inherit the scheduling policy and parameters across a B<fork>"
4617 "(2).  The scheduling policy and parameters are preserved across B<execve>(2)."
4618 msgstr ""
4619 "子プロセスは B<fork>(2)  の際に親プロセスのスケジューリング・ポリシーとパラ"
4620 "メータを継承する。 B<execve>(2)  の前後で、スケジューリング・ポリシーとパラ"
4621 "メータは保持される。"
4622
4623 #. type: Plain text
4624 #: build/C/man2/sched_setscheduler.2:403
4625 msgid ""
4626 "Memory locking is usually needed for real-time processes to avoid paging "
4627 "delays; this can be done with B<mlock>(2)  or B<mlockall>(2)."
4628 msgstr ""
4629 "リアルタイム・プロセスは大抵、ページングの待ち時間を避けるために B<mlock>"
4630 "(2)  や B<mlockall>(2)  を使ってメモリ・ロックをしなければならない。"
4631
4632 #. type: Plain text
4633 #: build/C/man2/sched_setscheduler.2:415
4634 msgid ""
4635 "Since a nonblocking infinite loop in a thread scheduled under B<SCHED_FIFO> "
4636 "or B<SCHED_RR> will block all threads with lower priority forever, a "
4637 "software developer should always keep available on the console a shell "
4638 "scheduled under a higher static priority than the tested application.  This "
4639 "will allow an emergency kill of tested real-time applications that do not "
4640 "block or terminate as expected.  See also the description of the "
4641 "B<RLIMIT_RTTIME> resource limit in B<getrlimit>(2)."
4642 msgstr ""
4643 "B<SCHED_FIFO> や B<SCHED_RR> でスケジューリングされる スレッドが停止せずに無"
4644 "限ループに陥ると、 他の全てのより低い優先度のスレッドを永久に停止 (block) さ"
4645 "せてしまうので、 ソフトウェア開発者はコンソールのシェルの静的優先度をテストす"
4646 "る アプリケーションよりも常に高く保つべきである。 これによって期待通りに停止"
4647 "したり終了したりしないリアルタイム・ アプリケーションを緊急終了させることが可"
4648 "能になる。 B<getrlimit>(2)  のリソース制限 B<RLIMIT_RTTIME> の説明も参照のこ"
4649 "と。"
4650
4651 #. type: Plain text
4652 #: build/C/man2/sched_setscheduler.2:423
4653 msgid ""
4654 "POSIX systems on which B<sched_setscheduler>()  and B<sched_getscheduler>()  "
4655 "are available define B<_POSIX_PRIORITY_SCHEDULING> in I<E<lt>unistd.hE<gt>>."
4656 msgstr ""
4657 "POSIX システムでは I<E<lt>unistd.hE<gt>> に B<_POSIX_PRIORITY_SCHEDULING> が"
4658 "定義されている場合にのみ B<sched_setscheduler>()  と B<sched_getscheduler>"
4659 "()  が使用できる。"
4660
4661 #. type: Plain text
4662 #: build/C/man2/sched_setscheduler.2:433
4663 msgid ""
4664 "On success, B<sched_setscheduler>()  returns zero.  On success, "
4665 "B<sched_getscheduler>()  returns the policy for the thread (a nonnegative "
4666 "integer).  On error, -1 is returned, and I<errno> is set appropriately."
4667 msgstr ""
4668 "成功した場合、 B<sched_setscheduler>()  は 0 を返す。 成功した場合、 "
4669 "B<sched_getscheduler>()  は現在のそのスレッドのポリシー (非負の整数) を返"
4670 "す。 エラーの場合、-1 が返され、 I<errno> が適切に設定される。"
4671
4672 #. type: Plain text
4673 #: build/C/man2/sched_setscheduler.2:439
4674 msgid ""
4675 "The scheduling I<policy> is not one of the recognized policies, I<param> is "
4676 "NULL, or I<param> does not make sense for the I<policy>."
4677 msgstr ""
4678 "スケジューリング・ポリシー I<policy> が間違っている。\n"
4679 "または I<param> が NULL である。\n"
4680 "または I<param> がそのポリシーでは意味をなさない。"
4681
4682 #. type: Plain text
4683 #: build/C/man2/sched_setscheduler.2:442
4684 msgid "The calling thread does not have appropriate privileges."
4685 msgstr "呼び出したスレッドが適切な特権を持っていない。"
4686
4687 #. type: Plain text
4688 #: build/C/man2/sched_setscheduler.2:448
4689 msgid ""
4690 "POSIX.1-2001 (but see BUGS below).  The B<SCHED_BATCH> and B<SCHED_IDLE> "
4691 "policies are Linux-specific."
4692 msgstr ""
4693 "POSIX.1-2001 (但し、下記のバグの節も参照)。 B<SCHED_BATCH> と B<SCHED_IDLE> "
4694 "ポリシーは Linux 固有である。"
4695
4696 #. type: Plain text
4697 #: build/C/man2/sched_setscheduler.2:456
4698 msgid ""
4699 "POSIX.1 does not detail the permissions that an unprivileged thread requires "
4700 "in order to call B<sched_setscheduler>(), and details vary across systems.  "
4701 "For example, the Solaris 7 manual page says that the real or effective user "
4702 "ID of the caller must match the real user ID or the save set-user-ID of the "
4703 "target."
4704 msgstr ""
4705 "POSIX.1 は、非特権スレッドが B<sched_setscheduler>()  を呼び出すために必要な"
4706 "権限の詳細を規定しておらず、 詳細はシステムにより異なる。 例えば、Solaris 7 "
4707 "のマニュアルページでは、 呼び出し元の実ユーザ ID または実効ユーザ ID が 設定"
4708 "対象の実ユーザ ID か保存 (save) set-user-ID と 一致していなければならない、と"
4709 "なっている。"
4710
4711 #. type: Plain text
4712 #: build/C/man2/sched_setscheduler.2:477
4713 msgid ""
4714 "The scheduling policy and parameters are in fact per-thread attributes on "
4715 "Linux.  The value returned from a call to B<gettid>(2)  can be passed in the "
4716 "argument I<pid>.  Specifying I<pid> as 0 will operate on the attribute for "
4717 "the calling thread, and passing the value returned from a call to B<getpid>"
4718 "(2)  will operate on the attribute for the main thread of the thread group.  "
4719 "(If you are using the POSIX threads API, then use B<pthread_setschedparam>"
4720 "(3), B<pthread_getschedparam>(3), and B<pthread_setschedprio>(3), instead of "
4721 "the B<sched_*>(2)  system calls.)"
4722 msgstr ""
4723 "Linux では、 スケジューリングポリシーとスケジューリングパラメータは、 実際に"
4724 "はスレッド単位の属性である。 B<gettid>(2) の呼び出しの返り値をこのシステム"
4725 "コールの I<pid> 引き数として渡すことができる。 I<pid> に 0 を指定すると、 呼"
4726 "び出し元のスレッドの属性が設定される。 B<getpid>(2) コールからの返り値を "
4727 "I<pid> に指定すると、 スレッドグループのメインスレッドの属性が設定される "
4728 "(POSIX スレッド API を使用している場合は、 B<sched_*>(2) システムコールの代わ"
4729 "りに B<pthread_setschedparam>(3), B<pthread_getschedparam>(3), and "
4730 "B<pthread_setschedprio>(3) を使用すること)。"
4731
4732 #. type: Plain text
4733 #: build/C/man2/sched_setscheduler.2:487
4734 msgid ""
4735 "Originally, Standard Linux was intended as a general-purpose operating "
4736 "system being able to handle background processes, interactive applications, "
4737 "and less demanding real-time applications (applications that need to usually "
4738 "meet timing deadlines).  Although the Linux kernel 2.6 allowed for kernel "
4739 "preemption and the newly introduced O(1) scheduler ensures that the time "
4740 "needed to schedule is fixed and deterministic irrespective of the number of "
4741 "active tasks, true real-time computing was not possible up to kernel version "
4742 "2.6.17."
4743 msgstr ""
4744 "もともとは、標準の Linux は一般目的のオペレーティングシステムとして 設計され"
4745 "ており、バックグラウンド・プロセスや対話的アプリケーション、 リアルタイム性の"
4746 "要求が厳しくないリアルタイム・アプリケーション (普通はタイミングの応答期限 "
4747 "(deadline) を満たす必要があるアプリケーション)  を扱うことができた。 Linux "
4748 "カーネル 2.6 では、 カーネルのプリエンプション (タスクの置き換え) が可能であ"
4749 "り、 新たに導入された O(1) スケジューラにより、 アクティブなタスクの数に関わ"
4750 "らずスケジューリングに必要な時間は 固定で確定的 (deterministic) であることが"
4751 "保証されている。 それにも関わらず、カーネル 2.6.17 までは 真のリアルタイム・"
4752 "コンピューティングは実現できなかった。"
4753
4754 #. type: SS
4755 #: build/C/man2/sched_setscheduler.2:487
4756 #, no-wrap
4757 msgid "Real-time features in the mainline Linux kernel"
4758 msgstr "本流の Linux カーネルでのリアルタイム機能"
4759
4760 #.  FIXME . Probably this text will need some minor tweaking
4761 #.  by about the time of 2.6.30; ask Carsten Emde about this then.
4762 #. type: Plain text
4763 #: build/C/man2/sched_setscheduler.2:501
4764 msgid ""
4765 "From kernel version 2.6.18 onward, however, Linux is gradually becoming "
4766 "equipped with real-time capabilities, most of which are derived from the "
4767 "former I<realtime-preempt> patches developed by Ingo Molnar, Thomas "
4768 "Gleixner, Steven Rostedt, and others.  Until the patches have been "
4769 "completely merged into the mainline kernel (this is expected to be around "
4770 "kernel version 2.6.30), they must be installed to achieve the best real-time "
4771 "performance.  These patches are named:"
4772 msgstr ""
4773 "カーネル 2.6.18 から現在まで、 Linux は徐々にリアルタイム機能を備えつつ\n"
4774 "あるが、 これらの機能のほとんどは、 Ingo Molnar, Thomas Gleixner,\n"
4775 "Steven Rostedt らによって開発された、 以前の I<realtime-preempt> パッチ\n"
4776 "からのものである。 これらのパッチが本流のカーネルに完全にマージされるま\n"
4777 "では (マージの完了はカーネル 2.6.30 あたりの予定)、 最高のリアルタイム\n"
4778 "性能を達成するには realtime-preempt パッチを 組み込まなければならない。\n"
4779 "これらのパッチは"
4780
4781 #. type: Plain text
4782 #: build/C/man2/sched_setscheduler.2:505
4783 #, no-wrap
4784 msgid "patch-I<kernelversion>-rtI<patchversion>\n"
4785 msgstr "patch-I<kernelversion>-rtI<patchversion>\n"
4786
4787 #. type: Plain text
4788 #: build/C/man2/sched_setscheduler.2:511
4789 msgid ""
4790 "and can be downloaded from E<.UR http://www.kernel.org\\:/pub\\:/linux\\:/"
4791 "kernel\\:/projects\\:/rt/> E<.UE .>"
4792 msgstr ""
4793 "という名前で、 E<.UR http://www.kernel.org\\:/pub\\:/linux\\:/kernel\\:/"
4794 "projects\\:/rt/> E<.UE> からダウンロードできる。"
4795
4796 #. type: Plain text
4797 #: build/C/man2/sched_setscheduler.2:520
4798 msgid ""
4799 "Without the patches and prior to their full inclusion into the mainline "
4800 "kernel, the kernel configuration offers only the three preemption classes "
4801 "B<CONFIG_PREEMPT_NONE>, B<CONFIG_PREEMPT_VOLUNTARY>, and "
4802 "B<CONFIG_PREEMPT_DESKTOP> which respectively provide no, some, and "
4803 "considerable reduction of the worst-case scheduling latency."
4804 msgstr ""
4805 "このパッチが適用されず、かつパッチの内容の本流のカーネルへのマージが 完了する"
4806 "までは、カーネルの設定では B<CONFIG_PREEMPT_NONE>, "
4807 "B<CONFIG_PREEMPT_VOLUNTARY>, B<CONFIG_PREEMPT_DESKTOP> の 3つのプリエンプショ"
4808 "ン・クラス (preemption class) だけが提供される。 これらのクラスでは、最悪の場"
4809 "合のスケジューリング遅延がそれぞれ 全く減らない、いくらか減る、かなり減る。"
4810
4811 #. type: Plain text
4812 #: build/C/man2/sched_setscheduler.2:531
4813 msgid ""
4814 "With the patches applied or after their full inclusion into the mainline "
4815 "kernel, the additional configuration item B<CONFIG_PREEMPT_RT> becomes "
4816 "available.  If this is selected, Linux is transformed into a regular real-"
4817 "time operating system.  The FIFO and RR scheduling policies that can be "
4818 "selected using B<sched_setscheduler>()  are then used to run a thread with "
4819 "true real-time priority and a minimum worst-case scheduling latency."
4820 msgstr ""
4821 "パッチが適用された場合、またはパッチの内容の本流のカーネルへのマージが 完了し"
4822 "た後では、上記に加えて設定項目として B<CONFIG_PREEMPT_RT> が利用可能になる。"
4823 "この項目を選択すると、 Linux は通常のリアルタイム・オペレーティングシステムに"
4824 "変身する。 この場合には、 B<sched_setscheduler>()  で選択できる FIFO と RR の"
4825 "スケジューリング・ポリシーは、 真のリアルタイム優先度を持つスレッドを最悪の場"
4826 "合のスケジューリング遅延が 最小となる環境で動作させるために使われることにな"
4827 "る。"
4828
4829 #. type: Plain text
4830 #: build/C/man2/sched_setscheduler.2:539
4831 msgid ""
4832 "POSIX says that on success, B<sched_setscheduler>()  should return the "
4833 "previous scheduling policy.  Linux B<sched_setscheduler>()  does not conform "
4834 "to this requirement, since it always returns 0 on success."
4835 msgstr ""
4836 "POSIX では、成功時に B<sched_setscheduler>()  は直前のスケジューリング・ポリ"
4837 "シーを返すべきとされている。 Linux の B<sched_setscheduler>()  はこの要求仕様"
4838 "に準拠しておらず、 成功時には常に 0 を返す。"
4839
4840 #. type: Plain text
4841 #: build/C/man2/sched_setscheduler.2:560
4842 msgid ""
4843 "B<chrt>(1), B<getpriority>(2), B<mlock>(2), B<mlockall>(2), B<munlock>(2), "
4844 "B<munlockall>(2), B<nice>(2), B<sched_get_priority_max>(2), "
4845 "B<sched_get_priority_min>(2), B<sched_getaffinity>(2), B<sched_getparam>(2), "
4846 "B<sched_rr_get_interval>(2), B<sched_setaffinity>(2), B<sched_setparam>(2), "
4847 "B<sched_yield>(2), B<setpriority>(2), B<capabilities>(7), B<cpuset>(7)"
4848 msgstr ""
4849 "B<chrt>(1), B<getpriority>(2), B<mlock>(2), B<mlockall>(2), B<munlock>(2), "
4850 "B<munlockall>(2), B<nice>(2), B<sched_get_priority_max>(2), "
4851 "B<sched_get_priority_min>(2), B<sched_getaffinity>(2), B<sched_getparam>(2), "
4852 "B<sched_rr_get_interval>(2), B<sched_setaffinity>(2), B<sched_setparam>(2), "
4853 "B<sched_yield>(2), B<setpriority>(2), B<capabilities>(7), B<cpuset>(7)"
4854
4855 #. type: Plain text
4856 #: build/C/man2/sched_setscheduler.2:567
4857 msgid ""
4858 "The Linux kernel source file I<Documentation/scheduler/sched-rt-group.txt>"
4859 msgstr ""
4860 "Linux カーネルソースファイル I<Documentation/scheduler/sched-rt-group.txt>"
4861
4862 #. type: TH
4863 #: build/C/man2/sched_yield.2:29
4864 #, no-wrap
4865 msgid "SCHED_YIELD"
4866 msgstr "SCHED_YIELD"
4867
4868 #. type: TH
4869 #: build/C/man2/sched_yield.2:29
4870 #, no-wrap
4871 msgid "2008-10-18"
4872 msgstr "2008-10-18"
4873
4874 #. type: Plain text
4875 #: build/C/man2/sched_yield.2:32
4876 msgid "sched_yield - yield the processor"
4877 msgstr "sched_yield - プロセッサーを空け渡す(yield)"
4878
4879 #. type: Plain text
4880 #: build/C/man2/sched_yield.2:36
4881 msgid "B<int sched_yield(void);>"
4882 msgstr "B<int sched_yield(void);>"
4883
4884 #. type: Plain text
4885 #: build/C/man2/sched_yield.2:41
4886 msgid ""
4887 "B<sched_yield>()  causes the calling thread to relinquish the CPU.  The "
4888 "thread is moved to the end of the queue for its static priority and a new "
4889 "thread gets to run."
4890 msgstr ""
4891 "B<sched_yield>()  を呼び出すことで、呼び出したスレッドが CPU の使用権を手放す"
4892 "ことができる。 そのスレッドは、そのスレッドの静的プライオリティのキューの末尾"
4893 "に 移動し、新しいスレッドが走り始める。"
4894
4895 #. type: Plain text
4896 #: build/C/man2/sched_yield.2:48
4897 msgid ""
4898 "On success, B<sched_yield>()  returns 0.  On error, -1 is returned, and "
4899 "I<errno> is set appropriately."
4900 msgstr ""
4901 "成功した場合は B<sched_yield>()  は 0 を返す。 エラーの場合は -1 が返され、 "
4902 "I<errno> が適切に設定される。"
4903
4904 #. type: Plain text
4905 #: build/C/man2/sched_yield.2:52
4906 msgid "In the Linux implementation, B<sched_yield>()  always succeeds."
4907 msgstr "Linux の実装では、 B<sched_yield>()  は常に成功する。"
4908
4909 #. type: Plain text
4910 #: build/C/man2/sched_yield.2:59
4911 msgid ""
4912 "If the calling thread is the only thread in the highest priority list at "
4913 "that time, it will continue to run after a call to B<sched_yield>()."
4914 msgstr ""
4915 "B<sched_yield>()  を呼び出した時点で最大優先度のリストの中に呼び出し元のス"
4916 "レッドしか 存在しなければ、そのスレッドは呼び出し後も走り続けることになる。"
4917
4918 #. type: Plain text
4919 #: build/C/man2/sched_yield.2:66
4920 msgid ""
4921 "POSIX systems on which B<sched_yield>()  is available define "
4922 "B<_POSIX_PRIORITY_SCHEDULING> in I<E<lt>unistd.hE<gt>>."
4923 msgstr ""
4924 "POSIX システムで B<sched_yield>()  は I<E<lt>unistd.hE<gt>> に "
4925 "B<_POSIX_PRIORITY_SCHEDULING> が定義されている場合にのみ使用可能である。"
4926
4927 #. type: Plain text
4928 #: build/C/man2/sched_yield.2:79
4929 msgid ""
4930 "Strategic calls to B<sched_yield>()  can improve performance by giving other "
4931 "threads or processes a chance to run when (heavily) contended resources (e."
4932 "g., mutexes)  have been released by the caller.  Avoid calling B<sched_yield>"
4933 "()  unnecessarily or inappropriately (e.g., when resources needed by other "
4934 "schedulable threads are still held by the caller), since doing so will "
4935 "result in unnecessary context switches, which will degrade system "
4936 "performance."
4937 msgstr ""
4938 "B<sched_yield>()  を戦略的に呼び出すことで、(極度に) 競合するリソース (mutex "
4939 "など)  を呼び出し元が解放した際に他のスレッドやプロセスに実行機会を与えること"
4940 "で、 性能を上げることができる。 B<sched_yield>()  を必要もないのに呼び出した"
4941 "り、不適切な場面 (例えば、他のスケジューリング 対象となるスレッドが必要とする"
4942 "リソースを呼び出し元が保持したままの状態)  で呼び出したりするのは避けること。"
4943 "なぜなら、 B<sched_yield>()  の呼び出しより不必要なコンテキストスイッチが起こ"
4944 "り、システム性能が 劣化する結果になるからである。"
4945
4946 #. type: Plain text
4947 #: build/C/man2/sched_yield.2:82
4948 msgid "B<sched_setscheduler>(2)  for a description of Linux scheduling"
4949 msgstr ""
4950 "Linux のスケージュリング (scheduling) については B<sched_setscheduler>(2) を"
4951 "参照。"
4952
4953 #. type: TH
4954 #: build/C/man2/setns.2:8
4955 #, no-wrap
4956 msgid "SETNS"
4957 msgstr "SETNS"
4958
4959 #. type: TH
4960 #: build/C/man2/setns.2:8
4961 #, no-wrap
4962 msgid "2013-01-01"
4963 msgstr "2013-01-01"
4964
4965 #. type: Plain text
4966 #: build/C/man2/setns.2:11
4967 msgid "setns - reassociate thread with a namespace"
4968 msgstr "setns - スレッドに名前空間を関連付けしなおす"
4969
4970 #. type: Plain text
4971 #: build/C/man2/setns.2:17
4972 #, no-wrap
4973 msgid "B<int setns(int >I<fd>B<, int >I<nstype>B<);>\n"
4974 msgstr "B<int setns(int >I<fd>B<, int >I<nstype>B<);>\n"
4975
4976 #. type: Plain text
4977 #: build/C/man2/setns.2:21
4978 msgid ""
4979 "Given a file descriptor referring to a namespace, reassociate the calling "
4980 "thread with that namespace."
4981 msgstr ""
4982 "名前空間を参照するファイルディスクリプタを指定すると、\n"
4983 "呼び出したスレッドにその名前空間を関連付けしなおす。"
4984
4985 #. type: Plain text
4986 #: build/C/man2/setns.2:34
4987 msgid ""
4988 "The I<fd> argument is a file descriptor referring to one of the namespace "
4989 "entries in a I</proc/[pid]/ns/> directory; see B<proc>(5)  for further "
4990 "information on I</proc/[pid]/ns/>.  The calling thread will be reassociated "
4991 "with the corresponding namespace, subject to any constraints imposed by the "
4992 "I<nstype> argument."
4993 msgstr ""
4994 "I<fd> 引き数は、 I</proc/[pid]/ns/> ディレクトリ内の名前空間エントリ\n"
4995 "のいずれかを参照するファイルディスクリプタである。\n"
4996 "I</proc/[pid]/ns/> の詳細は B<proc>(5) を参照。\n"
4997 "I<nstype> 引き数で指定された制限の範囲内で、\n"
4998 "呼び出したスレッドに I<fd> に対応する名前空間を関連付けしなおす。"
4999
5000 #. type: Plain text
5001 #: build/C/man2/setns.2:40
5002 msgid ""
5003 "The I<nstype> argument specifies which type of namespace the calling thread "
5004 "may be reassociated with.  This argument can have one of the following "
5005 "values:"
5006 msgstr ""
5007 "I<nstype> 引き数は、呼び出したスレッドがどのタイプの名前空間を\n"
5008 "関連付けしなおすことができるかを指定する。\n"
5009 "この引き数には以下のいずれかの値を指定できる。"
5010
5011 #. type: TP
5012 #: build/C/man2/setns.2:40
5013 #, no-wrap
5014 msgid "B<0>"
5015 msgstr "B<0>"
5016
5017 #. type: Plain text
5018 #: build/C/man2/setns.2:43
5019 msgid "Allow any type of namespace to be joined."
5020 msgstr "どのタイプの名前空間も関連付けることができる。"
5021
5022 #. type: TP
5023 #: build/C/man2/setns.2:43
5024 #, no-wrap
5025 msgid "B<CLONE_NEWIPC>"
5026 msgstr "B<CLONE_NEWIPC>"
5027
5028 #. type: Plain text
5029 #: build/C/man2/setns.2:47
5030 msgid "I<fd> must refer to an IPC namespace."
5031 msgstr "I<fd> は IPC 名前空間を参照していなければならない。"
5032
5033 #. type: TP
5034 #: build/C/man2/setns.2:47
5035 #, no-wrap
5036 msgid "B<CLONE_NEWNET>"
5037 msgstr "B<CLONE_NEWNET>"
5038
5039 #. type: Plain text
5040 #: build/C/man2/setns.2:51
5041 msgid "I<fd> must refer to a network namespace."
5042 msgstr "I<fd> はネットワーク名前空間を参照していなければならない。"
5043
5044 #. type: TP
5045 #: build/C/man2/setns.2:51
5046 #, no-wrap
5047 msgid "B<CLONE_NEWUTS>"
5048 msgstr "B<CLONE_NEWUTS>"
5049
5050 #. type: Plain text
5051 #: build/C/man2/setns.2:55
5052 msgid "I<fd> must refer to a UTS namespace."
5053 msgstr "I<fd> は UTS 名前空間を参照していなければならない。"
5054
5055 #. type: Plain text
5056 #: build/C/man2/setns.2:70
5057 msgid ""
5058 "Specifying I<nstype> as 0 suffices if the caller knows (or does not care)  "
5059 "what type of namespace is referred to by I<fd>.  Specifying a nonzero value "
5060 "for I<nstype> is useful if the caller does not know what type of namespace "
5061 "is referred to by I<fd> and wants to ensure that the namespace is of a "
5062 "particular type.  (The caller might not know the type of the namespace "
5063 "referred to by I<fd> if the file descriptor was opened by another process "
5064 "and, for example, passed to the caller via a UNIX domain socket.)"
5065 msgstr ""
5066 "呼び出し側が I<fd> がどのタイプの名前空間を参照しているかを知っている\n"
5067 "(もしくは気にする必要がない) 場合には、 I<nstype> に 0 を指定すれば十分\n"
5068 "である。呼び出し側が I<fd> がどのタイプの名前空間を参照しているかを\n"
5069 "知っておらず、かつ、特定のタイプの名前空間であることを保証したい場合、\n"
5070 "I<nstype> に 0 以外の値を指定するとよい。 (ファイルディスクリプタが別の\n"
5071 "プロセスによりオープンされ、例えば、UNIX ドメインソケット経由で呼び出し\n"
5072 "側に渡された場合などでは、呼び出し側が I<fd> がどのタイプの名前空間を\n"
5073 "参照しているかを知らない可能性がある。)"
5074
5075 #. type: Plain text
5076 #: build/C/man2/setns.2:77
5077 msgid ""
5078 "On success, I<setns>()  returns 0.  On failure, -1 is returned and I<errno> "
5079 "is set to indicate the error."
5080 msgstr ""
5081 "成功すると I<setns>() は 0 を返す。\n"
5082 "失敗すると、 -1 が返され、 I<errno> にエラーを示す値が設定される。"
5083
5084 #. type: Plain text
5085 #: build/C/man2/setns.2:82
5086 msgid "I<fd> is not a valid file descriptor."
5087 msgstr "I<fd> が有効なファイルディスクリプタではない。"
5088
5089 #. type: Plain text
5090 #: build/C/man2/setns.2:89
5091 msgid ""
5092 "I<fd> refers to a namespace whose type does not match that specified in "
5093 "I<nstype>, or there is problem with reassociating the the thread with the "
5094 "specified namespace."
5095 msgstr ""
5096 "I<fd> が I<nstype> で指定されたタイプと一致しない名前空間を参照している。\n"
5097 "または、指定された名前空間をそのスレッドに関連付けし直す際に問題\n"
5098 "があった。"
5099
5100 #. type: Plain text
5101 #: build/C/man2/setns.2:92
5102 msgid "Cannot allocate sufficient memory to change the specified namespace."
5103 msgstr "指定された名前空間に変更するのに必要なメモリが割り当てられない。"
5104
5105 #. type: Plain text
5106 #: build/C/man2/setns.2:97
5107 msgid ""
5108 "The calling thread did not have the required privilege (B<CAP_SYS_ADMIN>)  "
5109 "for this operation."
5110 msgstr ""
5111 "呼び出したスレッドがこの操作を行うのに必要な特権 (B<CAP_SYS_ADMIN>) を\n"
5112 "持っていなかった。"
5113
5114 #. type: Plain text
5115 #: build/C/man2/setns.2:102
5116 msgid ""
5117 "The B<setns>()  system call first appeared in Linux in kernel 3.0; library "
5118 "support was added to glibc in version 2.14."
5119 msgstr ""
5120 "B<setns>() システムコールはカーネル 3.0 で Linux に初めて登場した。\n"
5121 "ライブラリによるサポートは glibc バージョン 2.14 を追加された。"
5122
5123 #. type: Plain text
5124 #: build/C/man2/setns.2:106
5125 msgid "The B<setns>()  system call is Linux-specific."
5126 msgstr "B<setns>() システムコールは Linux 固有である。"
5127
5128 #. type: Plain text
5129 #: build/C/man2/setns.2:112
5130 msgid ""
5131 "Not all of the attributes that can be shared when a new thread is created "
5132 "using B<clone>(2)  can be changed using B<setns>()."
5133 msgstr ""
5134 "新しいスレッドが B<clone>(2) を使って作成された際に共有できる全ての属性を、\n"
5135 "B<setns>() を使って変更できるわけではない。"
5136
5137 #. type: Plain text
5138 #: build/C/man2/setns.2:121
5139 msgid ""
5140 "The program below takes two or more arguments.  The first argument specifies "
5141 "the pathname of a namespace file in an existing I</proc/[pid]/ns/> "
5142 "directory.  The remaining arguments specify a command and its arguments.  "
5143 "The program opens the namespace file, joins that namespace using B<setns>(), "
5144 "and executes the specified command inside that namespace."
5145 msgstr ""
5146 "以下のプログラムは 2 つ以上の引き数を取る。 最初の引き数には、 既存の I</"
5147 "proc/[pid]/ns/> ディレクトリの名前空間ファイルのパス名を指定する。 残りの引き"
5148 "数は、コマンドとその引き数を指定する。 このプログラムは名前空間ファイルをオー"
5149 "プンし、 B<setns>() を使って名前空間に参加し、 指定されたコマンドをその名前空"
5150 "間内で実行する。"
5151
5152 #. type: Plain text
5153 #: build/C/man2/setns.2:131
5154 msgid ""
5155 "The following shell session demonstrates the use of this program (compiled "
5156 "as a binary named I<ns_exec>)  in conjunction with the B<CLONE_NEWUTS> "
5157 "example program in the B<clone>(2)  man page (complied as a binary named "
5158 "I<newuts>)."
5159 msgstr ""
5160 "以下のシェルセッションでは、 このプログラム (I<ns_exec> という名前のバイナリ"
5161 "としてコンパイルされている)を、 B<clone>(2) のマニュアルページの "
5162 "B<CLONE_NEWUTS> のサンプルプログラムと組み合わせて使っている。"
5163
5164 #. type: Plain text
5165 #: build/C/man2/setns.2:139
5166 msgid ""
5167 "We begin by executing the example program in B<clone>(2)  in the "
5168 "background.  That program creates a child in a separate UTS namespace.  The "
5169 "child changes the hostname in its namespace, and then both processes display "
5170 "the hostnames in their UTS namespaces, so that we can see that they are "
5171 "different."
5172 msgstr ""
5173 "まず、 B<clone>(2) のサンプルプログラムをバックグラウンドで実行する。 このプ"
5174 "ログラムは、 別の UTS 名前空間で子プロセスを作成する。 子プロセスは自分の名前"
5175 "空間内でホスト名を変更する。 それから、 親プロセスと子プロセスの両方でそれぞ"
5176 "れの UTS 名前空間のホスト名を表示し、 2 つのホスト名が違うことが確認できる。"
5177
5178 #. type: Plain text
5179 #: build/C/man2/setns.2:151
5180 #, no-wrap
5181 msgid ""
5182 "$ B<su>                   # Need privilege for namespace operations\n"
5183 "Password:\n"
5184 "# B<./newuts bizarro &>\n"
5185 "[1] 3549\n"
5186 "clone() returned 3550\n"
5187 "uts.nodename in child:  bizarro\n"
5188 "uts.nodename in parent: antero\n"
5189 "# B<uname -n>             # Verify hostname in the shell\n"
5190 "antero\n"
5191 msgstr ""
5192 "$ B<su>                   # 名前空間の操作には特権が必要\n"
5193 "Password:\n"
5194 "# B<./newuts bizarro &>\n"
5195 "[1] 3549\n"
5196 "clone() returned 3550\n"
5197 "uts.nodename in child:  bizarro\n"
5198 "uts.nodename in parent: antero\n"
5199 "# B<uname -n>             # シェルでホスト名を確認\n"
5200 "antero\n"
5201
5202 #. type: Plain text
5203 #: build/C/man2/setns.2:158
5204 msgid ""
5205 "We then run the program shown below, using it to execute a shell.  Inside "
5206 "that shell, we verify that the hostname is the one set by the child created "
5207 "by the first program:"
5208 msgstr ""
5209 "次に、以下のプログラムを使ってシェルを実行する。 このシェルの中では、ホスト名"
5210 "が最初のプログラムで作成された子プロセスが設定したホスト名になっていることを"
5211 "確認できる。"
5212
5213 #. type: Plain text
5214 #: build/C/man2/setns.2:164
5215 #, no-wrap
5216 msgid ""
5217 "# B<./ns_exec /proc/3550/ns/uts /bin/bash>\n"
5218 "# B<uname -n>             # Executed in shell started by ns_exec\n"
5219 "bizarro\n"
5220 msgstr ""
5221 "# B<./ns_exec /proc/3550/ns/uts /bin/bash>\n"
5222 "# B<uname -n>             #  ns_exec で起動されたシェル内で実行\n"
5223 "bizarro\n"
5224
5225 #. type: Plain text
5226 #: build/C/man2/setns.2:174
5227 #, no-wrap
5228 msgid ""
5229 "#define _GNU_SOURCE\n"
5230 "#include E<lt>fcntl.hE<gt>\n"
5231 "#include E<lt>sched.hE<gt>\n"
5232 "#include E<lt>unistd.hE<gt>\n"
5233 "#include E<lt>stdlib.hE<gt>\n"
5234 "#include E<lt>stdio.hE<gt>\n"
5235 msgstr ""
5236 "#define _GNU_SOURCE\n"
5237 "#include E<lt>fcntl.hE<gt>\n"
5238 "#include E<lt>sched.hE<gt>\n"
5239 "#include E<lt>unistd.hE<gt>\n"
5240 "#include E<lt>stdlib.hE<gt>\n"
5241 "#include E<lt>stdio.hE<gt>\n"
5242
5243 #. type: Plain text
5244 #: build/C/man2/setns.2:182
5245 #, no-wrap
5246 msgid ""
5247 "int\n"
5248 "main(int argc, char *argv[])\n"
5249 "{\n"
5250 "    int fd;\n"
5251 msgstr ""
5252 "int\n"
5253 "main(int argc, char *argv[])\n"
5254 "{\n"
5255 "    int fd;\n"
5256
5257 #. type: Plain text
5258 #: build/C/man2/setns.2:187
5259 #, no-wrap
5260 msgid ""
5261 "    if (argc E<lt> 3) {\n"
5262 "        fprintf(stderr, \"%s /proc/PID/ns/FILE cmd args...\\en\", argv[0]);\n"
5263 "        exit(EXIT_FAILURE);\n"
5264 "    }\n"
5265 msgstr ""
5266 "    if (argc E<lt> 3) {\n"
5267 "        fprintf(stderr, \"%s /proc/PID/ns/FILE cmd args...\\en\", argv[0]);\n"
5268 "        exit(EXIT_FAILURE);\n"
5269 "    }\n"
5270
5271 #. type: Plain text
5272 #: build/C/man2/setns.2:191
5273 #, no-wrap
5274 msgid ""
5275 "    fd = open(argv[1], O_RDONLY);   /* Get descriptor for namespace */\n"
5276 "    if (fd == -1)\n"
5277 "        errExit(\"open\");\n"
5278 msgstr ""
5279 "    fd = open(argv[1], O_RDONLY);   /* 名前空間のディスクリプタを取得 */\n"
5280 "    if (fd == -1)\n"
5281 "        errExit(\"open\");\n"
5282
5283 #. type: Plain text
5284 #: build/C/man2/setns.2:194
5285 #, no-wrap
5286 msgid ""
5287 "    if (setns(fd, 0) == -1)         /* Join that namespace */\n"
5288 "        errExit(\"setns\");\n"
5289 msgstr ""
5290 "    if (setns(fd, 0) == -1)         /* 名前空間に参加 */\n"
5291 "        errExit(\"setns\");\n"
5292
5293 #. type: Plain text
5294 #: build/C/man2/setns.2:198
5295 #, no-wrap
5296 msgid ""
5297 "    execvp(argv[2], &argv[2]);      /* Execute a command in namespace */\n"
5298 "    errExit(\"execvp\");\n"
5299 "}\n"
5300 msgstr ""
5301 "    execvp(argv[2], &argv[2]);      /* 名前空間内でコマンドを実行 */\n"
5302 "    errExit(\"execvp\");\n"
5303 "}\n"
5304
5305 #. type: Plain text
5306 #: build/C/man2/setns.2:205
5307 msgid "B<clone>(2), B<fork>(2), B<vfork>(2), B<proc>(5), B<unix>(7)"
5308 msgstr "B<clone>(2), B<fork>(2), B<vfork>(2), B<proc>(5), B<unix>(7)"
5309
5310 #. type: TH
5311 #: build/C/man2/unshare.2:20
5312 #, no-wrap
5313 msgid "UNSHARE"
5314 msgstr "UNSHARE"
5315
5316 #. type: Plain text
5317 #: build/C/man2/unshare.2:23
5318 msgid "unshare - disassociate parts of the process execution context"
5319 msgstr "unshare - プロセス実行コンテキストの一部を分離する"
5320
5321 #. type: Plain text
5322 #: build/C/man2/unshare.2:28
5323 #, no-wrap
5324 msgid "B<int unshare(int >I<flags>B<);>\n"
5325 msgstr "B<int unshare(int >I<flags>B<);>\n"
5326
5327 #. type: Plain text
5328 #: build/C/man2/unshare.2:36
5329 msgid "B<unshare>():"
5330 msgstr "B<unshare>():"
5331
5332 #. type: Plain text
5333 #: build/C/man2/unshare.2:62
5334 msgid ""
5335 "B<unshare>()  allows a process to disassociate parts of its execution "
5336 "context that are currently being shared with other processes.  Part of the "
5337 "execution context, such as the mount namespace, is shared implicitly when a "
5338 "new process is created using B<fork>(2)  or B<vfork>(2), while other parts, "
5339 "such as virtual memory, may be shared by explicit request when creating a "
5340 "process using B<clone>(2)."
5341 msgstr ""
5342 "B<unshare>()  を使うと、プロセスは他のプロセスと現在共有している 実行コンテキ"
5343 "ストの一部を分離することができる。 実行コンテキストの一部、たとえばマウント名"
5344 "前空間 (mount namespace)  などは、新しいプロセスを B<fork>(2)  または "
5345 "B<vfork>(2)  を使って生成したときに、暗黙のうちに共有される。 一方、仮想メモ"
5346 "リなどは、 B<clone>(2)  を使ってプロセスを生成するときに、明示的に共有するこ"
5347 "とを要求できる。"
5348
5349 #. type: Plain text
5350 #: build/C/man2/unshare.2:67
5351 msgid ""
5352 "The main use of B<unshare>()  is to allow a process to control its shared "
5353 "execution context without creating a new process."
5354 msgstr ""
5355 "B<unshare>()  の主な利用法は、プロセスが新しいプロセスを生成することなく、 共"
5356 "有実行コンテキストを制御することである。"
5357
5358 #. type: Plain text
5359 #: build/C/man2/unshare.2:74
5360 msgid ""
5361 "The I<flags> argument is a bit mask that specifies which parts of the "
5362 "execution context should be unshared.  This argument is specified by ORing "
5363 "together zero or more of the following constants:"
5364 msgstr ""
5365 "I<flags> 引き数はビットマスクであり、 実行コンテキストのどの部分の共有を解除"
5366 "するかを表す。 この引き数は、以下の定数の 0 個以上の OR で指定する:"
5367
5368 #. type: TP
5369 #: build/C/man2/unshare.2:74
5370 #, no-wrap
5371 msgid "B<CLONE_FILES>"
5372 msgstr "B<CLONE_FILES>"
5373
5374 #. type: Plain text
5375 #: build/C/man2/unshare.2:82
5376 msgid ""
5377 "Reverse the effect of the B<clone>(2)  B<CLONE_FILES> flag.  Unshare the "
5378 "file descriptor table, so that the calling process no longer shares its file "
5379 "descriptors with any other process."
5380 msgstr ""
5381 "B<clone>(2)  B<CLONE_FILES> フラグの効果を取り消す。 ファイルディスクリプタ"
5382 "テーブルを共有させず、 呼び出し元プロセスは他のプロセスとファイルディスクリプ"
5383 "タを共有しなくなる。"
5384
5385 #. type: TP
5386 #: build/C/man2/unshare.2:82
5387 #, no-wrap
5388 msgid "B<CLONE_FS>"
5389 msgstr "B<CLONE_FS>"
5390
5391 #. type: Plain text
5392 #: build/C/man2/unshare.2:96
5393 msgid ""
5394 "Reverse the effect of the B<clone>(2)  B<CLONE_FS> flag.  Unshare filesystem "
5395 "attributes, so that the calling process no longer shares its root directory "
5396 "(B<chroot>(2)), current directory (B<chdir>(2)), or umask (B<umask>(2))  "
5397 "attributes with any other process."
5398 msgstr ""
5399 "B<clone>(2)  B<CLONE_FS> フラグの効果を取り消す。ファイルシステム属性を共有さ"
5400 "せず、呼び出し元プロセスは、ルートディレクトリ (B<chroot>(2))、カレントディレ"
5401 "クトリ (B<chdir>(2))、 umask (B<umask>(2)) を他のプロセスと共有しなくなる。"
5402
5403 #. type: Plain text
5404 #: build/C/man2/unshare.2:113
5405 msgid ""
5406 "This flag has the same effect as the B<clone>(2)  B<CLONE_NEWIPC> flag.  "
5407 "Unshare the System V IPC namespace, so that the calling process has a "
5408 "private copy of the System V IPC namespace which is not shared with any "
5409 "other process.  Specifying this flag automatically implies B<CLONE_SYSVSEM> "
5410 "as well.  Use of B<CLONE_NEWIPC> requires the B<CAP_SYS_ADMIN> capability."
5411 msgstr ""
5412 "このフラグは B<clone>(2) B<CLONE_NEWIPC> フラグと同じ効果を持つ。\n"
5413 "System V IPC 名前空間を共有せず、呼び出し元プロセスは 他のプロセスとは\n"
5414 "共有しない固有の System V IPC 名前空間のコピーを持つ。 このフラグを指定\n"
5415 "すると、 B<CLONE_SYSVSEM> も暗黙のうちに指定される。 B<CLONE_NEWIPC> を\n"
5416 "使用するには B<CAP_SYS_ADMIN> ケーパビリティが必要である。"
5417
5418 #. type: Plain text
5419 #: build/C/man2/unshare.2:128
5420 msgid ""
5421 "This flag has the same effect as the B<clone>(2)  B<CLONE_NEWNET> flag.  "
5422 "Unshare the network namespace, so that the calling process is moved into a "
5423 "new network namespace which is not shared with any previously existing "
5424 "process.  Use of B<CLONE_NEWNET> requires the B<CAP_SYS_ADMIN> capability."
5425 msgstr ""
5426 "このフラグは B<clone>(2) B<CLONE_NEWNET> フラグと同じ効果を持つ。ネット\n"
5427 "ワーク名前空間を共有せず、呼び出し元プロセスは他のプロセスとは共有しな\n"
5428 "い固有のネットワーク名前空間のコピーを持つ。B<CLONE_NEWNET> を使用する\n"
5429 "には B<CAP_SYS_ADMIN> ケーパビリティが必要である。"
5430
5431 #. type: TP
5432 #: build/C/man2/unshare.2:128
5433 #, no-wrap
5434 msgid "B<CLONE_NEWNS>"
5435 msgstr "B<CLONE_NEWNS>"
5436
5437 #.  These flag name are inconsistent:
5438 #.  CLONE_NEWNS does the same thing in clone(), but CLONE_VM,
5439 #.  CLONE_FS, and CLONE_FILES reverse the action of the clone()
5440 #.  flags of the same name.
5441 #. type: Plain text
5442 #: build/C/man2/unshare.2:149
5443 msgid ""
5444 "This flag has the same effect as the B<clone>(2)  B<CLONE_NEWNS> flag.  "
5445 "Unshare the mount namespace, so that the calling process has a private copy "
5446 "of its namespace which is not shared with any other process.  Specifying "
5447 "this flag automatically implies B<CLONE_FS> as well.  Use of B<CLONE_NEWNS> "
5448 "requires the B<CAP_SYS_ADMIN> capability."
5449 msgstr ""
5450 "このフラグは B<clone>(2) B<CLONE_NEWNS> フラグと同じ効果を持つ。 マウン\n"
5451 "ト名前空間を共有せず、呼び出し元プロセスは 他のプロセスとは共有しない固\n"
5452 "有の名前空間のコピーを持つ。 このフラグを指定すると、 B<CLONE_FS> も暗\n"
5453 "黙のうちに指定される。 B<CLONE_NEWNS> を使用するには B<CAP_SYS_ADMIN>\n"
5454 "ケーパビリティが必要である。"
5455
5456 #. type: Plain text
5457 #: build/C/man2/unshare.2:163
5458 msgid ""
5459 "This flag has the same effect as the B<clone>(2)  B<CLONE_NEWUTS> flag.  "
5460 "Unshare the UTS IPC namespace, so that the calling process has a private "
5461 "copy of the UTS namespace which is not shared with any other process.  Use "
5462 "of B<CLONE_NEWUTS> requires the B<CAP_SYS_ADMIN> capability."
5463 msgstr ""
5464 "このフラグは B<clone>(2) B<CLONE_NEWUTS> フラグと同じ効果を持つ。 UTS\n"
5465 "IPC 名前空間を共有せず、呼び出し元プロセスは他のプロセスとは共有しない\n"
5466 "固有の UTS IPC 名前空間のコピーを持つ。 このフラグを指定すると、\n"
5467 "B<CLONE_FS> も暗黙のうちに指定される。B<CLONE_NEWUTS> を使用するには\n"
5468 "B<CAP_SYS_ADMIN> ケーパビリティが必要である。"
5469
5470 #. type: TP
5471 #: build/C/man2/unshare.2:163
5472 #, no-wrap
5473 msgid "B<CLONE_SYSVSEM> (since Linux 2.6.26)"
5474 msgstr "B<CLONE_SYSVSEM> (Linux 2.6.26 以降)"
5475
5476 #.  commit 9edff4ab1f8d82675277a04e359d0ed8bf14a7b7
5477 #.  As at 2.6.16, the following forced implications also apply,
5478 #.  although the relevant flags are not yet implemented.
5479 #.  If CLONE_THREAD is set force CLONE_VM.
5480 #.  If CLONE_VM is set, force CLONE_SIGHAND.
5481 #.  CLONE_NEWNSIf CLONE_SIGHAND is set and signals are also being shared
5482 #.  (i.e., current->signal->count > 1), force CLONE_THREAD.
5483 #.  FIXME . CLONE_VM is not (yet, as at 2.6.16) implemented.
5484 #.  .TP
5485 #.  .B CLONE_VM
5486 #.  Reverse the effect of the
5487 #.  .BR clone (2)
5488 #.  .B CLONE_VM
5489 #.  flag.
5490 #.  .RB ( CLONE_VM
5491 #.  is also implicitly set by
5492 #.  .BR vfork (2),
5493 #.  and can be reversed using this
5494 #.  .BR unshare ()
5495 #.  flag.)
5496 #.  Unshare virtual memory, so that the calling process no
5497 #.  longer shares its virtual address space with any other process.
5498 #. type: Plain text
5499 #: build/C/man2/unshare.2:200
5500 msgid ""
5501 "This flag reverses the effect of the B<clone>(2)  B<CLONE_SYSVSEM> flag.  "
5502 "Unshare System V semaphore undo values, so that the calling process has a "
5503 "private copy which is not shared with any other process.  Use of "
5504 "B<CLONE_SYSVSEM> requires the B<CAP_SYS_ADMIN> capability."
5505 msgstr ""
5506 "このフラグは B<clone>(2) B<CLONE_SYSVSEM> フラグの効果を逆転させる。\n"
5507 "System V セマフォのアンドゥ値を共有せず、呼び出し元プロセスは 他のプロ\n"
5508 "セスとは共有しない固有のコピーを持つ。B<CLONE_SYSVSEM> を使用するには\n"
5509 "B<CAP_SYS_ADMIN> ケーパビリティが必要である。"
5510
5511 #. type: Plain text
5512 #: build/C/man2/unshare.2:207
5513 msgid ""
5514 "If I<flags> is specified as zero, then B<unshare>()  is a no-op; no changes "
5515 "are made to the calling process's execution context."
5516 msgstr ""
5517 "I<flags> に 0 が指定された場合、 B<unshare>()  は何も行わないので、 呼び出し"
5518 "元プロセスの実行コンテキストは、何も変更されない。"
5519
5520 #. type: Plain text
5521 #: build/C/man2/unshare.2:212
5522 msgid ""
5523 "On success, zero returned.  On failure, -1 is returned and I<errno> is set "
5524 "to indicate the error."
5525 msgstr ""
5526 "成功した場合は 0 が返される。 失敗した場合は -1 が返されて、 I<errno> にはエ"
5527 "ラーを示す値が設定される。"
5528
5529 #. type: Plain text
5530 #: build/C/man2/unshare.2:217
5531 msgid "An invalid bit was specified in I<flags>."
5532 msgstr "I<flags> に不正なビットが指定された。"
5533
5534 #. type: Plain text
5535 #: build/C/man2/unshare.2:221
5536 msgid ""
5537 "Cannot allocate sufficient memory to copy parts of caller's context that "
5538 "need to be unshared."
5539 msgstr ""
5540 "呼び出し元のコンテキストのうち共有を解除する必要がある部分をコピーするため"
5541 "に、 十分なメモリが確保できなかった。"
5542
5543 #. type: Plain text
5544 #: build/C/man2/unshare.2:224
5545 msgid ""
5546 "The calling process did not have the required privileges for this operation."
5547 msgstr "呼び出し元プロセスはこの操作を行うのに必要な特権を持っていなかった。"
5548
5549 #. type: Plain text
5550 #: build/C/man2/unshare.2:228
5551 msgid "The B<unshare>()  system call was added to Linux in kernel 2.6.16."
5552 msgstr "B<unshare>()  システムコールは Linux カーネル 2.6.16 で追加された。"
5553
5554 #. type: Plain text
5555 #: build/C/man2/unshare.2:232
5556 msgid "The B<unshare>()  system call is Linux-specific."
5557 msgstr "B<unshare>()  システムコールは Linux 固有である。"
5558
5559 #.  FIXME all of the following needs to be reviewed for the current kernel
5560 #.  However, we can do unshare(CLONE_SIGHAND) if CLONE_SIGHAND
5561 #.  was not specified when doing clone(); i.e., unsharing
5562 #.  signal handlers is permitted if we are not actually
5563 #.  sharing signal handlers.   mtk
5564 #.  However, we can do unshare(CLONE_VM) if CLONE_VM
5565 #.  was not specified when doing clone(); i.e., unsharing
5566 #.  virtual memory is permitted if we are not actually
5567 #.  sharing virtual memory.   mtk
5568 #. 9) Future Work
5569 #. --------------
5570 #. The current implementation of unshare does not allow unsharing of
5571 #. signals and signal handlers. Signals are complex to begin with and
5572 #. to unshare signals and/or signal handlers of a currently running
5573 #. process is even more complex. If in the future there is a specific
5574 #. need to allow unsharing of signals and/or signal handlers, it can
5575 #. be incrementally added to unshare without affecting legacy
5576 #. applications using unshare.
5577 #. type: Plain text
5578 #: build/C/man2/unshare.2:266
5579 msgid ""
5580 "Not all of the process attributes that can be shared when a new process is "
5581 "created using B<clone>(2)  can be unshared using B<unshare>().  In "
5582 "particular, as at kernel 3.8, B<unshare>()  does not implement flags that "
5583 "reverse the effects of B<CLONE_SIGHAND>, B<CLONE_THREAD>, or B<CLONE_VM>.  "
5584 "Such functionality may be added in the future, if required."
5585 msgstr ""
5586 "B<clone>(2)  で新しいプロセスを生成したときに共有される全てのプロセス属性"
5587 "を、 B<unshare>()  によって共有の解除ができるわけではない。 特に、カーネル "
5588 "3.8 時点では、 B<unshare>()  に B<CLONE_SIGHAND>, B<CLONE_THREAD>, "
5589 "B<CLONE_VM> の効果を取り消すためのフラグが実装されていない。 これらの機能は、"
5590 "必要であれば将来追加されるかもしれない。"
5591
5592 #. type: Plain text
5593 #: build/C/man2/unshare.2:272
5594 msgid "B<clone>(2), B<fork>(2), B<kcmp>(2), B<setns>(2), B<vfork>(2)"
5595 msgstr "B<clone>(2), B<fork>(2), B<kcmp>(2), B<setns>(2), B<vfork>(2)"
5596
5597 #. type: Plain text
5598 #: build/C/man2/unshare.2:275
5599 msgid "I<Documentation/unshare.txt> in the Linux kernel source tree"
5600 msgstr "Linux カーネルソース内の I<Documentation/unshare.txt>"
5601
5602 #~ msgid "2013-04-16"
5603 #~ msgstr "2013-04-16"
5604
5605 #~ msgid "Create a child that executes in a separate UTS namespace"
5606 #~ msgstr "別の UTS 名前空間で動作する子プロセスを作成する"
5607
5608 #~ msgid "2013-01-27"
5609 #~ msgstr "2013-01-27"
5610
5611 #~ msgid "2006-03-23"
5612 #~ msgstr "2006-03-23"
5613
5614 #~ msgid "2013-02-11"
5615 #~ msgstr "2013-02-11"
5616
5617 #~ msgid ""
5618 #~ "B<clone>()  creates a new process, in a manner similar to B<fork>(2).  It "
5619 #~ "is actually a library function layered on top of the underlying B<clone>"
5620 #~ "()  system call, hereinafter referred to as B<sys_clone>.  A description "
5621 #~ "of B<sys_clone> is given toward the end of this page."
5622 #~ msgstr ""
5623 #~ "B<clone>()  は B<fork>(2)  と同じような方法で新しいプロセスを作成する。 "
5624 #~ "B<clone>()  には、ライブラリ関数とその下層にあたる B<clone>()  システム"
5625 #~ "コールが存在する。以下の説明では、システムコールの方を B<sys_clone> と表す"
5626 #~ "こととする。 B<sys_clone> に関する説明はこのマニュアルの最後の方にある。"
5627
5628 #~ msgid ""
5629 #~ "The B<clone>()  and B<sys_clone> calls are Linux-specific and should not "
5630 #~ "be used in programs intended to be portable."
5631 #~ msgstr ""
5632 #~ "B<clone>()  と B<sys_clone> コールは Linux 特有であり、移植を考慮したプロ"
5633 #~ "グラムでは使用すべき ではない。"
5634
5635 #~ msgid ""
5636 #~ "I<Documentation/scheduler/sched-rt-group.txt> in the Linux kernel source "
5637 #~ "tree (since kernel 2.6.25)."
5638 #~ msgstr ""
5639 #~ "Linux カーネルソース内の I<Documentation/scheduler/sched-rt-group.txt> "
5640 #~ "(カーネル 2.6.25 以降)"
5641
5642 #~ msgid ""
5643 #~ "The PID namespace and the mount namespace are not currently supported.  "
5644 #~ "(See the descriptions of B<CLONE_NEWPID> and B<CLONE_NEWNS> in B<clone>"
5645 #~ "(2).)"
5646 #~ msgstr ""
5647 #~ "現在のところ、 PID 名前空間とマウント名前空間はサポートされていない\n"
5648 #~ "(B<clone>(2) の B<CLONE_NEWPID> と B<CLONE_NEWNS> の説明を参照)。"
5649
5650 #~ msgid ""
5651 #~ "If I<pid> is zero, the time quantum for the calling process is written "
5652 #~ "into I<*tp>.  The identified process should be running under the "
5653 #~ "B<SCHED_RR> scheduling policy.  POSIX systems on which "
5654 #~ "B<sched_rr_get_interval>()  is available define "
5655 #~ "B<_POSIX_PRIORITY_SCHEDULING> in I<E<lt>unistd.hE<gt>>."
5656 #~ msgstr ""
5657 #~ "I<pid> がゼロの場合、呼び出したプロセスの時間量が I<*tp> に書き込まれる。"
5658 #~ "指定したプロセスは B<SCHED_RR> スケジューリング方針で稼動している必要があ"
5659 #~ "る。 B<sched_rr_get_interval>()  の使用可能な POSIX システムでは "
5660 #~ "I<E<lt>unistd.hE<gt>> で B<_POSIX_PRIORITY_SCHEDULING> が定義されている。"
5661
5662 #~ msgid ""
5663 #~ "I<From Linux 2.6.25 this flag is deprecated.> You probably never wanted "
5664 #~ "to use it, you certainly shouldn't be using it, and soon it will go away."
5665 #~ msgstr ""
5666 #~ "I<Linux 2.6.25 以降、このフラグは非推奨である。> このフラグを使いたいと思"
5667 #~ "うことは決してないだろうし、 確実に使わないようにすべきである。 このフラグ"
5668 #~ "は近いうちになくなることだろう。"
5669
5670 #~ msgid ""
5671 #~ "Special rules apply for the B<SCHED_IDLE>: an unprivileged process "
5672 #~ "operating under this policy cannot change its policy, regardless of the "
5673 #~ "value of its B<RLIMIT_RTPRIO> resource limit."
5674 #~ msgstr ""
5675 #~ "B<SCHED_IDLE> には特別なルールが適用され、 このポリシーの下で動作する非特"
5676 #~ "権プロセスは、リソース制限 B<RLIMIT_RTPRIO> の値にかかわらず自身のポリシー"
5677 #~ "を変更することができない。"
5678
5679 #~ msgid ""
5680 #~ "I<flags> specified B<CLONE_NEWNS> but the calling process was not "
5681 #~ "privileged (did not have the B<CAP_SYS_ADMIN> capability)."
5682 #~ msgstr ""
5683 #~ "I<flags> に B<CLONE_NEWNS> が指定されたが、呼び出し元プロセスに特権 "
5684 #~ "(B<CAP_SYS_ADMIN> ケーパビリティ) がなかった。"