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