Debian Codegraph @

po/es/man2/clone.2.po

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