| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Alexey, 2016. |
| 5 |
# Azamat Hackimov <[email protected]>, 2014-2017. |
| 6 |
# kogamatranslator49 <[email protected]>, 2015. |
| 7 |
# Darima Kogan <[email protected]>, 2014. |
| 8 |
# Max Is <[email protected]>, 2016. |
| 9 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 10 |
# Иван Павлов <[email protected]>, 2017. |
| 11 |
msgid "" |
| 12 |
msgstr "" |
| 13 |
"Project-Id-Version: manpages-l10n\n" |
| 14 |
"POT-Creation-Date: 2026-06-05 06:34+0200\n" |
| 15 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 16 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 17 |
"Language-Team: Russian <[email protected]>\n" |
| 18 |
"Language: ru\n" |
| 19 |
"MIME-Version: 1.0\n" |
| 20 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 21 |
"Content-Transfer-Encoding: 8bit\n" |
| 22 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 23 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 24 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 25 |
"X-Generator: Lokalize 2.0\n" |
| 26 |
|
| 27 |
#. type: TH |
| 28 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 29 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "pidfd_open" |
| 32 |
msgstr "pidfd_open" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 36 |
#: opensuse-tumbleweed |
| 37 |
#, no-wrap |
| 38 |
msgid "2026-02-08" |
| 39 |
msgstr "8 февраля 2026 г." |
| 40 |
|
| 41 |
#. type: TH |
| 42 |
#: archlinux debian-unstable |
| 43 |
#, fuzzy, no-wrap |
| 44 |
#| msgid "Linux man-pages 6.17" |
| 45 |
msgid "Linux man-pages 6.18" |
| 46 |
msgstr "Справочные страницы Linux 6.17" |
| 47 |
|
| 48 |
#. type: SH |
| 49 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 50 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 51 |
#, no-wrap |
| 52 |
msgid "NAME" |
| 53 |
msgstr "НАИМЕНОВАНИЕ" |
| 54 |
|
| 55 |
#. type: Plain text |
| 56 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 57 |
#: opensuse-tumbleweed |
| 58 |
msgid "pidfd_open - obtain a file descriptor that refers to a task" |
| 59 |
msgstr "" |
| 60 |
|
| 61 |
#. type: SH |
| 62 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 63 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 64 |
#, no-wrap |
| 65 |
msgid "LIBRARY" |
| 66 |
msgstr "БИБЛИОТЕКА" |
| 67 |
|
| 68 |
#. type: Plain text |
| 69 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 70 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 71 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 72 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 73 |
|
| 74 |
#. type: SH |
| 75 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 76 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 77 |
#, no-wrap |
| 78 |
msgid "SYNOPSIS" |
| 79 |
msgstr "СИНТАКСИС" |
| 80 |
|
| 81 |
#. type: Plain text |
| 82 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 83 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 84 |
#, no-wrap |
| 85 |
msgid "" |
| 86 |
"B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n" |
| 87 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 88 |
msgstr "" |
| 89 |
"B<#include E<lt>sys/syscall.hE<gt>> /* определения констант B<SYS_*> */\n" |
| 90 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
#, no-wrap |
| 96 |
msgid "B<int syscall(SYS_pidfd_open, pid_t >I<pid>B<, unsigned int >I<flags>B<);>\n" |
| 97 |
msgstr "B<int syscall(SYS_pidfd_open, pid_t >I<pid>B<, unsigned int >I<flags>B<);>\n" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
msgid "" |
| 103 |
"I<Note>: glibc provides no wrapper for B<pidfd_open>(), necessitating the " |
| 104 |
"use of B<syscall>(2)." |
| 105 |
msgstr "" |
| 106 |
|
| 107 |
#. type: SH |
| 108 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 109 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 110 |
#, no-wrap |
| 111 |
msgid "DESCRIPTION" |
| 112 |
msgstr "ОПИСАНИЕ" |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 116 |
#: opensuse-tumbleweed |
| 117 |
msgid "" |
| 118 |
"The B<pidfd_open>() system call creates a file descriptor that refers to " |
| 119 |
"the task referenced by I<pid>. The file descriptor is returned as the " |
| 120 |
"function result; the close-on-exec flag is set on the file descriptor." |
| 121 |
msgstr "" |
| 122 |
|
| 123 |
#. type: Plain text |
| 124 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 125 |
#: opensuse-tumbleweed |
| 126 |
#, fuzzy |
| 127 |
#| msgid "" |
| 128 |
#| "The I<flags> argument is a bit mask that ORs together zero or more of the " |
| 129 |
#| "following flags:" |
| 130 |
msgid "" |
| 131 |
"The I<flags> argument either has the value 0, or contains the following " |
| 132 |
"flags:" |
| 133 |
msgstr "" |
| 134 |
"Аргумент I<flags> представляет собой битовую маску из комбинации (OR) нуля " |
| 135 |
"или более следующих флагов:" |
| 136 |
|
| 137 |
#. type: TP |
| 138 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 139 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 140 |
#, no-wrap |
| 141 |
msgid "B<PIDFD_NONBLOCK> (since Linux 5.10)" |
| 142 |
msgstr "B<PIDFD_NONBLOCK> (начиная с Linux 5.10)" |
| 143 |
|
| 144 |
#. commit 4da9af0014b51c8b015ed8c622440ef28912efe6 |
| 145 |
#. type: Plain text |
| 146 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 147 |
#: opensuse-tumbleweed |
| 148 |
msgid "" |
| 149 |
"Return a nonblocking file descriptor. If the task referred to by the file " |
| 150 |
"descriptor has not yet terminated, then an attempt to wait on the file " |
| 151 |
"descriptor using B<waitid>(2) will immediately return the error B<EAGAIN> " |
| 152 |
"rather than blocking." |
| 153 |
msgstr "" |
| 154 |
|
| 155 |
#. type: TP |
| 156 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 157 |
#: opensuse-tumbleweed |
| 158 |
#, fuzzy, no-wrap |
| 159 |
#| msgid "B<RWF_NOAPPEND> (since Linux 6.9)" |
| 160 |
msgid "B<PIDFD_THREAD> (since Linux 6.9)" |
| 161 |
msgstr "B<RWF_NOAPPEND> (начиная с Linux 6.9)" |
| 162 |
|
| 163 |
#. commit 64bef697d33b75fc06c5789b3f8108680271529f |
| 164 |
#. type: Plain text |
| 165 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 166 |
#: opensuse-tumbleweed |
| 167 |
msgid "" |
| 168 |
"Create a file descriptor that refers to a specific thread, rather than a " |
| 169 |
"process (thread-group leader). If this flag is not set, I<pid> must refer " |
| 170 |
"to a process." |
| 171 |
msgstr "" |
| 172 |
|
| 173 |
#. type: SH |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
#, no-wrap |
| 177 |
msgid "RETURN VALUE" |
| 178 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 179 |
|
| 180 |
#. type: Plain text |
| 181 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 182 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 183 |
#, fuzzy |
| 184 |
#| msgid "" |
| 185 |
#| "On success, B<posix_openpt>() returns a nonnegative file descriptor " |
| 186 |
#| "which is the lowest numbered unused file descriptor. On failure, -1 is " |
| 187 |
#| "returned, and I<errno> is set to indicate the error." |
| 188 |
msgid "" |
| 189 |
"On success, B<pidfd_open>() returns a file descriptor (a nonnegative " |
| 190 |
"integer). On error, -1 is returned and I<errno> is set to indicate the " |
| 191 |
"error." |
| 192 |
msgstr "" |
| 193 |
"При успешном выполнении B<posix_openpt>() возвращает неотрицательный " |
| 194 |
"файловый дескриптор с наименьшим номером неиспользуемого файлового " |
| 195 |
"дескриптора. При ошибке возвращается -1, и в I<errno> записывается номер " |
| 196 |
"ошибки." |
| 197 |
|
| 198 |
#. type: SH |
| 199 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 200 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 201 |
#, no-wrap |
| 202 |
msgid "ERRORS" |
| 203 |
msgstr "ОШИБКИ" |
| 204 |
|
| 205 |
#. type: TP |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
#, no-wrap |
| 209 |
msgid "B<EINVAL>" |
| 210 |
msgstr "B<EINVAL>" |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
msgid "I<flags> is not valid." |
| 216 |
msgstr "Значение I<flags> неверно." |
| 217 |
|
| 218 |
#. type: Plain text |
| 219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 221 |
msgid "I<pid> is not valid." |
| 222 |
msgstr "I<pid> задан некорректно." |
| 223 |
|
| 224 |
#. type: TP |
| 225 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 226 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 227 |
#, no-wrap |
| 228 |
msgid "B<EMFILE>" |
| 229 |
msgstr "B<EMFILE>" |
| 230 |
|
| 231 |
#. type: Plain text |
| 232 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 233 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 234 |
msgid "" |
| 235 |
"The per-process limit on the number of open file descriptors has been " |
| 236 |
"reached (see the description of B<RLIMIT_NOFILE> in B<getrlimit>(2))." |
| 237 |
msgstr "" |
| 238 |
"Было достигнуто ограничение по количеству открытых файловых дескрипторов на " |
| 239 |
"процесс (смотрите описание B<RLIMIT_NOFILE> в B<getrlimit>(2))." |
| 240 |
|
| 241 |
#. type: TP |
| 242 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 243 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 244 |
#, no-wrap |
| 245 |
msgid "B<ENFILE>" |
| 246 |
msgstr "B<ENFILE>" |
| 247 |
|
| 248 |
#. type: Plain text |
| 249 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 250 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 251 |
msgid "" |
| 252 |
"The system-wide limit on the total number of open files has been reached." |
| 253 |
msgstr "Достигнуто максимальное количество открытых файлов в системе." |
| 254 |
|
| 255 |
#. type: TP |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
#, no-wrap |
| 259 |
msgid "B<ENODEV>" |
| 260 |
msgstr "B<ENODEV>" |
| 261 |
|
| 262 |
#. type: Plain text |
| 263 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 264 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 265 |
msgid "The anonymous inode filesystem is not available in this kernel." |
| 266 |
msgstr "" |
| 267 |
|
| 268 |
#. type: TP |
| 269 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 270 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 271 |
#, no-wrap |
| 272 |
msgid "B<ENOMEM>" |
| 273 |
msgstr "B<ENOMEM>" |
| 274 |
|
| 275 |
#. type: Plain text |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
msgid "Insufficient kernel memory was available." |
| 279 |
msgstr "Недостаточное количество памяти ядра." |
| 280 |
|
| 281 |
#. type: TP |
| 282 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 283 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 284 |
#, no-wrap |
| 285 |
msgid "B<ESRCH>" |
| 286 |
msgstr "B<ESRCH>" |
| 287 |
|
| 288 |
#. type: Plain text |
| 289 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 290 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 291 |
#, fuzzy |
| 292 |
#| msgid "The named file does not exist." |
| 293 |
msgid "The process specified by I<pid> does not exist." |
| 294 |
msgstr "Указанный файл не существует." |
| 295 |
|
| 296 |
#. type: SH |
| 297 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 298 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 299 |
#, no-wrap |
| 300 |
msgid "STANDARDS" |
| 301 |
msgstr "СТАНДАРТЫ" |
| 302 |
|
| 303 |
#. type: Plain text |
| 304 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 305 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 306 |
msgid "Linux." |
| 307 |
msgstr "Linux." |
| 308 |
|
| 309 |
#. type: SH |
| 310 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 311 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 312 |
#, no-wrap |
| 313 |
msgid "HISTORY" |
| 314 |
msgstr "ИСТОРИЯ" |
| 315 |
|
| 316 |
#. type: Plain text |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
msgid "Linux 5.3." |
| 320 |
msgstr "Linux 5.3." |
| 321 |
|
| 322 |
#. type: SH |
| 323 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 324 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 325 |
#, no-wrap |
| 326 |
msgid "NOTES" |
| 327 |
msgstr "ПРИМЕЧАНИЯ" |
| 328 |
|
| 329 |
#. type: Plain text |
| 330 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 331 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 332 |
msgid "" |
| 333 |
"The following code sequence can be used to obtain a file descriptor for the " |
| 334 |
"child of B<fork>(2):" |
| 335 |
msgstr "" |
| 336 |
|
| 337 |
#. type: Plain text |
| 338 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 339 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 340 |
#, no-wrap |
| 341 |
msgid "" |
| 342 |
"pid = fork();\n" |
| 343 |
"if (pid E<gt> 0) { /* If parent */\n" |
| 344 |
" pidfd = pidfd_open(pid, 0);\n" |
| 345 |
" ...\n" |
| 346 |
"}\n" |
| 347 |
msgstr "" |
| 348 |
|
| 349 |
#. type: Plain text |
| 350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 351 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 352 |
msgid "" |
| 353 |
"Even if the child has already terminated by the time of the B<pidfd_open>() " |
| 354 |
"call, its PID will not have been recycled and the returned file descriptor " |
| 355 |
"will refer to the resulting zombie process. Note, however, that this is " |
| 356 |
"guaranteed only if the following conditions hold true:" |
| 357 |
msgstr "" |
| 358 |
|
| 359 |
#. type: IP |
| 360 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 361 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 362 |
#, no-wrap |
| 363 |
msgid "\\[bu]" |
| 364 |
msgstr "\\[bu]" |
| 365 |
|
| 366 |
#. type: Plain text |
| 367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 368 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 369 |
msgid "" |
| 370 |
"the disposition of B<SIGCHLD> has not been explicitly set to B<SIG_IGN> (see " |
| 371 |
"B<sigaction>(2));" |
| 372 |
msgstr "" |
| 373 |
|
| 374 |
#. type: Plain text |
| 375 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 376 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 377 |
msgid "" |
| 378 |
"the B<SA_NOCLDWAIT> flag was not specified while establishing a handler for " |
| 379 |
"B<SIGCHLD> or while setting the disposition of that signal to B<SIG_DFL> " |
| 380 |
"(see B<sigaction>(2)); and" |
| 381 |
msgstr "" |
| 382 |
|
| 383 |
#. type: Plain text |
| 384 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 385 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 386 |
msgid "" |
| 387 |
"the zombie process was not reaped elsewhere in the program (e.g., either by " |
| 388 |
"an asynchronously executed signal handler or by B<wait>(2) or similar in " |
| 389 |
"another thread)." |
| 390 |
msgstr "" |
| 391 |
|
| 392 |
#. type: Plain text |
| 393 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 394 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 395 |
msgid "" |
| 396 |
"If any of these conditions does not hold, then the child process (along with " |
| 397 |
"a PID file descriptor that refers to it) should instead be created using " |
| 398 |
"B<clone>(2) with the B<CLONE_PIDFD> flag." |
| 399 |
msgstr "" |
| 400 |
|
| 401 |
#. type: SS |
| 402 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 403 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 404 |
#, fuzzy, no-wrap |
| 405 |
#| msgid "open file descriptors" |
| 406 |
msgid "Use cases for PID file descriptors" |
| 407 |
msgstr "Открытые файловые дескрипторы" |
| 408 |
|
| 409 |
#. type: Plain text |
| 410 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 411 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 412 |
msgid "" |
| 413 |
"A PID file descriptor returned by B<pidfd_open>() (or by B<clone>(2) with " |
| 414 |
"the B<CLONE_PID> flag) can be used for the following purposes:" |
| 415 |
msgstr "" |
| 416 |
|
| 417 |
#. type: Plain text |
| 418 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 419 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 420 |
msgid "" |
| 421 |
"The B<pidfd_send_signal>(2) system call can be used to send a signal to the " |
| 422 |
"process referred to by a PID file descriptor." |
| 423 |
msgstr "" |
| 424 |
|
| 425 |
#. type: Plain text |
| 426 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 427 |
#: opensuse-tumbleweed |
| 428 |
msgid "" |
| 429 |
"A PID file descriptor can be monitored using B<poll>(2), B<select>(2), and " |
| 430 |
"B<epoll>(7)." |
| 431 |
msgstr "" |
| 432 |
|
| 433 |
#. commit 43f0df54c96f |
| 434 |
#. type: Plain text |
| 435 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 436 |
#: opensuse-tumbleweed |
| 437 |
msgid "" |
| 438 |
"When the task that it refers to terminates and becomes a zombie, these " |
| 439 |
"interfaces indicate the file descriptor as readable (B<EPOLLIN>). When the " |
| 440 |
"task is reaped, these interfaces produce a hangup event (B<EPOLLHUP>)." |
| 441 |
msgstr "" |
| 442 |
|
| 443 |
#. type: Plain text |
| 444 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 445 |
#: opensuse-tumbleweed |
| 446 |
msgid "" |
| 447 |
"Note, however, that in the current implementation, nothing can be read from " |
| 448 |
"the file descriptor (B<read>(2) on the file descriptor fails with the error " |
| 449 |
"B<EINVAL>). The polling behavior depends on whether B<PIDFD_THREAD> flag " |
| 450 |
"was used when obtaining the file descriptor:" |
| 451 |
msgstr "" |
| 452 |
|
| 453 |
#. type: Plain text |
| 454 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 455 |
#: opensuse-tumbleweed |
| 456 |
msgid "" |
| 457 |
"With B<PIDFD_THREAD>, the file descriptor becomes readable when the task " |
| 458 |
"exits and becomes a zombie, even if the thread-group is not empty." |
| 459 |
msgstr "" |
| 460 |
|
| 461 |
#. type: Plain text |
| 462 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 463 |
#: opensuse-tumbleweed |
| 464 |
msgid "" |
| 465 |
"Without B<PIDFD_THREAD>, the file descriptor becomes readable only when the " |
| 466 |
"last thread in the thread group exits." |
| 467 |
msgstr "" |
| 468 |
|
| 469 |
#. type: Plain text |
| 470 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 471 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 472 |
msgid "" |
| 473 |
"If the PID file descriptor refers to a child of the calling process, then it " |
| 474 |
"can be waited on using B<waitid>(2)." |
| 475 |
msgstr "" |
| 476 |
|
| 477 |
#. type: Plain text |
| 478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 480 |
msgid "" |
| 481 |
"The B<pidfd_getfd>(2) system call can be used to obtain a duplicate of a " |
| 482 |
"file descriptor of another process referred to by a PID file descriptor." |
| 483 |
msgstr "" |
| 484 |
|
| 485 |
#. type: Plain text |
| 486 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 487 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 488 |
msgid "" |
| 489 |
"A PID file descriptor can be used as the argument of B<setns>(2) in order " |
| 490 |
"to move into one or more of the same namespaces as the process referred to " |
| 491 |
"by the file descriptor." |
| 492 |
msgstr "" |
| 493 |
|
| 494 |
#. type: Plain text |
| 495 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 496 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 497 |
msgid "" |
| 498 |
"A PID file descriptor can be used as the argument of B<process_madvise>(2) " |
| 499 |
"in order to provide advice on the memory usage patterns of the process " |
| 500 |
"referred to by the file descriptor." |
| 501 |
msgstr "" |
| 502 |
|
| 503 |
#. type: Plain text |
| 504 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 505 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 506 |
msgid "" |
| 507 |
"The B<pidfd_open>() system call is the preferred way of obtaining a PID " |
| 508 |
"file descriptor for an already existing process. The alternative is to " |
| 509 |
"obtain a file descriptor by opening a I</proc/>pid directory. However, the " |
| 510 |
"latter technique is possible only if the B<proc>(5) filesystem is mounted; " |
| 511 |
"furthermore, the file descriptor obtained in this way is I<not> pollable and " |
| 512 |
"can't be waited on with B<waitid>(2)." |
| 513 |
msgstr "" |
| 514 |
|
| 515 |
#. type: SH |
| 516 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 517 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 518 |
#, no-wrap |
| 519 |
msgid "EXAMPLES" |
| 520 |
msgstr "ПРИМЕРЫ" |
| 521 |
|
| 522 |
#. type: Plain text |
| 523 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 524 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 525 |
msgid "" |
| 526 |
"The program below opens a PID file descriptor for the process whose PID is " |
| 527 |
"specified as its command-line argument. It then uses B<poll>(2) to monitor " |
| 528 |
"the file descriptor for process exit, as indicated by an B<EPOLLIN> event." |
| 529 |
msgstr "" |
| 530 |
|
| 531 |
#. type: SS |
| 532 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 533 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 534 |
#, no-wrap |
| 535 |
msgid "Program source" |
| 536 |
msgstr "Исходный код программы" |
| 537 |
|
| 538 |
#. type: Plain text |
| 539 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 540 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 541 |
#, no-wrap |
| 542 |
msgid "" |
| 543 |
"#define _GNU_SOURCE\n" |
| 544 |
"#include E<lt>poll.hE<gt>\n" |
| 545 |
"#include E<lt>stdio.hE<gt>\n" |
| 546 |
"#include E<lt>stdlib.hE<gt>\n" |
| 547 |
"#include E<lt>sys/syscall.hE<gt>\n" |
| 548 |
"#include E<lt>sys/types.hE<gt>\n" |
| 549 |
"#include E<lt>unistd.hE<gt>\n" |
| 550 |
"\\&\n" |
| 551 |
"static int\n" |
| 552 |
"pidfd_open(pid_t pid, unsigned int flags)\n" |
| 553 |
"{\n" |
| 554 |
" return syscall(SYS_pidfd_open, pid, flags);\n" |
| 555 |
"}\n" |
| 556 |
"\\&\n" |
| 557 |
"int\n" |
| 558 |
"main(int argc, char *argv[])\n" |
| 559 |
"{\n" |
| 560 |
" int pidfd, ready;\n" |
| 561 |
" struct pollfd pollfd;\n" |
| 562 |
"\\&\n" |
| 563 |
" if (argc != 2) {\n" |
| 564 |
" fprintf(stderr, \"Usage: %s E<lt>pidE<gt>\\[rs]n\", argv[0]);\n" |
| 565 |
" exit(EXIT_SUCCESS);\n" |
| 566 |
" }\n" |
| 567 |
"\\&\n" |
| 568 |
" pidfd = pidfd_open(atoi(argv[1]), 0);\n" |
| 569 |
" if (pidfd == -1) {\n" |
| 570 |
" perror(\"pidfd_open\");\n" |
| 571 |
" exit(EXIT_FAILURE);\n" |
| 572 |
" }\n" |
| 573 |
"\\&\n" |
| 574 |
" pollfd.fd = pidfd;\n" |
| 575 |
" pollfd.events = POLLIN;\n" |
| 576 |
"\\&\n" |
| 577 |
" ready = poll(&pollfd, 1, -1);\n" |
| 578 |
" if (ready == -1) {\n" |
| 579 |
" perror(\"poll\");\n" |
| 580 |
" exit(EXIT_FAILURE);\n" |
| 581 |
" }\n" |
| 582 |
"\\&\n" |
| 583 |
" printf(\"Events (%#x): POLLIN is %sset\\[rs]n\", pollfd.revents,\n" |
| 584 |
" (pollfd.revents & POLLIN) ? \"\" : \"not \");\n" |
| 585 |
"\\&\n" |
| 586 |
" close(pidfd);\n" |
| 587 |
" exit(EXIT_SUCCESS);\n" |
| 588 |
"}\n" |
| 589 |
msgstr "" |
| 590 |
|
| 591 |
#. SRC END |
| 592 |
#. type: SH |
| 593 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 594 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 595 |
#, no-wrap |
| 596 |
msgid "SEE ALSO" |
| 597 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 598 |
|
| 599 |
#. type: Plain text |
| 600 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 601 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 602 |
msgid "" |
| 603 |
"B<clone>(2), B<kill>(2), B<pidfd_getfd>(2), B<pidfd_send_signal>(2), " |
| 604 |
"B<poll>(2), B<process_madvise>(2), B<select>(2), B<setns>(2), B<waitid>(2), " |
| 605 |
"B<epoll>(7)" |
| 606 |
msgstr "" |
| 607 |
"B<clone>(2), B<kill>(2), B<pidfd_getfd>(2), B<pidfd_send_signal>(2), " |
| 608 |
"B<poll>(2), B<process_madvise>(2), B<select>(2), B<setns>(2), B<waitid>(2), " |
| 609 |
"B<epoll>(7)" |
| 610 |
|
| 611 |
#. type: TH |
| 612 |
#: debian-trixie |
| 613 |
#, no-wrap |
| 614 |
msgid "2024-06-15" |
| 615 |
msgstr "15 июня 2024 г." |
| 616 |
|
| 617 |
#. type: TH |
| 618 |
#: debian-trixie |
| 619 |
#, no-wrap |
| 620 |
msgid "Linux man-pages 6.9.1" |
| 621 |
msgstr "Страницы руководства Linux 6.9.1" |
| 622 |
|
| 623 |
#. type: Plain text |
| 624 |
#: debian-trixie fedora-44 fedora-rawhide |
| 625 |
msgid "pidfd_open - obtain a file descriptor that refers to a process" |
| 626 |
msgstr "" |
| 627 |
|
| 628 |
#. type: Plain text |
| 629 |
#: debian-trixie |
| 630 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 631 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 632 |
|
| 633 |
#. type: Plain text |
| 634 |
#: debian-trixie fedora-44 fedora-rawhide |
| 635 |
msgid "" |
| 636 |
"The B<pidfd_open>() system call creates a file descriptor that refers to " |
| 637 |
"the process whose PID is specified in I<pid>. The file descriptor is " |
| 638 |
"returned as the function result; the close-on-exec flag is set on the file " |
| 639 |
"descriptor." |
| 640 |
msgstr "" |
| 641 |
|
| 642 |
#. type: Plain text |
| 643 |
#: debian-trixie fedora-44 fedora-rawhide |
| 644 |
#, fuzzy |
| 645 |
#| msgid "" |
| 646 |
#| "The I<flags> argument is a bit mask that ORs together zero or more of the " |
| 647 |
#| "following flags:" |
| 648 |
msgid "" |
| 649 |
"The I<flags> argument either has the value 0, or contains the following flag:" |
| 650 |
msgstr "" |
| 651 |
"Аргумент I<flags> представляет собой битовую маску из комбинации (OR) нуля " |
| 652 |
"или более следующих флагов:" |
| 653 |
|
| 654 |
#. commit 4da9af0014b51c8b015ed8c622440ef28912efe6 |
| 655 |
#. type: Plain text |
| 656 |
#: debian-trixie fedora-44 fedora-rawhide |
| 657 |
msgid "" |
| 658 |
"Return a nonblocking file descriptor. If the process referred to by the " |
| 659 |
"file descriptor has not yet terminated, then an attempt to wait on the file " |
| 660 |
"descriptor using B<waitid>(2) will immediately return the error B<EAGAIN> " |
| 661 |
"rather than blocking." |
| 662 |
msgstr "" |
| 663 |
|
| 664 |
#. type: Plain text |
| 665 |
#: debian-trixie fedora-44 fedora-rawhide |
| 666 |
msgid "" |
| 667 |
"A PID file descriptor can be monitored using B<poll>(2), B<select>(2), and " |
| 668 |
"B<epoll>(7). When the process that it refers to terminates, these " |
| 669 |
"interfaces indicate the file descriptor as readable. Note, however, that in " |
| 670 |
"the current implementation, nothing can be read from the file descriptor " |
| 671 |
"(B<read>(2) on the file descriptor fails with the error B<EINVAL>)." |
| 672 |
msgstr "" |
| 673 |
|
| 674 |
#. type: TH |
| 675 |
#: fedora-44 fedora-rawhide |
| 676 |
#, no-wrap |
| 677 |
msgid "2024-07-23" |
| 678 |
msgstr "23 июля 2024 г." |
| 679 |
|
| 680 |
#. type: TH |
| 681 |
#: fedora-44 fedora-rawhide |
| 682 |
#, no-wrap |
| 683 |
msgid "Linux man-pages 6.13" |
| 684 |
msgstr "Страницы руководства Linux 6.13" |
| 685 |
|
| 686 |
#. type: TH |
| 687 |
#: mageia-cauldron |
| 688 |
#, no-wrap |
| 689 |
msgid "Linux man-pages 6.17" |
| 690 |
msgstr "Страницы руководства Linux 6.17" |
| 691 |
|
| 692 |
#. type: TH |
| 693 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 694 |
#, no-wrap |
| 695 |
msgid "Linux man-pages (unreleased)" |
| 696 |
msgstr "Страницы руководства Linux (не выпущены)" |