| 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 |
# Alex Nik <[email protected]>, 2013. |
| 5 |
# Azamat Hackimov <[email protected]>, 2017. |
| 6 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 7 |
# Иван Павлов <[email protected]>, 2017. |
| 8 |
msgid "" |
| 9 |
msgstr "" |
| 10 |
"Project-Id-Version: manpages-l10n\n" |
| 11 |
"POT-Creation-Date: 2026-06-05 06:29+0200\n" |
| 12 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 13 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 14 |
"Language-Team: Russian <[email protected]>\n" |
| 15 |
"Language: ru\n" |
| 16 |
"MIME-Version: 1.0\n" |
| 17 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 18 |
"Content-Transfer-Encoding: 8bit\n" |
| 19 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 20 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 21 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 22 |
"X-Generator: Lokalize 2.0\n" |
| 23 |
|
| 24 |
#. type: TH |
| 25 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 26 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 27 |
#, no-wrap |
| 28 |
msgid "kcmp" |
| 29 |
msgstr "kcmp" |
| 30 |
|
| 31 |
#. type: TH |
| 32 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 33 |
#: opensuse-tumbleweed |
| 34 |
#, no-wrap |
| 35 |
msgid "2026-02-08" |
| 36 |
msgstr "8 февраля 2026 г." |
| 37 |
|
| 38 |
#. type: TH |
| 39 |
#: archlinux debian-unstable |
| 40 |
#, fuzzy, no-wrap |
| 41 |
#| msgid "Linux man-pages 6.17" |
| 42 |
msgid "Linux man-pages 6.18" |
| 43 |
msgstr "Справочные страницы Linux 6.17" |
| 44 |
|
| 45 |
#. type: SH |
| 46 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 47 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
#, no-wrap |
| 49 |
msgid "NAME" |
| 50 |
msgstr "НАИМЕНОВАНИЕ" |
| 51 |
|
| 52 |
#. type: Plain text |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
msgid "" |
| 56 |
"kcmp - compare two processes to determine if they share a kernel resource" |
| 57 |
msgstr "" |
| 58 |
"kcmp - сравнивает два процесса, определяя используют ли они общий ресурс ядра" |
| 59 |
|
| 60 |
#. type: SH |
| 61 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 62 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 63 |
#, no-wrap |
| 64 |
msgid "LIBRARY" |
| 65 |
msgstr "БИБЛИОТЕКА" |
| 66 |
|
| 67 |
#. type: Plain text |
| 68 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 69 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 70 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 71 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 72 |
|
| 73 |
#. type: SH |
| 74 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 75 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "SYNOPSIS" |
| 78 |
msgstr "СИНТАКСИС" |
| 79 |
|
| 80 |
#. type: Plain text |
| 81 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 82 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 83 |
#, no-wrap |
| 84 |
msgid "" |
| 85 |
"B<#include E<lt>linux/kcmp.hE<gt>> /* Definition of B<KCMP_*> constants */\n" |
| 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>linux/kcmp.hE<gt>> /* определения констант B<KCMP_*> */\n" |
| 90 |
"B<#include E<lt>sys/syscall.hE<gt>> /* определения констант B<SYS_*> */\n" |
| 91 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 92 |
|
| 93 |
#. type: Plain text |
| 94 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 95 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 96 |
#, no-wrap |
| 97 |
msgid "" |
| 98 |
"B<int syscall(SYS_kcmp, pid_t >I<pid1>B<, pid_t >I<pid2>B<, int >I<type>B<,>\n" |
| 99 |
"B< unsigned long >I<idx1>B<, unsigned long >I<idx2>B<);>\n" |
| 100 |
msgstr "" |
| 101 |
"B<int syscall(SYS_kcmp, pid_t >I<pid1>B<, pid_t >I<pid2>B<, int >I<type>B<,>\n" |
| 102 |
"B< unsigned long >I<idx1>B<, unsigned long >I<idx2>B<);>\n" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 106 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 107 |
msgid "" |
| 108 |
"I<Note>: glibc provides no wrapper for B<kcmp>(), necessitating the use of " |
| 109 |
"B<syscall>(2)." |
| 110 |
msgstr "" |
| 111 |
|
| 112 |
#. type: SH |
| 113 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 114 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 115 |
#, no-wrap |
| 116 |
msgid "DESCRIPTION" |
| 117 |
msgstr "ОПИСАНИЕ" |
| 118 |
|
| 119 |
#. type: Plain text |
| 120 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 121 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 122 |
msgid "" |
| 123 |
"The B<kcmp>() system call can be used to check whether the two processes " |
| 124 |
"identified by I<pid1> and I<pid2> share a kernel resource such as virtual " |
| 125 |
"memory, file descriptors, and so on." |
| 126 |
msgstr "" |
| 127 |
"Системный вызов B<kcmp>() может использоваться для проверки, используют ли " |
| 128 |
"два процесса I<pid1> и I<pid2> общий ресурс ядра, например виртуальную " |
| 129 |
"память, файловые дескрипторы и т.д." |
| 130 |
|
| 131 |
#. type: Plain text |
| 132 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 133 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 134 |
msgid "" |
| 135 |
"Permission to employ B<kcmp>() is governed by ptrace access mode " |
| 136 |
"B<PTRACE_MODE_READ_REALCREDS> checks against both I<pid1> and I<pid2>; see " |
| 137 |
"B<ptrace>(2)." |
| 138 |
msgstr "" |
| 139 |
"Право вызывать B<kcmp>() определяется проверкой режима доступа ptrace " |
| 140 |
"B<PTRACE_MODE_READ_REALCREDS> вместе с I<pid1> и I<pid2>; смотрите " |
| 141 |
"B<ptrace>(2)." |
| 142 |
|
| 143 |
#. type: Plain text |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
msgid "" |
| 147 |
"The I<type> argument specifies which resource is to be compared in the two " |
| 148 |
"processes. It has one of the following values:" |
| 149 |
msgstr "" |
| 150 |
"В аргументе I<type> указывается какой ресурс двух процессов нужно " |
| 151 |
"сравнивать. Допустимы следующие значения:" |
| 152 |
|
| 153 |
#. type: TP |
| 154 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 155 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 156 |
#, no-wrap |
| 157 |
msgid "B<KCMP_FILE>" |
| 158 |
msgstr "B<KCMP_FILE>" |
| 159 |
|
| 160 |
#. type: Plain text |
| 161 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 162 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 163 |
msgid "" |
| 164 |
"Check whether a file descriptor I<idx1> in the process I<pid1> refers to the " |
| 165 |
"same open file description (see B<open>(2)) as file descriptor I<idx2> in " |
| 166 |
"the process I<pid2>. The existence of two file descriptors that refer to " |
| 167 |
"the same open file description can occur as a result of B<dup>(2) (and " |
| 168 |
"similar) B<fork>(2), or passing file descriptors via a domain socket (see " |
| 169 |
"B<unix>(7))." |
| 170 |
msgstr "" |
| 171 |
"Проверить, что файловый дескриптор I<idx1> в процессе I<pid1> указывает на " |
| 172 |
"то же открытое файловое описание (смотрите B<open>(2)) что и файловый " |
| 173 |
"дескриптор I<idx2> в процессе I<pid2>. Существование двух файловых " |
| 174 |
"дескрипторов, ссылающихся на одно файловое описание, может возникнуть в " |
| 175 |
"результате вызова B<dup>(2) (и подобного) в B<fork>(2), или передачи " |
| 176 |
"файловых дескрипторов через доменный сокет (смотрите B<unix>(7))." |
| 177 |
|
| 178 |
#. type: TP |
| 179 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 180 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 181 |
#, no-wrap |
| 182 |
msgid "B<KCMP_FILES>" |
| 183 |
msgstr "B<KCMP_FILES>" |
| 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 |
"Check whether the processes share the same set of open file descriptors. " |
| 190 |
"The arguments I<idx1> and I<idx2> are ignored. See the discussion of the " |
| 191 |
"B<CLONE_FILES> flag in B<clone>(2)." |
| 192 |
msgstr "" |
| 193 |
"Проверить, используют ли процессы общий одинаковый набор открытых файловых " |
| 194 |
"дескрипторов. Аргументы I<idx1> и I<idx2> игнорируются. Подробности смотрите " |
| 195 |
"в описании флага B<CLONE_FILES> в B<clone>(2)." |
| 196 |
|
| 197 |
#. type: TP |
| 198 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 199 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 200 |
#, no-wrap |
| 201 |
msgid "B<KCMP_FS>" |
| 202 |
msgstr "B<KCMP_FS>" |
| 203 |
|
| 204 |
#. type: Plain text |
| 205 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 206 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 207 |
msgid "" |
| 208 |
"Check whether the processes share the same filesystem information (i.e., " |
| 209 |
"file mode creation mask, working directory, and filesystem root). The " |
| 210 |
"arguments I<idx1> and I<idx2> are ignored. See the discussion of the " |
| 211 |
"B<CLONE_FS> flag in B<clone>(2)." |
| 212 |
msgstr "" |
| 213 |
"Проверить, используют ли процессы общую одинаковую информацию о файловой " |
| 214 |
"системе (т. е. маску прав создания, рабочий каталог и корень файловой " |
| 215 |
"системы). Аргументы I<idx1> и I<idx2> игнорируются. Подробности смотрите в " |
| 216 |
"описании флага B<CLONE_FS> в B<clone>(2)." |
| 217 |
|
| 218 |
#. type: TP |
| 219 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 220 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 221 |
#, no-wrap |
| 222 |
msgid "B<KCMP_IO>" |
| 223 |
msgstr "B<KCMP_IO>" |
| 224 |
|
| 225 |
#. type: Plain text |
| 226 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 227 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 228 |
msgid "" |
| 229 |
"Check whether the processes share I/O context. The arguments I<idx1> and " |
| 230 |
"I<idx2> are ignored. See the discussion of the B<CLONE_IO> flag in " |
| 231 |
"B<clone>(2)." |
| 232 |
msgstr "" |
| 233 |
"Проверить, используют ли процессы общее контекст ввода-вывода. Аргументы " |
| 234 |
"I<idx1> и I<idx2> игнорируются. Подробности смотрите в описании флага " |
| 235 |
"B<CLONE_IO> в B<clone>(2)." |
| 236 |
|
| 237 |
#. type: TP |
| 238 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 239 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 240 |
#, no-wrap |
| 241 |
msgid "B<KCMP_SIGHAND>" |
| 242 |
msgstr "B<KCMP_SIGHAND>" |
| 243 |
|
| 244 |
#. type: Plain text |
| 245 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 246 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 247 |
msgid "" |
| 248 |
"Check whether the processes share the same table of signal dispositions. " |
| 249 |
"The arguments I<idx1> and I<idx2> are ignored. See the discussion of the " |
| 250 |
"B<CLONE_SIGHAND> flag in B<clone>(2)." |
| 251 |
msgstr "" |
| 252 |
"Проверить, используют ли процессы общую одинаковую таблицу обработчиков " |
| 253 |
"сигналов. Аргументы I<idx1> и I<idx2> игнорируются. Подробности смотрите в " |
| 254 |
"описании флага B<CLONE_SIGHAND> в B<clone>(2)." |
| 255 |
|
| 256 |
#. type: TP |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
#, no-wrap |
| 260 |
msgid "B<KCMP_SYSVSEM>" |
| 261 |
msgstr "B<KCMP_SYSVSEM>" |
| 262 |
|
| 263 |
#. type: Plain text |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
msgid "" |
| 267 |
"Check whether the processes share the same list of System\\ V semaphore undo " |
| 268 |
"operations. The arguments I<idx1> and I<idx2> are ignored. See the " |
| 269 |
"discussion of the B<CLONE_SYSVSEM> flag in B<clone>(2)." |
| 270 |
msgstr "" |
| 271 |
"Проверить, используют ли процессы общий одинаковый список отмены операций " |
| 272 |
"семафоров System\\ V. Аргументы I<idx1> и I<idx2> игнорируются. Подробности " |
| 273 |
"смотрите в описании флага B<CLONE_SYSVSEM> в B<clone>(2)." |
| 274 |
|
| 275 |
#. type: TP |
| 276 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 277 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 278 |
#, no-wrap |
| 279 |
msgid "B<KCMP_VM>" |
| 280 |
msgstr "B<KCMP_VM>" |
| 281 |
|
| 282 |
#. type: Plain text |
| 283 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 284 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 285 |
msgid "" |
| 286 |
"Check whether the processes share the same address space. The arguments " |
| 287 |
"I<idx1> and I<idx2> are ignored. See the discussion of the B<CLONE_VM> flag " |
| 288 |
"in B<clone>(2)." |
| 289 |
msgstr "" |
| 290 |
"Проверить, используют ли процессы общее адресное пространство. Аргументы " |
| 291 |
"I<idx1> и I<idx2> игнорируются. Подробности смотрите в описании флага " |
| 292 |
"B<CLONE_VM> в B<clone>(2)." |
| 293 |
|
| 294 |
#. type: TP |
| 295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 297 |
#, no-wrap |
| 298 |
msgid "B<KCMP_EPOLL_TFD> (since Linux 4.13)" |
| 299 |
msgstr "B<KCMP_EPOLL_TFD> (начиная с Linux 4.13)" |
| 300 |
|
| 301 |
#. commit 0791e3644e5ef21646fe565b9061788d05ec71d4 |
| 302 |
#. type: Plain text |
| 303 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 304 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 305 |
msgid "" |
| 306 |
"Check whether the file descriptor I<idx1> of the process I<pid1> is present " |
| 307 |
"in the B<epoll>(7) instance described by I<idx2> of the process I<pid2>. " |
| 308 |
"The argument I<idx2> is a pointer to a structure where the target file is " |
| 309 |
"described. This structure has the form:" |
| 310 |
msgstr "" |
| 311 |
"Проверить, есть ли файловый дескриптор I<idx1> процесса I<pid1> в экземпляре " |
| 312 |
"B<epoll>(7), описанном в I<idx2> у процесса I<pid2>. Аргумент I<idx2> " |
| 313 |
"является указателем на структуру, которая описывает файл назначения. Формат " |
| 314 |
"структуры:" |
| 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 |
#, no-wrap |
| 320 |
msgid "" |
| 321 |
"struct kcmp_epoll_slot {\n" |
| 322 |
" __u32 efd;\n" |
| 323 |
" __u32 tfd;\n" |
| 324 |
" __u64 toff;\n" |
| 325 |
"};\n" |
| 326 |
msgstr "" |
| 327 |
"struct kcmp_epoll_slot {\n" |
| 328 |
" __u32 efd;\n" |
| 329 |
" __u32 tfd;\n" |
| 330 |
" __u64 toff;\n" |
| 331 |
"};\n" |
| 332 |
|
| 333 |
#. type: Plain text |
| 334 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 335 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 336 |
msgid "" |
| 337 |
"Within this structure, I<efd> is an epoll file descriptor returned from " |
| 338 |
"B<epoll_create>(2), I<tfd> is a target file descriptor number, and I<toff> " |
| 339 |
"is a target file offset counted from zero. Several different targets may be " |
| 340 |
"registered with the same file descriptor number and setting a specific " |
| 341 |
"offset helps to investigate each of them." |
| 342 |
msgstr "" |
| 343 |
"В этой структуре поле I<efd> содержит файловый дескриптор epoll, " |
| 344 |
"возвращаемый B<epoll_create>(2), I<tfd> содержит номер файлового " |
| 345 |
"дескриптора, а I<toff> содержит смещение в файле назначения, начиная с нуля. " |
| 346 |
"Несколько разных назначений могут быть зарегистрированы с одним номером " |
| 347 |
"файлового дескриптора, а установка определённого смещения помогает выбрать " |
| 348 |
"нужный." |
| 349 |
|
| 350 |
#. type: Plain text |
| 351 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 352 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 353 |
msgid "" |
| 354 |
"Note the B<kcmp>() is not protected against false positives which may occur " |
| 355 |
"if the processes are currently running. One should stop the processes by " |
| 356 |
"sending B<SIGSTOP> (see B<signal>(7)) prior to inspection with this system " |
| 357 |
"call to obtain meaningful results." |
| 358 |
msgstr "" |
| 359 |
"Заметим, что вызов B<kcmp>() не защищён от ложных срабатываний (false " |
| 360 |
"positives), которые могут случаться, если процессы в этот момент " |
| 361 |
"выполняются. То есть для получения достоверных результатов перед выполнением " |
| 362 |
"данного системного вызова нужно послать процессам сигнал B<SIGSTOP> " |
| 363 |
"(смотрите B<signal>(7))." |
| 364 |
|
| 365 |
#. type: SH |
| 366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 367 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 368 |
#, no-wrap |
| 369 |
msgid "RETURN VALUE" |
| 370 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 371 |
|
| 372 |
#. type: Plain text |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
msgid "" |
| 376 |
"The return value of a successful call to B<kcmp>() is simply the result of " |
| 377 |
"arithmetic comparison of kernel pointers (when the kernel compares " |
| 378 |
"resources, it uses their memory addresses)." |
| 379 |
msgstr "" |
| 380 |
"При успешном выполнении B<kcmp>() возвращает результат арифметического " |
| 381 |
"сложения указателей ядра (когда ядро сравнивает ресурсы, оно использует их " |
| 382 |
"адреса памяти)." |
| 383 |
|
| 384 |
#. type: Plain text |
| 385 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 386 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 387 |
msgid "" |
| 388 |
"The easiest way to explain is to consider an example. Suppose that I<v1> " |
| 389 |
"and I<v2> are the addresses of appropriate resources, then the return value " |
| 390 |
"is one of the following:" |
| 391 |
msgstr "" |
| 392 |
"Для простоты объяснения рассмотрим пример. Предположим, что I<v1> и I<v2> — " |
| 393 |
"адреса соответствующих ресурсов и возвращается значение:" |
| 394 |
|
| 395 |
#. type: TP |
| 396 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 397 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 398 |
#, no-wrap |
| 399 |
msgid "B<0>" |
| 400 |
msgstr "B<0>" |
| 401 |
|
| 402 |
#. type: Plain text |
| 403 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 404 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 405 |
msgid "" |
| 406 |
"I<v1> is equal to I<v2>; in other words, the two processes share the " |
| 407 |
"resource." |
| 408 |
msgstr "" |
| 409 |
"I<v1> равен I<v2>; другими словами, два процесса используют ресурс совместно." |
| 410 |
|
| 411 |
#. type: TP |
| 412 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 413 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 414 |
#, no-wrap |
| 415 |
msgid "B<1>" |
| 416 |
msgstr "B<1>" |
| 417 |
|
| 418 |
#. type: Plain text |
| 419 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 420 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 421 |
msgid "I<v1> is less than I<v2>." |
| 422 |
msgstr "I<v1> меньше I<v2>." |
| 423 |
|
| 424 |
#. type: TP |
| 425 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 426 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 427 |
#, no-wrap |
| 428 |
msgid "B<2>" |
| 429 |
msgstr "B<2>" |
| 430 |
|
| 431 |
#. type: Plain text |
| 432 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 433 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 434 |
msgid "I<v1> is greater than I<v2>." |
| 435 |
msgstr "I<v1> больше I<v2>." |
| 436 |
|
| 437 |
#. type: TP |
| 438 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 439 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 440 |
#, no-wrap |
| 441 |
msgid "B<3>" |
| 442 |
msgstr "B<3>" |
| 443 |
|
| 444 |
#. type: Plain text |
| 445 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 446 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 447 |
msgid "I<v1> is not equal to I<v2>, but ordering information is unavailable." |
| 448 |
msgstr "I<v1> не равен I<v2>, но нужная информация недоступна." |
| 449 |
|
| 450 |
#. type: Plain text |
| 451 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 452 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 453 |
msgid "On error, -1 is returned, and I<errno> is set to indicate the error." |
| 454 |
msgstr "" |
| 455 |
"В случае ошибки возвращается -1, а I<errno> устанавливается в значение " |
| 456 |
"ошибки." |
| 457 |
|
| 458 |
#. type: Plain text |
| 459 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 460 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 461 |
msgid "" |
| 462 |
"B<kcmp>() was designed to return values suitable for sorting. This is " |
| 463 |
"particularly handy if one needs to compare a large number of file " |
| 464 |
"descriptors." |
| 465 |
msgstr "" |
| 466 |
"Значения вызова B<kcmp>() специально выбраны так, чтобы их легко можно было " |
| 467 |
"упорядочить. В частности, это удобно когда нужно сравнить большое количество " |
| 468 |
"файловых дескрипторов." |
| 469 |
|
| 470 |
#. type: SH |
| 471 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 472 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 473 |
#, no-wrap |
| 474 |
msgid "ERRORS" |
| 475 |
msgstr "ОШИБКИ" |
| 476 |
|
| 477 |
#. type: TP |
| 478 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 479 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 480 |
#, no-wrap |
| 481 |
msgid "B<EBADF>" |
| 482 |
msgstr "B<EBADF>" |
| 483 |
|
| 484 |
#. type: Plain text |
| 485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 486 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 487 |
msgid "" |
| 488 |
"I<type> is B<KCMP_FILE> and I<fd1> or I<fd2> is not an open file descriptor." |
| 489 |
msgstr "" |
| 490 |
"Значение I<type> равно B<KCMP_FILE> и I<fd1> или I<fd2> не являются " |
| 491 |
"открытыми файловыми дескрипторами." |
| 492 |
|
| 493 |
#. type: TP |
| 494 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 495 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 496 |
#, no-wrap |
| 497 |
msgid "B<EFAULT>" |
| 498 |
msgstr "B<EFAULT>" |
| 499 |
|
| 500 |
#. type: Plain text |
| 501 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 502 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 503 |
msgid "" |
| 504 |
"The epoll slot addressed by I<idx2> is outside of the user's address space." |
| 505 |
msgstr "" |
| 506 |
"Слот epoll, указанный в I<idx2>, находится за пределами пользовательского " |
| 507 |
"адресного пространства." |
| 508 |
|
| 509 |
#. type: TP |
| 510 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 511 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 512 |
#, no-wrap |
| 513 |
msgid "B<EINVAL>" |
| 514 |
msgstr "B<EINVAL>" |
| 515 |
|
| 516 |
#. type: Plain text |
| 517 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 518 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 519 |
msgid "I<type> is invalid." |
| 520 |
msgstr "Значение I<type> неверно." |
| 521 |
|
| 522 |
#. type: TP |
| 523 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 524 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 525 |
#, no-wrap |
| 526 |
msgid "B<ENOENT>" |
| 527 |
msgstr "B<ENOENT>" |
| 528 |
|
| 529 |
#. type: Plain text |
| 530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 531 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 532 |
msgid "The target file is not present in B<epoll>(7) instance." |
| 533 |
msgstr "Файл назначения отсутствует в экземпляре B<epoll>(7)." |
| 534 |
|
| 535 |
#. type: TP |
| 536 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 537 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 538 |
#, no-wrap |
| 539 |
msgid "B<EPERM>" |
| 540 |
msgstr "B<EPERM>" |
| 541 |
|
| 542 |
#. type: Plain text |
| 543 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 544 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 545 |
msgid "" |
| 546 |
"Insufficient permission to inspect process resources. The B<CAP_SYS_PTRACE> " |
| 547 |
"capability is required to inspect processes that you do not own. Other " |
| 548 |
"ptrace limitations may also apply, such as B<CONFIG_SECURITY_YAMA>, which, " |
| 549 |
"when I</proc/sys/kernel/yama/ptrace_scope> is 2, limits B<kcmp>() to child " |
| 550 |
"processes; see B<ptrace>(2)." |
| 551 |
msgstr "" |
| 552 |
"Недостаточно прав для просмотра ресурсов процесса. Для проверки процессов " |
| 553 |
"требуется мандат B<CAP_SYS_PTRACE>, которого у вас нет. Также могут " |
| 554 |
"действовать другие ограничения ptrace, например B<CONFIG_SECURITY_YAMA>, " |
| 555 |
"которое при I</proc/sys/kernel/yama/ptrace_scope> равном 2, ограничивает " |
| 556 |
"B<kcmp>() дочерними процессами; смотрите B<ptrace>(2)." |
| 557 |
|
| 558 |
#. type: TP |
| 559 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 560 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 561 |
#, no-wrap |
| 562 |
msgid "B<ESRCH>" |
| 563 |
msgstr "B<ESRCH>" |
| 564 |
|
| 565 |
#. type: Plain text |
| 566 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 567 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 568 |
msgid "Process I<pid1> or I<pid2> does not exist." |
| 569 |
msgstr "Процесс I<pid1> или I<pid2> не существует." |
| 570 |
|
| 571 |
#. type: SH |
| 572 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 573 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 574 |
#, no-wrap |
| 575 |
msgid "STANDARDS" |
| 576 |
msgstr "СТАНДАРТЫ" |
| 577 |
|
| 578 |
#. type: Plain text |
| 579 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 580 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 581 |
msgid "Linux." |
| 582 |
msgstr "Linux." |
| 583 |
|
| 584 |
#. type: SH |
| 585 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 586 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 587 |
#, no-wrap |
| 588 |
msgid "HISTORY" |
| 589 |
msgstr "ИСТОРИЯ" |
| 590 |
|
| 591 |
#. type: Plain text |
| 592 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 593 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 594 |
#, fuzzy |
| 595 |
#| msgid "Linux" |
| 596 |
msgid "Linux 3.5." |
| 597 |
msgstr "Linux" |
| 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 |
#, fuzzy |
| 603 |
#| msgid "" |
| 604 |
#| "This system call is available only if the kernel was configured with " |
| 605 |
#| "B<CONFIG_CHECKPOINT_RESTORE>. The main use of the system call is for the " |
| 606 |
#| "checkpoint/restore in user space (CRIU) feature. The alternative to this " |
| 607 |
#| "system call would have been to expose suitable process information via " |
| 608 |
#| "the B<proc>(5) filesystem; this was deemed to be unsuitable for security " |
| 609 |
#| "reasons." |
| 610 |
msgid "" |
| 611 |
"Before Linux 5.12, this system call is available only if the kernel is " |
| 612 |
"configured with B<CONFIG_CHECKPOINT_RESTORE>, since the original purpose of " |
| 613 |
"the system call was for the checkpoint/restore in user space (CRIU) " |
| 614 |
"feature. (The alternative to this system call would have been to expose " |
| 615 |
"suitable process information via the B<proc>(5) filesystem; this was deemed " |
| 616 |
"to be unsuitable for security reasons.) Since Linux 5.12, this system call " |
| 617 |
"is also available if the kernel is configured with B<CONFIG_KCMP>." |
| 618 |
msgstr "" |
| 619 |
"Данный системный вызов доступен только, если ядро собрано с параметром " |
| 620 |
"B<CONFIG_CHECKPOINT_RESTORE>. Основное предназначение вызова — возможность " |
| 621 |
"засечки/восстановления в пользовательском пространстве (CRIU). Альтернативой " |
| 622 |
"этому системному вызову было бы выставление соответствующей информации о " |
| 623 |
"процессе в файловой системе B<proc>(5); такой вариант не пригоден по " |
| 624 |
"причинам безопасности." |
| 625 |
|
| 626 |
#. type: SH |
| 627 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 628 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 629 |
#, no-wrap |
| 630 |
msgid "NOTES" |
| 631 |
msgstr "ПРИМЕЧАНИЯ" |
| 632 |
|
| 633 |
#. type: Plain text |
| 634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 635 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 636 |
msgid "" |
| 637 |
"See B<clone>(2) for some background information on the shared resources " |
| 638 |
"referred to on this page." |
| 639 |
msgstr "Дополнительную информацию об общих ресурсах смотрите в B<clone>(2)." |
| 640 |
|
| 641 |
#. type: SH |
| 642 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 643 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 644 |
#, no-wrap |
| 645 |
msgid "EXAMPLES" |
| 646 |
msgstr "ПРИМЕРЫ" |
| 647 |
|
| 648 |
#. type: Plain text |
| 649 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 650 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 651 |
msgid "" |
| 652 |
"The program below uses B<kcmp>() to test whether pairs of file descriptors " |
| 653 |
"refer to the same open file description. The program tests different cases " |
| 654 |
"for the file descriptor pairs, as described in the program output. An " |
| 655 |
"example run of the program is as follows:" |
| 656 |
msgstr "" |
| 657 |
"Данная программа использует B<kcmp>() про проверки того, что пара файловых " |
| 658 |
"дескрипторов указывает на одно и тоже открытое файловое описание. Программа " |
| 659 |
"тестирует различные случаи для пар файловых дескрипторов, описанных в выводе " |
| 660 |
"программы. Пример работы программы:" |
| 661 |
|
| 662 |
#. type: Plain text |
| 663 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 664 |
#: opensuse-tumbleweed |
| 665 |
#, fuzzy, no-wrap |
| 666 |
#| msgid "" |
| 667 |
#| "PID of child of fork() is 1145\n" |
| 668 |
#| "\tCompare duplicate FDs from different processes:\n" |
| 669 |
#| "\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> same\n" |
| 670 |
#| "Child opened file on FD 4\n" |
| 671 |
#| "\tCompare FDs from distinct open()s in same process:\n" |
| 672 |
#| "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> different\n" |
| 673 |
#| "Child duplicated FD 3 to create FD 5\n" |
| 674 |
#| "\tCompare duplicated FDs in same process:\n" |
| 675 |
#| "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> same\n" |
| 676 |
msgid "" |
| 677 |
"$B< ./a.out>;\n" |
| 678 |
"Parent PID is 1144\n" |
| 679 |
"Parent opened file on FD 3\n" |
| 680 |
"\\&\n" |
| 681 |
"PID of child of fork() is 1145\n" |
| 682 |
"\tCompare duplicate FDs from different processes:\n" |
| 683 |
"\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> same\n" |
| 684 |
"Child opened file on FD 4\n" |
| 685 |
"\tCompare FDs from distinct open()s in same process:\n" |
| 686 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> different\n" |
| 687 |
"Child duplicated FD 3 to create FD 5\n" |
| 688 |
"\tCompare duplicated FDs in same process:\n" |
| 689 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> same\n" |
| 690 |
msgstr "" |
| 691 |
"PID потомка после fork() равен 1145\n" |
| 692 |
"\tСравнение дубликатов FD из других процессов:\n" |
| 693 |
"\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> одинаков\n" |
| 694 |
"Открытый потомком файл на FD 4\n" |
| 695 |
"\tСравнение FD из различных open() одного процесса:\n" |
| 696 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> отличается\n" |
| 697 |
"Дубликат FD 3 потомка для создания FD 5\n" |
| 698 |
"\tСравнение дубликатов FD одного процесса:\n" |
| 699 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> одинаков\n" |
| 700 |
|
| 701 |
#. type: SS |
| 702 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 703 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 704 |
#, no-wrap |
| 705 |
msgid "Program source" |
| 706 |
msgstr "Исходный код программы" |
| 707 |
|
| 708 |
#. type: Plain text |
| 709 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 710 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 711 |
#, no-wrap |
| 712 |
msgid "" |
| 713 |
"#define _GNU_SOURCE\n" |
| 714 |
"#include E<lt>err.hE<gt>\n" |
| 715 |
"#include E<lt>fcntl.hE<gt>\n" |
| 716 |
"#include E<lt>linux/kcmp.hE<gt>\n" |
| 717 |
"#include E<lt>stdint.hE<gt>\n" |
| 718 |
"#include E<lt>stdio.hE<gt>\n" |
| 719 |
"#include E<lt>stdlib.hE<gt>\n" |
| 720 |
"#include E<lt>sys/syscall.hE<gt>\n" |
| 721 |
"#include E<lt>sys/types.hE<gt>\n" |
| 722 |
"#include E<lt>sys/wait.hE<gt>\n" |
| 723 |
"#include E<lt>unistd.hE<gt>\n" |
| 724 |
"\\&\n" |
| 725 |
"static int\n" |
| 726 |
"kcmp(pid_t pid1, pid_t pid2, int type,\n" |
| 727 |
" unsigned long idx1, unsigned long idx2)\n" |
| 728 |
"{\n" |
| 729 |
" return syscall(SYS_kcmp, pid1, pid2, type, idx1, idx2);\n" |
| 730 |
"}\n" |
| 731 |
"\\&\n" |
| 732 |
"static void\n" |
| 733 |
"test_kcmp(char *msg, pid_t pid1, pid_t pid2, int fd_a, int fd_b)\n" |
| 734 |
"{\n" |
| 735 |
" printf(\"\\[rs]t%s\\[rs]n\", msg);\n" |
| 736 |
" printf(\"\\[rs]t\\[rs]tkcmp(%jd, %jd, KCMP_FILE, %d, %d) ==E<gt> %s\\[rs]n\",\n" |
| 737 |
" (intmax_t) pid1, (intmax_t) pid2, fd_a, fd_b,\n" |
| 738 |
" (kcmp(pid1, pid2, KCMP_FILE, fd_a, fd_b) == 0) ?\n" |
| 739 |
" \"same\" : \"different\");\n" |
| 740 |
"}\n" |
| 741 |
"\\&\n" |
| 742 |
"int\n" |
| 743 |
"main(void)\n" |
| 744 |
"{\n" |
| 745 |
" int fd1, fd2, fd3;\n" |
| 746 |
" static const char pathname[] = \"/tmp/kcmp.test\";\n" |
| 747 |
"\\&\n" |
| 748 |
" fd1 = open(pathname, O_CREAT | O_RDWR, 0600);\n" |
| 749 |
" if (fd1 == -1)\n" |
| 750 |
" err(EXIT_FAILURE, \"open\");\n" |
| 751 |
"\\&\n" |
| 752 |
" printf(\"Parent PID is %jd\\[rs]n\", (intmax_t) getpid());\n" |
| 753 |
" printf(\"Parent opened file on FD %d\\[rs]n\\[rs]n\", fd1);\n" |
| 754 |
"\\&\n" |
| 755 |
" switch (fork()) {\n" |
| 756 |
" case -1:\n" |
| 757 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 758 |
"\\&\n" |
| 759 |
" case 0:\n" |
| 760 |
" printf(\"PID of child of fork() is %jd\\[rs]n\", (intmax_t) getpid());\n" |
| 761 |
"\\&\n" |
| 762 |
" test_kcmp(\"Compare duplicate FDs from different processes:\",\n" |
| 763 |
" getpid(), getppid(), fd1, fd1);\n" |
| 764 |
"\\&\n" |
| 765 |
" fd2 = open(pathname, O_CREAT | O_RDWR, 0600);\n" |
| 766 |
" if (fd2 == -1)\n" |
| 767 |
" err(EXIT_FAILURE, \"open\");\n" |
| 768 |
" printf(\"Child opened file on FD %d\\[rs]n\", fd2);\n" |
| 769 |
"\\&\n" |
| 770 |
" test_kcmp(\"Compare FDs from distinct open()s in same process:\",\n" |
| 771 |
" getpid(), getpid(), fd1, fd2);\n" |
| 772 |
"\\&\n" |
| 773 |
" fd3 = dup(fd1);\n" |
| 774 |
" if (fd3 == -1)\n" |
| 775 |
" err(EXIT_FAILURE, \"dup\");\n" |
| 776 |
" printf(\"Child duplicated FD %d to create FD %d\\[rs]n\", fd1, fd3);\n" |
| 777 |
"\\&\n" |
| 778 |
" test_kcmp(\"Compare duplicated FDs in same process:\",\n" |
| 779 |
" getpid(), getpid(), fd1, fd3);\n" |
| 780 |
" break;\n" |
| 781 |
"\\&\n" |
| 782 |
" default:\n" |
| 783 |
" wait(NULL);\n" |
| 784 |
" }\n" |
| 785 |
"\\&\n" |
| 786 |
" exit(EXIT_SUCCESS);\n" |
| 787 |
"}\n" |
| 788 |
msgstr "" |
| 789 |
|
| 790 |
#. SRC END |
| 791 |
#. type: SH |
| 792 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 793 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 794 |
#, no-wrap |
| 795 |
msgid "SEE ALSO" |
| 796 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 797 |
|
| 798 |
#. type: Plain text |
| 799 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 800 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 801 |
msgid "B<clone>(2), B<unshare>(2)" |
| 802 |
msgstr "B<clone>(2), B<unshare>(2)" |
| 803 |
|
| 804 |
#. type: TH |
| 805 |
#: debian-trixie |
| 806 |
#, no-wrap |
| 807 |
msgid "2024-06-15" |
| 808 |
msgstr "15 июня 2024 г." |
| 809 |
|
| 810 |
#. type: TH |
| 811 |
#: debian-trixie |
| 812 |
#, no-wrap |
| 813 |
msgid "Linux man-pages 6.9.1" |
| 814 |
msgstr "Страницы руководства Linux 6.9.1" |
| 815 |
|
| 816 |
#. type: Plain text |
| 817 |
#: debian-trixie |
| 818 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 819 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 820 |
|
| 821 |
#. type: Plain text |
| 822 |
#: debian-trixie fedora-44 fedora-rawhide |
| 823 |
#, fuzzy, no-wrap |
| 824 |
#| msgid "" |
| 825 |
#| "PID of child of fork() is 1145\n" |
| 826 |
#| "\tCompare duplicate FDs from different processes:\n" |
| 827 |
#| "\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> same\n" |
| 828 |
#| "Child opened file on FD 4\n" |
| 829 |
#| "\tCompare FDs from distinct open()s in same process:\n" |
| 830 |
#| "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> different\n" |
| 831 |
#| "Child duplicated FD 3 to create FD 5\n" |
| 832 |
#| "\tCompare duplicated FDs in same process:\n" |
| 833 |
#| "\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> same\n" |
| 834 |
msgid "" |
| 835 |
"$ B<./a.out>\n" |
| 836 |
"Parent PID is 1144\n" |
| 837 |
"Parent opened file on FD 3\n" |
| 838 |
"\\&\n" |
| 839 |
"PID of child of fork() is 1145\n" |
| 840 |
"\tCompare duplicate FDs from different processes:\n" |
| 841 |
"\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> same\n" |
| 842 |
"Child opened file on FD 4\n" |
| 843 |
"\tCompare FDs from distinct open()s in same process:\n" |
| 844 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> different\n" |
| 845 |
"Child duplicated FD 3 to create FD 5\n" |
| 846 |
"\tCompare duplicated FDs in same process:\n" |
| 847 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> same\n" |
| 848 |
msgstr "" |
| 849 |
"PID потомка после fork() равен 1145\n" |
| 850 |
"\tСравнение дубликатов FD из других процессов:\n" |
| 851 |
"\t\tkcmp(1145, 1144, KCMP_FILE, 3, 3) ==E<gt> одинаков\n" |
| 852 |
"Открытый потомком файл на FD 4\n" |
| 853 |
"\tСравнение FD из различных open() одного процесса:\n" |
| 854 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 4) ==E<gt> отличается\n" |
| 855 |
"Дубликат FD 3 потомка для создания FD 5\n" |
| 856 |
"\tСравнение дубликатов FD одного процесса:\n" |
| 857 |
"\t\tkcmp(1145, 1145, KCMP_FILE, 3, 5) ==E<gt> одинаков\n" |
| 858 |
|
| 859 |
#. type: TH |
| 860 |
#: fedora-44 fedora-rawhide |
| 861 |
#, no-wrap |
| 862 |
msgid "2024-07-23" |
| 863 |
msgstr "23 июля 2024 г." |
| 864 |
|
| 865 |
#. type: TH |
| 866 |
#: fedora-44 fedora-rawhide |
| 867 |
#, no-wrap |
| 868 |
msgid "Linux man-pages 6.13" |
| 869 |
msgstr "Страницы руководства Linux 6.13" |
| 870 |
|
| 871 |
#. type: TH |
| 872 |
#: mageia-cauldron |
| 873 |
#, no-wrap |
| 874 |
msgid "Linux man-pages 6.17" |
| 875 |
msgstr "Страницы руководства Linux 6.17" |
| 876 |
|
| 877 |
#. type: TH |
| 878 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 879 |
#, no-wrap |
| 880 |
msgid "Linux man-pages (unreleased)" |
| 881 |
msgstr "Страницы руководства Linux (не выпущены)" |