| 1 |
# Russian translation of manpages |
| 2 |
# This file is distributed under the same license as the manpages-l10n package. |
| 3 |
# Copyright © of this file: |
| 4 |
# Azamat Hackimov <[email protected]>, 2012. |
| 5 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 6 |
# Иван Павлов <[email protected]>, 2017. |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: manpages-l10n\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:23+0200\n" |
| 11 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 12 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 13 |
"Language-Team: Russian <[email protected]>\n" |
| 14 |
"Language: ru\n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\n" |
| 18 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 19 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 20 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 21 |
"X-Generator: Lokalize 2.0\n" |
| 22 |
|
| 23 |
#. type: TH |
| 24 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 25 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 26 |
#, no-wrap |
| 27 |
msgid "eventfd" |
| 28 |
msgstr "eventfd" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 32 |
#, no-wrap |
| 33 |
msgid "2026-02-16" |
| 34 |
msgstr "16 февраля 2026 г." |
| 35 |
|
| 36 |
#. type: TH |
| 37 |
#: archlinux debian-unstable |
| 38 |
#, fuzzy, no-wrap |
| 39 |
#| msgid "Linux man-pages 6.17" |
| 40 |
msgid "Linux man-pages 6.18" |
| 41 |
msgstr "Справочные страницы Linux 6.17" |
| 42 |
|
| 43 |
#. type: SH |
| 44 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 45 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 46 |
#, no-wrap |
| 47 |
msgid "NAME" |
| 48 |
msgstr "НАИМЕНОВАНИЕ" |
| 49 |
|
| 50 |
#. type: Plain text |
| 51 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 52 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 53 |
msgid "eventfd - create a file descriptor for event notification" |
| 54 |
msgstr "eventfd - создаёт файловый дескриптор для уведомления о событиях" |
| 55 |
|
| 56 |
#. type: SH |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
#, no-wrap |
| 60 |
msgid "LIBRARY" |
| 61 |
msgstr "БИБЛИОТЕКА" |
| 62 |
|
| 63 |
#. type: Plain text |
| 64 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 65 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 66 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 67 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 68 |
|
| 69 |
#. type: SH |
| 70 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 71 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
#, no-wrap |
| 73 |
msgid "SYNOPSIS" |
| 74 |
msgstr "СИНТАКСИС" |
| 75 |
|
| 76 |
#. type: Plain text |
| 77 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 78 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 79 |
#, no-wrap |
| 80 |
msgid "B<#include E<lt>sys/eventfd.hE<gt>>\n" |
| 81 |
msgstr "B<#include E<lt>sys/eventfd.hE<gt>>\n" |
| 82 |
|
| 83 |
#. type: Plain text |
| 84 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 85 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 86 |
#, no-wrap |
| 87 |
msgid "B<int eventfd(unsigned int >I<initval>B<, int >I<flags>B<);>\n" |
| 88 |
msgstr "B<int eventfd(unsigned int >I<initval>B<, int >I<flags>B<);>\n" |
| 89 |
|
| 90 |
#. type: SH |
| 91 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 92 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 93 |
#, no-wrap |
| 94 |
msgid "DESCRIPTION" |
| 95 |
msgstr "ОПИСАНИЕ" |
| 96 |
|
| 97 |
#. type: Plain text |
| 98 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 99 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 100 |
msgid "" |
| 101 |
"B<eventfd>() creates an \"eventfd object\" that can be used as an event " |
| 102 |
"wait/notify mechanism by user-space applications, and by the kernel to " |
| 103 |
"notify user-space applications of events. The object contains an unsigned " |
| 104 |
"64-bit integer (I<uint64_t>) counter that is maintained by the kernel. " |
| 105 |
"This counter is initialized with the value specified in the argument " |
| 106 |
"I<initval>." |
| 107 |
msgstr "" |
| 108 |
"Вызов B<eventfd>() создаёт «объект eventfd», который можно использовать в " |
| 109 |
"качестве механизма ожидания/уведомления о событиях в приложениях " |
| 110 |
"пространства пользователя и ядра. Объект содержит беззнаковое 64-битный " |
| 111 |
"(I<uint64_t>) счётчик, обслуживаемый ядром. Этот счётчик инициализируется " |
| 112 |
"значением, указанным в аргументе I<initval>." |
| 113 |
|
| 114 |
#. type: Plain text |
| 115 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 116 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 117 |
msgid "" |
| 118 |
"As its return value, B<eventfd>() returns a new file descriptor that can be " |
| 119 |
"used to refer to the eventfd object." |
| 120 |
msgstr "" |
| 121 |
"При завершении работы B<eventfd>() возвращает новый файловый дескриптор, " |
| 122 |
"который можно использовать для ссылки на объект eventfd." |
| 123 |
|
| 124 |
#. type: Plain text |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
msgid "" |
| 128 |
"The following values may be bitwise ORed in I<flags> to change the behavior " |
| 129 |
"of B<eventfd>():" |
| 130 |
msgstr "" |
| 131 |
"Для изменения поведения B<eventfd>() можно использовать следующие значения " |
| 132 |
"I<flags> (через OR):" |
| 133 |
|
| 134 |
#. type: TP |
| 135 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 136 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 137 |
#, no-wrap |
| 138 |
msgid "B<EFD_CLOEXEC> (since Linux 2.6.27)" |
| 139 |
msgstr "B<EFD_CLOEXEC> (начиная с Linux 2.6.27)" |
| 140 |
|
| 141 |
#. type: Plain text |
| 142 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 143 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 144 |
msgid "" |
| 145 |
"Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See " |
| 146 |
"the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this " |
| 147 |
"may be useful." |
| 148 |
msgstr "" |
| 149 |
"Устанавливает флаг close-on-exec (B<FD_CLOEXEC>) для нового открытого " |
| 150 |
"файлового дескриптора. Смотрите описание флага B<O_CLOEXEC> в B<open>(2) для " |
| 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<EFD_NONBLOCK> (since Linux 2.6.27)" |
| 158 |
msgstr "B<EFD_NONBLOCK> (начиная с Linux 2.6.27)" |
| 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 |
"Set the B<O_NONBLOCK> file status flag on the open file description (see " |
| 165 |
"B<open>(2)) referred to by the new file descriptor. Using this flag saves " |
| 166 |
"extra calls to B<fcntl>(2) to achieve the same result." |
| 167 |
msgstr "" |
| 168 |
"Устанавливает флаг состояния файла B<O_NONBLOCK> для нового открытого " |
| 169 |
"файлового описания (смотрите B<open>(2)), на которое ссылается новый " |
| 170 |
"файловый дескриптор. Использование данного флага делает ненужными " |
| 171 |
"дополнительные вызовы B<fcntl>(2) для достижения того же результата." |
| 172 |
|
| 173 |
#. type: TP |
| 174 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 175 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 176 |
#, no-wrap |
| 177 |
msgid "B<EFD_SEMAPHORE> (since Linux 2.6.30)" |
| 178 |
msgstr "B<EFD_SEMAPHORE> (начиная с Linux 2.6.30)" |
| 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 |
msgid "" |
| 184 |
"Provide semaphore-like semantics for reads from the new file descriptor. " |
| 185 |
"See below." |
| 186 |
msgstr "" |
| 187 |
"Предоставляет семафоро-подобную семантику для чтения из нового файлового " |
| 188 |
"дескриптора. Смотрите ниже." |
| 189 |
|
| 190 |
#. type: Plain text |
| 191 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 192 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 193 |
msgid "" |
| 194 |
"Up to Linux 2.6.26, the I<flags> argument is unused, and must be specified " |
| 195 |
"as zero." |
| 196 |
msgstr "" |
| 197 |
"До Linux 2.6.26 аргумент I<flags> не используется и должен быть указан как " |
| 198 |
"ноль." |
| 199 |
|
| 200 |
#. type: Plain text |
| 201 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 202 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 203 |
msgid "" |
| 204 |
"The following operations can be performed on the file descriptor returned by " |
| 205 |
"B<eventfd>():" |
| 206 |
msgstr "" |
| 207 |
"Следующие операции могут выполняться над полученным файловым дескриптором " |
| 208 |
"B<eventfd>():" |
| 209 |
|
| 210 |
#. type: TP |
| 211 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 212 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 213 |
#, no-wrap |
| 214 |
msgid "B<read>(2)" |
| 215 |
msgstr "B<read>(2)" |
| 216 |
|
| 217 |
#. type: Plain text |
| 218 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 219 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 220 |
msgid "" |
| 221 |
"Each successful B<read>(2) returns an 8-byte integer. A B<read>(2) fails " |
| 222 |
"with the error B<EINVAL> if the size of the supplied buffer is less than 8 " |
| 223 |
"bytes." |
| 224 |
msgstr "" |
| 225 |
"Каждый завершившийся без ошибок вызов B<read>(2) возвращает 8-байтное целое. " |
| 226 |
"Вызов B<read>(2) завершается с ошибкой B<EINVAL>, если размер указанного " |
| 227 |
"буфера меньше 8 байт." |
| 228 |
|
| 229 |
#. type: Plain text |
| 230 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 231 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 232 |
#, fuzzy |
| 233 |
#| msgid "" |
| 234 |
#| "The value returned by B<read>(2) is in host byte order\\(emthat is, the " |
| 235 |
#| "native byte order for integers on the host machine." |
| 236 |
msgid "" |
| 237 |
"The value returned by B<read>(2) is in host byte order\\[em]that is, the " |
| 238 |
"native byte order for integers on the host machine." |
| 239 |
msgstr "" |
| 240 |
"Возвращаемое B<read>(2) значение имеет порядок байт узла, т. е., " |
| 241 |
"используемый порядок байт для целых на машине узла." |
| 242 |
|
| 243 |
#. type: Plain text |
| 244 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 245 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 246 |
msgid "" |
| 247 |
"The semantics of B<read>(2) depend on whether the eventfd counter currently " |
| 248 |
"has a nonzero value and whether the B<EFD_SEMAPHORE> flag was specified when " |
| 249 |
"creating the eventfd file descriptor:" |
| 250 |
msgstr "" |
| 251 |
"Семантика B<read>(2) зависит от значения счётчика eventfd — равно оно нулю " |
| 252 |
"или нет, и был ли указан флаг B<EFD_SEMAPHORE> при создании файлового " |
| 253 |
"дескриптора eventfd:" |
| 254 |
|
| 255 |
#. type: IP |
| 256 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 257 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 258 |
#, no-wrap |
| 259 |
msgid "\\[bu]" |
| 260 |
msgstr "\\[bu]" |
| 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 "" |
| 266 |
"If B<EFD_SEMAPHORE> was not specified and the eventfd counter has a nonzero " |
| 267 |
"value, then a B<read>(2) returns 8 bytes containing that value, and the " |
| 268 |
"counter's value is reset to zero." |
| 269 |
msgstr "" |
| 270 |
"Если флаг B<EFD_SEMAPHORE> не указан и счётчик eventfd не равен нулю, то " |
| 271 |
"B<read>(2) возвращает 8 байт с его значением и значение счётчика " |
| 272 |
"сбрасывается в ноль." |
| 273 |
|
| 274 |
#. type: Plain text |
| 275 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 276 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 277 |
msgid "" |
| 278 |
"If B<EFD_SEMAPHORE> was specified and the eventfd counter has a nonzero " |
| 279 |
"value, then a B<read>(2) returns 8 bytes containing the value 1, and the " |
| 280 |
"counter's value is decremented by 1." |
| 281 |
msgstr "" |
| 282 |
"Если флаг B<EFD_SEMAPHORE> задан указан и счётчик eventfd не равен нулю, то " |
| 283 |
"B<read>(2) возвращает 8 байт, содержащие значение 1, и значение счётчика " |
| 284 |
"уменьшается на 1." |
| 285 |
|
| 286 |
#. type: Plain text |
| 287 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 288 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 289 |
msgid "" |
| 290 |
"If the eventfd counter is zero at the time of the call to B<read>(2), then " |
| 291 |
"the call either blocks until the counter becomes nonzero (at which time, the " |
| 292 |
"B<read>(2) proceeds as described above) or fails with the error B<EAGAIN> " |
| 293 |
"if the file descriptor has been made nonblocking." |
| 294 |
msgstr "" |
| 295 |
"Если счётчик eventfd равен нулю во время вызова B<read>(2), то вызов " |
| 296 |
"блокируется до тех пор, пока счётчик станет не равным нулю (время работы " |
| 297 |
"B<read>(2) описано выше) или завершается с ошибкой B<EAGAIN>, если файловый " |
| 298 |
"дескриптор создан неблокируемым." |
| 299 |
|
| 300 |
#. type: TP |
| 301 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 302 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 303 |
#, no-wrap |
| 304 |
msgid "B<write>(2)" |
| 305 |
msgstr "B<write>(2)" |
| 306 |
|
| 307 |
#. type: Plain text |
| 308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 310 |
msgid "" |
| 311 |
"A B<write>(2) call adds the 8-byte integer value supplied in its buffer to " |
| 312 |
"the counter. The maximum value that may be stored in the counter is the " |
| 313 |
"largest unsigned 64-bit value minus 1 (i.e., 0xfffffffffffffffe). If the " |
| 314 |
"addition would cause the counter's value to exceed the maximum, then the " |
| 315 |
"B<write>(2) either blocks until a B<read>(2) is performed on the file " |
| 316 |
"descriptor, or fails with the error B<EAGAIN> if the file descriptor has " |
| 317 |
"been made nonblocking." |
| 318 |
msgstr "" |
| 319 |
"При вызове B<write>(2) из его буфера к счётчику добавляется 8-байтовое целое " |
| 320 |
"значение. Максимальное значение, которое может храниться в счётчике, равно " |
| 321 |
"наибольшему 64-битному беззнаковому значению минус 1 (т.е., " |
| 322 |
"0xfffffffffffffffe). Если при добавлении значение счётчика превысит " |
| 323 |
"максимум, то B<write>(2) заблокируется до тех пор, пока для файлового " |
| 324 |
"дескриптора не будет выполнен вызов B<read>(2), или завершится с ошибкой " |
| 325 |
"B<EAGAIN>, если файловый дескриптор создан неблокируемым." |
| 326 |
|
| 327 |
#. type: Plain text |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
msgid "" |
| 331 |
"A B<write>(2) fails with the error B<EINVAL> if the size of the supplied " |
| 332 |
"buffer is less than 8 bytes, or if an attempt is made to write the value " |
| 333 |
"0xffffffffffffffff." |
| 334 |
msgstr "" |
| 335 |
"Вызов B<write>(2) завершается с ошибкой B<EINVAL>, если размер указанного " |
| 336 |
"буфера меньше 8 байт, или если попытаться записать значение " |
| 337 |
"0xffffffffffffffff." |
| 338 |
|
| 339 |
#. type: TP |
| 340 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 341 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 342 |
#, no-wrap |
| 343 |
msgid "B<poll>(2)" |
| 344 |
msgstr "B<poll>(2)" |
| 345 |
|
| 346 |
#. type: TQ |
| 347 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 348 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 349 |
#, no-wrap |
| 350 |
msgid "B<select>(2)" |
| 351 |
msgstr "B<select>(2)" |
| 352 |
|
| 353 |
#. type: TQ |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "(and similar)" |
| 358 |
msgstr "(и подобные)" |
| 359 |
|
| 360 |
#. type: Plain text |
| 361 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 362 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 363 |
msgid "" |
| 364 |
"The returned file descriptor supports B<poll>(2) (and analogously " |
| 365 |
"B<epoll>(7)) and B<select>(2), as follows:" |
| 366 |
msgstr "" |
| 367 |
"Возвращённый файловый дескриптор поддерживает B<poll>(2) (и, аналогично, " |
| 368 |
"B<epoll>(7)) и B<select>(2) следующим образом:" |
| 369 |
|
| 370 |
#. type: Plain text |
| 371 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 372 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 373 |
msgid "" |
| 374 |
"The file descriptor is readable (the B<select>(2) I<readfds> argument; the " |
| 375 |
"B<poll>(2) B<POLLIN> flag) if the counter has a value greater than 0." |
| 376 |
msgstr "" |
| 377 |
"Файловый дескриптор доступен для чтения (в B<select>(2) аргумент I<readfds>; " |
| 378 |
"в B<poll>(2) флаг B<POLLIN>), если счётчик больше 0." |
| 379 |
|
| 380 |
#. type: Plain text |
| 381 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 382 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 383 |
msgid "" |
| 384 |
"The file descriptor is writable (the B<select>(2) I<writefds> argument; the " |
| 385 |
"B<poll>(2) B<POLLOUT> flag) if it is possible to write a value of at least " |
| 386 |
"\"1\" without blocking." |
| 387 |
msgstr "" |
| 388 |
"Файловый дескриптор доступен для записи (в B<select>(2) аргумент " |
| 389 |
"I<writefds>; в B<poll>(2) флаг B<POLLOUT>), если можно записать значение " |
| 390 |
"равное, как минимум, \"1\" без блокировки." |
| 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 |
#, fuzzy |
| 396 |
#| msgid "" |
| 397 |
#| "If an overflow of the counter value was detected, then B<select>(2) " |
| 398 |
#| "indicates the file descriptor as being both readable and writable, and " |
| 399 |
#| "B<poll>(2) returns a B<POLLERR> event. As noted above, B<write>(2) can " |
| 400 |
#| "never overflow the counter. However an overflow can occur if 2^64 " |
| 401 |
#| "eventfd \"signal posts\" were performed by the KAIO subsystem " |
| 402 |
#| "(theoretically possible, but practically unlikely). If an overflow has " |
| 403 |
#| "occurred, then B<read>(2) will return that maximum I<uint64_t> value " |
| 404 |
#| "(i.e., 0xffffffffffffffff)." |
| 405 |
msgid "" |
| 406 |
"If an overflow of the counter value was detected, then B<select>(2) " |
| 407 |
"indicates the file descriptor as being both readable and writable, and " |
| 408 |
"B<poll>(2) returns a B<POLLERR> event. As noted above, B<write>(2) can " |
| 409 |
"never overflow the counter. However an overflow can occur if 2\\[ha]64 " |
| 410 |
"eventfd \"signal posts\" were performed by the KAIO subsystem (theoretically " |
| 411 |
"possible, but practically unlikely). If an overflow has occurred, then " |
| 412 |
"B<read>(2) will return that maximum I<uint64_t> value (i.e., " |
| 413 |
"0xffffffffffffffff)." |
| 414 |
msgstr "" |
| 415 |
"Если обнаружено переполнение счётчика, то B<select>(2) указывает на файловый " |
| 416 |
"дескриптор, доступный на чтение и запись, и B<poll>(2) возвращает событие " |
| 417 |
"B<POLLERR>. Как упоминалось ранее, B<write>(2) никогда не может вызвать " |
| 418 |
"переполнение счётчика. Однако переполнение может произойти, если подсистемой " |
| 419 |
"KAIO выполнится (возможно теоретически) 2^64 \"передач сигналов\" eventfd. " |
| 420 |
"Если переполнение произошло, то B<read>(2) вернёт максимальное значение типа " |
| 421 |
"I<uint64_t> (т.е., 0xffffffffffffffff)." |
| 422 |
|
| 423 |
#. type: Plain text |
| 424 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 425 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 426 |
msgid "" |
| 427 |
"The eventfd file descriptor also supports the other file-descriptor " |
| 428 |
"multiplexing APIs: B<pselect>(2) and B<ppoll>(2)." |
| 429 |
msgstr "" |
| 430 |
"Файловый дескриптор eventfd также поддерживает другие мультиплексные " |
| 431 |
"программные интерфейсы: B<pselect>(2) и B<ppoll>(2)." |
| 432 |
|
| 433 |
#. type: TP |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
#, no-wrap |
| 437 |
msgid "B<close>(2)" |
| 438 |
msgstr "B<close>(2)" |
| 439 |
|
| 440 |
#. type: Plain text |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
msgid "" |
| 444 |
"When the file descriptor is no longer required it should be closed. When " |
| 445 |
"all file descriptors associated with the same eventfd object have been " |
| 446 |
"closed, the resources for object are freed by the kernel." |
| 447 |
msgstr "" |
| 448 |
"Если файловый дескриптор больше не требуется, его нужно закрыть. Когда все " |
| 449 |
"файловые дескрипторы, связанные с одним объектом eventfd, будут закрыты, " |
| 450 |
"ядро освобождает ресурсы объекта." |
| 451 |
|
| 452 |
#. type: Plain text |
| 453 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 454 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 455 |
msgid "" |
| 456 |
"A copy of the file descriptor created by B<eventfd>() is inherited by the " |
| 457 |
"child produced by B<fork>(2). The duplicate file descriptor is associated " |
| 458 |
"with the same eventfd object. File descriptors created by B<eventfd>() are " |
| 459 |
"preserved across B<execve>(2), unless the close-on-exec flag has been set." |
| 460 |
msgstr "" |
| 461 |
"Копия файлового дескриптора, созданного B<eventfd>(), наследуется потомком, " |
| 462 |
"созданным с помощью B<fork>(2). Копия файлового дескриптора связывается с " |
| 463 |
"тем же объектом eventfd. Файловые дескрипторы, созданные B<eventfd>(), " |
| 464 |
"сохраняются при вызове B<execve>(2), если не указан флаг close-on-exec." |
| 465 |
|
| 466 |
#. type: SH |
| 467 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 468 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 469 |
#, no-wrap |
| 470 |
msgid "RETURN VALUE" |
| 471 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 472 |
|
| 473 |
#. type: Plain text |
| 474 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 475 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 476 |
msgid "" |
| 477 |
"On success, B<eventfd>() returns a new eventfd file descriptor. On error, " |
| 478 |
"-1 is returned and I<errno> is set to indicate the error." |
| 479 |
msgstr "" |
| 480 |
"При успешном выполнении B<eventfd>() возвращает новый файловый дескриптор " |
| 481 |
"eventfd. При ошибке возвращается -1, и I<errno> устанавливается в " |
| 482 |
"соответствующее значение." |
| 483 |
|
| 484 |
#. type: SH |
| 485 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 486 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 487 |
#, no-wrap |
| 488 |
msgid "ERRORS" |
| 489 |
msgstr "ОШИБКИ" |
| 490 |
|
| 491 |
#. type: TP |
| 492 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 493 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 494 |
#, no-wrap |
| 495 |
msgid "B<EINVAL>" |
| 496 |
msgstr "B<EINVAL>" |
| 497 |
|
| 498 |
#. type: Plain text |
| 499 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 500 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 501 |
msgid "An unsupported value was specified in I<flags>." |
| 502 |
msgstr "В I<flags> указано неподдерживаемое значение." |
| 503 |
|
| 504 |
#. type: TP |
| 505 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 506 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 507 |
#, no-wrap |
| 508 |
msgid "B<EMFILE>" |
| 509 |
msgstr "B<EMFILE>" |
| 510 |
|
| 511 |
#. type: Plain text |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
msgid "" |
| 515 |
"The per-process limit on the number of open file descriptors has been " |
| 516 |
"reached." |
| 517 |
msgstr "" |
| 518 |
"Было достигнуто ограничение по количеству открытых файловых дескрипторов на " |
| 519 |
"процесс." |
| 520 |
|
| 521 |
#. type: TP |
| 522 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 523 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 524 |
#, no-wrap |
| 525 |
msgid "B<ENFILE>" |
| 526 |
msgstr "B<ENFILE>" |
| 527 |
|
| 528 |
#. type: Plain text |
| 529 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 530 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 531 |
msgid "" |
| 532 |
"The system-wide limit on the total number of open files has been reached." |
| 533 |
msgstr "Достигнуто максимальное количество открытых файлов в системе." |
| 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<ENODEV>" |
| 540 |
msgstr "B<ENODEV>" |
| 541 |
|
| 542 |
#. #-#-#-#-# archlinux: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 543 |
#. Note from Davide: |
| 544 |
#. The ENODEV error is basically never going to happen if |
| 545 |
#. the kernel boots correctly. That error happen only if during |
| 546 |
#. the kernel initialization, some error occur in the anonymous |
| 547 |
#. inode source initialization. |
| 548 |
#. type: Plain text |
| 549 |
#. #-#-#-#-# debian-trixie: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 550 |
#. Note from Davide: |
| 551 |
#. The ENODEV error is basically never going to happen if |
| 552 |
#. the kernel boots correctly. That error happen only if during |
| 553 |
#. the kernel initialization, some error occur in the anonymous |
| 554 |
#. inode source initialization. |
| 555 |
#. type: Plain text |
| 556 |
#. #-#-#-#-# debian-unstable: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 557 |
#. Note from Davide: |
| 558 |
#. The ENODEV error is basically never going to happen if |
| 559 |
#. the kernel boots correctly. That error happen only if during |
| 560 |
#. the kernel initialization, some error occur in the anonymous |
| 561 |
#. inode source initialization. |
| 562 |
#. type: Plain text |
| 563 |
#. #-#-#-#-# fedora-44: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 564 |
#. Note from Davide: |
| 565 |
#. The ENODEV error is basically never going to happen if |
| 566 |
#. the kernel boots correctly. That error happen only if during |
| 567 |
#. the kernel initialization, some error occur in the anonymous |
| 568 |
#. inode source initialization. |
| 569 |
#. type: Plain text |
| 570 |
#. #-#-#-#-# fedora-rawhide: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 571 |
#. Note from Davide: |
| 572 |
#. The ENODEV error is basically never going to happen if |
| 573 |
#. the kernel boots correctly. That error happen only if during |
| 574 |
#. the kernel initialization, some error occur in the anonymous |
| 575 |
#. inode source initialization. |
| 576 |
#. type: Plain text |
| 577 |
#. #-#-#-#-# mageia-cauldron: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 578 |
#. Note from Davide: |
| 579 |
#. The ENODEV error is basically never going to happen if |
| 580 |
#. the kernel boots correctly. That error happen only if during |
| 581 |
#. the kernel initialization, some error occur in the anonymous |
| 582 |
#. inode source initialization. |
| 583 |
#. type: Plain text |
| 584 |
#. #-#-#-#-# opensuse-leap-16-1: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 585 |
#. Note from Davide: |
| 586 |
#. The ENODEV error is basically never going to happen if |
| 587 |
#. the kernel boots correctly. That error happen only if during |
| 588 |
#. the kernel initialization, some error occur in the anonymous |
| 589 |
#. inode source initialization. |
| 590 |
#. type: Plain text |
| 591 |
#. #-#-#-#-# opensuse-tumbleweed: eventfd.2.pot (PACKAGE VERSION) #-#-#-#-# |
| 592 |
#. Note from Davide: |
| 593 |
#. The ENODEV error is basically never going to happen if |
| 594 |
#. the kernel boots correctly. That error happen only if during |
| 595 |
#. the kernel initialization, some error occur in the anonymous |
| 596 |
#. inode source initialization. |
| 597 |
#. type: Plain text |
| 598 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 599 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 600 |
msgid "Could not mount (internal) anonymous inode device." |
| 601 |
msgstr "Не удалось смонтировать (внутреннее) безымянное устройство inode." |
| 602 |
|
| 603 |
#. type: TP |
| 604 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 605 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 606 |
#, no-wrap |
| 607 |
msgid "B<ENOMEM>" |
| 608 |
msgstr "B<ENOMEM>" |
| 609 |
|
| 610 |
#. type: Plain text |
| 611 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 612 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 613 |
msgid "There was insufficient memory to create a new eventfd file descriptor." |
| 614 |
msgstr "Недостаточно памяти для создания нового файлового дескриптора eventfd." |
| 615 |
|
| 616 |
#. type: SH |
| 617 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 618 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 619 |
#, no-wrap |
| 620 |
msgid "ATTRIBUTES" |
| 621 |
msgstr "АТРИБУТЫ" |
| 622 |
|
| 623 |
#. type: Plain text |
| 624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 625 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 626 |
msgid "" |
| 627 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 628 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 629 |
|
| 630 |
#. type: tbl table |
| 631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 632 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 633 |
#, no-wrap |
| 634 |
msgid "Interface" |
| 635 |
msgstr "Интерфейс" |
| 636 |
|
| 637 |
#. type: tbl table |
| 638 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 639 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 640 |
#, no-wrap |
| 641 |
msgid "Attribute" |
| 642 |
msgstr "Атрибут" |
| 643 |
|
| 644 |
#. type: tbl table |
| 645 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 646 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 647 |
#, no-wrap |
| 648 |
msgid "Value" |
| 649 |
msgstr "Значение" |
| 650 |
|
| 651 |
#. type: tbl table |
| 652 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 653 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 654 |
#, no-wrap |
| 655 |
msgid ".na\n" |
| 656 |
msgstr ".na\n" |
| 657 |
|
| 658 |
#. type: tbl table |
| 659 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 660 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 661 |
#, no-wrap |
| 662 |
msgid ".nh\n" |
| 663 |
msgstr ".nh\n" |
| 664 |
|
| 665 |
#. type: TP |
| 666 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 667 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 668 |
#, no-wrap |
| 669 |
msgid "B<eventfd>()" |
| 670 |
msgstr "B<eventfd>()" |
| 671 |
|
| 672 |
#. type: tbl table |
| 673 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 674 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 675 |
#, no-wrap |
| 676 |
msgid "Thread safety" |
| 677 |
msgstr "Безвредность в нитях" |
| 678 |
|
| 679 |
#. type: tbl table |
| 680 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 681 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 682 |
#, no-wrap |
| 683 |
msgid "MT-Safe" |
| 684 |
msgstr "MT-Safe" |
| 685 |
|
| 686 |
#. type: SH |
| 687 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 688 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 689 |
#, no-wrap |
| 690 |
msgid "VERSIONS" |
| 691 |
msgstr "ВЕРСИИ" |
| 692 |
|
| 693 |
#. type: SS |
| 694 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 695 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 696 |
#, no-wrap |
| 697 |
msgid "C library/kernel differences" |
| 698 |
msgstr "Отличия между библиотекой C и ядром" |
| 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 |
msgid "" |
| 704 |
"There are two underlying Linux system calls: B<eventfd>() and the more " |
| 705 |
"recent B<eventfd2>(). The former system call does not implement a I<flags> " |
| 706 |
"argument. The latter system call implements the I<flags> values described " |
| 707 |
"above. The glibc wrapper function will use B<eventfd2>() where it is " |
| 708 |
"available." |
| 709 |
msgstr "" |
| 710 |
"Основу составляют два системных вызова Linux: B<eventfd>() и более новый " |
| 711 |
"B<eventfd2>(). В первом системном вызове не реализован аргумент I<flags>. " |
| 712 |
"Последний системный вызов использует значения I<flags>, которые были описаны " |
| 713 |
"ранее. Обёрточная функция glibc использует B<eventfd2>(), если он доступен." |
| 714 |
|
| 715 |
#. type: SS |
| 716 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 717 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 718 |
#, no-wrap |
| 719 |
msgid "Additional glibc features" |
| 720 |
msgstr "Дополнительные возможности glibc" |
| 721 |
|
| 722 |
#. type: Plain text |
| 723 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 724 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 725 |
msgid "" |
| 726 |
"The GNU C library defines an additional type, and two functions that attempt " |
| 727 |
"to abstract some of the details of reading and writing on an eventfd file " |
| 728 |
"descriptor:" |
| 729 |
msgstr "" |
| 730 |
"В библиотеке GNU C определён дополнительный тип и две функции, которые " |
| 731 |
"пытаются устранить сложности чтения и записи из файлового дескриптора " |
| 732 |
"eventfd:" |
| 733 |
|
| 734 |
#. type: Plain text |
| 735 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 736 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 737 |
#, no-wrap |
| 738 |
msgid "" |
| 739 |
"typedef uint64_t eventfd_t;\n" |
| 740 |
"\\&\n" |
| 741 |
"int eventfd_read(int fd, eventfd_t *value);\n" |
| 742 |
"int eventfd_write(int fd, eventfd_t value);\n" |
| 743 |
msgstr "" |
| 744 |
"typedef uint64_t eventfd_t;\n" |
| 745 |
"\\&\n" |
| 746 |
"int eventfd_read(int fd, eventfd_t *value);\n" |
| 747 |
"int eventfd_write(int fd, eventfd_t value);\n" |
| 748 |
|
| 749 |
#. type: Plain text |
| 750 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 751 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 752 |
msgid "" |
| 753 |
"The functions perform the read and write operations on an eventfd file " |
| 754 |
"descriptor, returning 0 if the correct number of bytes was transferred, or " |
| 755 |
"-1 otherwise." |
| 756 |
msgstr "" |
| 757 |
"Функции выполняют операции чтения и записи из файлового дескриптора eventfd, " |
| 758 |
"и возвращают 0, если передано правильное количество байт и -1 в противном " |
| 759 |
"случае." |
| 760 |
|
| 761 |
#. type: SH |
| 762 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 763 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 764 |
#, no-wrap |
| 765 |
msgid "STANDARDS" |
| 766 |
msgstr "СТАНДАРТЫ" |
| 767 |
|
| 768 |
#. type: Plain text |
| 769 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 770 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 771 |
msgid "Linux, GNU." |
| 772 |
msgstr "Linux, GNU." |
| 773 |
|
| 774 |
#. type: SH |
| 775 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 776 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 777 |
#, no-wrap |
| 778 |
msgid "HISTORY" |
| 779 |
msgstr "ИСТОРИЯ" |
| 780 |
|
| 781 |
#. eventfd() is in glibc 2.7, but reportedly does not build |
| 782 |
#. type: Plain text |
| 783 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 784 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 785 |
msgid "Linux 2.6.22, glibc 2.8." |
| 786 |
msgstr "Linux 2.6.22, glibc 2.8." |
| 787 |
|
| 788 |
#. type: TP |
| 789 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 790 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 791 |
#, no-wrap |
| 792 |
msgid "B<eventfd2>()" |
| 793 |
msgstr "B<eventfd2>()" |
| 794 |
|
| 795 |
#. type: Plain text |
| 796 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 797 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 798 |
#, fuzzy |
| 799 |
#| msgid "" |
| 800 |
#| "B<eventfd>() is available on Linux since kernel 2.6.22. Working support " |
| 801 |
#| "is provided in glibc since version 2.8. The B<eventfd2>() system call " |
| 802 |
#| "(see NOTES) is available on Linux since kernel 2.6.27. Since version " |
| 803 |
#| "2.9, the glibc B<eventfd>() wrapper will employ the B<eventfd2>() " |
| 804 |
#| "system call, if it is supported by the kernel." |
| 805 |
msgid "" |
| 806 |
"Linux 2.6.27 (see VERSIONS). Since glibc 2.9, the B<eventfd>() wrapper " |
| 807 |
"will employ the B<eventfd2>() system call, if it is supported by the kernel." |
| 808 |
msgstr "" |
| 809 |
"Вызов B<eventfd>() доступен в Linux начиная с ядра 2.6.22. Поддержка в glibc " |
| 810 |
"появилась в версии 2.8. Системный вызов B<eventfd2>() (см. ЗАМЕЧАНИЯ) " |
| 811 |
"доступен в Linux начиная с ядра 2.6.27. В glibc версии 2.9 в обёртке " |
| 812 |
"B<eventfd>() используется системный вызов B<eventfd2>(), если он " |
| 813 |
"поддерживается ядром." |
| 814 |
|
| 815 |
#. type: SH |
| 816 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 817 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 818 |
#, no-wrap |
| 819 |
msgid "NOTES" |
| 820 |
msgstr "ПРИМЕЧАНИЯ" |
| 821 |
|
| 822 |
#. type: Plain text |
| 823 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 824 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 825 |
msgid "" |
| 826 |
"Applications can use an eventfd file descriptor instead of a pipe (see " |
| 827 |
"B<pipe>(2)) in all cases where a pipe is used simply to signal events. The " |
| 828 |
"kernel overhead of an eventfd file descriptor is much lower than that of a " |
| 829 |
"pipe, and only one file descriptor is required (versus the two required for " |
| 830 |
"a pipe)." |
| 831 |
msgstr "" |
| 832 |
"Приложения могут использовать файловый дескриптор eventfd вместо канала (см. " |
| 833 |
"B<pipe>(2)) во всех случаях, когда канал используется только для " |
| 834 |
"сигнализации о событиях. Издержки ядра по файловому дескриптору eventfd " |
| 835 |
"намного меньше, чем по каналу и требуется только один файловый дескриптор " |
| 836 |
"(против двух, при использовании канала)." |
| 837 |
|
| 838 |
#. or eventually syslets/threadlets |
| 839 |
#. type: Plain text |
| 840 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 841 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 842 |
msgid "" |
| 843 |
"When used in the kernel, an eventfd file descriptor can provide a bridge " |
| 844 |
"from kernel to user space, allowing, for example, functionalities like KAIO " |
| 845 |
"(kernel AIO) to signal to a file descriptor that some operation is complete." |
| 846 |
msgstr "" |
| 847 |
"При использовании в ядре файловый дескриптор eventfd может предоставлять " |
| 848 |
"мост из ядерного в пользовательское пространство, позволяя например " |
| 849 |
"работать, подобно KAIO ( ядерный AIO), сигнализируя, что завершена какая-то " |
| 850 |
"операция над файловым дескриптором." |
| 851 |
|
| 852 |
#. type: Plain text |
| 853 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 854 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 855 |
msgid "" |
| 856 |
"A key point about an eventfd file descriptor is that it can be monitored " |
| 857 |
"just like any other file descriptor using B<select>(2), B<poll>(2), or " |
| 858 |
"B<epoll>(7). This means that an application can simultaneously monitor the " |
| 859 |
"readiness of \"traditional\" files and the readiness of other kernel " |
| 860 |
"mechanisms that support the eventfd interface. (Without the B<eventfd>() " |
| 861 |
"interface, these mechanisms could not be multiplexed via B<select>(2), " |
| 862 |
"B<poll>(2), or B<epoll>(7).)" |
| 863 |
msgstr "" |
| 864 |
"Важным моментом файлового дескриптора eventfd является то, что за ним можно " |
| 865 |
"следить как за обычным файловым дескриптором с помощью B<select>(2), " |
| 866 |
"B<poll>(2) или B<epoll>(7). Это означает, что приложение может одновременно " |
| 867 |
"отслеживать готовность \"обычных\" файлов и готовность других механизмов " |
| 868 |
"ядра, которые поддерживают интерфейс eventfd. (Без интерфейса B<eventfd>() " |
| 869 |
"эти механизмы невозможно мультиплексировать через B<select>(2), B<poll>(2) " |
| 870 |
"или B<epoll>(7).)" |
| 871 |
|
| 872 |
#. type: Plain text |
| 873 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 874 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 875 |
msgid "" |
| 876 |
"The current value of an eventfd counter can be viewed via the entry for the " |
| 877 |
"corresponding file descriptor in the process's I</proc/>pidI</fdinfo> " |
| 878 |
"directory. See B<proc>(5) for further details." |
| 879 |
msgstr "" |
| 880 |
"Текущее значение счётчика eventfd можно найти в записи для соответствующего " |
| 881 |
"файлового дескриптора в каталоге процесса I</proc/>pidI</fdinfo>. " |
| 882 |
"Подробности смотрите в B<proc>(5)." |
| 883 |
|
| 884 |
#. type: SH |
| 885 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 886 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 887 |
#, no-wrap |
| 888 |
msgid "EXAMPLES" |
| 889 |
msgstr "ПРИМЕРЫ" |
| 890 |
|
| 891 |
#. type: Plain text |
| 892 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 893 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 894 |
msgid "" |
| 895 |
"The following program creates an eventfd file descriptor and then forks to " |
| 896 |
"create a child process. While the parent briefly sleeps, the child writes " |
| 897 |
"each of the integers supplied in the program's command-line arguments to the " |
| 898 |
"eventfd file descriptor. When the parent has finished sleeping, it reads " |
| 899 |
"from the eventfd file descriptor." |
| 900 |
msgstr "" |
| 901 |
"Следующая программа создаёт файловый дескриптор eventfd и затем создаёт " |
| 902 |
"дочерний процесс. Пока родительский процесс на короткое время засыпает, " |
| 903 |
"потомок пишет все числа, переданные в командной строке программы, в файловый " |
| 904 |
"дескриптор eventfd. Когда родитель просыпается, он читает их из файлового " |
| 905 |
"дескриптора eventfd." |
| 906 |
|
| 907 |
#. type: Plain text |
| 908 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 909 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 910 |
msgid "The following shell session shows a sample run of the program:" |
| 911 |
msgstr "Пример сеанса работы с программой:" |
| 912 |
|
| 913 |
#. type: Plain text |
| 914 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 915 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 916 |
#, no-wrap |
| 917 |
msgid "" |
| 918 |
"$B< ./a.out 1 2 4 7 14>\n" |
| 919 |
"Child writing 1 to efd\n" |
| 920 |
"Child writing 2 to efd\n" |
| 921 |
"Child writing 4 to efd\n" |
| 922 |
"Child writing 7 to efd\n" |
| 923 |
"Child writing 14 to efd\n" |
| 924 |
"Child completed write loop\n" |
| 925 |
"Parent about to read\n" |
| 926 |
"Parent read 28 (0x1c) from efd\n" |
| 927 |
msgstr "" |
| 928 |
"$B< ./a.out 1 2 4 7 14>\n" |
| 929 |
"Child writing 1 to efd\n" |
| 930 |
"Child writing 2 to efd\n" |
| 931 |
"Child writing 4 to efd\n" |
| 932 |
"Child writing 7 to efd\n" |
| 933 |
"Child writing 14 to efd\n" |
| 934 |
"Child completed write loop\n" |
| 935 |
"Parent about to read\n" |
| 936 |
"Parent read 28 (0x1c) from efd\n" |
| 937 |
|
| 938 |
#. type: SS |
| 939 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 940 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 941 |
#, no-wrap |
| 942 |
msgid "Program source" |
| 943 |
msgstr "Исходный код программы" |
| 944 |
|
| 945 |
#. type: Plain text |
| 946 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 947 |
#, no-wrap |
| 948 |
msgid "" |
| 949 |
"#include E<lt>err.hE<gt>\n" |
| 950 |
"#include E<lt>inttypes.hE<gt>\n" |
| 951 |
"#include E<lt>stdio.hE<gt>\n" |
| 952 |
"#include E<lt>stdlib.hE<gt>\n" |
| 953 |
"#include E<lt>sys/eventfd.hE<gt>\n" |
| 954 |
"#include E<lt>sys/types.hE<gt>\n" |
| 955 |
"#include E<lt>unistd.hE<gt>\n" |
| 956 |
"\\&\n" |
| 957 |
"int\n" |
| 958 |
"main(int argc, char *argv[])\n" |
| 959 |
"{\n" |
| 960 |
" int efd;\n" |
| 961 |
" uint64_t u;\n" |
| 962 |
" ssize_t s;\n" |
| 963 |
"\\&\n" |
| 964 |
" if (argc E<lt> 2) {\n" |
| 965 |
" fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n" |
| 966 |
" exit(EXIT_FAILURE);\n" |
| 967 |
" }\n" |
| 968 |
"\\&\n" |
| 969 |
" efd = eventfd(0, 0);\n" |
| 970 |
" if (efd == -1)\n" |
| 971 |
" err(EXIT_FAILURE, \"eventfd\");\n" |
| 972 |
"\\&\n" |
| 973 |
" switch (fork()) {\n" |
| 974 |
" case 0:\n" |
| 975 |
" for (size_t j = 1; j E<lt> argc; j++) {\n" |
| 976 |
" printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n" |
| 977 |
" u = strtoull(argv[j], NULL, 0);\n" |
| 978 |
" /* strtoull() allows various bases */\n" |
| 979 |
" s = write(efd, &u, sizeof(uint64_t));\n" |
| 980 |
" if (s != sizeof(uint64_t))\n" |
| 981 |
" err(EXIT_FAILURE, \"write\");\n" |
| 982 |
" }\n" |
| 983 |
" printf(\"Child completed write loop\\[rs]n\");\n" |
| 984 |
"\\&\n" |
| 985 |
" exit(EXIT_SUCCESS);\n" |
| 986 |
"\\&\n" |
| 987 |
" default:\n" |
| 988 |
" sleep(2);\n" |
| 989 |
"\\&\n" |
| 990 |
" printf(\"Parent about to read\\[rs]n\");\n" |
| 991 |
" s = read(efd, &u, sizeof(uint64_t));\n" |
| 992 |
" if (s != sizeof(uint64_t))\n" |
| 993 |
" err(EXIT_FAILURE, \"read\");\n" |
| 994 |
" printf(\"Parent read %w64u (%#w64x) from efd\\[rs]n\", u, u);\n" |
| 995 |
" exit(EXIT_SUCCESS);\n" |
| 996 |
"\\&\n" |
| 997 |
" case -1:\n" |
| 998 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 999 |
" }\n" |
| 1000 |
"}\n" |
| 1001 |
msgstr "" |
| 1002 |
|
| 1003 |
#. SRC END |
| 1004 |
#. type: SH |
| 1005 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1006 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1007 |
#, no-wrap |
| 1008 |
msgid "SEE ALSO" |
| 1009 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 1010 |
|
| 1011 |
#. type: Plain text |
| 1012 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1013 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1014 |
msgid "" |
| 1015 |
"B<futex>(2), B<pipe>(2), B<poll>(2), B<read>(2), B<select>(2), " |
| 1016 |
"B<signalfd>(2), B<timerfd_create>(2), B<write>(2), B<epoll>(7), " |
| 1017 |
"B<sem_overview>(7)" |
| 1018 |
msgstr "" |
| 1019 |
"B<futex>(2), B<pipe>(2), B<poll>(2), B<read>(2), B<select>(2), " |
| 1020 |
"B<signalfd>(2), B<timerfd_create>(2), B<write>(2), B<epoll>(7), " |
| 1021 |
"B<sem_overview>(7)" |
| 1022 |
|
| 1023 |
#. type: TH |
| 1024 |
#: debian-trixie |
| 1025 |
#, no-wrap |
| 1026 |
msgid "2024-06-15" |
| 1027 |
msgstr "15 июня 2024 г." |
| 1028 |
|
| 1029 |
#. type: TH |
| 1030 |
#: debian-trixie |
| 1031 |
#, no-wrap |
| 1032 |
msgid "Linux man-pages 6.9.1" |
| 1033 |
msgstr "Страницы руководства Linux 6.9.1" |
| 1034 |
|
| 1035 |
#. type: Plain text |
| 1036 |
#: debian-trixie |
| 1037 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1038 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 1039 |
|
| 1040 |
#. type: Plain text |
| 1041 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 1042 |
#, no-wrap |
| 1043 |
msgid "" |
| 1044 |
"#include E<lt>err.hE<gt>\n" |
| 1045 |
"#include E<lt>inttypes.hE<gt>\n" |
| 1046 |
"#include E<lt>stdio.hE<gt>\n" |
| 1047 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1048 |
"#include E<lt>sys/eventfd.hE<gt>\n" |
| 1049 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1050 |
"#include E<lt>unistd.hE<gt>\n" |
| 1051 |
"\\&\n" |
| 1052 |
"int\n" |
| 1053 |
"main(int argc, char *argv[])\n" |
| 1054 |
"{\n" |
| 1055 |
" int efd;\n" |
| 1056 |
" uint64_t u;\n" |
| 1057 |
" ssize_t s;\n" |
| 1058 |
"\\&\n" |
| 1059 |
" if (argc E<lt> 2) {\n" |
| 1060 |
" fprintf(stderr, \"Usage: %s E<lt>numE<gt>...\\[rs]n\", argv[0]);\n" |
| 1061 |
" exit(EXIT_FAILURE);\n" |
| 1062 |
" }\n" |
| 1063 |
"\\&\n" |
| 1064 |
" efd = eventfd(0, 0);\n" |
| 1065 |
" if (efd == -1)\n" |
| 1066 |
" err(EXIT_FAILURE, \"eventfd\");\n" |
| 1067 |
"\\&\n" |
| 1068 |
" switch (fork()) {\n" |
| 1069 |
" case 0:\n" |
| 1070 |
" for (size_t j = 1; j E<lt> argc; j++) {\n" |
| 1071 |
" printf(\"Child writing %s to efd\\[rs]n\", argv[j]);\n" |
| 1072 |
" u = strtoull(argv[j], NULL, 0);\n" |
| 1073 |
" /* strtoull() allows various bases */\n" |
| 1074 |
" s = write(efd, &u, sizeof(uint64_t));\n" |
| 1075 |
" if (s != sizeof(uint64_t))\n" |
| 1076 |
" err(EXIT_FAILURE, \"write\");\n" |
| 1077 |
" }\n" |
| 1078 |
" printf(\"Child completed write loop\\[rs]n\");\n" |
| 1079 |
"\\&\n" |
| 1080 |
" exit(EXIT_SUCCESS);\n" |
| 1081 |
"\\&\n" |
| 1082 |
" default:\n" |
| 1083 |
" sleep(2);\n" |
| 1084 |
"\\&\n" |
| 1085 |
" printf(\"Parent about to read\\[rs]n\");\n" |
| 1086 |
" s = read(efd, &u, sizeof(uint64_t));\n" |
| 1087 |
" if (s != sizeof(uint64_t))\n" |
| 1088 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1089 |
" printf(\"Parent read %\"PRIu64\" (%#\"PRIx64\") from efd\\[rs]n\", u, u);\n" |
| 1090 |
" exit(EXIT_SUCCESS);\n" |
| 1091 |
"\\&\n" |
| 1092 |
" case -1:\n" |
| 1093 |
" err(EXIT_FAILURE, \"fork\");\n" |
| 1094 |
" }\n" |
| 1095 |
"}\n" |
| 1096 |
msgstr "" |
| 1097 |
|
| 1098 |
#. type: TH |
| 1099 |
#: fedora-44 fedora-rawhide |
| 1100 |
#, no-wrap |
| 1101 |
msgid "2024-07-23" |
| 1102 |
msgstr "23 июля 2024 г." |
| 1103 |
|
| 1104 |
#. type: TH |
| 1105 |
#: fedora-44 fedora-rawhide |
| 1106 |
#, no-wrap |
| 1107 |
msgid "Linux man-pages 6.13" |
| 1108 |
msgstr "Страницы руководства Linux 6.13" |
| 1109 |
|
| 1110 |
#. type: TH |
| 1111 |
#: mageia-cauldron |
| 1112 |
#, no-wrap |
| 1113 |
msgid "2026-02-08" |
| 1114 |
msgstr "8 февраля 2026 г." |
| 1115 |
|
| 1116 |
#. type: TH |
| 1117 |
#: mageia-cauldron |
| 1118 |
#, no-wrap |
| 1119 |
msgid "Linux man-pages 6.17" |
| 1120 |
msgstr "Страницы руководства Linux 6.17" |
| 1121 |
|
| 1122 |
#. type: TH |
| 1123 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1124 |
#, no-wrap |
| 1125 |
msgid "Linux man-pages (unreleased)" |
| 1126 |
msgstr "Страницы руководства Linux (не выпущены)" |