| 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 |
# Alexander Golubev <[email protected]>, 2018. |
| 5 |
# Azamat Hackimov <[email protected]>, 2011, 2014-2016. |
| 6 |
# Hotellook, 2014. |
| 7 |
# Nikita <[email protected]>, 2014. |
| 8 |
# Spiros Georgaras <[email protected]>, 2016. |
| 9 |
# Vladislav <[email protected]>, 2015. |
| 10 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 11 |
# Иван Павлов <[email protected]>, 2017. |
| 12 |
msgid "" |
| 13 |
msgstr "" |
| 14 |
"Project-Id-Version: manpages-l10n\n" |
| 15 |
"POT-Creation-Date: 2026-06-05 06:43+0200\n" |
| 16 |
"PO-Revision-Date: 2024-12-21 19:49+0300\n" |
| 17 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 18 |
"Language-Team: Russian <[email protected]>\n" |
| 19 |
"Language: ru\n" |
| 20 |
"MIME-Version: 1.0\n" |
| 21 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 22 |
"Content-Transfer-Encoding: 8bit\n" |
| 23 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 24 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 25 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 26 |
"X-Generator: Lokalize 2.0\n" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 30 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 31 |
#, no-wrap |
| 32 |
msgid "signalfd" |
| 33 |
msgstr "signalfd" |
| 34 |
|
| 35 |
#. type: TH |
| 36 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 37 |
#: opensuse-tumbleweed |
| 38 |
#, no-wrap |
| 39 |
msgid "2026-02-08" |
| 40 |
msgstr "8 февраля 2026 г." |
| 41 |
|
| 42 |
#. type: TH |
| 43 |
#: archlinux debian-unstable |
| 44 |
#, fuzzy, no-wrap |
| 45 |
#| msgid "Linux man-pages 6.17" |
| 46 |
msgid "Linux man-pages 6.18" |
| 47 |
msgstr "Справочные страницы Linux 6.17" |
| 48 |
|
| 49 |
#. type: SH |
| 50 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 51 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 52 |
#, no-wrap |
| 53 |
msgid "NAME" |
| 54 |
msgstr "НАИМЕНОВАНИЕ" |
| 55 |
|
| 56 |
#. type: Plain text |
| 57 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 58 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 59 |
msgid "signalfd - create a file descriptor for accepting signals" |
| 60 |
msgstr "signalfd - создаёт файловый дескриптор для приёма сигналов" |
| 61 |
|
| 62 |
#. type: SH |
| 63 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 64 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 65 |
#, no-wrap |
| 66 |
msgid "LIBRARY" |
| 67 |
msgstr "БИБЛИОТЕКА" |
| 68 |
|
| 69 |
#. type: Plain text |
| 70 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 71 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 72 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 73 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 74 |
|
| 75 |
#. type: SH |
| 76 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 77 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 78 |
#, no-wrap |
| 79 |
msgid "SYNOPSIS" |
| 80 |
msgstr "СИНТАКСИС" |
| 81 |
|
| 82 |
#. type: Plain text |
| 83 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 84 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 85 |
#, fuzzy, no-wrap |
| 86 |
#| msgid "B<#include E<lt>sys/signalfd.hE<gt>>" |
| 87 |
msgid "B<#include E<lt>sys/signalfd.hE<gt>>\n" |
| 88 |
msgstr "B<#include E<lt>sys/signalfd.hE<gt>>" |
| 89 |
|
| 90 |
#. type: Plain text |
| 91 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 92 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 93 |
#, fuzzy, no-wrap |
| 94 |
#| msgid "B<int signalfd(int >I<fd>B<, const sigset_t *>I<mask>B<, int >I<flags>B<);>" |
| 95 |
msgid "B<int signalfd(int >I<fd>B<, const sigset_t *>I<mask>B<, int >I<flags>B<);>\n" |
| 96 |
msgstr "B<int signalfd(int >I<fd>B<, const sigset_t *>I<mask>B<, int >I<flags>B<);>" |
| 97 |
|
| 98 |
#. type: SH |
| 99 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 100 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 101 |
#, no-wrap |
| 102 |
msgid "DESCRIPTION" |
| 103 |
msgstr "ОПИСАНИЕ" |
| 104 |
|
| 105 |
#. type: Plain text |
| 106 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 107 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 108 |
msgid "" |
| 109 |
"B<signalfd>() creates a file descriptor that can be used to accept signals " |
| 110 |
"targeted at the caller. This provides an alternative to the use of a signal " |
| 111 |
"handler or B<sigwaitinfo>(2), and has the advantage that the file descriptor " |
| 112 |
"may be monitored by B<select>(2), B<poll>(2), and B<epoll>(7)." |
| 113 |
msgstr "" |
| 114 |
"Вызов B<signalfd>() создаёт файловый дескриптор, который можно использовать " |
| 115 |
"для приёма сигналов, предназначенных вызывающему. Его можно использовать как " |
| 116 |
"замену обработчику сигналов или B<sigwaitinfo>(2); преимущество в том, что " |
| 117 |
"за файловым дескриптором можно следить с помощью B<select>(2), B<poll>(2) и " |
| 118 |
"B<epoll>(7)." |
| 119 |
|
| 120 |
#. type: Plain text |
| 121 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 122 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 123 |
msgid "" |
| 124 |
"The I<mask> argument specifies the set of signals that the caller wishes to " |
| 125 |
"accept via the file descriptor. This argument is a signal set whose " |
| 126 |
"contents can be initialized using the macros described in B<sigsetops>(3). " |
| 127 |
"Normally, the set of signals to be received via the file descriptor should " |
| 128 |
"be blocked using B<sigprocmask>(2), to prevent the signals being handled " |
| 129 |
"according to their default dispositions. It is not possible to receive " |
| 130 |
"B<SIGKILL> or B<SIGSTOP> signals via a signalfd file descriptor; these " |
| 131 |
"signals are silently ignored if specified in I<mask>." |
| 132 |
msgstr "" |
| 133 |
"В аргументе I<mask> указывается набор сигналов, который вызывающий хочет " |
| 134 |
"принимать через файловый дескриптор. Этот аргумент, содержащий набор " |
| 135 |
"сигналов, можно инициализировать с помощью макросов, описанных в " |
| 136 |
"B<sigsetops>(3). Обычно, набор сигналов, принимаемых через файловый " |
| 137 |
"дескриптор, должен блокироваться с помощью B<sigprocmask>(2), чтобы " |
| 138 |
"предотвратить обработку сигналов назначенными им обработчиками по умолчанию. " |
| 139 |
"Через файловый дескриптор signalfd нельзя получить сигнал B<SIGKILL> или " |
| 140 |
"B<SIGSTOP>; при указании их в I<mask> они просто игнорируются." |
| 141 |
|
| 142 |
#. type: Plain text |
| 143 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 144 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 145 |
msgid "" |
| 146 |
"If the I<fd> argument is -1, then the call creates a new file descriptor and " |
| 147 |
"associates the signal set specified in I<mask> with that file descriptor. " |
| 148 |
"If I<fd> is not -1, then it must specify a valid existing signalfd file " |
| 149 |
"descriptor, and I<mask> is used to replace the signal set associated with " |
| 150 |
"that file descriptor." |
| 151 |
msgstr "" |
| 152 |
"Если значение аргумента I<fd> равно -1, то вызов создаёт новый файловый " |
| 153 |
"дескриптор и связывает с ним набор сигналов, указанный в I<mask>. Если I<fd> " |
| 154 |
"не равно -1, то в нём должен быть указан допустимый существующий файловый " |
| 155 |
"дескриптор signalfd, а значение I<mask> используется для замены набора " |
| 156 |
"сигналов, связанного с этим файловым дескриптором." |
| 157 |
|
| 158 |
#. type: Plain text |
| 159 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 160 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 161 |
msgid "" |
| 162 |
"Starting with Linux 2.6.27, the following values may be bitwise ORed in " |
| 163 |
"I<flags> to change the behavior of B<signalfd>():" |
| 164 |
msgstr "" |
| 165 |
"Начиная с Linux 2.6.27, для изменения поведения B<signalfd>() можно " |
| 166 |
"использовать следующие значения I<flags> (через OR):" |
| 167 |
|
| 168 |
#. type: TP |
| 169 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 170 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 171 |
#, no-wrap |
| 172 |
msgid "B<SFD_NONBLOCK>" |
| 173 |
msgstr "B<SFD_NONBLOCK>" |
| 174 |
|
| 175 |
#. type: Plain text |
| 176 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 177 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 178 |
msgid "" |
| 179 |
"Set the B<O_NONBLOCK> file status flag on the open file description (see " |
| 180 |
"B<open>(2)) referred to by the new file descriptor. Using this flag saves " |
| 181 |
"extra calls to B<fcntl>(2) to achieve the same result." |
| 182 |
msgstr "" |
| 183 |
"Устанавливает флаг состояния файла B<O_NONBLOCK> для нового открытого " |
| 184 |
"файлового описания (смотрите B<open>(2)), на которое ссылается новый " |
| 185 |
"файловый дескриптор. Использование данного флага делает ненужными " |
| 186 |
"дополнительные вызовы B<fcntl>(2) для достижения того же результата." |
| 187 |
|
| 188 |
#. type: TP |
| 189 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 190 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 191 |
#, no-wrap |
| 192 |
msgid "B<SFD_CLOEXEC>" |
| 193 |
msgstr "B<SFD_CLOEXEC>" |
| 194 |
|
| 195 |
#. type: Plain text |
| 196 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 197 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 198 |
msgid "" |
| 199 |
"Set the close-on-exec (B<FD_CLOEXEC>) flag on the new file descriptor. See " |
| 200 |
"the description of the B<O_CLOEXEC> flag in B<open>(2) for reasons why this " |
| 201 |
"may be useful." |
| 202 |
msgstr "" |
| 203 |
"Устанавливает флаг close-on-exec (B<FD_CLOEXEC>) для нового открытого " |
| 204 |
"файлового дескриптора. Смотрите описание флага B<O_CLOEXEC> в B<open>(2) для " |
| 205 |
"того, чтобы узнать как это может пригодиться." |
| 206 |
|
| 207 |
#. type: Plain text |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
msgid "" |
| 211 |
"Up to Linux 2.6.26, the I<flags> argument is unused, and must be specified " |
| 212 |
"as zero." |
| 213 |
msgstr "" |
| 214 |
"До Linux 2.6.26 аргумент I<flags> не используется и должен быть указан как " |
| 215 |
"ноль." |
| 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 |
"B<signalfd>() returns a file descriptor that supports the following " |
| 222 |
"operations:" |
| 223 |
msgstr "" |
| 224 |
"Вызов B<signalfd>() возвращает файловый дескриптор, который поддерживает " |
| 225 |
"следующие операции:" |
| 226 |
|
| 227 |
#. type: TP |
| 228 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 229 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 230 |
#, no-wrap |
| 231 |
msgid "B<read>(2)" |
| 232 |
msgstr "B<read>(2)" |
| 233 |
|
| 234 |
#. type: Plain text |
| 235 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 236 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 237 |
msgid "" |
| 238 |
"If one or more of the signals specified in I<mask> is pending for the " |
| 239 |
"process, then the buffer supplied to B<read>(2) is used to return one or " |
| 240 |
"more I<signalfd_siginfo> structures (see below) that describe the signals. " |
| 241 |
"The B<read>(2) returns information for as many signals as are pending and " |
| 242 |
"will fit in the supplied buffer. The buffer must be at least " |
| 243 |
"I<sizeof(struct signalfd_siginfo)> bytes. The return value of the " |
| 244 |
"B<read>(2) is the total number of bytes read." |
| 245 |
msgstr "" |
| 246 |
"Если один или несколько сигналов, указанных в I<mask>, ожидают обработки, то " |
| 247 |
"буфер, указанный в B<read>(2), используется для возврата одной или " |
| 248 |
"нескольких структур I<signalfd_siginfo> (см. ниже), описывающих сигналы. " |
| 249 |
"Вызов B<read>(2) возвращает информацию о всех ожидающих сигналах, которые " |
| 250 |
"поместились в предоставленный буфер. Размер буфера должен быть не менее " |
| 251 |
"I<sizeof(struct signalfd_siginfo)> байт. Возвращаемое B<read>(2) значение " |
| 252 |
"представляет собой общее количество прочитанных байт." |
| 253 |
|
| 254 |
#. type: Plain text |
| 255 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 256 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 257 |
msgid "" |
| 258 |
"As a consequence of the B<read>(2), the signals are consumed, so that they " |
| 259 |
"are no longer pending for the process (i.e., will not be caught by signal " |
| 260 |
"handlers, and cannot be accepted using B<sigwaitinfo>(2))." |
| 261 |
msgstr "" |
| 262 |
"После выполнения B<read>(2) сигналы считаются учтёнными, они больше не " |
| 263 |
"считаются ожидающими обработки (т.е., они не будут переданы обработчикам " |
| 264 |
"сигналов и не могут быть приняты с помощью B<sigwaitinfo>(2))." |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 268 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 269 |
msgid "" |
| 270 |
"If none of the signals in I<mask> is pending for the process, then the " |
| 271 |
"B<read>(2) either blocks until one of the signals in I<mask> is generated " |
| 272 |
"for the process, or fails with the error B<EAGAIN> if the file descriptor " |
| 273 |
"has been made nonblocking." |
| 274 |
msgstr "" |
| 275 |
"Если ни один из сигналов из I<mask> не ожидает обработки, то вызов " |
| 276 |
"B<read>(2) или блокируется до поступления сигналов согласно I<mask>, или " |
| 277 |
"завершается с ошибкой B<EAGAIN>, если файловый дескриптор помечен как " |
| 278 |
"неблокируемый." |
| 279 |
|
| 280 |
#. type: TP |
| 281 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 282 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 283 |
#, no-wrap |
| 284 |
msgid "B<poll>(2)" |
| 285 |
msgstr "B<poll>(2)" |
| 286 |
|
| 287 |
#. type: TQ |
| 288 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 289 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 290 |
#, no-wrap |
| 291 |
msgid "B<select>(2)" |
| 292 |
msgstr "B<select>(2)" |
| 293 |
|
| 294 |
#. type: TQ |
| 295 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 296 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 297 |
#, no-wrap |
| 298 |
msgid "(and similar)" |
| 299 |
msgstr "(и подобные)" |
| 300 |
|
| 301 |
#. type: Plain text |
| 302 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 303 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 304 |
msgid "" |
| 305 |
"The file descriptor is readable (the B<select>(2) I<readfds> argument; the " |
| 306 |
"B<poll>(2) B<POLLIN> flag) if one or more of the signals in I<mask> is " |
| 307 |
"pending for the process." |
| 308 |
msgstr "" |
| 309 |
"Файловый дескриптор доступен для чтения (в B<select>(2) аргумент I<readfds>; " |
| 310 |
"в B<poll>(2) флаг B<POLLIN>), если один или более сигналов из I<mask> " |
| 311 |
"ожидают обработки." |
| 312 |
|
| 313 |
#. type: Plain text |
| 314 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 315 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 316 |
msgid "" |
| 317 |
"The signalfd file descriptor also supports the other file-descriptor " |
| 318 |
"multiplexing APIs: B<pselect>(2), B<ppoll>(2), and B<epoll>(7)." |
| 319 |
msgstr "" |
| 320 |
"Файловый дескриптор signalfd также поддерживает другие мультиплексные " |
| 321 |
"вызовы: B<pselect>(2), B<ppoll>(2) и B<epoll>(7)." |
| 322 |
|
| 323 |
#. type: TP |
| 324 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 325 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 326 |
#, no-wrap |
| 327 |
msgid "B<close>(2)" |
| 328 |
msgstr "B<close>(2)" |
| 329 |
|
| 330 |
#. type: Plain text |
| 331 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 332 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 333 |
msgid "" |
| 334 |
"When the file descriptor is no longer required it should be closed. When " |
| 335 |
"all file descriptors associated with the same signalfd object have been " |
| 336 |
"closed, the resources for object are freed by the kernel." |
| 337 |
msgstr "" |
| 338 |
"Если файловый дескриптор больше не требуется, его нужно закрыть. Когда все " |
| 339 |
"файловые дескрипторы, связанные с одним объектом signalfd, будут закрыты, " |
| 340 |
"ядро освобождает ресурсы объекта." |
| 341 |
|
| 342 |
#. type: SS |
| 343 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 344 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 345 |
#, no-wrap |
| 346 |
msgid "The signalfd_siginfo structure" |
| 347 |
msgstr "Структура signalfd_siginfo" |
| 348 |
|
| 349 |
#. type: Plain text |
| 350 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 351 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 352 |
msgid "" |
| 353 |
"The format of the I<signalfd_siginfo> structure(s) returned by B<read>(2)s " |
| 354 |
"from a signalfd file descriptor is as follows:" |
| 355 |
msgstr "" |
| 356 |
"Формат структур(ы) I<signalfd_siginfo>, возвращаемых B<read>(2) из файлового " |
| 357 |
"дескриптора signalfd, имеет следующий вид:" |
| 358 |
|
| 359 |
#. ssi_trapno is unused on most arches |
| 360 |
#. ssi_addr_lsb: commit b8aeec34175fc8fe8b0d40efea4846dfc1ba663e |
| 361 |
#. type: Plain text |
| 362 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 363 |
#: opensuse-tumbleweed |
| 364 |
#, fuzzy, no-wrap |
| 365 |
#| msgid "" |
| 366 |
#| "struct signalfd_siginfo {\n" |
| 367 |
#| " uint32_t ssi_signo; /* Signal number */\n" |
| 368 |
#| " int32_t ssi_errno; /* Error number (unused) */\n" |
| 369 |
#| " int32_t ssi_code; /* Signal code */\n" |
| 370 |
#| " uint32_t ssi_pid; /* PID of sender */\n" |
| 371 |
#| " uint32_t ssi_uid; /* Real UID of sender */\n" |
| 372 |
#| " int32_t ssi_fd; /* File descriptor (SIGIO) */\n" |
| 373 |
#| " uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" |
| 374 |
#| " uint32_t ssi_band; /* Band event (SIGIO) */\n" |
| 375 |
#| " uint32_t ssi_overrun; /* POSIX timer overrun count */\n" |
| 376 |
#| " uint32_t ssi_trapno; /* Trap number that caused signal */\n" |
| 377 |
#| " int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" |
| 378 |
#| " int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" |
| 379 |
#| " uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" |
| 380 |
#| " uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" |
| 381 |
#| " uint64_t ssi_stime; /* System CPU time consumed\n" |
| 382 |
#| " (SIGCHLD) */\n" |
| 383 |
#| " uint64_t ssi_addr; /* Address that generated signal\n" |
| 384 |
#| " (for hardware-generated signals) */\n" |
| 385 |
#| " uint16_t ssi_addr_lsb; /* Least significant bit of address\n" |
| 386 |
#| " (SIGBUS; since Linux 2.6.37)\n" |
| 387 |
#| " uint8_t pad[I<X>]; /* Pad size to 128 bytes (allow for\n" |
| 388 |
#| " additional fields in the future) */\n" |
| 389 |
#| "};\n" |
| 390 |
msgid "" |
| 391 |
"struct signalfd_siginfo {\n" |
| 392 |
" uint32_t ssi_signo; /* Signal number */\n" |
| 393 |
" int32_t ssi_errno; /* Error number (unused) */\n" |
| 394 |
" int32_t ssi_code; /* Signal code */\n" |
| 395 |
" uint32_t ssi_pid; /* PID of sender */\n" |
| 396 |
" uint32_t ssi_uid; /* Real UID of sender */\n" |
| 397 |
" int32_t ssi_fd; /* File descriptor (SIGIO) */\n" |
| 398 |
" uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" |
| 399 |
" uint32_t ssi_band; /* Band event (SIGIO) */\n" |
| 400 |
" uint32_t ssi_overrun; /* POSIX timer overrun count */\n" |
| 401 |
" uint32_t ssi_trapno; /* Trap number that caused signal */\n" |
| 402 |
" int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" |
| 403 |
" int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" |
| 404 |
" uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" |
| 405 |
" uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" |
| 406 |
" uint64_t ssi_stime; /* System CPU time consumed\n" |
| 407 |
" (SIGCHLD) */\n" |
| 408 |
" uint64_t ssi_addr; /* Address that generated signal\n" |
| 409 |
" (for hardware-generated signals) */\n" |
| 410 |
" uint16_t ssi_addr_lsb; /* Least significant bit of address\n" |
| 411 |
" (SIGBUS; since Linux 2.6.37) */\n" |
| 412 |
" uint8_t pad[\\f[I]X\\fR]; /* Pad size to 128 bytes (allow for\n" |
| 413 |
" additional fields in the future) */\n" |
| 414 |
"};\n" |
| 415 |
msgstr "" |
| 416 |
"struct signalfd_siginfo {\n" |
| 417 |
" uint32_t ssi_signo; /* номер сигнала */\n" |
| 418 |
" int32_t ssi_errno; /* номер ошибки (не используется) */\n" |
| 419 |
" int32_t ssi_code; /* код сигнала */\n" |
| 420 |
" uint32_t ssi_pid; /* PID отправителя */\n" |
| 421 |
" uint32_t ssi_uid; /* реальный UID отправителя */\n" |
| 422 |
" int32_t ssi_fd; /* файловый дескриптор (SIGIO) */\n" |
| 423 |
" uint32_t ssi_tid; /* ID таймера ядра (таймеры POSIX)\n" |
| 424 |
" uint32_t ssi_band; /* внутреннее событие (SIGIO) */\n" |
| 425 |
" uint32_t ssi_overrun; /* счётчик переполнений таймера POSIX */\n" |
| 426 |
" uint32_t ssi_trapno; /* номер ловушки, поймавшей сигнал */\n" |
| 427 |
" int32_t ssi_status; /* код выхода или сигнала (SIGCHLD) */\n" |
| 428 |
" int32_t ssi_int; /* целое, посланное sigqueue(3) */\n" |
| 429 |
" uint64_t ssi_ptr; /* указатель, посланный sigqueue(3) */\n" |
| 430 |
" uint64_t ssi_utime; /* пользовательское потреблённое\n" |
| 431 |
" время ЦП (SIGCHLD) */\n" |
| 432 |
" uint64_t ssi_stime; /* системное потреблённое\n" |
| 433 |
" время ЦП (SIGCHLD) */\n" |
| 434 |
" uint64_t ssi_addr; /* сгенерированный сигналом адрес\n" |
| 435 |
" (для сигналов от аппаратуры) */\n" |
| 436 |
" uint16_t ssi_addr_lsb; /* наименее значимый бит адреса\n" |
| 437 |
" (SIGBUS; начиная с Linux 2.6.37)\n" |
| 438 |
" uint8_t pad[I<X>]; /* заполнитель до 128 байт (для\n" |
| 439 |
" будущих дополнительных полей) */\n" |
| 440 |
"};\n" |
| 441 |
|
| 442 |
#. type: Plain text |
| 443 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 444 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 445 |
msgid "" |
| 446 |
"Each of the fields in this structure is analogous to the similarly named " |
| 447 |
"field in the I<siginfo_t> structure. The I<siginfo_t> structure is " |
| 448 |
"described in B<sigaction>(2). Not all fields in the returned " |
| 449 |
"I<signalfd_siginfo> structure will be valid for a specific signal; the set " |
| 450 |
"of valid fields can be determined from the value returned in the I<ssi_code> " |
| 451 |
"field. This field is the analog of the I<siginfo_t> I<si_code> field; see " |
| 452 |
"B<sigaction>(2) for details." |
| 453 |
msgstr "" |
| 454 |
"Каждое из полей в этой структуре аналогично полям с тем же именем в " |
| 455 |
"структуре I<siginfo_t>. Структура I<siginfo_t> описана в B<sigaction>(2). Не " |
| 456 |
"все поля в возвращаемой структуре I<signalfd_siginfo> будут заполнены " |
| 457 |
"правильно для каждого сигнала; набор допустимых полей можно определить по " |
| 458 |
"значению, возвращённому в поле I<ssi_code>. Это поле является аналогом поля " |
| 459 |
"I<si_code> в I<siginfo_t>; подробней смотрите в B<sigaction>(2)." |
| 460 |
|
| 461 |
#. type: SS |
| 462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
#, no-wrap |
| 465 |
msgid "fork(2) semantics" |
| 466 |
msgstr "Поведение при fork(2)" |
| 467 |
|
| 468 |
#. type: Plain text |
| 469 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 470 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 471 |
msgid "" |
| 472 |
"After a B<fork>(2), the child inherits a copy of the signalfd file " |
| 473 |
"descriptor. A B<read>(2) from the file descriptor in the child will return " |
| 474 |
"information about signals queued to the child." |
| 475 |
msgstr "" |
| 476 |
"После вызова B<fork>(2) потомок наследует копию файлового дескриптора " |
| 477 |
"signalfd. Вызов B<read>(2) для файлового дескриптора в потомке вернёт " |
| 478 |
"информацию о сигналах для потомка." |
| 479 |
|
| 480 |
#. type: SS |
| 481 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 482 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 483 |
#, no-wrap |
| 484 |
msgid "Semantics of file descriptor passing" |
| 485 |
msgstr "Семантика передачи файлового дескриптора" |
| 486 |
|
| 487 |
#. type: Plain text |
| 488 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 489 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 490 |
msgid "" |
| 491 |
"As with other file descriptors, signalfd file descriptors can be passed to " |
| 492 |
"another process via a UNIX domain socket (see B<unix>(7)). In the receiving " |
| 493 |
"process, a B<read>(2) from the received file descriptor will return " |
| 494 |
"information about signals queued to that process." |
| 495 |
msgstr "" |
| 496 |
"Как и другие файловые дескрипторы, файловые дескрипторы signalfd можно " |
| 497 |
"передавать в другой процесс через доменный сокет UNIX (смотрите B<unix>(7)). " |
| 498 |
"В принимающем процессе вызов B<read>(2) из принятого файлового дескриптора " |
| 499 |
"возвратит информацию о сигналах в очереди этого процесса." |
| 500 |
|
| 501 |
#. type: SS |
| 502 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 503 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 504 |
#, no-wrap |
| 505 |
msgid "execve(2) semantics" |
| 506 |
msgstr "Поведение при execve(2)" |
| 507 |
|
| 508 |
#. type: Plain text |
| 509 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 510 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 511 |
msgid "" |
| 512 |
"Just like any other file descriptor, a signalfd file descriptor remains open " |
| 513 |
"across an B<execve>(2), unless it has been marked for close-on-exec (see " |
| 514 |
"B<fcntl>(2)). Any signals that were available for reading before the " |
| 515 |
"B<execve>(2) remain available to the newly loaded program. (This is " |
| 516 |
"analogous to traditional signal semantics, where a blocked signal that is " |
| 517 |
"pending remains pending across an B<execve>(2).)" |
| 518 |
msgstr "" |
| 519 |
"Как и любой файловый дескриптор, файловый дескриптор signalfd остаётся " |
| 520 |
"открытым после B<execve>(2), если он не помечен как close-on-exec (см. " |
| 521 |
"B<fcntl>(2)). Все сигналы, которые были доступны для чтения перед " |
| 522 |
"B<execve>(2), остаются доступными и для новой загруженной программы " |
| 523 |
"(аналогично обычному поведению сигналов, когда блокированный сигнал, " |
| 524 |
"ожидающий обработки, остаётся в очереди ожидания после B<execve>(2))." |
| 525 |
|
| 526 |
#. type: SS |
| 527 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 528 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 529 |
#, no-wrap |
| 530 |
msgid "Thread semantics" |
| 531 |
msgstr "Поведение в нитях" |
| 532 |
|
| 533 |
#. type: Plain text |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
msgid "" |
| 537 |
"The semantics of signalfd file descriptors in a multithreaded program mirror " |
| 538 |
"the standard semantics for signals. In other words, when a thread reads " |
| 539 |
"from a signalfd file descriptor, it will read the signals that are directed " |
| 540 |
"to the thread itself and the signals that are directed to the process (i.e., " |
| 541 |
"the entire thread group). (A thread will not be able to read signals that " |
| 542 |
"are directed to other threads in the process.)" |
| 543 |
msgstr "" |
| 544 |
"Поведение файловых дескрипторов signalfd в многонитевых программах отражает " |
| 545 |
"стандартное поведение сигналов. Иначе говоря, когда нить выполняет чтение из " |
| 546 |
"файлового дескриптора signalfd, она прочтёт сигналы, которые предназначены " |
| 547 |
"самой нити и сигналы, предназначенные процессу (т.е., всей группе нитей). " |
| 548 |
"Нить не может прочитать сигналы, которые предназначены другим нитям процесса." |
| 549 |
|
| 550 |
#. type: SS |
| 551 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 552 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 553 |
#, no-wrap |
| 554 |
msgid "epoll(7) semantics" |
| 555 |
msgstr "Поведение epoll(7)" |
| 556 |
|
| 557 |
#. type: Plain text |
| 558 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 559 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 560 |
#, fuzzy |
| 561 |
#| msgid "" |
| 562 |
#| "If a process adds (via B<epoll_ctl>(2)) a signalfd file descriptor to an " |
| 563 |
#| "B<epoll>(7) instance, then B<epoll_wait>(2) returns events only for " |
| 564 |
#| "signals sent to that process. In particular, if the process then uses " |
| 565 |
#| "B<fork>() to create a child process, then the child will be able to " |
| 566 |
#| "B<read>(2) signals that are sent to it using the signalfd file " |
| 567 |
#| "descriptor, but B<epoll_wait>(2) will B<not> indicate that the signalfd " |
| 568 |
#| "file descriptor is ready. In this scenario, a possible workaround is " |
| 569 |
#| "that after the B<fork>(2), the child process can close the signalfd file " |
| 570 |
#| "descriptor that it inherited from the parent process and then create " |
| 571 |
#| "another signalfd file descriptor and add it to the epoll instance. " |
| 572 |
#| "Alternatively, the parent and the child could delay creating their " |
| 573 |
#| "(separate) signalfd file descriptors and adding them to the epoll " |
| 574 |
#| "instance until after the call to B<fork>(2)." |
| 575 |
msgid "" |
| 576 |
"If a process adds (via B<epoll_ctl>(2)) a signalfd file descriptor to an " |
| 577 |
"B<epoll>(7) instance, then B<epoll_wait>(2) returns events only for " |
| 578 |
"signals sent to that process. In particular, if the process then uses " |
| 579 |
"B<fork>(2) to create a child process, then the child will be able to " |
| 580 |
"B<read>(2) signals that are sent to it using the signalfd file descriptor, " |
| 581 |
"but B<epoll_wait>(2) will B<not> indicate that the signalfd file descriptor " |
| 582 |
"is ready. In this scenario, a possible workaround is that after the " |
| 583 |
"B<fork>(2), the child process can close the signalfd file descriptor that it " |
| 584 |
"inherited from the parent process and then create another signalfd file " |
| 585 |
"descriptor and add it to the epoll instance. Alternatively, the parent and " |
| 586 |
"the child could delay creating their (separate) signalfd file descriptors " |
| 587 |
"and adding them to the epoll instance until after the call to B<fork>(2)." |
| 588 |
msgstr "" |
| 589 |
"Если процесс добавляет (через B<epoll_ctl>(2)) файловый дескриптор signalfd " |
| 590 |
"в экземпляр B<epoll>(7), то B<epoll_wait>(2) возвращает события только о " |
| 591 |
"сигналах, посланных этому процессу. В частности, если процесс после " |
| 592 |
"добавления использует B<fork>() для создания дочернего процесса, то потомок " |
| 593 |
"получит возможность читать (B<read>(2)) сигналы, которые ему посланы с " |
| 594 |
"помощью файлового дескриптора signalfd, но B<epoll_wait>(2) B<не> будет " |
| 595 |
"отражать готовность файлового дескриптора signalfd. Обойти эту проблему " |
| 596 |
"можно так: после B<fork>(2) дочерний процесс закрывает файловый дескриптор " |
| 597 |
"signalfd, унаследованный от родительского процесса, создаёт другой файловый " |
| 598 |
"дескриптор signalfd и затем добавляет его в экземпляр epoll. Или же родитель " |
| 599 |
"и потомок могут отложить создание своих (отдельных) файловых дескрипторов " |
| 600 |
"signalfd и добавить их в экземпляр epoll после вызова B<fork>(2). " |
| 601 |
|
| 602 |
#. type: SH |
| 603 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 604 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 605 |
#, no-wrap |
| 606 |
msgid "RETURN VALUE" |
| 607 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 608 |
|
| 609 |
#. type: Plain text |
| 610 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 611 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 612 |
msgid "" |
| 613 |
"On success, B<signalfd>() returns a signalfd file descriptor; this is " |
| 614 |
"either a new file descriptor (if I<fd> was -1), or I<fd> if I<fd> was a " |
| 615 |
"valid signalfd file descriptor. On error, -1 is returned and I<errno> is " |
| 616 |
"set to indicate the error." |
| 617 |
msgstr "" |
| 618 |
"При успешном выполнении B<signalfd>() возвращает файловый дескриптор " |
| 619 |
"signalfd; это будет или новый файловый дескриптор (если I<fd> равно -1), или " |
| 620 |
"I<fd>, если I<fd> содержит допустимый файловый дескриптор signalfd. При " |
| 621 |
"ошибке возвращается -1, а I<errno> присваивается соответствующее значение." |
| 622 |
|
| 623 |
#. type: SH |
| 624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 625 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 626 |
#, no-wrap |
| 627 |
msgid "ERRORS" |
| 628 |
msgstr "ОШИБКИ" |
| 629 |
|
| 630 |
#. type: TP |
| 631 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 632 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 633 |
#, no-wrap |
| 634 |
msgid "B<EBADF>" |
| 635 |
msgstr "B<EBADF>" |
| 636 |
|
| 637 |
#. type: Plain text |
| 638 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 639 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 640 |
msgid "The I<fd> file descriptor is not a valid file descriptor." |
| 641 |
msgstr "Неправильный файловый дескриптор в I<fd>." |
| 642 |
|
| 643 |
#. type: TP |
| 644 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 645 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 646 |
#, no-wrap |
| 647 |
msgid "B<EINVAL>" |
| 648 |
msgstr "B<EINVAL>" |
| 649 |
|
| 650 |
#. or, the |
| 651 |
#. .I sizemask |
| 652 |
#. argument is not equal to |
| 653 |
#. .IR sizeof(sigset_t) ; |
| 654 |
#. type: Plain text |
| 655 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 656 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 657 |
msgid "I<fd> is not a valid signalfd file descriptor." |
| 658 |
msgstr "Значение I<fd> не является правильным файловым дескриптором signalfd." |
| 659 |
|
| 660 |
#. type: Plain text |
| 661 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 662 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 663 |
msgid "" |
| 664 |
"I<flags> is invalid; or, in Linux 2.6.26 or earlier, I<flags> is nonzero." |
| 665 |
msgstr "" |
| 666 |
"Неправильное значение I<flags> или, для Linux 2.6.26 и старее, I<flags> не " |
| 667 |
"равно 0." |
| 668 |
|
| 669 |
#. type: TP |
| 670 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 671 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 672 |
#, no-wrap |
| 673 |
msgid "B<EMFILE>" |
| 674 |
msgstr "B<EMFILE>" |
| 675 |
|
| 676 |
#. type: Plain text |
| 677 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 678 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 679 |
msgid "" |
| 680 |
"The per-process limit on the number of open file descriptors has been " |
| 681 |
"reached." |
| 682 |
msgstr "" |
| 683 |
"Было достигнуто ограничение по количеству открытых файловых дескрипторов на " |
| 684 |
"процесс." |
| 685 |
|
| 686 |
#. type: TP |
| 687 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 688 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 689 |
#, no-wrap |
| 690 |
msgid "B<ENFILE>" |
| 691 |
msgstr "B<ENFILE>" |
| 692 |
|
| 693 |
#. type: Plain text |
| 694 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 695 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 696 |
msgid "" |
| 697 |
"The system-wide limit on the total number of open files has been reached." |
| 698 |
msgstr "Достигнуто максимальное количество открытых файлов в системе." |
| 699 |
|
| 700 |
#. type: TP |
| 701 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 702 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 703 |
#, no-wrap |
| 704 |
msgid "B<ENODEV>" |
| 705 |
msgstr "B<ENODEV>" |
| 706 |
|
| 707 |
#. type: Plain text |
| 708 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 709 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 710 |
msgid "Could not mount (internal) anonymous inode device." |
| 711 |
msgstr "Не удалось смонтировать (внутреннее) безымянное устройство inode." |
| 712 |
|
| 713 |
#. type: TP |
| 714 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 715 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 716 |
#, no-wrap |
| 717 |
msgid "B<ENOMEM>" |
| 718 |
msgstr "B<ENOMEM>" |
| 719 |
|
| 720 |
#. type: Plain text |
| 721 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 722 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 723 |
msgid "There was insufficient memory to create a new signalfd file descriptor." |
| 724 |
msgstr "" |
| 725 |
"Недостаточно памяти для создания нового файлового дескриптора signalfd." |
| 726 |
|
| 727 |
#. type: SH |
| 728 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 729 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 730 |
#, no-wrap |
| 731 |
msgid "VERSIONS" |
| 732 |
msgstr "ВЕРСИИ" |
| 733 |
|
| 734 |
#. type: SS |
| 735 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 736 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 737 |
#, no-wrap |
| 738 |
msgid "C library/kernel differences" |
| 739 |
msgstr "Отличия между библиотекой C и ядром" |
| 740 |
|
| 741 |
#. type: Plain text |
| 742 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 743 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 744 |
msgid "" |
| 745 |
"The underlying Linux system call requires an additional argument, I<size_t " |
| 746 |
"sizemask>, which specifies the size of the I<mask> argument. The glibc " |
| 747 |
"B<signalfd>() wrapper function does not include this argument, since it " |
| 748 |
"provides the required value for the underlying system call." |
| 749 |
msgstr "" |
| 750 |
"Лежащий в основе системный вызов Linux требует дополнительного аргумента, " |
| 751 |
"I<size_t sizemask>, в котором указывается размер аргумента I<mask>. В " |
| 752 |
"обёрточной функции glibc B<signalfd>() нет этого аргумента — требуемое для " |
| 753 |
"системного вызова значение добавляется библиотекой." |
| 754 |
|
| 755 |
#. type: Plain text |
| 756 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 757 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 758 |
msgid "" |
| 759 |
"There are two underlying Linux system calls: B<signalfd>() and the more " |
| 760 |
"recent B<signalfd4>(). The former system call does not implement a I<flags> " |
| 761 |
"argument. The latter system call implements the I<flags> values described " |
| 762 |
"above. Starting with glibc 2.9, the B<signalfd>() wrapper function will " |
| 763 |
"use B<signalfd4>() where it is available." |
| 764 |
msgstr "" |
| 765 |
"Существуют два системных вызова Linux: B<signalfd>() и более новый " |
| 766 |
"B<signalfd4>(). В первом системном вызове не реализован аргумент I<flags>. " |
| 767 |
"Во втором системном вызове реализованы значения I<flags>, описанные ранее. " |
| 768 |
"Начиная с glibc 2.9, обёрточная функция B<signalfd>() использует " |
| 769 |
"B<signalfd4>(), если он доступен." |
| 770 |
|
| 771 |
#. type: SH |
| 772 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 773 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 774 |
#, no-wrap |
| 775 |
msgid "STANDARDS" |
| 776 |
msgstr "СТАНДАРТЫ" |
| 777 |
|
| 778 |
#. type: Plain text |
| 779 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 780 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 781 |
msgid "Linux." |
| 782 |
msgstr "Linux." |
| 783 |
|
| 784 |
#. type: SH |
| 785 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 786 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 787 |
#, no-wrap |
| 788 |
msgid "HISTORY" |
| 789 |
msgstr "ИСТОРИЯ" |
| 790 |
|
| 791 |
#. type: TP |
| 792 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 793 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 794 |
#, fuzzy, no-wrap |
| 795 |
#| msgid "B<signal>(2)" |
| 796 |
msgid "B<signalfd>()" |
| 797 |
msgstr "B<signal>(2)" |
| 798 |
|
| 799 |
#. signalfd() is in glibc 2.7, but reportedly does not build |
| 800 |
#. type: Plain text |
| 801 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 802 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 803 |
msgid "Linux 2.6.22, glibc 2.8." |
| 804 |
msgstr "Linux 2.6.22, glibc 2.8." |
| 805 |
|
| 806 |
#. type: TP |
| 807 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 808 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 809 |
#, fuzzy, no-wrap |
| 810 |
#| msgid "B<signal>(2)" |
| 811 |
msgid "B<signalfd4>()" |
| 812 |
msgstr "B<signal>(2)" |
| 813 |
|
| 814 |
#. type: Plain text |
| 815 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 816 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 817 |
#, fuzzy |
| 818 |
#| msgid "util-linux 2.37.4" |
| 819 |
msgid "Linux 2.6.27." |
| 820 |
msgstr "util-linux 2.37.4" |
| 821 |
|
| 822 |
#. type: SH |
| 823 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 824 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 825 |
#, no-wrap |
| 826 |
msgid "NOTES" |
| 827 |
msgstr "ПРИМЕЧАНИЯ" |
| 828 |
|
| 829 |
#. type: Plain text |
| 830 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 831 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 832 |
msgid "" |
| 833 |
"A process can create multiple signalfd file descriptors. This makes it " |
| 834 |
"possible to accept different signals on different file descriptors. (This " |
| 835 |
"may be useful if monitoring the file descriptors using B<select>(2), " |
| 836 |
"B<poll>(2), or B<epoll>(7): the arrival of different signals will make " |
| 837 |
"different file descriptors ready.) If a signal appears in the I<mask> of " |
| 838 |
"more than one of the file descriptors, then occurrences of that signal can " |
| 839 |
"be read (once) from any one of the file descriptors." |
| 840 |
msgstr "" |
| 841 |
"Процесс может создать несколько файловых дескрипторов signalfd. Это " |
| 842 |
"позволяет принимать различные сигналы через различные файловые дескрипторы " |
| 843 |
"(может быть полезно при слежении за файловым дескриптором с помощью " |
| 844 |
"B<select>(2), B<poll>(2) или B<epoll>(7): прибытие различных сигналов делает " |
| 845 |
"готовым различные файловые дескрипторы). Если сигнал указан в I<mask> для " |
| 846 |
"нескольких файловых дескрипторов, то появление этого сигнала можно прочесть " |
| 847 |
"(однократно) из любого файлового дескриптора." |
| 848 |
|
| 849 |
#. type: Plain text |
| 850 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 851 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 852 |
msgid "" |
| 853 |
"Attempts to include B<SIGKILL> and B<SIGSTOP> in I<mask> are silently " |
| 854 |
"ignored." |
| 855 |
msgstr "" |
| 856 |
"Попытки включить B<SIGKILL> и B<SIGSTOP> в маску I<mask> просто игнорируются." |
| 857 |
|
| 858 |
#. type: Plain text |
| 859 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 860 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 861 |
#, fuzzy |
| 862 |
#| msgid "" |
| 863 |
#| "The signal mask employed by a signalfd file descriptor can be viewed via " |
| 864 |
#| "the entry for the corresponding file descriptor in the process's I</proc/" |
| 865 |
#| "[pid]/fdinfo> directory. See B<proc>(5) for further details." |
| 866 |
msgid "" |
| 867 |
"The signal mask employed by a signalfd file descriptor can be viewed via the " |
| 868 |
"entry for the corresponding file descriptor in the process's I</proc/>pidI</" |
| 869 |
"fdinfo> directory. See B<proc>(5) for further details." |
| 870 |
msgstr "" |
| 871 |
"Маску сигналов, используемую файловым дескриптором signalfd, можно " |
| 872 |
"посмотреть в записи соответствующего файлового дескриптора в каталоге " |
| 873 |
"процесса I</proc/[pid]/fdinfo>. Подробности смотрите в B<proc>(5)." |
| 874 |
|
| 875 |
#. type: SS |
| 876 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 877 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 878 |
#, no-wrap |
| 879 |
msgid "Limitations" |
| 880 |
msgstr "Ограничения" |
| 881 |
|
| 882 |
#. type: Plain text |
| 883 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 884 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 885 |
msgid "" |
| 886 |
"The signalfd mechanism can't be used to receive signals that are " |
| 887 |
"synchronously generated, such as the B<SIGSEGV> signal that results from " |
| 888 |
"accessing an invalid memory address or the B<SIGFPE> signal that results " |
| 889 |
"from an arithmetic error. Such signals can be caught only via signal " |
| 890 |
"handler." |
| 891 |
msgstr "" |
| 892 |
"Механизм signalfd нельзя использовать для приёма сигналов, генерируемых " |
| 893 |
"синхронно, например сигнала B<SIGSEGV> при доступе по неправильному адресу " |
| 894 |
"памяти, или сигнала B<SIGFPE> при математических ошибках. Такие сигналы " |
| 895 |
"можно поймать только через обработчик сигнала." |
| 896 |
|
| 897 |
#. type: Plain text |
| 898 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 899 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 900 |
msgid "" |
| 901 |
"As described above, in normal usage one blocks the signals that will be " |
| 902 |
"accepted via B<signalfd>(). If spawning a child process to execute a helper " |
| 903 |
"program (that does not need the signalfd file descriptor), then, after the " |
| 904 |
"call to B<fork>(2), you will normally want to unblock those signals before " |
| 905 |
"calling B<execve>(2), so that the helper program can see any signals that it " |
| 906 |
"expects to see. Be aware, however, that this won't be possible in the case " |
| 907 |
"of a helper program spawned behind the scenes by any library function that " |
| 908 |
"the program may call. In such cases, one must fall back to using a " |
| 909 |
"traditional signal handler that writes to a file descriptor monitored by " |
| 910 |
"B<select>(2), B<poll>(2), or B<epoll>(7)." |
| 911 |
msgstr "" |
| 912 |
"Как сказано выше, обычно все сигналы, принимаемые через B<signalfd>(), " |
| 913 |
"блокируются. Если порождается дочерний процесс для выполнения " |
| 914 |
"вспомогательной программы (которой не нужен файловый дескриптор signalfd), " |
| 915 |
"то после вызова B<fork>(2), обычно, нужно разблокировать эти сигналы перед " |
| 916 |
"вызовом B<execve>(2) для того, чтобы вспомогательная программа видела все " |
| 917 |
"сигналы, которые она ожидает увидеть. Однако имейте в виду, что это может " |
| 918 |
"быть невозможно, если вспомогательная программа порождается не вами, а где-" |
| 919 |
"то в библиотечной функции, которую может вызывать программа. В таких случаях " |
| 920 |
"нужно использовать обычный обработчик сигналов, который пишет в файловый " |
| 921 |
"дескриптор, отслеживаемый B<select>(2), B<poll>(2) или B<epoll>(7)." |
| 922 |
|
| 923 |
#. type: SH |
| 924 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 925 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 926 |
#, no-wrap |
| 927 |
msgid "BUGS" |
| 928 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 929 |
|
| 930 |
#. The fix also was put into Linux 2.6.24.5 |
| 931 |
#. type: Plain text |
| 932 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 933 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 934 |
#, fuzzy |
| 935 |
#| msgid "" |
| 936 |
#| "In kernels before 2.6.25, the I<ssi_ptr> and I<ssi_int> fields are not " |
| 937 |
#| "filled in with the data accompanying a signal sent by B<sigqueue>(3)." |
| 938 |
msgid "" |
| 939 |
"Before Linux 2.6.25, the I<ssi_ptr> and I<ssi_int> fields are not filled in " |
| 940 |
"with the data accompanying a signal sent by B<sigqueue>(3)." |
| 941 |
msgstr "" |
| 942 |
"В ядрах до версии 3.6.25, поля I<ssi_ptr> и I<ssi_int> не заполнялись " |
| 943 |
"данными, поступающими при посылке сигнала с помощью B<sigqueue>(3)." |
| 944 |
|
| 945 |
#. type: SH |
| 946 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 947 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 948 |
#, no-wrap |
| 949 |
msgid "EXAMPLES" |
| 950 |
msgstr "ПРИМЕРЫ" |
| 951 |
|
| 952 |
#. type: Plain text |
| 953 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 954 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 955 |
msgid "" |
| 956 |
"The program below accepts the signals B<SIGINT> and B<SIGQUIT> via a " |
| 957 |
"signalfd file descriptor. The program terminates after accepting a " |
| 958 |
"B<SIGQUIT> signal. The following shell session demonstrates the use of the " |
| 959 |
"program:" |
| 960 |
msgstr "" |
| 961 |
"Программа, представленная далее, принимает сигналы B<SIGINT> и B<SIGQUIT> " |
| 962 |
"через файловый дескриптор signalfd. Она завершает работу при приёме сигнала " |
| 963 |
"B<SIGQUIT>. Вот сеанс работы в оболочке, демонстрирующий использование " |
| 964 |
"программы:" |
| 965 |
|
| 966 |
#. type: Plain text |
| 967 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 968 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 969 |
#, fuzzy, no-wrap |
| 970 |
#| msgid "" |
| 971 |
#| "$B< ./signalfd_demo>\n" |
| 972 |
#| "B<^C> # Control-C generates SIGINT\n" |
| 973 |
#| "Got SIGINT\n" |
| 974 |
#| "B<^C>\n" |
| 975 |
#| "Got SIGINT\n" |
| 976 |
#| "B<^\\e> # Control-\\e generates SIGQUIT\n" |
| 977 |
#| "Got SIGQUIT\n" |
| 978 |
#| "$\n" |
| 979 |
msgid "" |
| 980 |
"$B< ./signalfd_demo>\n" |
| 981 |
"B<\\[ha]C> # Control-C generates SIGINT\n" |
| 982 |
"Got SIGINT\n" |
| 983 |
"B<\\[ha]C>\n" |
| 984 |
"Got SIGINT\n" |
| 985 |
"B<\\[ha]\\[rs]> # Control-\\[rs] generates SIGQUIT\n" |
| 986 |
"Got SIGQUIT\n" |
| 987 |
"$\n" |
| 988 |
msgstr "" |
| 989 |
"$B< ./signalfd_demo>\n" |
| 990 |
"B<^C> # Control-C генерирует SIGINT\n" |
| 991 |
"Получен SIGINT\n" |
| 992 |
"B<^C>\n" |
| 993 |
"Получен SIGINT\n" |
| 994 |
"B<^\\e> # Control-\\e генерирует SIGQUIT\n" |
| 995 |
"Получен SIGQUIT\n" |
| 996 |
"$\n" |
| 997 |
|
| 998 |
#. type: SS |
| 999 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1000 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1001 |
#, no-wrap |
| 1002 |
msgid "Program source" |
| 1003 |
msgstr "Исходный код программы" |
| 1004 |
|
| 1005 |
#. type: Plain text |
| 1006 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 1007 |
#: opensuse-tumbleweed |
| 1008 |
#, no-wrap |
| 1009 |
msgid "" |
| 1010 |
"#include E<lt>err.hE<gt>\n" |
| 1011 |
"#include E<lt>signal.hE<gt>\n" |
| 1012 |
"#include E<lt>stdio.hE<gt>\n" |
| 1013 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1014 |
"#include E<lt>sys/signalfd.hE<gt>\n" |
| 1015 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1016 |
"#include E<lt>unistd.hE<gt>\n" |
| 1017 |
"\\&\n" |
| 1018 |
"int\n" |
| 1019 |
"main(void)\n" |
| 1020 |
"{\n" |
| 1021 |
" int sfd;\n" |
| 1022 |
" ssize_t s;\n" |
| 1023 |
" sigset_t mask;\n" |
| 1024 |
" struct signalfd_siginfo fdsi;\n" |
| 1025 |
"\\&\n" |
| 1026 |
" sigemptyset(&mask);\n" |
| 1027 |
" sigaddset(&mask, SIGINT);\n" |
| 1028 |
" sigaddset(&mask, SIGQUIT);\n" |
| 1029 |
"\\&\n" |
| 1030 |
" /* Block signals so that they aren\\[aq]t handled\n" |
| 1031 |
" according to their default dispositions. */\n" |
| 1032 |
"\\&\n" |
| 1033 |
" if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" |
| 1034 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 1035 |
"\\&\n" |
| 1036 |
" sfd = signalfd(-1, &mask, 0);\n" |
| 1037 |
" if (sfd == -1)\n" |
| 1038 |
" err(EXIT_FAILURE, \"signalfd\");\n" |
| 1039 |
"\\&\n" |
| 1040 |
" for (;;) {\n" |
| 1041 |
" s = read(sfd, &fdsi, sizeof(fdsi));\n" |
| 1042 |
" if (s != sizeof(fdsi))\n" |
| 1043 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1044 |
"\\&\n" |
| 1045 |
" if (fdsi.ssi_signo == SIGINT) {\n" |
| 1046 |
" printf(\"Got SIGINT\\[rs]n\");\n" |
| 1047 |
" } else if (fdsi.ssi_signo == SIGQUIT) {\n" |
| 1048 |
" printf(\"Got SIGQUIT\\[rs]n\");\n" |
| 1049 |
" exit(EXIT_SUCCESS);\n" |
| 1050 |
" } else {\n" |
| 1051 |
" printf(\"Read unexpected signal\\[rs]n\");\n" |
| 1052 |
" }\n" |
| 1053 |
" }\n" |
| 1054 |
"}\n" |
| 1055 |
msgstr "" |
| 1056 |
|
| 1057 |
#. SRC END |
| 1058 |
#. type: SH |
| 1059 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1060 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1061 |
#, no-wrap |
| 1062 |
msgid "SEE ALSO" |
| 1063 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 1064 |
|
| 1065 |
#. type: Plain text |
| 1066 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1067 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1068 |
msgid "" |
| 1069 |
"B<eventfd>(2), B<poll>(2), B<read>(2), B<select>(2), B<sigaction>(2), " |
| 1070 |
"B<sigprocmask>(2), B<sigwaitinfo>(2), B<timerfd_create>(2), B<sigsetops>(3), " |
| 1071 |
"B<sigwait>(3), B<epoll>(7), B<signal>(7)" |
| 1072 |
msgstr "" |
| 1073 |
"B<eventfd>(2), B<poll>(2), B<read>(2), B<select>(2), B<sigaction>(2), " |
| 1074 |
"B<sigprocmask>(2), B<sigwaitinfo>(2), B<timerfd_create>(2), B<sigsetops>(3), " |
| 1075 |
"B<sigwait>(3), B<epoll>(7), B<signal>(7)" |
| 1076 |
|
| 1077 |
#. type: TH |
| 1078 |
#: debian-trixie |
| 1079 |
#, no-wrap |
| 1080 |
msgid "2024-06-15" |
| 1081 |
msgstr "15 июня 2024 г." |
| 1082 |
|
| 1083 |
#. type: TH |
| 1084 |
#: debian-trixie |
| 1085 |
#, no-wrap |
| 1086 |
msgid "Linux man-pages 6.9.1" |
| 1087 |
msgstr "Страницы руководства Linux 6.9.1" |
| 1088 |
|
| 1089 |
#. type: Plain text |
| 1090 |
#: debian-trixie |
| 1091 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1092 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 1093 |
|
| 1094 |
#. ssi_trapno is unused on most arches |
| 1095 |
#. ssi_addr_lsb: commit b8aeec34175fc8fe8b0d40efea4846dfc1ba663e |
| 1096 |
#. type: Plain text |
| 1097 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1098 |
#, fuzzy, no-wrap |
| 1099 |
#| msgid "" |
| 1100 |
#| "struct signalfd_siginfo {\n" |
| 1101 |
#| " uint32_t ssi_signo; /* Signal number */\n" |
| 1102 |
#| " int32_t ssi_errno; /* Error number (unused) */\n" |
| 1103 |
#| " int32_t ssi_code; /* Signal code */\n" |
| 1104 |
#| " uint32_t ssi_pid; /* PID of sender */\n" |
| 1105 |
#| " uint32_t ssi_uid; /* Real UID of sender */\n" |
| 1106 |
#| " int32_t ssi_fd; /* File descriptor (SIGIO) */\n" |
| 1107 |
#| " uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" |
| 1108 |
#| " uint32_t ssi_band; /* Band event (SIGIO) */\n" |
| 1109 |
#| " uint32_t ssi_overrun; /* POSIX timer overrun count */\n" |
| 1110 |
#| " uint32_t ssi_trapno; /* Trap number that caused signal */\n" |
| 1111 |
#| " int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" |
| 1112 |
#| " int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" |
| 1113 |
#| " uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" |
| 1114 |
#| " uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" |
| 1115 |
#| " uint64_t ssi_stime; /* System CPU time consumed\n" |
| 1116 |
#| " (SIGCHLD) */\n" |
| 1117 |
#| " uint64_t ssi_addr; /* Address that generated signal\n" |
| 1118 |
#| " (for hardware-generated signals) */\n" |
| 1119 |
#| " uint16_t ssi_addr_lsb; /* Least significant bit of address\n" |
| 1120 |
#| " (SIGBUS; since Linux 2.6.37)\n" |
| 1121 |
#| " uint8_t pad[I<X>]; /* Pad size to 128 bytes (allow for\n" |
| 1122 |
#| " additional fields in the future) */\n" |
| 1123 |
#| "};\n" |
| 1124 |
msgid "" |
| 1125 |
"struct signalfd_siginfo {\n" |
| 1126 |
" uint32_t ssi_signo; /* Signal number */\n" |
| 1127 |
" int32_t ssi_errno; /* Error number (unused) */\n" |
| 1128 |
" int32_t ssi_code; /* Signal code */\n" |
| 1129 |
" uint32_t ssi_pid; /* PID of sender */\n" |
| 1130 |
" uint32_t ssi_uid; /* Real UID of sender */\n" |
| 1131 |
" int32_t ssi_fd; /* File descriptor (SIGIO) */\n" |
| 1132 |
" uint32_t ssi_tid; /* Kernel timer ID (POSIX timers)\n" |
| 1133 |
" uint32_t ssi_band; /* Band event (SIGIO) */\n" |
| 1134 |
" uint32_t ssi_overrun; /* POSIX timer overrun count */\n" |
| 1135 |
" uint32_t ssi_trapno; /* Trap number that caused signal */\n" |
| 1136 |
" int32_t ssi_status; /* Exit status or signal (SIGCHLD) */\n" |
| 1137 |
" int32_t ssi_int; /* Integer sent by sigqueue(3) */\n" |
| 1138 |
" uint64_t ssi_ptr; /* Pointer sent by sigqueue(3) */\n" |
| 1139 |
" uint64_t ssi_utime; /* User CPU time consumed (SIGCHLD) */\n" |
| 1140 |
" uint64_t ssi_stime; /* System CPU time consumed\n" |
| 1141 |
" (SIGCHLD) */\n" |
| 1142 |
" uint64_t ssi_addr; /* Address that generated signal\n" |
| 1143 |
" (for hardware-generated signals) */\n" |
| 1144 |
" uint16_t ssi_addr_lsb; /* Least significant bit of address\n" |
| 1145 |
" (SIGBUS; since Linux 2.6.37) */\n" |
| 1146 |
" uint8_t pad[I<X>]; /* Pad size to 128 bytes (allow for\n" |
| 1147 |
" additional fields in the future) */\n" |
| 1148 |
"};\n" |
| 1149 |
msgstr "" |
| 1150 |
"struct signalfd_siginfo {\n" |
| 1151 |
" uint32_t ssi_signo; /* номер сигнала */\n" |
| 1152 |
" int32_t ssi_errno; /* номер ошибки (не используется) */\n" |
| 1153 |
" int32_t ssi_code; /* код сигнала */\n" |
| 1154 |
" uint32_t ssi_pid; /* PID отправителя */\n" |
| 1155 |
" uint32_t ssi_uid; /* реальный UID отправителя */\n" |
| 1156 |
" int32_t ssi_fd; /* файловый дескриптор (SIGIO) */\n" |
| 1157 |
" uint32_t ssi_tid; /* ID таймера ядра (таймеры POSIX)\n" |
| 1158 |
" uint32_t ssi_band; /* внутреннее событие (SIGIO) */\n" |
| 1159 |
" uint32_t ssi_overrun; /* счётчик переполнений таймера POSIX */\n" |
| 1160 |
" uint32_t ssi_trapno; /* номер ловушки, поймавшей сигнал */\n" |
| 1161 |
" int32_t ssi_status; /* код выхода или сигнала (SIGCHLD) */\n" |
| 1162 |
" int32_t ssi_int; /* целое, посланное sigqueue(3) */\n" |
| 1163 |
" uint64_t ssi_ptr; /* указатель, посланный sigqueue(3) */\n" |
| 1164 |
" uint64_t ssi_utime; /* пользовательское потреблённое\n" |
| 1165 |
" время ЦП (SIGCHLD) */\n" |
| 1166 |
" uint64_t ssi_stime; /* системное потреблённое\n" |
| 1167 |
" время ЦП (SIGCHLD) */\n" |
| 1168 |
" uint64_t ssi_addr; /* сгенерированный сигналом адрес\n" |
| 1169 |
" (для сигналов от аппаратуры) */\n" |
| 1170 |
" uint16_t ssi_addr_lsb; /* наименее значимый бит адреса\n" |
| 1171 |
" (SIGBUS; начиная с Linux 2.6.37)\n" |
| 1172 |
" uint8_t pad[I<X>]; /* заполнитель до 128 байт (для\n" |
| 1173 |
" будущих дополнительных полей) */\n" |
| 1174 |
"};\n" |
| 1175 |
|
| 1176 |
#. type: Plain text |
| 1177 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1178 |
#, no-wrap |
| 1179 |
msgid "" |
| 1180 |
"#include E<lt>err.hE<gt>\n" |
| 1181 |
"#include E<lt>signal.hE<gt>\n" |
| 1182 |
"#include E<lt>stdio.hE<gt>\n" |
| 1183 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1184 |
"#include E<lt>sys/signalfd.hE<gt>\n" |
| 1185 |
"#include E<lt>sys/types.hE<gt>\n" |
| 1186 |
"#include E<lt>unistd.hE<gt>\n" |
| 1187 |
"\\&\n" |
| 1188 |
"int\n" |
| 1189 |
"main(void)\n" |
| 1190 |
"{\n" |
| 1191 |
" int sfd;\n" |
| 1192 |
" ssize_t s;\n" |
| 1193 |
" sigset_t mask;\n" |
| 1194 |
" struct signalfd_siginfo fdsi;\n" |
| 1195 |
"\\&\n" |
| 1196 |
" sigemptyset(&mask);\n" |
| 1197 |
" sigaddset(&mask, SIGINT);\n" |
| 1198 |
" sigaddset(&mask, SIGQUIT);\n" |
| 1199 |
"\\&\n" |
| 1200 |
" /* Block signals so that they aren\\[aq]t handled\n" |
| 1201 |
" according to their default dispositions. */\n" |
| 1202 |
"\\&\n" |
| 1203 |
" if (sigprocmask(SIG_BLOCK, &mask, NULL) == -1)\n" |
| 1204 |
" err(EXIT_FAILURE, \"sigprocmask\");\n" |
| 1205 |
"\\&\n" |
| 1206 |
" sfd = signalfd(-1, &mask, 0);\n" |
| 1207 |
" if (sfd == -1)\n" |
| 1208 |
" err(EXIT_FAILURE, \"signalfd\");\n" |
| 1209 |
"\\&\n" |
| 1210 |
" for (;;) {\n" |
| 1211 |
" s = read(sfd, &fdsi, sizeof(fdsi));\n" |
| 1212 |
" if (s != sizeof(fdsi))\n" |
| 1213 |
" err(EXIT_FAILURE, \"read\");\n" |
| 1214 |
"\\&\n" |
| 1215 |
" if (fdsi.ssi_signo == SIGINT) {\n" |
| 1216 |
" printf(\"Got SIGINT\\[rs]n\");\n" |
| 1217 |
" } else if (fdsi.ssi_signo == SIGQUIT) {\n" |
| 1218 |
" printf(\"Got SIGQUIT\\[rs]n\");\n" |
| 1219 |
" exit(EXIT_SUCCESS);\n" |
| 1220 |
" } else {\n" |
| 1221 |
" printf(\"Read unexpected signal\\[rs]n\");\n" |
| 1222 |
" }\n" |
| 1223 |
" }\n" |
| 1224 |
"}\n" |
| 1225 |
msgstr "" |
| 1226 |
|
| 1227 |
#. type: TH |
| 1228 |
#: fedora-44 fedora-rawhide |
| 1229 |
#, no-wrap |
| 1230 |
msgid "2024-07-23" |
| 1231 |
msgstr "23 июля 2024 г." |
| 1232 |
|
| 1233 |
#. type: TH |
| 1234 |
#: fedora-44 fedora-rawhide |
| 1235 |
#, no-wrap |
| 1236 |
msgid "Linux man-pages 6.13" |
| 1237 |
msgstr "Страницы руководства Linux 6.13" |
| 1238 |
|
| 1239 |
#. type: TH |
| 1240 |
#: mageia-cauldron |
| 1241 |
#, no-wrap |
| 1242 |
msgid "Linux man-pages 6.17" |
| 1243 |
msgstr "Страницы руководства Linux 6.17" |
| 1244 |
|
| 1245 |
#. type: TH |
| 1246 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1247 |
#, no-wrap |
| 1248 |
msgid "Linux man-pages (unreleased)" |
| 1249 |
msgstr "Страницы руководства Linux (не выпущены)" |