Debian Codegraph @

po/ru/man2/clone.2.po

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