Debian Codegraph @

po/ko/man2/clone.2.po

raw
1 # Korean translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # ASPLINUX <[email protected]>, 2000.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n\n"
8 "POT-Creation-Date: 2026-06-05 06:20+0200\n"
9 "PO-Revision-Date: 2000-07-29 08:57+0900\n"
10 "Last-Translator: ASPLINUX <[email protected]>\n"
11 "Language-Team: Korean <[email protected]>\n"
12 "Language: ko\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 "Plural-Forms: nplurals=1; plural=0;\n"
17
18 #. type: TH
19 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
20 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
21 #, no-wrap
22 msgid "clone"
23 msgstr "clone"
24
25 #. type: TH
26 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
27 #: opensuse-tumbleweed
28 #, no-wrap
29 msgid "2026-02-08"
30 msgstr "2026년 2월 8일"
31
32 #. type: TH
33 #: archlinux debian-unstable
34 #, no-wrap
35 msgid "Linux man-pages 6.18"
36 msgstr "Linux man-pages 6.18"
37
38 #. type: SH
39 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
40 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
41 #, no-wrap
42 msgid "NAME"
43 msgstr "이름"
44
45 #. type: Plain text
46 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
47 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
48 msgid "clone, __clone2, clone3 - create a child process"
49 msgstr "clone, __clone2, clone3 - 프로세스 생성"
50
51 #. type: SH
52 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
53 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
54 #, no-wrap
55 msgid "LIBRARY"
56 msgstr "라이브러리"
57
58 #. type: Plain text
59 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
60 #: opensuse-leap-16-1 opensuse-tumbleweed
61 msgid "Standard C library (I<libc>,\\ I<-lc>)"
62 msgstr "표준 C 라이브러리 (I<libc>,\\ I<-lc>)"
63
64 #. type: SH
65 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
66 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
67 #, no-wrap
68 msgid "SYNOPSIS"
69 msgstr "요약"
70
71 #. type: Plain text
72 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
73 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
74 #, no-wrap
75 msgid "/* Prototype for the glibc wrapper function */\n"
76 msgstr ""
77
78 #. type: Plain text
79 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
80 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
81 #, no-wrap
82 msgid ""
83 "B<#define _GNU_SOURCE>\n"
84 "B<#include E<lt>sched.hE<gt>>\n"
85 msgstr ""
86 "B<#define _GNU_SOURCE>\n"
87 "B<#include E<lt>sched.hE<gt>>\n"
88
89 #. type: Plain text
90 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
91 #: opensuse-leap-16-1 opensuse-tumbleweed
92 #, fuzzy, no-wrap
93 #| msgid ""
94 #| "B<int clone(int (*>I<fn>B<)(void *_Nullable), void *>I<stack>B<, int >I<flags>B<,>\n"
95 #| "B< void *_Nullable >I<arg>B<, ...>I< >/*B< pid_t *_Nullable >I<parent_tid>B<,>\n"
96 #| "B< void *_Nullable >I<tls>B<,>\n"
97 #| "B< pid_t *_Nullable >I<child_tid>B< >*/B< );>\n"
98 msgid ""
99 "B<int clone(typeof(int (void *_Nullable)) *>I<fn>B<,>\n"
100 "B< void *>I<stack>B<,>\n"
101 "B< int >I<flags>B<,>\n"
102 "B< void *_Nullable >I<arg>B<, ...>\n"
103 "B< >\\f[R]/*B< pid_t *_Nullable >I<parent_tid>B<,>\n"
104 "B< void *_Nullable >I<tls>B<,>\n"
105 "B< pid_t *_Nullable >I<child_tid>B< >\\f[R]*/B< );>\n"
106 msgstr ""
107 "B<int clone(int (*>I<fn>B<)(void *_Nullable), void *>I<stack>B<, int >I<flags>B<,>\n"
108 "B< void *_Nullable >I<arg>B<, ...>I< >/*B< pid_t *_Nullable >I<parent_tid>B<,>\n"
109 "B< void *_Nullable >I<tls>B<,>\n"
110 "B< pid_t *_Nullable >I<child_tid>B< >*/B< );>\n"
111
112 #. type: Plain text
113 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
114 #: opensuse-tumbleweed
115 #, no-wrap
116 msgid "/* For the prototype of the raw clone() system call, see VERSIONS. */\n"
117 msgstr ""
118
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 #, no-wrap
123 msgid ""
124 "B<#include E<lt>linux/sched.hE<gt>> /* Definition of B<struct clone_args> */\n"
125 "B<#include E<lt>sched.hE<gt>> /* Definition of B<CLONE_*> constants */\n"
126 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
127 "B<#include E<lt>unistd.hE<gt>>\n"
128 msgstr ""
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid "B<long syscall(SYS_clone3, struct clone_args *>I<cl_args>B<, size_t >I<size>B<);>\n"
135 msgstr "B<long syscall(SYS_clone3, struct clone_args *>I<cl_args>B<, size_t >I<size>B<);>\n"
136
137 #. type: Plain text
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 msgid ""
141 "I<Note>: glibc provides no wrapper for B<clone3>(), necessitating the use of "
142 "B<syscall>(2)."
143 msgstr ""
144
145 #. type: SH
146 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
147 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
148 #, no-wrap
149 msgid "DESCRIPTION"
150 msgstr "설명"
151
152 #. type: Plain text
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 msgid ""
156 "These system calls create a new (\"child\") process, in a manner similar to "
157 "B<fork>(2)."
158 msgstr ""
159
160 #. type: Plain text
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 msgid ""
164 "By contrast with B<fork>(2), these system calls provide more precise control "
165 "over what pieces of execution context are shared between the calling process "
166 "and the child process. For example, using these system calls, the caller "
167 "can control whether or not the two processes share the virtual address "
168 "space, the table of file descriptors, and the table of signal handlers. "
169 "These system calls also allow the new child process to be placed in separate "
170 "B<namespaces>(7)."
171 msgstr ""
172
173 #. type: Plain text
174 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
175 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
176 msgid ""
177 "Note that in this manual page, \"calling process\" normally corresponds to "
178 "\"parent process\". But see the descriptions of B<CLONE_PARENT> and "
179 "B<CLONE_THREAD> below."
180 msgstr ""
181
182 #. type: Plain text
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 msgid "This page describes the following interfaces:"
186 msgstr ""
187
188 #. type: IP
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 #, no-wrap
192 msgid "\\[bu]"
193 msgstr "\\[bu]"
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid ""
199 "The glibc B<clone>() wrapper function and the underlying system call on "
200 "which it is based. The main text describes the wrapper function; the "
201 "differences for the raw system call are described toward the end of this "
202 "page."
203 msgstr ""
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid "The newer B<clone3>() system call."
209 msgstr ""
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "In the remainder of this page, the terminology \"the clone call\" is used "
216 "when noting details that apply to all of these interfaces."
217 msgstr ""
218
219 #. type: SS
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 #, no-wrap
223 msgid "The clone() wrapper function"
224 msgstr ""
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid ""
230 "When the child process is created with the B<clone>() wrapper function, it "
231 "commences execution by calling the function pointed to by the argument "
232 "I<fn>. (This differs from B<fork>(2), where execution continues in the "
233 "child from the point of the B<fork>(2) call.) The I<arg> argument is "
234 "passed as the argument of the function I<fn>."
235 msgstr ""
236
237 #. type: Plain text
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 msgid ""
241 "When the I<fn>(I<arg>) function returns, the child process terminates. The "
242 "integer returned by I<fn> is the exit status for the child process. The "
243 "child process may also terminate explicitly by calling B<exit>(2) or after "
244 "receiving a fatal signal."
245 msgstr ""
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, fuzzy
251 #| msgid ""
252 #| "The I<child_stack> argument specifies the location of the stack used by "
253 #| "the child process. Since the child and parent processes may share "
254 #| "memory, it is not possible in general for the child process to execute in "
255 #| "the same stack as the parent process. The parent process must therefore "
256 #| "set up memory space for the child stack and pass a pointer to this space "
257 #| "to B<__clone>. Stacks grow downwards on all processors that run Linux "
258 #| "(except the HP PA processors), so I<child_stack> usually points to the "
259 #| "topmost address of the memory space set up for the child stack."
260 msgid ""
261 "The I<stack> argument specifies the location of the stack used by the child "
262 "process. Since the child and calling process may share memory, it is not "
263 "possible for the child process to execute in the same stack as the calling "
264 "process. The calling process must therefore set up memory space for the "
265 "child stack and pass a pointer to this space to B<clone>(). Stacks grow "
266 "downward on all processors that run Linux (except the HP PA processors), so "
267 "I<stack> usually points to the topmost address of the memory space set up "
268 "for the child stack. Note that B<clone>() does not provide a means whereby "
269 "the caller can inform the kernel of the size of the stack area."
270 msgstr ""
271 "I<child_stack> 인수는 자식 프로세스에 의해 사용되는 스택의 위치를 명시한다. "
272 "자식 및 부모 프로세스가 메모리를 공유할 수 있기때문에, 일반적으로 자식 프로세"
273 "스가 부모프로세스와 동일한 스택 에서 실행되는 것은 불가능하다. 부모 프로세스"
274 "는 따라서 자식 프로세스를 위한 메모리를 설정해야 하며, B<__clone> 에 대한 포"
275 "인터를 전달해야 한다."
276
277 #. type: Plain text
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 msgid "The remaining arguments to B<clone>() are discussed below."
281 msgstr ""
282
283 #. type: tbl table
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 #, no-wrap
287 msgid "clone3()"
288 msgstr "clone3()"
289
290 #. type: Plain text
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 msgid ""
294 "The B<clone3>() system call provides a superset of the functionality of the "
295 "older B<clone>() interface. It also provides a number of API improvements, "
296 "including: space for additional flags bits; cleaner separation in the use of "
297 "various arguments; and the ability to specify the size of the child's stack "
298 "area."
299 msgstr ""
300
301 #. type: Plain text
302 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
303 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
304 msgid ""
305 "As with B<fork>(2), B<clone3>() returns in both the parent and the child. "
306 "It returns 0 in the child process and returns the PID of the child in the "
307 "parent."
308 msgstr ""
309
310 #. type: Plain text
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 msgid ""
314 "The I<cl_args> argument of B<clone3>() is a structure of the following form:"
315 msgstr ""
316
317 #. type: Plain text
318 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
319 #: opensuse-tumbleweed
320 #, no-wrap
321 msgid ""
322 "struct clone_args {\n"
323 " u64 flags; /* Flags bit mask */\n"
324 " u64 pidfd; /* Where to store PID file descriptor\n"
325 " (\\f[I]int *\\fR) */\n"
326 " u64 child_tid; /* Where to store child TID,\n"
327 " in child\\[aq]s memory (\\f[I]pid_t *\\fR) */\n"
328 " u64 parent_tid; /* Where to store child TID,\n"
329 " in parent\\[aq]s memory (\\f[I]pid_t *\\fR) */\n"
330 " u64 exit_signal; /* Signal to deliver to parent on\n"
331 " child termination */\n"
332 " u64 stack; /* Pointer to lowest byte of stack */\n"
333 " u64 stack_size; /* Size of stack */\n"
334 " u64 tls; /* Location of new TLS */\n"
335 " u64 set_tid; /* Pointer to a \\f[I]pid_t\\fR array\n"
336 " (since Linux 5.5) */\n"
337 " u64 set_tid_size; /* Number of elements in \\f[I]set_tid\\fR\n"
338 " (since Linux 5.5) */\n"
339 " u64 cgroup; /* File descriptor for target cgroup\n"
340 " of child (since Linux 5.7) */\n"
341 "};\n"
342 msgstr ""
343
344 #. type: Plain text
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 msgid ""
348 "The I<size> argument that is supplied to B<clone3>() should be initialized "
349 "to the size of this structure. (The existence of the I<size> argument "
350 "permits future extensions to the I<clone_args> structure.)"
351 msgstr ""
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid ""
357 "The stack for the child process is specified via I<cl_args.stack>, which "
358 "points to the lowest byte of the stack area, and I<cl_args.stack_size>, "
359 "which specifies the size of the stack in bytes. In the case where the "
360 "B<CLONE_VM> flag (see below) is specified, a stack must be explicitly "
361 "allocated and specified. Otherwise, these two fields can be specified as "
362 "NULL and 0, which causes the child to use the same stack area as the parent "
363 "(in the child's own virtual address space)."
364 msgstr ""
365
366 #. type: Plain text
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 msgid "The remaining fields in the I<cl_args> argument are discussed below."
370 msgstr ""
371
372 #. type: SS
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "Equivalence between clone() and clone3() arguments"
377 msgstr ""
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid ""
383 "Unlike the older B<clone>() interface, where arguments are passed "
384 "individually, in the newer B<clone3>() interface the arguments are packaged "
385 "into the I<clone_args> structure shown above. This structure allows for a "
386 "superset of the information passed via the B<clone>() arguments."
387 msgstr ""
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "The following table shows the equivalence between the arguments of "
394 "B<clone>() and the fields in the I<clone_args> argument supplied to "
395 "B<clone3>():"
396 msgstr ""
397
398 #. type: tbl table
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 #, no-wrap
402 msgid "clone()"
403 msgstr "clone()"
404
405 #. type: tbl table
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid "Notes"
410 msgstr "참고"
411
412 #. type: tbl table
413 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
414 #: opensuse-tumbleweed
415 #, no-wrap
416 msgid "\\f[I]cl_args\\fR field"
417 msgstr ""
418
419 #. type: tbl table
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "flags & \\[ti]0xff"
424 msgstr ""
425
426 #. type: tbl table
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid "flags"
431 msgstr ""
432
433 #. type: tbl table
434 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
435 #: opensuse-tumbleweed
436 #, no-wrap
437 msgid ""
438 "For most flags;\n"
439 "details below"
440 msgstr ""
441
442 #. type: tbl table
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "parent_tid"
447 msgstr "parent_tid"
448
449 #. type: tbl table
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 #, no-wrap
453 msgid "pidfd"
454 msgstr "pidfd"
455
456 #. type: tbl table
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, fuzzy, no-wrap
460 #| msgid "B<CLONE_PID>"
461 msgid "See CLONE_PIDFD"
462 msgstr "B<CLONE_PID>"
463
464 #. type: tbl table
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 #, no-wrap
468 msgid "child_tid"
469 msgstr "child_tid"
470
471 #. type: tbl table
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "See CLONE_CHILD_SETTID"
476 msgstr ""
477
478 #. type: tbl table
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "See CLONE_PARENT_SETTID"
483 msgstr ""
484
485 #. type: tbl table
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, no-wrap
489 msgid "flags & 0xff"
490 msgstr "flags & 0xff"
491
492 #. type: tbl table
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 #, no-wrap
496 msgid "exit_signal"
497 msgstr "exit_signal"
498
499 #. type: tbl table
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "stack"
504 msgstr "stack"
505
506 #. type: tbl table
507 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
508 #: opensuse-tumbleweed
509 #, fuzzy, no-wrap
510 #| msgid "\\f[CR]--version\\fR"
511 msgid "\\f[R]---\\fR"
512 msgstr "\\f[CR]--version\\fR"
513
514 #. type: tbl table
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 #, no-wrap
518 msgid "stack_size"
519 msgstr "stack_size"
520
521 #. type: tbl table
522 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
523 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
524 #, no-wrap
525 msgid "tls"
526 msgstr "tls"
527
528 #. type: tbl table
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 #, no-wrap
532 msgid "See CLONE_SETTLS"
533 msgstr ""
534
535 #. type: tbl table
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 #, no-wrap
539 msgid "set_tid"
540 msgstr "set_tid"
541
542 #. type: tbl table
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 #, no-wrap
546 msgid "See below for details"
547 msgstr ""
548
549 #. type: tbl table
550 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
551 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
552 #, no-wrap
553 msgid "set_tid_size"
554 msgstr "set_tid_size"
555
556 #. type: tbl table
557 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
558 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
559 #, no-wrap
560 msgid "cgroup"
561 msgstr "cgroup"
562
563 #. type: tbl table
564 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
565 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
566 #, no-wrap
567 msgid "See CLONE_INTO_CGROUP"
568 msgstr ""
569
570 #. type: SS
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "The child termination signal"
575 msgstr ""
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid ""
581 "When the child process terminates, a signal may be sent to the parent. The "
582 "termination signal is specified in the low byte of I<flags> (B<clone>()) or "
583 "in I<cl_args.exit_signal> (B<clone3>()). If this signal is specified as "
584 "anything other than B<SIGCHLD>, then the parent process must specify the "
585 "B<__WALL> or B<__WCLONE> options when waiting for the child with "
586 "B<wait>(2). If no signal (i.e., zero) is specified, then the parent process "
587 "is not signaled when the child terminates."
588 msgstr ""
589
590 #. type: SS
591 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
592 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
593 #, no-wrap
594 msgid "The set_tid array"
595 msgstr ""
596
597 #. type: Plain text
598 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
599 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
600 msgid ""
601 "By default, the kernel chooses the next sequential PID for the new process "
602 "in each of the PID namespaces where it is present. When creating a process "
603 "with B<clone3>(), the I<set_tid> array (available since Linux 5.5) can be "
604 "used to select specific PIDs for the process in some or all of the PID "
605 "namespaces where it is present. If the PID of the newly created process "
606 "should be set only for the current PID namespace or in the newly created PID "
607 "namespace (if I<flags> contains B<CLONE_NEWPID>) then the first element in "
608 "the I<set_tid> array has to be the desired PID and I<set_tid_size> needs to "
609 "be 1."
610 msgstr ""
611
612 #. type: Plain text
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 msgid ""
616 "If the PID of the newly created process should have a certain value in "
617 "multiple PID namespaces, then the I<set_tid> array can have multiple "
618 "entries. The first entry defines the PID in the most deeply nested PID "
619 "namespace and each of the following entries contains the PID in the "
620 "corresponding ancestor PID namespace. The number of PID namespaces in which "
621 "a PID should be set is defined by I<set_tid_size> which cannot be larger "
622 "than the number of currently nested PID namespaces."
623 msgstr ""
624
625 #. type: Plain text
626 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
627 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
628 msgid ""
629 "To create a process with the following PIDs in a PID namespace hierarchy:"
630 msgstr ""
631
632 #. type: tbl table
633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
635 #, no-wrap
636 msgid "PID NS level"
637 msgstr ""
638
639 #. type: tbl table
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 #, no-wrap
643 msgid "Requested PID"
644 msgstr ""
645
646 #. type: tbl table
647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
649 #, no-wrap
650 msgid "0"
651 msgstr "0"
652
653 #. type: tbl table
654 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
655 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
656 #, no-wrap
657 msgid "31496"
658 msgstr "31496"
659
660 #. type: tbl table
661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
663 #, no-wrap
664 msgid "Outermost PID namespace"
665 msgstr ""
666
667 #. type: tbl table
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 #, no-wrap
671 msgid "1"
672 msgstr "1"
673
674 #. type: tbl table
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid "42"
679 msgstr "42"
680
681 #. type: tbl table
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 #, no-wrap
685 msgid "2"
686 msgstr "2"
687
688 #. type: tbl table
689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
691 #, no-wrap
692 msgid "7"
693 msgstr "7"
694
695 #. type: tbl table
696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
698 #, no-wrap
699 msgid "Innermost PID namespace"
700 msgstr ""
701
702 #. type: Plain text
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 msgid "Set the array to:"
706 msgstr ""
707
708 #. type: Plain text
709 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
710 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
711 #, no-wrap
712 msgid ""
713 "set_tid[0] = 7;\n"
714 "set_tid[1] = 42;\n"
715 "set_tid[2] = 31496;\n"
716 "set_tid_size = 3;\n"
717 msgstr ""
718 "set_tid[0] = 7;\n"
719 "set_tid[1] = 42;\n"
720 "set_tid[2] = 31496;\n"
721 "set_tid_size = 3;\n"
722
723 #. type: Plain text
724 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
725 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
726 msgid ""
727 "If only the PIDs in the two innermost PID namespaces need to be specified, "
728 "set the array to:"
729 msgstr ""
730
731 #. type: Plain text
732 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
733 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
734 #, no-wrap
735 msgid ""
736 "set_tid[0] = 7;\n"
737 "set_tid[1] = 42;\n"
738 "set_tid_size = 2;\n"
739 msgstr ""
740 "set_tid[0] = 7;\n"
741 "set_tid[1] = 42;\n"
742 "set_tid_size = 2;\n"
743
744 #. type: Plain text
745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
747 msgid ""
748 "The PID in the PID namespaces outside the two innermost PID namespaces is "
749 "selected the same way as any other PID is selected."
750 msgstr ""
751
752 #. commit 124ea650d3072b005457faed69909221c2905a1f
753 #. commit 1caef81da05a84a40dbf02110e967ce6d1135ff6
754 #. type: Plain text
755 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
756 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
757 msgid ""
758 "The I<set_tid> feature requires B<CAP_SYS_ADMIN> or (since Linux 5.9) "
759 "B<CAP_CHECKPOINT_RESTORE> in all owning user namespaces of the target PID "
760 "namespaces."
761 msgstr ""
762
763 #. type: Plain text
764 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
765 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
766 msgid ""
767 "Callers may only choose a PID greater than 1 in a given PID namespace if an "
768 "B<init> process (i.e., a process with PID 1) already exists in that "
769 "namespace. Otherwise the PID entry for this PID namespace must be 1."
770 msgstr ""
771
772 #. type: SS
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 #, no-wrap
776 msgid "The flags mask"
777 msgstr ""
778
779 #. type: Plain text
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 msgid ""
783 "Both B<clone>() and B<clone3>() allow a flags bit mask that modifies their "
784 "behavior and allows the caller to specify what is shared between the calling "
785 "process and the child process. This bit mask\\[em]the I<flags> argument of "
786 "B<clone>() or the I<cl_args.flags> field passed to B<clone3>()\\[em]is "
787 "referred to as the I<flags> mask in the remainder of this page."
788 msgstr ""
789
790 #. type: Plain text
791 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
792 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
793 msgid ""
794 "The I<flags> mask is specified as a bitwise OR of zero or more of the "
795 "constants listed below. Except as noted below, these flags are available "
796 "(and have the same effect) in both B<clone>() and B<clone3>()."
797 msgstr ""
798
799 #. type: TP
800 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
801 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
802 #, no-wrap
803 msgid "B<CLONE_CHILD_CLEARTID> (since Linux 2.5.49)"
804 msgstr ""
805
806 #. type: Plain text
807 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
808 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
809 msgid ""
810 "Clear (zero) the child thread ID at the location pointed to by I<child_tid> "
811 "(B<clone>()) or I<cl_args.child_tid> (B<clone3>()) in child memory when "
812 "the child exits, and do a wakeup on the futex at that address. The address "
813 "involved may be changed by the B<set_tid_address>(2) system call. This is "
814 "used by threading libraries."
815 msgstr ""
816
817 #. type: TP
818 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
819 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
820 #, no-wrap
821 msgid "B<CLONE_CHILD_SETTID> (since Linux 2.5.49)"
822 msgstr ""
823
824 #. type: Plain text
825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
827 msgid ""
828 "Store the child thread ID at the location pointed to by I<child_tid> "
829 "(B<clone>()) or I<cl_args.child_tid> (B<clone3>()) in the child's memory. "
830 "The store operation completes before the clone call returns control to user "
831 "space in the child process. (Note that the store operation may not have "
832 "completed before the clone call returns in the parent process, which is "
833 "relevant if the B<CLONE_VM> flag is also employed.)"
834 msgstr ""
835
836 #. type: TP
837 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
838 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
839 #, no-wrap
840 msgid "B<CLONE_CLEAR_SIGHAND> (since Linux 5.5)"
841 msgstr ""
842
843 #. commit b612e5df4587c934bd056bf05f4a1deca4de4f75
844 #. type: Plain text
845 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
846 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
847 msgid ""
848 "By default, signal dispositions in the child thread are the same as in the "
849 "parent. If this flag is specified, then all signals that are handled in the "
850 "parent (and not set to B<SIG_IGN>) are reset to their default dispositions "
851 "(B<SIG_DFL>) in the child."
852 msgstr ""
853
854 #. type: Plain text
855 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
856 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
857 msgid ""
858 "Specifying this flag together with B<CLONE_SIGHAND> is nonsensical and "
859 "disallowed."
860 msgstr ""
861
862 #. type: TP
863 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
864 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
865 #, no-wrap
866 msgid "B<CLONE_DETACHED> (historical)"
867 msgstr ""
868
869 #. added in Linux 2.5.32; removed in Linux 2.6.0-test4
870 #. type: Plain text
871 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
872 #: opensuse-leap-16-1 opensuse-tumbleweed
873 msgid ""
874 "For a while (during the Linux 2.5 development series) there was a "
875 "B<CLONE_DETACHED> flag, which caused the parent not to receive a signal when "
876 "the child terminated. Ultimately, the effect of this flag was subsumed "
877 "under the B<CLONE_THREAD> flag and by the time Linux 2.6.0 was released, "
878 "this flag had no effect. Since Linux 2.6.2, the need to give this flag "
879 "together with B<CLONE_THREAD> disappeared."
880 msgstr ""
881
882 #. type: Plain text
883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
885 msgid ""
886 "This flag is still defined, but it is usually ignored when calling "
887 "B<clone>(). However, see the description of B<CLONE_PIDFD> for some "
888 "exceptions."
889 msgstr ""
890
891 #. type: TP
892 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
893 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
894 #, fuzzy, no-wrap
895 #| msgid "B<CLONE_FILES>"
896 msgid "B<CLONE_FILES> (since Linux 2.0)"
897 msgstr "B<CLONE_FILES>"
898
899 #. type: Plain text
900 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
901 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
902 #, fuzzy
903 #| msgid ""
904 #| "If B<CLONE_FILES> is set, the parent and the child processes share the "
905 #| "same file descriptor table. File descriptors always refer to the same "
906 #| "files in the parent and in the child process. Any file descriptor "
907 #| "created by the parent process or by the child process is also valid in "
908 #| "the other process. Similarly, if one of the processes closes a file "
909 #| "descriptor, or changes its associated flags, the other process is also "
910 #| "affected."
911 msgid ""
912 "If B<CLONE_FILES> is set, the calling process and the child process share "
913 "the same file descriptor table. Any file descriptor created by the calling "
914 "process or by the child process is also valid in the other process. "
915 "Similarly, if one of the processes closes a file descriptor, or changes its "
916 "associated flags (using the B<fcntl>(2) B<F_SETFD> operation), the other "
917 "process is also affected. If a process sharing a file descriptor table "
918 "calls B<execve>(2), its file descriptor table is duplicated (unshared)."
919 msgstr ""
920 "만일 B<CLONE_FILES> 이 설정되면, 부모와 자식 프로세스는 동일한 파일 기술자 테"
921 "이블을 공유한다. 파일 기술자들은 항상 부모 그리고 자식 프로세스 내의 동일한 "
922 "파일들을 참조한다. 부모 혹은 자식 프로세스에 의해 만들어진 모든 파일 기술자"
923 "는 다른 프로세스에서도 역시 타당하다. 이와 유사하게, 만일 프로세스들중 하나"
924 "가 파일 기술자를 닫거나, 관련된 플래그들을 변경시키면, 기타 프로세스가 역시 "
925 "영향을 받는다."
926
927 #. type: Plain text
928 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
929 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
930 msgid ""
931 "If B<CLONE_FILES> is not set, the child process inherits a copy of all file "
932 "descriptors opened in the calling process at the time of the clone call. "
933 "Subsequent operations that open or close file descriptors, or change file "
934 "descriptor flags, performed by either the calling process or the child "
935 "process do not affect the other process. Note, however, that the duplicated "
936 "file descriptors in the child refer to the same open file descriptions as "
937 "the corresponding file descriptors in the calling process, and thus share "
938 "file offsets and file status flags (see B<open>(2))."
939 msgstr ""
940
941 #. type: TP
942 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
943 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
944 #, no-wrap
945 msgid "B<CLONE_FS> (since Linux 2.0)"
946 msgstr ""
947
948 #. type: Plain text
949 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
950 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
951 #, fuzzy
952 msgid ""
953 "If B<CLONE_FS> is set, the caller and the child process share the same "
954 "filesystem information. This includes the root of the filesystem, the "
955 "current working directory, and the umask. Any call to B<chroot>(2), "
956 "B<chdir>(2), or B<umask>(2) performed by the calling process or the child "
957 "process also affects the other process."
958 msgstr ""
959 "만일 B<CLONE_FS> 가 설정되면, 부모와 자식 프로세스들은 동일한 파일 시스템 정"
960 "보를 공유한다. 이는 파일 시스템의 루트, 현재 작업 디렉토리, 그리고 umask를 "
961 "포함한다. 부모 혹은 자식 프로세스에 의해 수행되는 B<chroot>(2), "
962 "B<chdir>(2), 또는 B<umask>(2) 에 대한 호출 역시 다른 프로세스에 영향을 미친"
963 "다. 만일 B<CLONE_FS> 이 설정되지 않으면 자식 프로세스는 B<__clone> 의 시간에"
964 "서, 부모의 메모리 공간의 분리된 복제내에서 실행된다."
965
966 #. type: Plain text
967 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
968 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
969 #, fuzzy
970 msgid ""
971 "If B<CLONE_FS> is not set, the child process works on a copy of the "
972 "filesystem information of the calling process at the time of the clone "
973 "call. Calls to B<chroot>(2), B<chdir>(2), or B<umask>(2) performed later "
974 "by one of the processes do not affect the other process."
975 msgstr ""
976 "한 프로세스에 의해 나중에 수행될 B<chroot>(2), B<chdir>(2), B<umask>(2) 에 "
977 "대한 호출은 다른 프로세스에 영향을 미치지 않는다."
978
979 #. type: TP
980 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
981 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
982 #, no-wrap
983 msgid "B<CLONE_INTO_CGROUP> (since Linux 5.7)"
984 msgstr ""
985
986 #. commit ef2c41cf38a7559bbf91af42d5b6a4429db8fc68
987 #. type: Plain text
988 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
989 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
990 msgid ""
991 "By default, a child process is placed in the same version 2 cgroup as its "
992 "parent. The B<CLONE_INTO_CGROUP> flag allows the child process to be "
993 "created in a different version 2 cgroup. (Note that B<CLONE_INTO_CGROUP> "
994 "has effect only for version 2 cgroups.)"
995 msgstr ""
996
997 #. type: Plain text
998 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
999 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1000 msgid ""
1001 "In order to place the child process in a different cgroup, the caller "
1002 "specifies B<CLONE_INTO_CGROUP> in I<cl_args.flags> and passes a file "
1003 "descriptor that refers to a version 2 cgroup in the I<cl_args.cgroup> "
1004 "field. (This file descriptor can be obtained by opening a cgroup v2 "
1005 "directory using either the B<O_RDONLY> or the B<O_PATH> flag.) Note that "
1006 "all of the usual restrictions (described in B<cgroups>(7)) on placing a "
1007 "process into a version 2 cgroup apply."
1008 msgstr ""
1009
1010 #. type: Plain text
1011 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1012 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1013 msgid ""
1014 "Among the possible use cases for B<CLONE_INTO_CGROUP> are the following:"
1015 msgstr ""
1016
1017 #. type: Plain text
1018 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1019 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1020 msgid ""
1021 "Spawning a process into a cgroup different from the parent's cgroup makes it "
1022 "possible for a service manager to directly spawn new services into dedicated "
1023 "cgroups. This eliminates the accounting jitter that would be caused if the "
1024 "child process was first created in the same cgroup as the parent and then "
1025 "moved into the target cgroup. Furthermore, spawning the child process "
1026 "directly into a target cgroup is significantly cheaper than moving the child "
1027 "process into the target cgroup after it has been created."
1028 msgstr ""
1029
1030 #. type: Plain text
1031 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1032 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1033 msgid ""
1034 "The B<CLONE_INTO_CGROUP> flag also allows the creation of frozen child "
1035 "processes by spawning them into a frozen cgroup. (See B<cgroups>(7) for a "
1036 "description of the freezer controller.)"
1037 msgstr ""
1038
1039 #. type: Plain text
1040 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1041 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1042 msgid ""
1043 "For threaded applications (or even thread implementations which make use of "
1044 "cgroups to limit individual threads), it is possible to establish a fixed "
1045 "cgroup layout before spawning each thread directly into its target cgroup."
1046 msgstr ""
1047
1048 #. type: TP
1049 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1050 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1051 #, no-wrap
1052 msgid "B<CLONE_IO> (since Linux 2.6.25)"
1053 msgstr ""
1054
1055 #. type: Plain text
1056 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1057 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1058 msgid ""
1059 "If B<CLONE_IO> is set, then the new process shares an I/O context with the "
1060 "calling process. If this flag is not set, then (as with B<fork>(2)) the "
1061 "new process has its own I/O context."
1062 msgstr ""
1063
1064 #. The following based on text from Jens Axboe
1065 #. the anticipatory and CFQ scheduler
1066 #. with CFQ and AS.
1067 #. type: Plain text
1068 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1069 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1070 msgid ""
1071 "The I/O context is the I/O scope of the disk scheduler (i.e., what the I/O "
1072 "scheduler uses to model scheduling of a process's I/O). If processes share "
1073 "the same I/O context, they are treated as one by the I/O scheduler. As a "
1074 "consequence, they get to share disk time. For some I/O schedulers, if two "
1075 "processes share an I/O context, they will be allowed to interleave their "
1076 "disk access. If several threads are doing I/O on behalf of the same process "
1077 "(B<aio_read>(3), for instance), they should employ B<CLONE_IO> to get better "
1078 "I/O performance."
1079 msgstr ""
1080
1081 #. type: Plain text
1082 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1083 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1084 msgid ""
1085 "If the kernel is not configured with the B<CONFIG_BLOCK> option, this flag "
1086 "is a no-op."
1087 msgstr ""
1088
1089 #. type: TP
1090 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1091 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1092 #, no-wrap
1093 msgid "B<CLONE_NEWCGROUP> (since Linux 4.6)"
1094 msgstr ""
1095
1096 #. type: Plain text
1097 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1098 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1099 msgid ""
1100 "Create the process in a new cgroup namespace. If this flag is not set, then "
1101 "(as with B<fork>(2)) the process is created in the same cgroup namespaces "
1102 "as the calling process."
1103 msgstr ""
1104
1105 #. type: Plain text
1106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1108 msgid ""
1109 "For further information on cgroup namespaces, see B<cgroup_namespaces>(7)."
1110 msgstr ""
1111
1112 #. type: Plain text
1113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1115 msgid ""
1116 "Only a privileged process (B<CAP_SYS_ADMIN>) can employ B<CLONE_NEWCGROUP>."
1117 msgstr ""
1118
1119 #. type: TP
1120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1122 #, no-wrap
1123 msgid "B<CLONE_NEWIPC> (since Linux 2.6.19)"
1124 msgstr ""
1125
1126 #. type: Plain text
1127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1129 msgid ""
1130 "If B<CLONE_NEWIPC> is set, then create the process in a new IPC namespace. "
1131 "If this flag is not set, then (as with B<fork>(2)), the process is created "
1132 "in the same IPC namespace as the calling process."
1133 msgstr ""
1134
1135 #. type: Plain text
1136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1138 msgid "For further information on IPC namespaces, see B<ipc_namespaces>(7)."
1139 msgstr ""
1140
1141 #. type: Plain text
1142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1144 msgid ""
1145 "Only a privileged process (B<CAP_SYS_ADMIN>) can employ B<CLONE_NEWIPC>. "
1146 "This flag can't be specified in conjunction with B<CLONE_SYSVSEM>."
1147 msgstr ""
1148
1149 #. type: TP
1150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1152 #, no-wrap
1153 msgid "B<CLONE_NEWNET> (since Linux 2.6.24)"
1154 msgstr ""
1155
1156 #. type: Plain text
1157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1159 msgid ""
1160 "(The implementation of this flag was completed only by about Linux 2.6.29.)"
1161 msgstr ""
1162
1163 #. type: Plain text
1164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1166 msgid ""
1167 "If B<CLONE_NEWNET> is set, then create the process in a new network "
1168 "namespace. If this flag is not set, then (as with B<fork>(2)) the process "
1169 "is created in the same network namespace as the calling process."
1170 msgstr ""
1171
1172 #. type: Plain text
1173 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1174 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1175 msgid ""
1176 "For further information on network namespaces, see B<network_namespaces>(7)."
1177 msgstr ""
1178
1179 #. type: Plain text
1180 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1181 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1182 msgid ""
1183 "Only a privileged process (B<CAP_SYS_ADMIN>) can employ B<CLONE_NEWNET>."
1184 msgstr ""
1185
1186 #. type: TP
1187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1189 #, no-wrap
1190 msgid "B<CLONE_NEWNS> (since Linux 2.4.19)"
1191 msgstr ""
1192
1193 #. type: Plain text
1194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1196 msgid ""
1197 "If B<CLONE_NEWNS> is set, the cloned child is started in a new mount "
1198 "namespace, initialized with a copy of the namespace of the parent. If "
1199 "B<CLONE_NEWNS> is not set, the child lives in the same mount namespace as "
1200 "the parent."
1201 msgstr ""
1202
1203 #. type: Plain text
1204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1206 msgid ""
1207 "For further information on mount namespaces, see B<namespaces>(7) and "
1208 "B<mount_namespaces>(7)."
1209 msgstr ""
1210
1211 #. See https://lwn.net/Articles/543273/
1212 #. type: Plain text
1213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1215 msgid ""
1216 "Only a privileged process (B<CAP_SYS_ADMIN>) can employ B<CLONE_NEWNS>. It "
1217 "is not permitted to specify both B<CLONE_NEWNS> and B<CLONE_FS> in the same "
1218 "clone call."
1219 msgstr ""
1220
1221 #. type: TP
1222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1224 #, no-wrap
1225 msgid "B<CLONE_NEWPID> (since Linux 2.6.24)"
1226 msgstr ""
1227
1228 #
1229 #. This explanation draws a lot of details from
1230 #. http://lwn.net/Articles/259217/
1231 #. Authors: Pavel Emelyanov <[email protected]>
1232 #. and Kir Kolyshkin <[email protected]>
1233 #. The primary kernel commit is 30e49c263e36341b60b735cbef5ca37912549264
1234 #. Author: Pavel Emelyanov <[email protected]>
1235 #. type: Plain text
1236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1238 msgid ""
1239 "If B<CLONE_NEWPID> is set, then create the process in a new PID namespace. "
1240 "If this flag is not set, then (as with B<fork>(2)) the process is created "
1241 "in the same PID namespace as the calling process."
1242 msgstr ""
1243
1244 #. type: Plain text
1245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1247 msgid ""
1248 "For further information on PID namespaces, see B<namespaces>(7) and "
1249 "B<pid_namespaces>(7)."
1250 msgstr ""
1251
1252 #. type: Plain text
1253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1255 msgid ""
1256 "Only a privileged process (B<CAP_SYS_ADMIN>) can employ B<CLONE_NEWPID>. "
1257 "This flag can't be specified in conjunction with B<CLONE_THREAD>."
1258 msgstr ""
1259
1260 #. type: TP
1261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1263 #, no-wrap
1264 msgid "B<CLONE_NEWUSER>"
1265 msgstr "B<CLONE_NEWUSER>"
1266
1267 #. type: Plain text
1268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1270 msgid ""
1271 "(This flag first became meaningful for B<clone>() in Linux 2.6.23, the "
1272 "current B<clone>() semantics were merged in Linux 3.5, and the final pieces "
1273 "to make the user namespaces completely usable were merged in Linux 3.8.)"
1274 msgstr ""
1275
1276 #. type: Plain text
1277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1279 msgid ""
1280 "If B<CLONE_NEWUSER> is set, then create the process in a new user "
1281 "namespace. If this flag is not set, then (as with B<fork>(2)) the process "
1282 "is created in the same user namespace as the calling process."
1283 msgstr ""
1284
1285 #. type: Plain text
1286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1288 msgid ""
1289 "For further information on user namespaces, see B<namespaces>(7) and "
1290 "B<user_namespaces>(7)."
1291 msgstr ""
1292
1293 #. Before Linux 2.6.29, it appears that only CAP_SYS_ADMIN was needed
1294 #. type: Plain text
1295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1297 msgid ""
1298 "Before Linux 3.8, use of B<CLONE_NEWUSER> required that the caller have "
1299 "three capabilities: B<CAP_SYS_ADMIN>, B<CAP_SETUID>, and B<CAP_SETGID>. "
1300 "Starting with Linux 3.8, no privileges are needed to create a user namespace."
1301 msgstr ""
1302
1303 #. #-#-#-#-# archlinux: clone.2.pot (PACKAGE VERSION) #-#-#-#-#
1304 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
1305 #. https://lwn.net/Articles/543273/
1306 #. The fix actually went into Linux 3.9 and into Linux 3.8.3.
1307 #. However, user namespaces were, for practical purposes,
1308 #. unusable in earlier Linux 3.8.x because of the various filesystems
1309 #. that didn't support userns.
1310 #. type: Plain text
1311 #. #-#-#-#-# debian-trixie: clone.2.pot (PACKAGE VERSION) #-#-#-#-#
1312 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
1313 #. https://lwn.net/Articles/543273/
1314 #. The fix actually went into Linux 3.9 and into Linux 3.8.3. However, user namespaces
1315 #. were, for practical purposes, unusable in earlier Linux 3.8.x because of the
1316 #. various filesystems that didn't support userns.
1317 #. type: Plain text
1318 #. #-#-#-#-# debian-unstable: clone.2.pot (PACKAGE VERSION) #-#-#-#-#
1319 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
1320 #. https://lwn.net/Articles/543273/
1321 #. The fix actually went into Linux 3.9 and into Linux 3.8.3.
1322 #. However, user namespaces were, for practical purposes,
1323 #. unusable in earlier Linux 3.8.x because of the various filesystems
1324 #. that didn't support userns.
1325 #. type: Plain text
1326 #. #-#-#-#-# fedora-44: clone.2.pot (PACKAGE VERSION) #-#-#-#-#
1327 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
1328 #. https://lwn.net/Articles/543273/
1329 #. The fix actually went into Linux 3.9 and into Linux 3.8.3. However, user namespaces
1330 #. were, for practical purposes, unusable in earlier Linux 3.8.x because of the
1331 #. various filesystems that didn't support userns.
1332 #. type: Plain text
1333 #. #-#-#-#-# fedora-rawhide: clone.2.pot (PACKAGE VERSION) #-#-#-#-#
1334 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
1335 #. https://lwn.net/Articles/543273/
1336 #. The fix actually went into Linux 3.9 and into Linux 3.8.3. However, user namespaces
1337 #. were, for practical purposes, unusable in earlier Linux 3.8.x because of the
1338 #. various filesystems that didn't support userns.
1339 #. type: Plain text
1340 #. #-#-#-#-# mageia-cauldron: clone.2.pot (PACKAGE VERSION) #-#-#-#-#
1341 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
1342 #. https://lwn.net/Articles/543273/
1343 #. The fix actually went into Linux 3.9 and into Linux 3.8.3.
1344 #. However, user namespaces were, for practical purposes,
1345 #. unusable in earlier Linux 3.8.x because of the various filesystems
1346 #. that didn't support userns.
1347 #. type: Plain text
1348 #. #-#-#-#-# opensuse-leap-16-1: clone.2.pot (PACKAGE VERSION) #-#-#-#-#
1349 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
1350 #. https://lwn.net/Articles/543273/
1351 #. The fix actually went into Linux 3.9 and into Linux 3.8.3.
1352 #. However, user namespaces were, for practical purposes,
1353 #. unusable in earlier Linux 3.8.x because of the various filesystems
1354 #. that didn't support userns.
1355 #. type: Plain text
1356 #. #-#-#-#-# opensuse-tumbleweed: clone.2.pot (PACKAGE VERSION) #-#-#-#-#
1357 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
1358 #. https://lwn.net/Articles/543273/
1359 #. The fix actually went into Linux 3.9 and into Linux 3.8.3.
1360 #. However, user namespaces were, for practical purposes,
1361 #. unusable in earlier Linux 3.8.x because of the various filesystems
1362 #. that didn't support userns.
1363 #. type: Plain text
1364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1366 msgid ""
1367 "This flag can't be specified in conjunction with B<CLONE_THREAD> or "
1368 "B<CLONE_PARENT>. For security reasons, B<CLONE_NEWUSER> cannot be specified "
1369 "in conjunction with B<CLONE_FS>."
1370 msgstr ""
1371
1372 #. type: TP
1373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1375 #, no-wrap
1376 msgid "B<CLONE_NEWUTS> (since Linux 2.6.19)"
1377 msgstr ""
1378
1379 #. type: Plain text
1380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1382 msgid ""
1383 "If B<CLONE_NEWUTS> is set, then create the process in a new UTS namespace, "
1384 "whose identifiers are initialized by duplicating the identifiers from the "
1385 "UTS namespace of the calling process. If this flag is not set, then (as "
1386 "with B<fork>(2)) the process is created in the same UTS namespace as the "
1387 "calling process."
1388 msgstr ""
1389
1390 #. type: Plain text
1391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1393 msgid "For further information on UTS namespaces, see B<uts_namespaces>(7)."
1394 msgstr ""
1395
1396 #. type: Plain text
1397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1399 msgid ""
1400 "Only a privileged process (B<CAP_SYS_ADMIN>) can employ B<CLONE_NEWUTS>."
1401 msgstr ""
1402
1403 #. type: TP
1404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1406 #, no-wrap
1407 msgid "B<CLONE_PARENT> (since Linux 2.3.12)"
1408 msgstr ""
1409
1410 #. type: Plain text
1411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1413 msgid ""
1414 "If B<CLONE_PARENT> is set, then the parent of the new child (as returned by "
1415 "B<getppid>(2)) will be the same as that of the calling process."
1416 msgstr ""
1417
1418 #. type: Plain text
1419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1421 msgid ""
1422 "If B<CLONE_PARENT> is not set, then (as with B<fork>(2)) the child's parent "
1423 "is the calling process."
1424 msgstr ""
1425
1426 #. type: Plain text
1427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1429 msgid ""
1430 "Note that it is the parent process, as returned by B<getppid>(2), which is "
1431 "signaled when the child terminates, so that if B<CLONE_PARENT> is set, then "
1432 "the parent of the calling process, rather than the calling process itself, "
1433 "is signaled."
1434 msgstr ""
1435
1436 #. type: Plain text
1437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1439 msgid ""
1440 "The B<CLONE_PARENT> flag can't be used in clone calls by the global init "
1441 "process (PID 1 in the initial PID namespace) and init processes in other "
1442 "PID namespaces. This restriction prevents the creation of multi-rooted "
1443 "process trees as well as the creation of unreapable zombies in the initial "
1444 "PID namespace."
1445 msgstr ""
1446
1447 #. type: TP
1448 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1449 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1450 #, no-wrap
1451 msgid "B<CLONE_PARENT_SETTID> (since Linux 2.5.49)"
1452 msgstr ""
1453
1454 #. type: Plain text
1455 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1456 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1457 msgid ""
1458 "Store the child thread ID at the location pointed to by I<parent_tid> "
1459 "(B<clone>()) or I<cl_args.parent_tid> (B<clone3>()) in the parent's "
1460 "memory. (In Linux 2.5.32-2.5.48 there was a flag B<CLONE_SETTID> that did "
1461 "this.) The store operation completes before the clone call returns control "
1462 "to user space."
1463 msgstr ""
1464
1465 #. type: TP
1466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1468 #, no-wrap
1469 msgid "B<CLONE_PID> (Linux 2.0 to Linux 2.5.15)"
1470 msgstr ""
1471
1472 #. type: Plain text
1473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1475 msgid ""
1476 "If B<CLONE_PID> is set, the child process is created with the same process "
1477 "ID as the calling process. This is good for hacking the system, but "
1478 "otherwise of not much use. From Linux 2.3.21 onward, this flag could be "
1479 "specified only by the system boot process (PID 0). The flag disappeared "
1480 "completely from the kernel sources in Linux 2.5.16. Subsequently, the "
1481 "kernel silently ignored this bit if it was specified in the I<flags> mask. "
1482 "Much later, the same bit was recycled for use as the B<CLONE_PIDFD> flag."
1483 msgstr ""
1484
1485 #. type: TP
1486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1488 #, no-wrap
1489 msgid "B<CLONE_PIDFD> (since Linux 5.2)"
1490 msgstr ""
1491
1492 #. commit b3e5838252665ee4cfa76b82bdf1198dca81e5be
1493 #. type: Plain text
1494 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1495 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1496 msgid ""
1497 "If this flag is specified, a PID file descriptor referring to the child "
1498 "process is allocated and placed at a specified location in the parent's "
1499 "memory. The close-on-exec flag is set on this new file descriptor. PID "
1500 "file descriptors can be used for the purposes described in B<pidfd_open>(2)."
1501 msgstr ""
1502
1503 #. type: Plain text
1504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1506 msgid ""
1507 "When using B<clone3>(), the PID file descriptor is placed at the location "
1508 "pointed to by I<cl_args.pidfd>."
1509 msgstr ""
1510
1511 #. type: Plain text
1512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1514 msgid ""
1515 "When using B<clone>(), the PID file descriptor is placed at the location "
1516 "pointed to by I<parent_tid>. Since the I<parent_tid> argument is used to "
1517 "return the PID file descriptor, B<CLONE_PIDFD> cannot be used with "
1518 "B<CLONE_PARENT_SETTID> when calling B<clone>()."
1519 msgstr ""
1520
1521 #. commit 83b290c9e3b5d95891f43a4aeadf6071cbff25d3
1522 #. type: Plain text
1523 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1524 #: opensuse-tumbleweed
1525 msgid ""
1526 "If B<CLONE_PIDFD> is specified together with B<CLONE_THREAD>, the obtained "
1527 "PID file descriptor refers to a specific thread, as opposed to a thread-"
1528 "group leader if B<CLONE_THREAD> is not specified. This feature is available "
1529 "since Linux 6.9."
1530 msgstr ""
1531
1532 #. type: Plain text
1533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1535 msgid ""
1536 "If the obsolete B<CLONE_DETACHED> flag is specified alongside B<CLONE_PIDFD> "
1537 "when calling B<clone>(), an error is returned. An error also results if "
1538 "B<CLONE_DETACHED> is specified when calling B<clone3>(). This error "
1539 "behavior ensures that the bit corresponding to B<CLONE_DETACHED> can be "
1540 "reused for further PID file descriptor features in the future."
1541 msgstr ""
1542
1543 #. type: TP
1544 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1545 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1546 #, no-wrap
1547 msgid "B<CLONE_PTRACE> (since Linux 2.2)"
1548 msgstr ""
1549
1550 #. type: Plain text
1551 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1552 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1553 msgid ""
1554 "If B<CLONE_PTRACE> is specified, and the calling process is being traced, "
1555 "then trace the child also (see B<ptrace>(2))."
1556 msgstr ""
1557
1558 #. type: TP
1559 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1560 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1561 #, no-wrap
1562 msgid "B<CLONE_SETTLS> (since Linux 2.5.32)"
1563 msgstr ""
1564
1565 #. type: Plain text
1566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1568 msgid "The TLS (Thread Local Storage) descriptor is set to I<tls>."
1569 msgstr ""
1570
1571 #. type: Plain text
1572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1574 msgid ""
1575 "The interpretation of I<tls> and the resulting effect is architecture "
1576 "dependent. On x86, I<tls> is interpreted as a I<struct user_desc\\ *> (see "
1577 "B<set_thread_area>(2)). On x86-64 it is the new value to be set for the %fs "
1578 "base register (see the B<ARCH_SET_FS> argument to B<arch_prctl>(2)). On "
1579 "architectures with a dedicated TLS register, it is the new value of that "
1580 "register."
1581 msgstr ""
1582
1583 #. type: Plain text
1584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1586 msgid ""
1587 "Use of this flag requires detailed knowledge and generally it should not be "
1588 "used except in libraries implementing threading."
1589 msgstr ""
1590
1591 #. type: TP
1592 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1593 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1594 #, fuzzy, no-wrap
1595 #| msgid "B<CLONE_SIGHAND>"
1596 msgid "B<CLONE_SIGHAND> (since Linux 2.0)"
1597 msgstr "B<CLONE_SIGHAND>"
1598
1599 #. type: Plain text
1600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1602 #, fuzzy
1603 #| msgid ""
1604 #| "If B<CLONE_SIGHAND> is set, the parent and the child processes share the "
1605 #| "same table of signal handlers. If the parent or child process calls "
1606 #| "B<sigaction>(2) to change the behavior associated with a signal, the "
1607 #| "behavior is also changed in the other process as well. However, the "
1608 #| "parent and child processes still have distinct signal masks and sets of "
1609 #| "pending signals. So, one of them may block or unblock some signals using "
1610 #| "B<sigprocmask>(2) without affecting the other process."
1611 msgid ""
1612 "If B<CLONE_SIGHAND> is set, the calling process and the child process share "
1613 "the same table of signal handlers. If the calling process or child process "
1614 "calls B<sigaction>(2) to change the behavior associated with a signal, the "
1615 "behavior is changed in the other process as well. However, the calling "
1616 "process and child processes still have distinct signal masks and sets of "
1617 "pending signals. So, one of them may block or unblock signals using "
1618 "B<sigprocmask>(2) without affecting the other process."
1619 msgstr ""
1620 "B<CLONE_SIGHAND> 이 설정되면, 부모 및 자식 프로세스들은 시그널 처리기의 동일"
1621 "한 테이블을 공유한다. 만일 보모 혹은 자식 프로세스가 B<sigaction>(2) 를 호출"
1622 "하여 시그널과 관련된 행위를 변경시키고자 한다면, 다른 프로세스내의 그 행위 역"
1623 "시 변경된다. 그러나, 부모와 자식 프로세스들은 여전히 독특한 시그널 마스크과 "
1624 "일련의 펜딩 시그널들을 갖는다. 따라서 그들중 하나는 다른 시그널에 영향을 주"
1625 "지 않고, B<sigprocmask>(2) 을 사용하여 일부 시그널을 블로킹하거나, 하지 않는"
1626 "다."
1627
1628 #. type: Plain text
1629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1631 #, fuzzy
1632 #| msgid ""
1633 #| "If B<CLONE_SIGHAND> is not set, the child process inherits a copy of the "
1634 #| "signal handlers of its parent at the time B<__clone> is called. Calls to "
1635 #| "B<sigaction>(2) performed later by one of the processes have no effect "
1636 #| "on the other process."
1637 msgid ""
1638 "If B<CLONE_SIGHAND> is not set, the child process inherits a copy of the "
1639 "signal handlers of the calling process at the time of the clone call. Calls "
1640 "to B<sigaction>(2) performed later by one of the processes have no effect "
1641 "on the other process."
1642 msgstr ""
1643 "B<CLONE_SIGHAND> 이 설정되지 않으면, 자식 프로세스는 B<__clone> 의 시간에 부"
1644 "모 프로세스에서 열린 시그널 처리기들의 복사본을 상속받는다. 부모 혹은 자식 "
1645 "프로세스들 중 하나에 의해 나중에 수행될 파일 기술자들에 대한 연산은 다른 프로"
1646 "세스 에 영향을 주지 않는다. 하나의 프로세스에 의해 수행되는 "
1647 "B<sigaction>(2) 에 대한 호출은 다른 프로세스에 영향을 주지 않는다."
1648
1649 #. Precisely: Linux 2.6.0-test6
1650 #. type: Plain text
1651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1653 msgid ""
1654 "Since Linux 2.6.0, the I<flags> mask must also include B<CLONE_VM> if "
1655 "B<CLONE_SIGHAND> is specified."
1656 msgstr ""
1657
1658 #. type: TP
1659 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1660 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1661 #, no-wrap
1662 msgid "B<CLONE_STOPPED> (since Linux 2.6.0)"
1663 msgstr ""
1664
1665 #. Precisely: Linux 2.6.0-test2
1666 #. type: Plain text
1667 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1668 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1669 msgid ""
1670 "If B<CLONE_STOPPED> is set, then the child is initially stopped (as though "
1671 "it was sent a B<SIGSTOP> signal), and must be resumed by sending it a "
1672 "B<SIGCONT> signal."
1673 msgstr ""
1674
1675 #. glibc 2.8 removed this defn from bits/sched.h
1676 #. type: Plain text
1677 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1678 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1679 msgid ""
1680 "This flag was I<deprecated> from Linux 2.6.25 onward, and was I<removed> "
1681 "altogether in Linux 2.6.38. Since then, the kernel silently ignores it "
1682 "without error. Starting with Linux 4.6, the same bit was reused for the "
1683 "B<CLONE_NEWCGROUP> flag."
1684 msgstr ""
1685
1686 #. type: TP
1687 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1688 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1689 #, no-wrap
1690 msgid "B<CLONE_SYSVSEM> (since Linux 2.5.10)"
1691 msgstr ""
1692
1693 #. type: Plain text
1694 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1695 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1696 msgid ""
1697 "If B<CLONE_SYSVSEM> is set, then the child and the calling process share a "
1698 "single list of System V semaphore adjustment (I<semadj>) values (see "
1699 "B<semop>(2)). In this case, the shared list accumulates I<semadj> values "
1700 "across all processes sharing the list, and semaphore adjustments are "
1701 "performed only when the last process that is sharing the list terminates (or "
1702 "ceases sharing the list using B<unshare>(2)). If this flag is not set, then "
1703 "the child has a separate I<semadj> list that is initially empty."
1704 msgstr ""
1705
1706 #. type: TP
1707 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1708 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1709 #, no-wrap
1710 msgid "B<CLONE_THREAD> (since Linux 2.4.0)"
1711 msgstr ""
1712
1713 #. Precisely: Linux 2.6.0-test8
1714 #. type: Plain text
1715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1717 msgid ""
1718 "If B<CLONE_THREAD> is set, the child is placed in the same thread group as "
1719 "the calling process. To make the remainder of the discussion of "
1720 "B<CLONE_THREAD> more readable, the term \"thread\" is used to refer to the "
1721 "processes within a thread group."
1722 msgstr ""
1723
1724 #. type: Plain text
1725 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1726 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1727 msgid ""
1728 "Thread groups were a feature added in Linux 2.4 to support the POSIX threads "
1729 "notion of a set of threads that share a single PID. Internally, this shared "
1730 "PID is the so-called thread group identifier (TGID) for the thread group. "
1731 "Since Linux 2.4, calls to B<getpid>(2) return the TGID of the caller."
1732 msgstr ""
1733
1734 #. type: Plain text
1735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1737 msgid ""
1738 "The threads within a group can be distinguished by their (system-wide) "
1739 "unique thread IDs (TID). A new thread's TID is available as the function "
1740 "result returned to the caller, and a thread can obtain its own TID using "
1741 "B<gettid>(2)."
1742 msgstr ""
1743
1744 #. type: Plain text
1745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1747 msgid ""
1748 "When a clone call is made without specifying B<CLONE_THREAD>, then the "
1749 "resulting thread is placed in a new thread group whose TGID is the same as "
1750 "the thread's TID. This thread is the I<leader> of the new thread group."
1751 msgstr ""
1752
1753 #. type: Plain text
1754 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1755 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1756 msgid ""
1757 "A new thread created with B<CLONE_THREAD> has the same parent process as the "
1758 "process that made the clone call (i.e., like B<CLONE_PARENT>), so that calls "
1759 "to B<getppid>(2) return the same value for all of the threads in a thread "
1760 "group. When a B<CLONE_THREAD> thread terminates, the thread that created it "
1761 "is not sent a B<SIGCHLD> (or other termination) signal; nor can the status "
1762 "of such a thread be obtained using B<wait>(2). (The thread is said to be "
1763 "I<detached>.)"
1764 msgstr ""
1765
1766 #. type: Plain text
1767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1769 msgid ""
1770 "After all of the threads in a thread group terminate the parent process of "
1771 "the thread group is sent a B<SIGCHLD> (or other termination) signal."
1772 msgstr ""
1773
1774 #. type: Plain text
1775 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1776 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1777 msgid ""
1778 "If any of the threads in a thread group performs an B<execve>(2), then all "
1779 "threads other than the thread group leader are terminated, and the new "
1780 "program is executed in the thread group leader."
1781 msgstr ""
1782
1783 #. type: Plain text
1784 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1785 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1786 msgid ""
1787 "If one of the threads in a thread group creates a child using B<fork>(2), "
1788 "then any thread in the group can B<wait>(2) for that child."
1789 msgstr ""
1790
1791 #. Precisely: Linux 2.6.0-test6
1792 #. type: Plain text
1793 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1794 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1795 msgid ""
1796 "Since Linux 2.5.35, the I<flags> mask must also include B<CLONE_SIGHAND> if "
1797 "B<CLONE_THREAD> is specified (and note that, since Linux 2.6.0, "
1798 "B<CLONE_SIGHAND> also requires B<CLONE_VM> to be included)."
1799 msgstr ""
1800
1801 #. type: Plain text
1802 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1803 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1804 msgid ""
1805 "Signal dispositions and actions are process-wide: if an unhandled signal is "
1806 "delivered to a thread, then it will affect (terminate, stop, continue, be "
1807 "ignored in) all members of the thread group."
1808 msgstr ""
1809
1810 #. type: Plain text
1811 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1812 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1813 msgid "Each thread has its own signal mask, as set by B<sigprocmask>(2)."
1814 msgstr ""
1815
1816 #. type: Plain text
1817 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1818 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1819 msgid ""
1820 "A signal may be process-directed or thread-directed. A process-directed "
1821 "signal is targeted at a thread group (i.e., a TGID), and is delivered to an "
1822 "arbitrarily selected thread from among those that are not blocking the "
1823 "signal. A signal may be process-directed because it was generated by the "
1824 "kernel for reasons other than a hardware exception, or because it was sent "
1825 "using B<kill>(2) or B<sigqueue>(3). A thread-directed signal is targeted "
1826 "at (i.e., delivered to) a specific thread. A signal may be thread directed "
1827 "because it was sent using B<tgkill>(2) or B<pthread_sigqueue>(3), or "
1828 "because the thread executed a machine language instruction that triggered a "
1829 "hardware exception (e.g., invalid memory access triggering B<SIGSEGV> or a "
1830 "floating-point exception triggering B<SIGFPE>)."
1831 msgstr ""
1832
1833 #. type: Plain text
1834 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1835 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1836 msgid ""
1837 "A call to B<sigpending>(2) returns a signal set that is the union of the "
1838 "pending process-directed signals and the signals that are pending for the "
1839 "calling thread."
1840 msgstr ""
1841
1842 #. type: Plain text
1843 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1844 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1845 msgid ""
1846 "If a process-directed signal is delivered to a thread group, and the thread "
1847 "group has installed a handler for the signal, then the handler is invoked in "
1848 "exactly one, arbitrarily selected member of the thread group that has not "
1849 "blocked the signal. If multiple threads in a group are waiting to accept "
1850 "the same signal using B<sigwaitinfo>(2), the kernel will arbitrarily select "
1851 "one of these threads to receive the signal."
1852 msgstr ""
1853
1854 #. type: TP
1855 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1856 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1857 #, no-wrap
1858 msgid "B<CLONE_UNTRACED> (since Linux 2.5.46)"
1859 msgstr ""
1860
1861 #. type: Plain text
1862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1864 msgid ""
1865 "If B<CLONE_UNTRACED> is specified, then a tracing process cannot force "
1866 "B<CLONE_PTRACE> on this child process."
1867 msgstr ""
1868
1869 #. type: TP
1870 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1871 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1872 #, no-wrap
1873 msgid "B<CLONE_VFORK> (since Linux 2.2)"
1874 msgstr ""
1875
1876 #. type: Plain text
1877 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1878 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1879 msgid ""
1880 "If B<CLONE_VFORK> is set, the execution of the calling process is suspended "
1881 "until the child releases its virtual memory resources via a call to "
1882 "B<execve>(2) or B<_exit>(2) (as with B<vfork>(2))."
1883 msgstr ""
1884
1885 #. type: Plain text
1886 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1887 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1888 msgid ""
1889 "If B<CLONE_VFORK> is not set, then both the calling process and the child "
1890 "are schedulable after the call, and an application should not rely on "
1891 "execution occurring in any particular order."
1892 msgstr ""
1893
1894 #. type: TP
1895 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1896 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1897 #, no-wrap
1898 msgid "B<CLONE_VM> (since Linux 2.0)"
1899 msgstr ""
1900
1901 #. type: Plain text
1902 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1903 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1904 #, fuzzy
1905 msgid ""
1906 "If B<CLONE_VM> is set, the calling process and the child process run in the "
1907 "same memory space. In particular, memory writes performed by the calling "
1908 "process or by the child process are also visible in the other process. "
1909 "Moreover, any memory mapping or unmapping performed with B<mmap>(2) or "
1910 "B<munmap>(2) by the child or calling process also affects the other process."
1911 msgstr ""
1912 "만일 B<CLONE_VM> 이 설정되면, 부모와 자식 프로세스들은 동일한 메모리 공간에"
1913 "서 실행된다. 특히, 부모 프로세스 혹은 자식 프로세스들에 의해 수행되는 메모"
1914 "리 작성은 다른 프로세스 에서도 볼 수 있다. 더우기 자식 또는 부모 프로세스에 "
1915 "의해 B<mmap>(2) 혹은 B<munmap>(2)으로B<수행되는>메모리B<매핑>또는B<언매핑>역"
1916 "시B<다른>프로세스에B<영향을>미친다. 만일 B<CLONE_VM> 이 설정되지 않으면, 자"
1917 "식 프로세스는 .BR __clone의 시간에서, 부모의 메모리 공간의 분리된 복제내에서 "
1918 "실행된다."
1919
1920 #. type: Plain text
1921 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1922 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1923 #, fuzzy
1924 msgid ""
1925 "If B<CLONE_VM> is not set, the child process runs in a separate copy of the "
1926 "memory space of the calling process at the time of the clone call. Memory "
1927 "writes or file mappings/unmappings performed by one of the processes do not "
1928 "affect the other, as with B<fork>(2)."
1929 msgstr ""
1930 "B<fork>(2) 의 경우에서 볼 수 있듯이, 프로세스들 중 하나에 의해 수행되는 메모"
1931 "리 작성 혹은 파일 매핑/언매핑은 다른 것에 대해 영향을 미치지 않는다."
1932
1933 #. type: Plain text
1934 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1935 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1936 msgid ""
1937 "If the B<CLONE_VM> flag is specified and the B<CLONE_VFORK> flag is not "
1938 "specified, then any alternate signal stack that was established by "
1939 "B<sigaltstack>(2) is cleared in the child process."
1940 msgstr ""
1941
1942 #. type: SH
1943 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1944 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1945 #, no-wrap
1946 msgid "RETURN VALUE"
1947 msgstr "반환값"
1948
1949 #. gettid(2) returns current->pid;
1950 #. getpid(2) returns current->tgid;
1951 #. type: Plain text
1952 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1953 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1954 #, fuzzy
1955 #| msgid ""
1956 #| "On success, the PID of the child process is returned in the parent's "
1957 #| "thread of execution. On failure, a -1 will be returned in the parent's "
1958 #| "context, no child process will be created, and I<errno> will be set "
1959 #| "appropriately."
1960 msgid ""
1961 "On success, the thread ID of the child process is returned in the caller's "
1962 "thread of execution. On failure, -1 is returned in the caller's context, no "
1963 "child process is created, and I<errno> is set to indicate the error."
1964 msgstr ""
1965 "성공하면, 자식 프로세스의 PID는 부모의 실행할 쓰레드 내에 리턴된다. 실패하"
1966 "면, -1이 부모의 문맥에 리턴되고, 어떤 자식 프로세스도 생성되지 않으며, "
1967 "I<errno> 가 적절하게 설정될 것이다."
1968
1969 #. type: SH
1970 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1971 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1972 #, no-wrap
1973 msgid "ERRORS"
1974 msgstr "에러"
1975
1976 #. type: TP
1977 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1978 #: opensuse-tumbleweed
1979 #, no-wrap
1980 msgid "B<E2BIG> (B<clone3>() only)"
1981 msgstr ""
1982
1983 #. type: Plain text
1984 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1985 #: opensuse-tumbleweed
1986 msgid ""
1987 "The kernel does not support some functionality requested in this "
1988 "B<clone3>() call: The size argument is larger than what the kernel "
1989 "supports, and there are non-zero values in the struct after the kernel-"
1990 "supported size."
1991 msgstr ""
1992
1993 #. type: Plain text
1994 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1995 #: opensuse-tumbleweed
1996 msgid "The size argument is larger than the page size."
1997 msgstr ""
1998
1999 #. type: TP
2000 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2001 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2002 #, no-wrap
2003 msgid "B<EACCES> (B<clone3>() only)"
2004 msgstr ""
2005
2006 #. type: Plain text
2007 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2008 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2009 msgid ""
2010 "B<CLONE_INTO_CGROUP> was specified in I<cl_args.flags>, but the restrictions "
2011 "(described in B<cgroups>(7)) on placing the child process into the version "
2012 "2 cgroup referred to by I<cl_args.cgroup> are not met."
2013 msgstr ""
2014
2015 #. type: TP
2016 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2017 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2018 #, no-wrap
2019 msgid "B<EAGAIN>"
2020 msgstr "B<EAGAIN>"
2021
2022 #. type: Plain text
2023 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2024 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2025 #, fuzzy
2026 #| msgid "Too many processes are already running."
2027 msgid "Too many processes are already running; see B<fork>(2)."
2028 msgstr "이미 너무나 많은 프로세스들이 실행중에 있다."
2029
2030 #. type: TP
2031 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2032 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2033 #, no-wrap
2034 msgid "B<EBUSY> (B<clone3>() only)"
2035 msgstr ""
2036
2037 #. type: Plain text
2038 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2039 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2040 msgid ""
2041 "B<CLONE_INTO_CGROUP> was specified in I<cl_args.flags>, but the file "
2042 "descriptor specified in I<cl_args.cgroup> refers to a version 2 cgroup in "
2043 "which a domain controller is enabled."
2044 msgstr ""
2045
2046 #. type: TP
2047 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2048 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2049 #, no-wrap
2050 msgid "B<EEXIST> (B<clone3>() only)"
2051 msgstr ""
2052
2053 #. type: Plain text
2054 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2055 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2056 msgid ""
2057 "One (or more) of the PIDs specified in I<set_tid> already exists in the "
2058 "corresponding PID namespace."
2059 msgstr ""
2060
2061 #. type: TP
2062 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2063 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2064 #, no-wrap
2065 msgid "B<EINVAL>"
2066 msgstr "B<EINVAL>"
2067
2068 #. type: Plain text
2069 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2070 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2071 msgid ""
2072 "Both B<CLONE_SIGHAND> and B<CLONE_CLEAR_SIGHAND> were specified in the "
2073 "I<flags> mask."
2074 msgstr ""
2075
2076 #. Precisely: Linux 2.6.0-test6
2077 #. type: Plain text
2078 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2079 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2080 msgid ""
2081 "B<CLONE_SIGHAND> was specified in the I<flags> mask, but B<CLONE_VM> was "
2082 "not. (Since Linux 2.6.0.)"
2083 msgstr ""
2084
2085 #. .TP
2086 #. .B EINVAL
2087 #. Precisely one of
2088 #. .B CLONE_DETACHED
2089 #. and
2090 #. .B CLONE_THREAD
2091 #. was specified.
2092 #. (Since Linux 2.6.0-test6.)
2093 #. type: Plain text
2094 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2095 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2096 msgid ""
2097 "B<CLONE_THREAD> was specified in the I<flags> mask, but B<CLONE_SIGHAND> was "
2098 "not. (Since Linux 2.5.35.)"
2099 msgstr ""
2100
2101 #. type: Plain text
2102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2104 msgid ""
2105 "B<CLONE_THREAD> was specified in the I<flags> mask, but the current process "
2106 "previously called B<unshare>(2) with the B<CLONE_NEWPID> flag or used "
2107 "B<setns>(2) to reassociate itself with a PID namespace."
2108 msgstr ""
2109
2110 #. commit e66eded8309ebf679d3d3c1f5820d1f2ca332c71
2111 #. type: Plain text
2112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2114 msgid ""
2115 "Both B<CLONE_FS> and B<CLONE_NEWNS> were specified in the I<flags> mask."
2116 msgstr ""
2117
2118 #. type: TP
2119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2121 #, no-wrap
2122 msgid "B<EINVAL> (since Linux 3.9)"
2123 msgstr ""
2124
2125 #. type: Plain text
2126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2128 msgid ""
2129 "Both B<CLONE_NEWUSER> and B<CLONE_FS> were specified in the I<flags> mask."
2130 msgstr ""
2131
2132 #. type: Plain text
2133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2135 msgid ""
2136 "Both B<CLONE_NEWIPC> and B<CLONE_SYSVSEM> were specified in the I<flags> "
2137 "mask."
2138 msgstr ""
2139
2140 #. type: Plain text
2141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2143 msgid ""
2144 "B<CLONE_NEWPID> and one (or both) of B<CLONE_THREAD> or B<CLONE_PARENT> were "
2145 "specified in the I<flags> mask."
2146 msgstr ""
2147
2148 #. type: Plain text
2149 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2150 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2151 msgid ""
2152 "B<CLONE_NEWUSER> and B<CLONE_THREAD> were specified in the I<flags> mask."
2153 msgstr ""
2154
2155 #. type: TP
2156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2158 #, no-wrap
2159 msgid "B<EINVAL> (since Linux 2.6.32)"
2160 msgstr ""
2161
2162 #. commit 123be07b0b399670a7cc3d82fef0cb4f93ef885c
2163 #. type: Plain text
2164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2166 msgid "B<CLONE_PARENT> was specified, and the caller is an init process."
2167 msgstr ""
2168
2169 #. type: Plain text
2170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2172 msgid ""
2173 "Returned by the glibc B<clone>() wrapper function when I<fn> or I<stack> is "
2174 "specified as NULL."
2175 msgstr ""
2176
2177 #. type: Plain text
2178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2180 msgid ""
2181 "B<CLONE_NEWIPC> was specified in the I<flags> mask, but the kernel was not "
2182 "configured with the B<CONFIG_SYSVIPC> and B<CONFIG_IPC_NS> options."
2183 msgstr ""
2184
2185 #. type: Plain text
2186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2188 msgid ""
2189 "B<CLONE_NEWNET> was specified in the I<flags> mask, but the kernel was not "
2190 "configured with the B<CONFIG_NET_NS> option."
2191 msgstr ""
2192
2193 #. type: Plain text
2194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2196 msgid ""
2197 "B<CLONE_NEWPID> was specified in the I<flags> mask, but the kernel was not "
2198 "configured with the B<CONFIG_PID_NS> option."
2199 msgstr ""
2200
2201 #. type: Plain text
2202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2204 msgid ""
2205 "B<CLONE_NEWUSER> was specified in the I<flags> mask, but the kernel was not "
2206 "configured with the B<CONFIG_USER_NS> option."
2207 msgstr ""
2208
2209 #. type: Plain text
2210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2212 msgid ""
2213 "B<CLONE_NEWUTS> was specified in the I<flags> mask, but the kernel was not "
2214 "configured with the B<CONFIG_UTS_NS> option."
2215 msgstr ""
2216
2217 #. type: Plain text
2218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2220 msgid ""
2221 "I<stack> is not aligned to a suitable boundary for this architecture. For "
2222 "example, on aarch64, I<stack> must be a multiple of 16."
2223 msgstr ""
2224
2225 #. type: TP
2226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2228 #, no-wrap
2229 msgid "B<EINVAL> (B<clone3>() only)"
2230 msgstr ""
2231
2232 #. type: Plain text
2233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2235 msgid "B<CLONE_DETACHED> was specified in the I<flags> mask."
2236 msgstr ""
2237
2238 #. type: TP
2239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2241 #, no-wrap
2242 msgid "B<EINVAL> (B<clone>() only)"
2243 msgstr ""
2244
2245 #. type: Plain text
2246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2248 msgid ""
2249 "B<CLONE_PIDFD> was specified together with B<CLONE_DETACHED> in the I<flags> "
2250 "mask."
2251 msgstr ""
2252
2253 #. type: TP
2254 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2255 #: opensuse-tumbleweed
2256 #, fuzzy, no-wrap
2257 #| msgid "B<CLONE_FILES>"
2258 msgid "B<EINVAL> (before Linux 6.9)"
2259 msgstr "B<CLONE_FILES>"
2260
2261 #. type: Plain text
2262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2264 msgid ""
2265 "B<CLONE_PIDFD> was specified together with B<CLONE_THREAD> in the I<flags> "
2266 "mask."
2267 msgstr ""
2268
2269 #. type: TP
2270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2272 #, no-wrap
2273 msgid "B<EINVAL >(B<clone>() only)"
2274 msgstr ""
2275
2276 #. type: Plain text
2277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2279 msgid ""
2280 "B<CLONE_PIDFD> was specified together with B<CLONE_PARENT_SETTID> in the "
2281 "I<flags> mask."
2282 msgstr ""
2283
2284 #. type: Plain text
2285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2287 msgid "I<set_tid_size> is greater than the number of nested PID namespaces."
2288 msgstr ""
2289
2290 #. type: Plain text
2291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2293 msgid "One of the PIDs specified in I<set_tid> was an invalid."
2294 msgstr ""
2295
2296 #. commit 7f192e3cd316ba58c88dfa26796cf77789dd9872
2297 #. type: Plain text
2298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2300 msgid ""
2301 "B<CLONE_THREAD> or B<CLONE_PARENT> was specified in the I<flags> mask, but a "
2302 "signal was specified in I<exit_signal>."
2303 msgstr ""
2304
2305 #. type: TP
2306 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2307 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2308 #, no-wrap
2309 msgid "B<EINVAL> (AArch64 only, Linux 4.6 and earlier)"
2310 msgstr ""
2311
2312 #. type: Plain text
2313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2315 msgid "I<stack> was not aligned to a 128-bit boundary."
2316 msgstr ""
2317
2318 #. type: TP
2319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2321 #, no-wrap
2322 msgid "B<ENOMEM>"
2323 msgstr "B<ENOMEM>"
2324
2325 #. type: Plain text
2326 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2327 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2328 #, fuzzy
2329 #| msgid ""
2330 #| "B<__clone> cannot allocate sufficient memory to allocate a task structure "
2331 #| "for the child, or to copy those parts of the parent's context that need "
2332 #| "to be copied."
2333 msgid ""
2334 "Cannot allocate sufficient memory to allocate a task structure for the "
2335 "child, or to copy those parts of the caller's context that need to be copied."
2336 msgstr ""
2337 "B<__clone> 은 자식에 대한 작업 구조를 할당하거나, 복사될 필요가 있는 부모의 "
2338 "컨텍스트에 대한 부분들을 복사하는데 충분한 메모리를 할당할 수 없다."
2339
2340 #. type: TP
2341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2343 #, no-wrap
2344 msgid "B<ENOSPC> (since Linux 3.7)"
2345 msgstr ""
2346
2347 #. commit f2302505775fd13ba93f034206f1e2a587017929
2348 #. type: Plain text
2349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2351 msgid ""
2352 "B<CLONE_NEWPID> was specified in the I<flags> mask, but the limit on the "
2353 "nesting depth of PID namespaces would have been exceeded; see "
2354 "B<pid_namespaces>(7)."
2355 msgstr ""
2356
2357 #. type: TP
2358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2360 #, no-wrap
2361 msgid "B<ENOSPC> (since Linux 4.9; beforehand B<EUSERS>)"
2362 msgstr ""
2363
2364 #. type: Plain text
2365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2367 msgid ""
2368 "B<CLONE_NEWUSER> was specified in the I<flags> mask, and the call would "
2369 "cause the limit on the number of nested user namespaces to be exceeded. See "
2370 "B<user_namespaces>(7)."
2371 msgstr ""
2372
2373 #. type: Plain text
2374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2376 msgid ""
2377 "From Linux 3.11 to Linux 4.8, the error diagnosed in this case was B<EUSERS>."
2378 msgstr ""
2379
2380 #. type: TP
2381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2383 #, no-wrap
2384 msgid "B<ENOSPC> (since Linux 4.9)"
2385 msgstr ""
2386
2387 #. type: Plain text
2388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2390 msgid ""
2391 "One of the values in the I<flags> mask specified the creation of a new user "
2392 "namespace, but doing so would have caused the limit defined by the "
2393 "corresponding file in I</proc/sys/user> to be exceeded. For further "
2394 "details, see B<namespaces>(7)."
2395 msgstr ""
2396
2397 #. type: TP
2398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2400 #, no-wrap
2401 msgid "B<EOPNOTSUPP> (B<clone3>() only)"
2402 msgstr ""
2403
2404 #. type: Plain text
2405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2407 msgid ""
2408 "B<CLONE_INTO_CGROUP> was specified in I<cl_args.flags>, but the file "
2409 "descriptor specified in I<cl_args.cgroup> refers to a version 2 cgroup that "
2410 "is in the I<domain invalid> state."
2411 msgstr ""
2412
2413 #. type: TP
2414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2416 #, no-wrap
2417 msgid "B<EPERM>"
2418 msgstr "B<EPERM>"
2419
2420 #. type: Plain text
2421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2423 msgid ""
2424 "B<CLONE_NEWCGROUP>, B<CLONE_NEWIPC>, B<CLONE_NEWNET>, B<CLONE_NEWNS>, "
2425 "B<CLONE_NEWPID>, or B<CLONE_NEWUTS> was specified by an unprivileged process "
2426 "(process without B<CAP_SYS_ADMIN>)."
2427 msgstr ""
2428
2429 #. type: Plain text
2430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2432 msgid ""
2433 "B<CLONE_PID> was specified by a process other than process 0. (This error "
2434 "occurs only on Linux 2.5.15 and earlier.)"
2435 msgstr ""
2436
2437 #. type: Plain text
2438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2440 msgid ""
2441 "B<CLONE_NEWUSER> was specified in the I<flags> mask, but either the "
2442 "effective user ID or the effective group ID of the caller does not have a "
2443 "mapping in the parent namespace (see B<user_namespaces>(7))."
2444 msgstr ""
2445
2446 #. type: TP
2447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2449 #, no-wrap
2450 msgid "B<EPERM> (since Linux 3.9)"
2451 msgstr ""
2452
2453 #. commit 3151527ee007b73a0ebd296010f1c0454a919c7d
2454 #. FIXME What is the rationale for this restriction?
2455 #. type: Plain text
2456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2458 msgid ""
2459 "B<CLONE_NEWUSER> was specified in the I<flags> mask and the caller is in a "
2460 "chroot environment (i.e., the caller's root directory does not match the "
2461 "root directory of the mount namespace in which it resides)."
2462 msgstr ""
2463
2464 #. type: TP
2465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2467 #, no-wrap
2468 msgid "B<EPERM> (B<clone3>() only)"
2469 msgstr ""
2470
2471 #. type: Plain text
2472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2474 msgid ""
2475 "I<set_tid_size> was greater than zero, and the caller lacks the "
2476 "B<CAP_SYS_ADMIN> capability in one or more of the user namespaces that own "
2477 "the corresponding PID namespaces."
2478 msgstr ""
2479
2480 #. type: TP
2481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2483 #, no-wrap
2484 msgid "B<ERESTARTNOINTR> (since Linux 2.6.17)"
2485 msgstr ""
2486
2487 #. commit 4a2c7a7837da1b91468e50426066d988050e4d56
2488 #. type: Plain text
2489 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2490 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2491 msgid ""
2492 "System call was interrupted by a signal and will be restarted. (This can be "
2493 "seen only during a trace.)"
2494 msgstr ""
2495
2496 #. type: TP
2497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2499 #, no-wrap
2500 msgid "B<EUSERS> (Linux 3.11 to Linux 4.8)"
2501 msgstr ""
2502
2503 #. type: Plain text
2504 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2505 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2506 msgid ""
2507 "B<CLONE_NEWUSER> was specified in the I<flags> mask, and the limit on the "
2508 "number of nested user namespaces would be exceeded. See the discussion of "
2509 "the B<ENOSPC> error above."
2510 msgstr ""
2511
2512 #. type: SH
2513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2515 #, no-wrap
2516 msgid "VERSIONS"
2517 msgstr "버전S"
2518
2519 #. type: Plain text
2520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2522 msgid ""
2523 "The glibc B<clone>() wrapper function makes some changes in the memory "
2524 "pointed to by I<stack> (changes required to set the stack up correctly for "
2525 "the child) I<before> invoking the B<clone>() system call. So, in cases "
2526 "where B<clone>() is used to recursively create children, do not use the "
2527 "buffer employed for the parent's stack as the stack of the child."
2528 msgstr ""
2529
2530 #. type: Plain text
2531 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2532 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2533 msgid ""
2534 "On i386, B<clone>() should not be called through vsyscall, but directly "
2535 "through I<int $0x80>."
2536 msgstr ""
2537
2538 #. type: SS
2539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2541 #, no-wrap
2542 msgid "C library/kernel differences"
2543 msgstr ""
2544
2545 #. type: Plain text
2546 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2547 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2548 msgid ""
2549 "The raw B<clone>() system call corresponds more closely to B<fork>(2) in "
2550 "that execution in the child continues from the point of the call. As such, "
2551 "the I<fn> and I<arg> arguments of the B<clone>() wrapper function are "
2552 "omitted."
2553 msgstr ""
2554
2555 #. type: Plain text
2556 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2557 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2558 msgid ""
2559 "In contrast to the glibc wrapper, the raw B<clone>() system call accepts "
2560 "NULL as a I<stack> argument (and B<clone3>() likewise allows "
2561 "I<cl_args.stack> to be NULL). In this case, the child uses a duplicate of "
2562 "the parent's stack. (Copy-on-write semantics ensure that the child gets "
2563 "separate copies of stack pages when either process modifies the stack.) In "
2564 "this case, for correct operation, the B<CLONE_VM> option should not be "
2565 "specified. (If the child I<shares> the parent's memory because of the use "
2566 "of the B<CLONE_VM> flag, then no copy-on-write duplication occurs and chaos "
2567 "is likely to result.)"
2568 msgstr ""
2569
2570 #. type: Plain text
2571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2573 msgid ""
2574 "The order of the arguments also differs in the raw system call, and there "
2575 "are variations in the arguments across architectures, as detailed in the "
2576 "following paragraphs."
2577 msgstr ""
2578
2579 #. type: Plain text
2580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2582 msgid ""
2583 "The raw system call interface on x86-64 and some other architectures "
2584 "(including sh, tile, and alpha) is:"
2585 msgstr ""
2586
2587 #. type: Plain text
2588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2590 #, no-wrap
2591 msgid ""
2592 "B<long clone(unsigned long >I<flags>B<, void *>I<stack>B<,>\n"
2593 "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
2594 "B< unsigned long >I<tls>B<);>\n"
2595 msgstr ""
2596 "B<long clone(unsigned long >I<flags>B<, void *>I<stack>B<,>\n"
2597 "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
2598 "B< unsigned long >I<tls>B<);>\n"
2599
2600 #. CONFIG_CLONE_BACKWARDS
2601 #. type: Plain text
2602 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2603 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2604 msgid ""
2605 "On x86-32, and several other common architectures (including score, ARM, ARM "
2606 "64, PA-RISC, arc, Power PC, xtensa, and MIPS), the order of the last two "
2607 "arguments is reversed:"
2608 msgstr ""
2609
2610 #. type: Plain text
2611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2613 #, no-wrap
2614 msgid ""
2615 "B<long clone(unsigned long >I<flags>B<, void *>I<stack>B<,>\n"
2616 "B< int *>I<parent_tid>B<, unsigned long >I<tls>B<,>\n"
2617 "B< int *>I<child_tid>B<);>\n"
2618 msgstr ""
2619 "B<long clone(unsigned long >I<flags>B<, void *>I<stack>B<,>\n"
2620 "B< int *>I<parent_tid>B<, unsigned long >I<tls>B<,>\n"
2621 "B< int *>I<child_tid>B<);>\n"
2622
2623 #. CONFIG_CLONE_BACKWARDS2
2624 #. type: Plain text
2625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2627 msgid ""
2628 "On the cris and s390 architectures, the order of the first two arguments is "
2629 "reversed:"
2630 msgstr ""
2631
2632 #. type: Plain text
2633 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2634 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2635 #, no-wrap
2636 msgid ""
2637 "B<long clone(void *>I<stack>B<, unsigned long >I<flags>B<,>\n"
2638 "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
2639 "B< unsigned long >I<tls>B<);>\n"
2640 msgstr ""
2641 "B<long clone(void *>I<stack>B<, unsigned long >I<flags>B<,>\n"
2642 "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
2643 "B< unsigned long >I<tls>B<);>\n"
2644
2645 #. CONFIG_CLONE_BACKWARDS3
2646 #. type: Plain text
2647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2649 msgid "On the microblaze architecture, an additional argument is supplied:"
2650 msgstr ""
2651
2652 #. type: Plain text
2653 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2654 #: opensuse-tumbleweed
2655 #, fuzzy, no-wrap
2656 #| msgid ""
2657 #| "B<long clone(unsigned long >I<flags>B<, void *>I<stack>B<,>\n"
2658 #| "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
2659 #| "B< unsigned long >I<tls>B<);>\n"
2660 msgid ""
2661 "B<long clone(unsigned long >I<flags>B<, void *>I<stack>B<,>\n"
2662 "B< int >I<stack_size>B<,>\\f[R] /* Size of stack */\\fR\n"
2663 "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
2664 "B< unsigned long >I<tls>B<);>\n"
2665 msgstr ""
2666 "B<long clone(unsigned long >I<flags>B<, void *>I<stack>B<,>\n"
2667 "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
2668 "B< unsigned long >I<tls>B<);>\n"
2669
2670 #. type: SS
2671 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2672 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2673 #, no-wrap
2674 msgid "blackfin, m68k, and sparc"
2675 msgstr ""
2676
2677 #. Mike Frysinger noted in a 2013 mail:
2678 #. these arches don't define __ARCH_WANT_SYS_CLONE:
2679 #. blackfin ia64 m68k sparc
2680 #. type: Plain text
2681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2683 msgid ""
2684 "The argument-passing conventions on blackfin, m68k, and sparc are different "
2685 "from the descriptions above. For details, see the kernel (and glibc) source."
2686 msgstr ""
2687
2688 #. type: SH
2689 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2690 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2691 #, no-wrap
2692 msgid "STANDARDS"
2693 msgstr "표준"
2694
2695 #. type: Plain text
2696 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2697 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2698 msgid "Linux."
2699 msgstr "리눅스."
2700
2701 #. type: SH
2702 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2703 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2704 #, no-wrap
2705 msgid "HISTORY"
2706 msgstr "이력"
2707
2708 #. type: TP
2709 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2710 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2711 #, no-wrap
2712 msgid "B<clone3>()"
2713 msgstr "B<clone3>()"
2714
2715 #. There is no entry for
2716 #. .BR clone ()
2717 #. in libc5.
2718 #. glibc2 provides
2719 #. .BR clone ()
2720 #. as described in this manual page.
2721 #. type: Plain text
2722 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2723 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2724 msgid "Linux 5.3."
2725 msgstr "Linux 5.3."
2726
2727 #. type: SS
2728 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2729 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2730 #, no-wrap
2731 msgid "Linux 2.4 and earlier"
2732 msgstr ""
2733
2734 #. type: Plain text
2735 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2736 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2737 msgid ""
2738 "In the Linux 2.4.x series, B<CLONE_THREAD> generally does not make the "
2739 "parent of the new thread the same as the parent of the calling process. "
2740 "However, from Linux 2.4.7 to Linux 2.4.18 the B<CLONE_THREAD> flag implied "
2741 "the B<CLONE_PARENT> flag (as in Linux 2.6.0 and later)."
2742 msgstr ""
2743
2744 #. type: Plain text
2745 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2746 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2747 msgid ""
2748 "In Linux 2.4 and earlier, B<clone>() does not take arguments I<parent_tid>, "
2749 "I<tls>, and I<child_tid>."
2750 msgstr ""
2751
2752 #. type: SS
2753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2755 #, no-wrap
2756 msgid "ia64"
2757 msgstr "ia64"
2758
2759 #. type: Plain text
2760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2762 msgid "On ia64, a different interface is used:"
2763 msgstr ""
2764
2765 #. type: Plain text
2766 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2767 #: opensuse-tumbleweed
2768 #, fuzzy, no-wrap
2769 #| msgid ""
2770 #| "B<int __clone2(int (*>I<fn>B<)(void *),>\n"
2771 #| "B< void *>I<stack_base>B<, size_t >I<stack_size>B<,>\n"
2772 #| "B< int >I<flags>B<, void *>I<arg>B<, ...>\n"
2773 #| "B< /* pid_t *>I<parent_tid>B<, struct user_desc *>I<tls>B<,>\n"
2774 #| "B< pid_t *>I<child_tid>B< */ );>\n"
2775 msgid ""
2776 "B<int __clone2(typeof(int (void *)) *>I<fn>B<,>\n"
2777 "B< void *>I<stack_base>B<, size_t >I<stack_size>B<,>\n"
2778 "B< int >I<flags>B<, void *>I<arg>B<, ...>\n"
2779 "B< >\\f[R]/*B< pid_t *>I<parent_tid>B<, struct user_desc *>I<tls>B<,>\n"
2780 "B< pid_t *>I<child_tid>B< >\\f[R]*/B< );>\n"
2781 msgstr ""
2782 "B<int __clone2(int (*>I<fn>B<)(void *),>\n"
2783 "B< void *>I<stack_base>B<, size_t >I<stack_size>B<,>\n"
2784 "B< int >I<flags>B<, void *>I<arg>B<, ...>\n"
2785 "B< /* pid_t *>I<parent_tid>B<, struct user_desc *>I<tls>B<,>\n"
2786 "B< pid_t *>I<child_tid>B< */ );>\n"
2787
2788 #. type: Plain text
2789 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2790 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2791 msgid ""
2792 "The prototype shown above is for the glibc wrapper function; for the system "
2793 "call itself, the prototype can be described as follows (it is identical to "
2794 "the B<clone>() prototype on microblaze):"
2795 msgstr ""
2796
2797 #. type: Plain text
2798 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2799 #: opensuse-tumbleweed
2800 #, fuzzy, no-wrap
2801 #| msgid ""
2802 #| "B<long clone(unsigned long >I<flags>B<, void *>I<stack>B<,>\n"
2803 #| "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
2804 #| "B< unsigned long >I<tls>B<);>\n"
2805 msgid ""
2806 "B<long clone2(unsigned long >I<flags>B<, void *>I<stack_base>B<,>\n"
2807 "B< int >I<stack_size>B<,>\\f[R] /* Size of stack */\\fR\n"
2808 "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
2809 "B< unsigned long >I<tls>B<);>\n"
2810 msgstr ""
2811 "B<long clone(unsigned long >I<flags>B<, void *>I<stack>B<,>\n"
2812 "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
2813 "B< unsigned long >I<tls>B<);>\n"
2814
2815 #. type: Plain text
2816 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2817 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2818 msgid ""
2819 "B<__clone2>() operates in the same way as B<clone>(), except that "
2820 "I<stack_base> points to the lowest address of the child's stack area, and "
2821 "I<stack_size> specifies the size of the stack pointed to by I<stack_base>."
2822 msgstr ""
2823
2824 #. type: SH
2825 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2826 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2827 #, no-wrap
2828 msgid "NOTES"
2829 msgstr "주의"
2830
2831 #. type: Plain text
2832 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2833 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2834 msgid ""
2835 "One use of these system calls is to implement threads: multiple flows of "
2836 "control in a program that run concurrently in a shared address space."
2837 msgstr ""
2838
2839 #. type: Plain text
2840 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2841 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2842 msgid ""
2843 "The B<kcmp>(2) system call can be used to test whether two processes share "
2844 "various resources such as a file descriptor table, System V semaphore undo "
2845 "operations, or a virtual address space."
2846 msgstr ""
2847
2848 #. type: Plain text
2849 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2850 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2851 msgid ""
2852 "Handlers registered using B<pthread_atfork>(3) are not executed during a "
2853 "clone call."
2854 msgstr ""
2855
2856 #. type: SH
2857 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2858 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2859 #, no-wrap
2860 msgid "BUGS"
2861 msgstr "버그"
2862
2863 #. type: Plain text
2864 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2865 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2866 msgid ""
2867 "GNU C library versions 2.3.4 up to and including 2.24 contained a wrapper "
2868 "function for B<getpid>(2) that performed caching of PIDs. This caching "
2869 "relied on support in the glibc wrapper for B<clone>(), but limitations in "
2870 "the implementation meant that the cache was not up to date in some "
2871 "circumstances. In particular, if a signal was delivered to the child "
2872 "immediately after the B<clone>() call, then a call to B<getpid>(2) in a "
2873 "handler for the signal could return the PID of the calling process (\"the "
2874 "parent\"), if the clone wrapper had not yet had a chance to update the PID "
2875 "cache in the child. (This discussion ignores the case where the child was "
2876 "created using B<CLONE_THREAD>, when B<getpid>(2) I<should> return the same "
2877 "value in the child and in the process that called B<clone>(), since the "
2878 "caller and the child are in the same thread group. The stale-cache problem "
2879 "also does not occur if the I<flags> argument includes B<CLONE_VM>.) To get "
2880 "the truth, it was sometimes necessary to use code such as the following:"
2881 msgstr ""
2882
2883 #. type: Plain text
2884 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2885 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2886 #, no-wrap
2887 msgid ""
2888 "#include E<lt>syscall.hE<gt>\n"
2889 "\\&\n"
2890 "pid_t mypid;\n"
2891 "\\&\n"
2892 "mypid = syscall(SYS_getpid);\n"
2893 msgstr ""
2894
2895 #. type: Plain text
2896 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2897 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2898 msgid ""
2899 "Because of the stale-cache problem, as well as other problems noted in "
2900 "B<getpid>(2), the PID caching feature was removed in glibc 2.25."
2901 msgstr ""
2902
2903 #. type: SH
2904 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2905 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2906 #, no-wrap
2907 msgid "EXAMPLES"
2908 msgstr "폐제"
2909
2910 #. type: Plain text
2911 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2912 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2913 msgid ""
2914 "The following program demonstrates the use of B<clone>() to create a child "
2915 "process that executes in a separate UTS namespace. The child changes the "
2916 "hostname in its UTS namespace. Both parent and child then display the "
2917 "system hostname, making it possible to see that the hostname differs in the "
2918 "UTS namespaces of the parent and child. For an example of the use of this "
2919 "program, see B<setns>(2)."
2920 msgstr ""
2921
2922 #. type: Plain text
2923 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2924 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2925 msgid ""
2926 "Within the sample program, we allocate the memory that is to be used for the "
2927 "child's stack using B<mmap>(2) rather than B<malloc>(3) for the following "
2928 "reasons:"
2929 msgstr ""
2930
2931 #. type: Plain text
2932 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2933 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2934 msgid ""
2935 "B<mmap>(2) allocates a block of memory that starts on a page boundary and "
2936 "is a multiple of the page size. This is useful if we want to establish a "
2937 "guard page (a page with protection B<PROT_NONE>) at the end of the stack "
2938 "using B<mprotect>(2)."
2939 msgstr ""
2940
2941 #. type: Plain text
2942 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2943 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2944 msgid ""
2945 "We can specify the B<MAP_STACK> flag to request a mapping that is suitable "
2946 "for a stack. For the moment, this flag is a no-op on Linux, but it exists "
2947 "and has effect on some other systems, so we should include it for "
2948 "portability."
2949 msgstr ""
2950
2951 #. type: SS
2952 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
2953 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
2954 #, no-wrap
2955 msgid "Program source"
2956 msgstr ""
2957
2958 #. type: Plain text
2959 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
2960 #: opensuse-tumbleweed
2961 #, no-wrap
2962 msgid ""
2963 "#define _GNU_SOURCE\n"
2964 "#include E<lt>err.hE<gt>\n"
2965 "#include E<lt>sched.hE<gt>\n"
2966 "#include E<lt>signal.hE<gt>\n"
2967 "#include E<lt>stdint.hE<gt>\n"
2968 "#include E<lt>stdio.hE<gt>\n"
2969 "#include E<lt>stdlib.hE<gt>\n"
2970 "#include E<lt>string.hE<gt>\n"
2971 "#include E<lt>sys/mman.hE<gt>\n"
2972 "#include E<lt>sys/types.hE<gt>\n"
2973 "#include E<lt>sys/utsname.hE<gt>\n"
2974 "#include E<lt>sys/wait.hE<gt>\n"
2975 "#include E<lt>unistd.hE<gt>\n"
2976 "\\&\n"
2977 "static int /* Start function for cloned child */\n"
2978 "childFunc(void *arg)\n"
2979 "{\n"
2980 " struct utsname uts;\n"
2981 "\\&\n"
2982 " /* Change hostname in UTS namespace of child. */\n"
2983 "\\&\n"
2984 " if (sethostname(arg, strlen(arg)) == -1)\n"
2985 " err(EXIT_FAILURE, \"sethostname\");\n"
2986 "\\&\n"
2987 " /* Retrieve and display hostname. */\n"
2988 "\\&\n"
2989 " if (uname(&uts) == -1)\n"
2990 " err(EXIT_FAILURE, \"uname\");\n"
2991 " printf(\"uts.nodename in child: %s\\[rs]n\", uts.nodename);\n"
2992 "\\&\n"
2993 " /* Keep the namespace open for a while, by sleeping.\n"
2994 " This allows some experimentation--for example, another\n"
2995 " process might join the namespace. */\n"
2996 "\\&\n"
2997 " sleep(200);\n"
2998 "\\&\n"
2999 " return 0; /* Child terminates now */\n"
3000 "}\n"
3001 "\\&\n"
3002 "#define STACK_SIZE (1024 * 1024) /* Stack size for cloned child */\n"
3003 "\\&\n"
3004 "int\n"
3005 "main(int argc, char *argv[])\n"
3006 "{\n"
3007 " char *stack; /* Start of stack buffer */\n"
3008 " char *stackTop; /* End of stack buffer */\n"
3009 " pid_t pid;\n"
3010 " struct utsname uts;\n"
3011 "\\&\n"
3012 " if (argc E<lt> 2) {\n"
3013 " fprintf(stderr, \"Usage: %s E<lt>child-hostnameE<gt>\\[rs]n\", argv[0]);\n"
3014 " exit(EXIT_SUCCESS);\n"
3015 " }\n"
3016 "\\&\n"
3017 " /* Allocate memory to be used for the stack of the child. */\n"
3018 "\\&\n"
3019 " stack = mmap(NULL, STACK_SIZE, PROT_READ | PROT_WRITE,\n"
3020 " MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0);\n"
3021 " if (stack == MAP_FAILED)\n"
3022 " err(EXIT_FAILURE, \"mmap\");\n"
3023 "\\&\n"
3024 " stackTop = stack + STACK_SIZE; /* Assume stack grows downward */\n"
3025 "\\&\n"
3026 " /* Create child that has its own UTS namespace;\n"
3027 " child commences execution in childFunc(). */\n"
3028 "\\&\n"
3029 " pid = clone(childFunc, stackTop, CLONE_NEWUTS | SIGCHLD, argv[1]);\n"
3030 " if (pid == -1)\n"
3031 " err(EXIT_FAILURE, \"clone\");\n"
3032 " if (munmap(stack, STACK_SIZE))\n"
3033 " err(EXIT_FAILURE, \"munmap\");\n"
3034 " printf(\"clone() returned %jd\\[rs]n\", (intmax_t) pid);\n"
3035 "\\&\n"
3036 " /* Parent falls through to here */\n"
3037 "\\&\n"
3038 " sleep(1); /* Give child time to change its hostname */\n"
3039 "\\&\n"
3040 " /* Display hostname in parent\\[aq]s UTS namespace. This will be\n"
3041 " different from hostname in child\\[aq]s UTS namespace. */\n"
3042 "\\&\n"
3043 " if (uname(&uts) == -1)\n"
3044 " err(EXIT_FAILURE, \"uname\");\n"
3045 " printf(\"uts.nodename in parent: %s\\[rs]n\", uts.nodename);\n"
3046 "\\&\n"
3047 " if (waitpid(pid, NULL, 0) == -1) /* Wait for child */\n"
3048 " err(EXIT_FAILURE, \"waitpid\");\n"
3049 " printf(\"child has terminated\\[rs]n\");\n"
3050 "\\&\n"
3051 " exit(EXIT_SUCCESS);\n"
3052 "}\n"
3053 msgstr ""
3054
3055 #. SRC END
3056 #. type: SH
3057 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3058 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3059 #, no-wrap
3060 msgid "SEE ALSO"
3061 msgstr "추가 참조"
3062
3063 #. type: Plain text
3064 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
3065 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
3066 msgid ""
3067 "B<fork>(2), B<futex>(2), B<getpid>(2), B<gettid>(2), B<kcmp>(2), B<mmap>(2), "
3068 "B<pidfd_open>(2), B<set_thread_area>(2), B<set_tid_address>(2), B<setns>(2), "
3069 "B<tkill>(2), B<unshare>(2), B<wait>(2), B<capabilities>(7), "
3070 "B<namespaces>(7), B<pthreads>(7)"
3071 msgstr ""
3072 "B<fork>(2), B<futex>(2), B<getpid>(2), B<gettid>(2), B<kcmp>(2), B<mmap>(2), "
3073 "B<pidfd_open>(2), B<set_thread_area>(2), B<set_tid_address>(2), B<setns>(2), "
3074 "B<tkill>(2), B<unshare>(2), B<wait>(2), B<capabilities>(7), "
3075 "B<namespaces>(7), B<pthreads>(7)"
3076
3077 #. type: TH
3078 #: debian-trixie
3079 #, no-wrap
3080 msgid "2024-06-15"
3081 msgstr "2024년 6월 15일"
3082
3083 #. type: TH
3084 #: debian-trixie
3085 #, no-wrap
3086 msgid "Linux man-pages 6.9.1"
3087 msgstr "Linux man-pages 6.9.1"
3088
3089 #. type: Plain text
3090 #: debian-trixie
3091 msgid "Standard C library (I<libc>, I<-lc>)"
3092 msgstr "표준 C 라이브러리 (I<libc>, I<-lc>)"
3093
3094 #. type: Plain text
3095 #: debian-trixie
3096 #, no-wrap
3097 msgid ""
3098 "B<int clone(int (*>I<fn>B<)(void *_Nullable), void *>I<stack>B<, int >I<flags>B<,>\n"
3099 "B< void *_Nullable >I<arg>B<, ...>I< >/*B< pid_t *_Nullable >I<parent_tid>B<,>\n"
3100 "B< void *_Nullable >I<tls>B<,>\n"
3101 "B< pid_t *_Nullable >I<child_tid>B< >*/B< );>\n"
3102 msgstr ""
3103 "B<int clone(int (*>I<fn>B<)(void *_Nullable), void *>I<stack>B<, int >I<flags>B<,>\n"
3104 "B< void *_Nullable >I<arg>B<, ...>I< >/*B< pid_t *_Nullable >I<parent_tid>B<,>\n"
3105 "B< void *_Nullable >I<tls>B<,>\n"
3106 "B< pid_t *_Nullable >I<child_tid>B< >*/B< );>\n"
3107
3108 #. type: Plain text
3109 #: debian-trixie
3110 #, no-wrap
3111 msgid "/* For the prototype of the raw clone() system call, see NOTES */\n"
3112 msgstr ""
3113
3114 #. type: Plain text
3115 #: debian-trixie fedora-44 fedora-rawhide
3116 #, no-wrap
3117 msgid ""
3118 "struct clone_args {\n"
3119 " u64 flags; /* Flags bit mask */\n"
3120 " u64 pidfd; /* Where to store PID file descriptor\n"
3121 " (I<int *>) */\n"
3122 " u64 child_tid; /* Where to store child TID,\n"
3123 " in child\\[aq]s memory (I<pid_t *>) */\n"
3124 " u64 parent_tid; /* Where to store child TID,\n"
3125 " in parent\\[aq]s memory (I<pid_t *>) */\n"
3126 " u64 exit_signal; /* Signal to deliver to parent on\n"
3127 " child termination */\n"
3128 " u64 stack; /* Pointer to lowest byte of stack */\n"
3129 " u64 stack_size; /* Size of stack */\n"
3130 " u64 tls; /* Location of new TLS */\n"
3131 " u64 set_tid; /* Pointer to a I<pid_t> array\n"
3132 " (since Linux 5.5) */\n"
3133 " u64 set_tid_size; /* Number of elements in I<set_tid>\n"
3134 " (since Linux 5.5) */\n"
3135 " u64 cgroup; /* File descriptor for target cgroup\n"
3136 " of child (since Linux 5.7) */\n"
3137 "};\n"
3138 msgstr ""
3139
3140 #. type: tbl table
3141 #: debian-trixie fedora-44 fedora-rawhide
3142 #, no-wrap
3143 msgid "I<cl_args> field"
3144 msgstr ""
3145
3146 #. type: tbl table
3147 #: debian-trixie fedora-44 fedora-rawhide
3148 #, no-wrap
3149 msgid "For most flags; details below"
3150 msgstr ""
3151
3152 #. type: tbl table
3153 #: debian-trixie fedora-44 fedora-rawhide
3154 #, no-wrap
3155 msgid "I<--->"
3156 msgstr "I<--->"
3157
3158 #. added in Linux 2.5.32; removed in Linux 2.6.0-test4
3159 #. type: Plain text
3160 #: debian-trixie
3161 msgid ""
3162 "For a while (during the Linux 2.5 development series) there was a "
3163 "B<CLONE_DETACHED> flag, which caused the parent not to receive a signal when "
3164 "the child terminated. Ultimately, the effect of this flag was subsumed "
3165 "under the B<CLONE_THREAD> flag and by the time Linux 2.6.0 was released, "
3166 "this flag had no effect. Starting in Linux 2.6.2, the need to give this "
3167 "flag together with B<CLONE_THREAD> disappeared."
3168 msgstr ""
3169
3170 #. type: Plain text
3171 #: debian-trixie fedora-44 fedora-rawhide
3172 msgid ""
3173 "It is currently not possible to use this flag together with B<CLONE_THREAD.> "
3174 "This means that the process identified by the PID file descriptor will "
3175 "always be a thread group leader."
3176 msgstr ""
3177
3178 #. type: Plain text
3179 #: debian-trixie fedora-44 fedora-rawhide
3180 #, no-wrap
3181 msgid ""
3182 "B<long clone(unsigned long >I<flags>B<, void *>I<stack>B<,>\n"
3183 "B< int >I<stack_size>B<,> /* Size of stack */\n"
3184 "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
3185 "B< unsigned long >I<tls>B<);>\n"
3186 msgstr ""
3187
3188 #. type: Plain text
3189 #: debian-trixie
3190 #, no-wrap
3191 msgid ""
3192 "B<int __clone2(int (*>I<fn>B<)(void *),>\n"
3193 "B< void *>I<stack_base>B<, size_t >I<stack_size>B<,>\n"
3194 "B< int >I<flags>B<, void *>I<arg>B<, ...>\n"
3195 "B< /* pid_t *>I<parent_tid>B<, struct user_desc *>I<tls>B<,>\n"
3196 "B< pid_t *>I<child_tid>B< */ );>\n"
3197 msgstr ""
3198 "B<int __clone2(int (*>I<fn>B<)(void *),>\n"
3199 "B< void *>I<stack_base>B<, size_t >I<stack_size>B<,>\n"
3200 "B< int >I<flags>B<, void *>I<arg>B<, ...>\n"
3201 "B< /* pid_t *>I<parent_tid>B<, struct user_desc *>I<tls>B<,>\n"
3202 "B< pid_t *>I<child_tid>B< */ );>\n"
3203
3204 #. type: Plain text
3205 #: debian-trixie fedora-44 fedora-rawhide
3206 #, no-wrap
3207 msgid ""
3208 "B<long clone2(unsigned long >I<flags>B<, void *>I<stack_base>B<,>\n"
3209 "B< int >I<stack_size>B<,> /* Size of stack */\n"
3210 "B< int *>I<parent_tid>B<, int *>I<child_tid>B<,>\n"
3211 "B< unsigned long >I<tls>B<);>\n"
3212 msgstr ""
3213
3214 #. type: Plain text
3215 #: debian-trixie
3216 #, no-wrap
3217 msgid ""
3218 "#define _GNU_SOURCE\n"
3219 "#include E<lt>err.hE<gt>\n"
3220 "#include E<lt>sched.hE<gt>\n"
3221 "#include E<lt>signal.hE<gt>\n"
3222 "#include E<lt>stdint.hE<gt>\n"
3223 "#include E<lt>stdio.hE<gt>\n"
3224 "#include E<lt>stdlib.hE<gt>\n"
3225 "#include E<lt>string.hE<gt>\n"
3226 "#include E<lt>sys/mman.hE<gt>\n"
3227 "#include E<lt>sys/types.hE<gt>\n"
3228 "#include E<lt>sys/utsname.hE<gt>\n"
3229 "#include E<lt>sys/wait.hE<gt>\n"
3230 "#include E<lt>unistd.hE<gt>\n"
3231 "\\&\n"
3232 "static int /* Start function for cloned child */\n"
3233 "childFunc(void *arg)\n"
3234 "{\n"
3235 " struct utsname uts;\n"
3236 "\\&\n"
3237 " /* Change hostname in UTS namespace of child. */\n"
3238 "\\&\n"
3239 " if (sethostname(arg, strlen(arg)) == -1)\n"
3240 " err(EXIT_FAILURE, \"sethostname\");\n"
3241 "\\&\n"
3242 " /* Retrieve and display hostname. */\n"
3243 "\\&\n"
3244 " if (uname(&uts) == -1)\n"
3245 " err(EXIT_FAILURE, \"uname\");\n"
3246 " printf(\"uts.nodename in child: %s\\[rs]n\", uts.nodename);\n"
3247 "\\&\n"
3248 " /* Keep the namespace open for a while, by sleeping.\n"
3249 " This allows some experimentation--for example, another\n"
3250 " process might join the namespace. */\n"
3251 "\\&\n"
3252 " sleep(200);\n"
3253 "\\&\n"
3254 " return 0; /* Child terminates now */\n"
3255 "}\n"
3256 "\\&\n"
3257 "#define STACK_SIZE (1024 * 1024) /* Stack size for cloned child */\n"
3258 "\\&\n"
3259 "int\n"
3260 "main(int argc, char *argv[])\n"
3261 "{\n"
3262 " char *stack; /* Start of stack buffer */\n"
3263 " char *stackTop; /* End of stack buffer */\n"
3264 " pid_t pid;\n"
3265 " struct utsname uts;\n"
3266 "\\&\n"
3267 " if (argc E<lt> 2) {\n"
3268 " fprintf(stderr, \"Usage: %s E<lt>child-hostnameE<gt>\\[rs]n\", argv[0]);\n"
3269 " exit(EXIT_SUCCESS);\n"
3270 " }\n"
3271 "\\&\n"
3272 " /* Allocate memory to be used for the stack of the child. */\n"
3273 "\\&\n"
3274 " stack = mmap(NULL, STACK_SIZE, PROT_READ | PROT_WRITE,\n"
3275 " MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0);\n"
3276 " if (stack == MAP_FAILED)\n"
3277 " err(EXIT_FAILURE, \"mmap\");\n"
3278 "\\&\n"
3279 " stackTop = stack + STACK_SIZE; /* Assume stack grows downward */\n"
3280 "\\&\n"
3281 " /* Create child that has its own UTS namespace;\n"
3282 " child commences execution in childFunc(). */\n"
3283 "\\&\n"
3284 " pid = clone(childFunc, stackTop, CLONE_NEWUTS | SIGCHLD, argv[1]);\n"
3285 " if (pid == -1)\n"
3286 " err(EXIT_FAILURE, \"clone\");\n"
3287 " printf(\"clone() returned %jd\\[rs]n\", (intmax_t) pid);\n"
3288 "\\&\n"
3289 " /* Parent falls through to here */\n"
3290 "\\&\n"
3291 " sleep(1); /* Give child time to change its hostname */\n"
3292 "\\&\n"
3293 " /* Display hostname in parent\\[aq]s UTS namespace. This will be\n"
3294 " different from hostname in child\\[aq]s UTS namespace. */\n"
3295 "\\&\n"
3296 " if (uname(&uts) == -1)\n"
3297 " err(EXIT_FAILURE, \"uname\");\n"
3298 " printf(\"uts.nodename in parent: %s\\[rs]n\", uts.nodename);\n"
3299 "\\&\n"
3300 " if (waitpid(pid, NULL, 0) == -1) /* Wait for child */\n"
3301 " err(EXIT_FAILURE, \"waitpid\");\n"
3302 " printf(\"child has terminated\\[rs]n\");\n"
3303 "\\&\n"
3304 " exit(EXIT_SUCCESS);\n"
3305 "}\n"
3306 msgstr ""
3307
3308 #. type: TH
3309 #: fedora-44 fedora-rawhide
3310 #, no-wrap
3311 msgid "2025-02-10"
3312 msgstr "2025년 2월 10일"
3313
3314 #. type: TH
3315 #: fedora-44 fedora-rawhide
3316 #, no-wrap
3317 msgid "Linux man-pages 6.13"
3318 msgstr "Linux man-pages 6.13"
3319
3320 #. type: Plain text
3321 #: fedora-44 fedora-rawhide
3322 #, no-wrap
3323 msgid "/* For the prototype of the raw clone() system call, see VERSIONS. */\n"
3324 msgstr ""
3325
3326 #. type: Plain text
3327 #: fedora-44 fedora-rawhide
3328 #, fuzzy, no-wrap
3329 #| msgid ""
3330 #| "B<int __clone2(int (*>I<fn>B<)(void *),>\n"
3331 #| "B< void *>I<stack_base>B<, size_t >I<stack_size>B<,>\n"
3332 #| "B< int >I<flags>B<, void *>I<arg>B<, ...>\n"
3333 #| "B< /* pid_t *>I<parent_tid>B<, struct user_desc *>I<tls>B<,>\n"
3334 #| "B< pid_t *>I<child_tid>B< */ );>\n"
3335 msgid ""
3336 "B<int __clone2(typeof(int (void *)) *>I<fn>B<,>\n"
3337 "B< void *>I<stack_base>B<, size_t >I<stack_size>B<,>\n"
3338 "B< int >I<flags>B<, void *>I<arg>B<, ...>\n"
3339 "B< >/*B< pid_t *>I<parent_tid>B<, struct user_desc *>I<tls>B<,>\n"
3340 "B< pid_t *>I<child_tid>B< >*/B< );>\n"
3341 msgstr ""
3342 "B<int __clone2(int (*>I<fn>B<)(void *),>\n"
3343 "B< void *>I<stack_base>B<, size_t >I<stack_size>B<,>\n"
3344 "B< int >I<flags>B<, void *>I<arg>B<, ...>\n"
3345 "B< /* pid_t *>I<parent_tid>B<, struct user_desc *>I<tls>B<,>\n"
3346 "B< pid_t *>I<child_tid>B< */ );>\n"
3347
3348 #. type: Plain text
3349 #: fedora-44 fedora-rawhide
3350 #, no-wrap
3351 msgid ""
3352 "#define _GNU_SOURCE\n"
3353 "#include E<lt>err.hE<gt>\n"
3354 "#include E<lt>sched.hE<gt>\n"
3355 "#include E<lt>signal.hE<gt>\n"
3356 "#include E<lt>stdint.hE<gt>\n"
3357 "#include E<lt>stdio.hE<gt>\n"
3358 "#include E<lt>stdlib.hE<gt>\n"
3359 "#include E<lt>string.hE<gt>\n"
3360 "#include E<lt>sys/mman.hE<gt>\n"
3361 "#include E<lt>sys/types.hE<gt>\n"
3362 "#include E<lt>sys/utsname.hE<gt>\n"
3363 "#include E<lt>sys/wait.hE<gt>\n"
3364 "#include E<lt>unistd.hE<gt>\n"
3365 "\\&\n"
3366 "static int /* Start function for cloned child */\n"
3367 "childFunc(void *arg)\n"
3368 "{\n"
3369 " struct utsname uts;\n"
3370 "\\&\n"
3371 " /* Change hostname in UTS namespace of child. */\n"
3372 "\\&\n"
3373 " if (sethostname(arg, strlen(arg)) == -1)\n"
3374 " err(EXIT_FAILURE, \"sethostname\");\n"
3375 "\\&\n"
3376 " /* Retrieve and display hostname. */\n"
3377 "\\&\n"
3378 " if (uname(&uts) == -1)\n"
3379 " err(EXIT_FAILURE, \"uname\");\n"
3380 " printf(\"uts.nodename in child: %s\\[rs]n\", uts.nodename);\n"
3381 "\\&\n"
3382 " /* Keep the namespace open for a while, by sleeping.\n"
3383 " This allows some experimentation--for example, another\n"
3384 " process might join the namespace. */\n"
3385 "\\&\n"
3386 " sleep(200);\n"
3387 "\\&\n"
3388 " return 0; /* Child terminates now */\n"
3389 "}\n"
3390 "\\&\n"
3391 "#define STACK_SIZE (1024 * 1024) /* Stack size for cloned child */\n"
3392 "\\&\n"
3393 "int\n"
3394 "main(int argc, char *argv[])\n"
3395 "{\n"
3396 " char *stack; /* Start of stack buffer */\n"
3397 " char *stackTop; /* End of stack buffer */\n"
3398 " pid_t pid;\n"
3399 " struct utsname uts;\n"
3400 "\\&\n"
3401 " if (argc E<lt> 2) {\n"
3402 " fprintf(stderr, \"Usage: %s E<lt>child-hostnameE<gt>\\[rs]n\", argv[0]);\n"
3403 " exit(EXIT_SUCCESS);\n"
3404 " }\n"
3405 "\\&\n"
3406 " /* Allocate memory to be used for the stack of the child. */\n"
3407 "\\&\n"
3408 " stack = mmap(NULL, STACK_SIZE, PROT_READ | PROT_WRITE,\n"
3409 " MAP_PRIVATE | MAP_ANONYMOUS | MAP_STACK, -1, 0);\n"
3410 " if (stack == MAP_FAILED)\n"
3411 " err(EXIT_FAILURE, \"mmap\");\n"
3412 "\\&\n"
3413 " stackTop = stack + STACK_SIZE; /* Assume stack grows downward */\n"
3414 "\\&\n"
3415 " /* Create child that has its own UTS namespace;\n"
3416 " child commences execution in childFunc(). */\n"
3417 "\\&\n"
3418 " pid = clone(childFunc, stackTop, CLONE_NEWUTS | SIGCHLD, argv[1]);\n"
3419 " if (pid == -1)\n"
3420 " err(EXIT_FAILURE, \"clone\");\n"
3421 " if (munmap(stack, STACK_SIZE))\n"
3422 " err(EXIT_FAILURE, \"munmap\");\n"
3423 " printf(\"clone() returned %jd\\[rs]n\", (intmax_t) pid);\n"
3424 "\\&\n"
3425 " /* Parent falls through to here */\n"
3426 "\\&\n"
3427 " sleep(1); /* Give child time to change its hostname */\n"
3428 "\\&\n"
3429 " /* Display hostname in parent\\[aq]s UTS namespace. This will be\n"
3430 " different from hostname in child\\[aq]s UTS namespace. */\n"
3431 "\\&\n"
3432 " if (uname(&uts) == -1)\n"
3433 " err(EXIT_FAILURE, \"uname\");\n"
3434 " printf(\"uts.nodename in parent: %s\\[rs]n\", uts.nodename);\n"
3435 "\\&\n"
3436 " if (waitpid(pid, NULL, 0) == -1) /* Wait for child */\n"
3437 " err(EXIT_FAILURE, \"waitpid\");\n"
3438 " printf(\"child has terminated\\[rs]n\");\n"
3439 "\\&\n"
3440 " exit(EXIT_SUCCESS);\n"
3441 "}\n"
3442 msgstr ""
3443
3444 #. type: TH
3445 #: mageia-cauldron
3446 #, no-wrap
3447 msgid "Linux man-pages 6.17"
3448 msgstr "Linux man-pages 6.17"
3449
3450 #. type: TH
3451 #: opensuse-leap-16-1 opensuse-tumbleweed
3452 #, no-wrap
3453 msgid "Linux man-pages (unreleased)"
3454 msgstr "Linux man-pages (미공개)"