Debian Codegraph @

po/pt_BR/man2/clone.2.po

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