| 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 |
# aereiae <[email protected]>, 2014. |
| 5 |
# Alexey <[email protected]>, 2015. |
| 6 |
# Azamat Hackimov <[email protected]>, 2013-2017. |
| 7 |
# Dmitriy S. Seregin <[email protected]>, 2013. |
| 8 |
# Dmitry Bolkhovskikh <[email protected]>, 2017. |
| 9 |
# ITriskTI <[email protected]>, 2013. |
| 10 |
# Max Is <[email protected]>, 2016. |
| 11 |
# Yuri Kozlov <[email protected]>, 2011-2019. |
| 12 |
# Иван Павлов <[email protected]>, 2017. |
| 13 |
# Малянов Евгений Викторович <[email protected]>, 2014. |
| 14 |
msgid "" |
| 15 |
msgstr "" |
| 16 |
"Project-Id-Version: manpages-l10n\n" |
| 17 |
"POT-Creation-Date: 2026-06-05 06:31+0200\n" |
| 18 |
"PO-Revision-Date: 2024-12-21 19:50+0300\n" |
| 19 |
"Last-Translator: Yuri Kozlov <[email protected]>\n" |
| 20 |
"Language-Team: Russian <[email protected]>\n" |
| 21 |
"Language: ru\n" |
| 22 |
"MIME-Version: 1.0\n" |
| 23 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 24 |
"Content-Transfer-Encoding: 8bit\n" |
| 25 |
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && " |
| 26 |
"n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || " |
| 27 |
"(n%100>=11 && n%100<=14)? 2 : 3);\n" |
| 28 |
"X-Generator: Lokalize 2.0\n" |
| 29 |
|
| 30 |
#. type: TH |
| 31 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 32 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 33 |
#, fuzzy, no-wrap |
| 34 |
#| msgid "B<mq_notify>()" |
| 35 |
msgid "mq_notify" |
| 36 |
msgstr "B<mq_notify>()" |
| 37 |
|
| 38 |
#. type: TH |
| 39 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 40 |
#: opensuse-tumbleweed |
| 41 |
#, no-wrap |
| 42 |
msgid "2026-02-08" |
| 43 |
msgstr "8 февраля 2026 г." |
| 44 |
|
| 45 |
#. type: TH |
| 46 |
#: archlinux debian-unstable |
| 47 |
#, fuzzy, no-wrap |
| 48 |
#| msgid "Linux man-pages 6.17" |
| 49 |
msgid "Linux man-pages 6.18" |
| 50 |
msgstr "Справочные страницы Linux 6.17" |
| 51 |
|
| 52 |
#. type: SH |
| 53 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 54 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 55 |
#, no-wrap |
| 56 |
msgid "NAME" |
| 57 |
msgstr "НАИМЕНОВАНИЕ" |
| 58 |
|
| 59 |
#. type: Plain text |
| 60 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 61 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 62 |
msgid "mq_notify - register for notification when a message is available" |
| 63 |
msgstr "mq_notify - включает уведомление при поступлении сообщения" |
| 64 |
|
| 65 |
#. type: SH |
| 66 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 67 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 68 |
#, no-wrap |
| 69 |
msgid "LIBRARY" |
| 70 |
msgstr "БИБЛИОТЕКА" |
| 71 |
|
| 72 |
#. type: Plain text |
| 73 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 74 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 75 |
msgid "Real-time library (I<librt>,\\ I<-lrt>)" |
| 76 |
msgstr "Библиотека реального времени (I<librt>,\\ I<-lrt>)" |
| 77 |
|
| 78 |
#. type: SH |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "SYNOPSIS" |
| 83 |
msgstr "СИНТАКСИС" |
| 84 |
|
| 85 |
#. type: Plain text |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, fuzzy, no-wrap |
| 89 |
#| msgid "" |
| 90 |
#| "B<#include E<lt>fcntl.hE<gt> >/* Definition of AT_* constants */\n" |
| 91 |
#| "B<#include E<lt>unistd.hE<gt>>\n" |
| 92 |
msgid "" |
| 93 |
"B<#include E<lt>mqueue.hE<gt>>\n" |
| 94 |
"B<#include E<lt>signal.hE<gt> >/* Definition of SIGEV_* constants */\n" |
| 95 |
msgstr "" |
| 96 |
"B<#include E<lt>fcntl.hE<gt> >/* определения констант of AT_* */\n" |
| 97 |
"B<#include E<lt>unistd.hE<gt>>\n" |
| 98 |
|
| 99 |
#. type: Plain text |
| 100 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 101 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 102 |
#, no-wrap |
| 103 |
msgid "B<int mq_notify(mqd_t >I<mqdes>B<, const struct sigevent *>I<sevp>B<);>\n" |
| 104 |
msgstr "B<int mq_notify(mqd_t >I<mqdes>B<, const struct sigevent *>I<sevp>B<);>\n" |
| 105 |
|
| 106 |
#. type: SH |
| 107 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 108 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 109 |
#, no-wrap |
| 110 |
msgid "DESCRIPTION" |
| 111 |
msgstr "ОПИСАНИЕ" |
| 112 |
|
| 113 |
#. type: Plain text |
| 114 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 115 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 116 |
msgid "" |
| 117 |
"B<mq_notify>() allows the calling process to register or unregister for " |
| 118 |
"delivery of an asynchronous notification when a new message arrives on the " |
| 119 |
"empty message queue referred to by the message queue descriptor I<mqdes>." |
| 120 |
msgstr "" |
| 121 |
"Функция B<mq_notify>() позволяет вызывающему процессу регистрироваться или " |
| 122 |
"отменять регистрацию доставки анонимных уведомлений при появлении нового " |
| 123 |
"сообщения в пустой очереди сообщений, на которую ссылается дескриптор " |
| 124 |
"очереди сообщений I<mqdes>." |
| 125 |
|
| 126 |
#. type: Plain text |
| 127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 129 |
#, fuzzy |
| 130 |
#| msgid "" |
| 131 |
#| "The I<sevp> argument is a pointer to a I<sigevent> structure. For the " |
| 132 |
#| "definition and general details of this structure, see B<sigevent>(7)." |
| 133 |
msgid "" |
| 134 |
"The I<sevp> argument is a pointer to a I<sigevent> structure. For the " |
| 135 |
"definition and general details of this structure, see B<sigevent>(3type)." |
| 136 |
msgstr "" |
| 137 |
"Аргумент I<sevp> является указателем на структуру I<sigevent>. Определение и " |
| 138 |
"описание структуры смотрите в B<sigevent>(7)." |
| 139 |
|
| 140 |
#. type: Plain text |
| 141 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 142 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 143 |
msgid "" |
| 144 |
"If I<sevp> is a non-null pointer, then B<mq_notify>() registers the calling " |
| 145 |
"process to receive message notification. The I<sigev_notify> field of the " |
| 146 |
"I<sigevent> structure to which I<sevp> points specifies how notification is " |
| 147 |
"to be performed. This field has one of the following values:" |
| 148 |
msgstr "" |
| 149 |
"Если I<sevp> не равен null, то B<mq_notify>() регистрирует вызывающий " |
| 150 |
"процесс для получения уведомлений о сообщениях. В поле I<sigev_notify> " |
| 151 |
"структуры I<sigevent>, на которую указывает I<sevp>, задаётся способ " |
| 152 |
"выполнения уведомления. Это поле может содержать одно из следующих значений:" |
| 153 |
|
| 154 |
#. type: TP |
| 155 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 156 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 157 |
#, no-wrap |
| 158 |
msgid "B<SIGEV_NONE>" |
| 159 |
msgstr "B<SIGEV_NONE>" |
| 160 |
|
| 161 |
#. When is SIGEV_NONE useful? |
| 162 |
#. type: Plain text |
| 163 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 164 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 165 |
msgid "" |
| 166 |
"A \"null\" notification: the calling process is registered as the target for " |
| 167 |
"notification, but when a message arrives, no notification is sent." |
| 168 |
msgstr "" |
| 169 |
"«Нулевое» уведомление: хотя вызывающий процесс и регистрируется как " |
| 170 |
"уведомляемый, при появлении сообщения уведомление не будет отправлено." |
| 171 |
|
| 172 |
#. type: TP |
| 173 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 174 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 175 |
#, no-wrap |
| 176 |
msgid "B<SIGEV_SIGNAL>" |
| 177 |
msgstr "B<SIGEV_SIGNAL>" |
| 178 |
|
| 179 |
#. I don't know of other implementations that set |
| 180 |
#. si_pid and si_uid -- MTK |
| 181 |
#. type: Plain text |
| 182 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 183 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 184 |
#, fuzzy |
| 185 |
#| msgid "" |
| 186 |
#| "Notify the process by sending the signal specified in I<sigev_signo>. " |
| 187 |
#| "See B<sigevent>(7) for general details. The I<si_code> field of the " |
| 188 |
#| "I<siginfo_t> structure will be set to B<SI_MESGQ>. In addition, " |
| 189 |
#| "I<si_pid> will be set to the PID of the process that sent the message, " |
| 190 |
#| "and I<si_uid> will be set to the real user ID of the sending process." |
| 191 |
msgid "" |
| 192 |
"Notify the process by sending the signal specified in I<sigev_signo>. See " |
| 193 |
"B<sigevent>(3type) for general details. The I<si_code> field of the " |
| 194 |
"I<siginfo_t> structure will be set to B<SI_MESGQ>. In addition, I<si_pid> " |
| 195 |
"will be set to the PID of the process that sent the message, and I<si_uid> " |
| 196 |
"will be set to the real user ID of the sending process." |
| 197 |
msgstr "" |
| 198 |
"Уведомлять процесс посредством отправки сигнала, указанного в " |
| 199 |
"I<sigev_signo>. Подробности смотрите в B<sigevent>(7). Поле I<si_code> " |
| 200 |
"структуры I<siginfo_t> будет изменено на B<SI_MESGQ>. Также, значение " |
| 201 |
"I<si_pid> будет изменено на PID процесса, который посылается сообщение, а " |
| 202 |
"значение I<si_uid> будет изменено на реальный пользовательский ID " |
| 203 |
"посылающего процесса." |
| 204 |
|
| 205 |
#. type: TP |
| 206 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 207 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 208 |
#, no-wrap |
| 209 |
msgid "B<SIGEV_THREAD>" |
| 210 |
msgstr "B<SIGEV_THREAD>" |
| 211 |
|
| 212 |
#. type: Plain text |
| 213 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 214 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 215 |
#, fuzzy |
| 216 |
#| msgid "" |
| 217 |
#| "Upon message delivery, invoke I<sigev_notify_function> as if it were the " |
| 218 |
#| "start function of a new thread. See B<sigevent>(7) for details." |
| 219 |
msgid "" |
| 220 |
"Upon message delivery, invoke I<sigev_notify_function> as if it were the " |
| 221 |
"start function of a new thread. See B<sigevent>(3type) for details." |
| 222 |
msgstr "" |
| 223 |
"При доставке сообщения вызвать I<sigev_notify_function>, как если бы это " |
| 224 |
"была начальная функция новой нити. Подробности смотрите в B<sigevent>(7)." |
| 225 |
|
| 226 |
#. type: Plain text |
| 227 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 228 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 229 |
msgid "" |
| 230 |
"Only one process can be registered to receive notification from a message " |
| 231 |
"queue." |
| 232 |
msgstr "" |
| 233 |
"Только один процесс может быть зарегистрирован, чтобы получить уведомление " |
| 234 |
"из очереди сообщений." |
| 235 |
|
| 236 |
#. type: Plain text |
| 237 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 238 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 239 |
msgid "" |
| 240 |
"If I<sevp> is NULL, and the calling process is currently registered to " |
| 241 |
"receive notifications for this message queue, then the registration is " |
| 242 |
"removed; another process can then register to receive a message notification " |
| 243 |
"for this queue." |
| 244 |
msgstr "" |
| 245 |
"Если I<sevp> равно NULL и вызывающий процесс уже зарегистрирован принимать " |
| 246 |
"сообщения для этой очереди сообщений, то регистрация удаляется; после этого " |
| 247 |
"другой процесс может зарегистрироваться для получения уведомлений о " |
| 248 |
"сообщениях в этой очереди." |
| 249 |
|
| 250 |
#. type: Plain text |
| 251 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 252 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 253 |
msgid "" |
| 254 |
"Message notification occurs only when a new message arrives and the queue " |
| 255 |
"was previously empty. If the queue was not empty at the time " |
| 256 |
"B<mq_notify>() was called, then a notification will occur only after the " |
| 257 |
"queue is emptied and a new message arrives." |
| 258 |
msgstr "" |
| 259 |
"Уведомление о сообщение возникает только при поступлении нового сообщения и " |
| 260 |
"если очередь до этого была пуста. Если очередь не пуста на момент вызова " |
| 261 |
"B<mq_notify>(), то уведомление будет происходить только после опустошения " |
| 262 |
"очереди и поступлении нового сообщения." |
| 263 |
|
| 264 |
#. type: Plain text |
| 265 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 266 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 267 |
msgid "" |
| 268 |
"If another process or thread is waiting to read a message from an empty " |
| 269 |
"queue using B<mq_receive>(3), then any message notification registration is " |
| 270 |
"ignored: the message is delivered to the process or thread calling " |
| 271 |
"B<mq_receive>(3), and the message notification registration remains in " |
| 272 |
"effect." |
| 273 |
msgstr "" |
| 274 |
"Если другой процесс или нить ожидают чтения сообщения из пустой очереди с " |
| 275 |
"помощью B<mq_receive>(3), то все регистрации по уведомлению игнорируются; " |
| 276 |
"сообщение доставляется процесс или нити вызвавшей B<mq_receive>(3), и " |
| 277 |
"регистрация уведомления о сообщении остаётся как была." |
| 278 |
|
| 279 |
#. type: Plain text |
| 280 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 281 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 282 |
msgid "" |
| 283 |
"Notification occurs once: after a notification is delivered, the " |
| 284 |
"notification registration is removed, and another process can register for " |
| 285 |
"message notification. If the notified process wishes to receive the next " |
| 286 |
"notification, it can use B<mq_notify>() to request a further notification. " |
| 287 |
"This should be done before emptying all unread messages from the queue. " |
| 288 |
"(Placing the queue in nonblocking mode is useful for emptying the queue of " |
| 289 |
"messages without blocking once it is empty.)" |
| 290 |
msgstr "" |
| 291 |
"Уведомление выполняется один раз: после доставки уведомления регистрация " |
| 292 |
"удаляется и другой процесс может зарегистрироваться для уведомления. Если " |
| 293 |
"уведомлённый процесс хочет получить следующее уведомление, то он может " |
| 294 |
"использовать B<mq_notify>() для запроса уведомления в дальнейшем. Это должно " |
| 295 |
"быть сделано до исчезновения всех непрочитанных сообщений из очереди " |
| 296 |
"(переключение очереди в неблокирующий режим полезно для опустошения очереди " |
| 297 |
"сообщений без блокировки, если очередь пуста)." |
| 298 |
|
| 299 |
#. type: SH |
| 300 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 301 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 302 |
#, no-wrap |
| 303 |
msgid "RETURN VALUE" |
| 304 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 305 |
|
| 306 |
#. type: Plain text |
| 307 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 308 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 309 |
msgid "" |
| 310 |
"On success B<mq_notify>() returns 0; on error, -1 is returned, with " |
| 311 |
"I<errno> set to indicate the error." |
| 312 |
msgstr "" |
| 313 |
"При успешном выполнении B<mq_notify>() возвращает 0; при ошибке возвращает " |
| 314 |
"-1, а в I<errno> помещается код ошибки." |
| 315 |
|
| 316 |
#. type: SH |
| 317 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 318 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 319 |
#, no-wrap |
| 320 |
msgid "ERRORS" |
| 321 |
msgstr "ОШИБКИ" |
| 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<EBADF>" |
| 328 |
msgstr "B<EBADF>" |
| 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 "The message queue descriptor specified in I<mqdes> is invalid." |
| 334 |
msgstr "В I<mqdes> размещён некорректный дескриптор очереди сообщений." |
| 335 |
|
| 336 |
#. type: TP |
| 337 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 338 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 339 |
#, no-wrap |
| 340 |
msgid "B<EBUSY>" |
| 341 |
msgstr "B<EBUSY>" |
| 342 |
|
| 343 |
#. type: Plain text |
| 344 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 345 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 346 |
msgid "" |
| 347 |
"Another process has already registered to receive notification for this " |
| 348 |
"message queue." |
| 349 |
msgstr "" |
| 350 |
"Другой процесс уже зарегистрировался, чтобы получать уведомление из этой " |
| 351 |
"очереди сообщений." |
| 352 |
|
| 353 |
#. type: TP |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "B<EINVAL>" |
| 358 |
msgstr "B<EINVAL>" |
| 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 |
"I<sevp-E<gt>sigev_notify> is not one of the permitted values; or I<sevp-" |
| 365 |
"E<gt>sigev_notify> is B<SIGEV_SIGNAL> and I<sevp-E<gt>sigev_signo> is not a " |
| 366 |
"valid signal number." |
| 367 |
msgstr "" |
| 368 |
"Значение I<sevp-E<gt>sigev_notify> содержит недопустимое значение; или " |
| 369 |
"I<sevp-E<gt>sigev_notify> равно B<SIGEV_SIGNAL> и I<sevp-E<gt>sigev_signo> " |
| 370 |
"не содержит корректного номера сигнала." |
| 371 |
|
| 372 |
#. type: TP |
| 373 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 374 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
#, no-wrap |
| 376 |
msgid "B<ENOMEM>" |
| 377 |
msgstr "B<ENOMEM>" |
| 378 |
|
| 379 |
#. type: Plain text |
| 380 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 381 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 382 |
msgid "Insufficient memory." |
| 383 |
msgstr "Недостаточно памяти." |
| 384 |
|
| 385 |
#. Linux does not do this |
| 386 |
#. type: Plain text |
| 387 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 388 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 389 |
msgid "" |
| 390 |
"POSIX.1-2008 says that an implementation I<may> generate an B<EINVAL> error " |
| 391 |
"if I<sevp> is NULL, and the caller is not currently registered to receive " |
| 392 |
"notifications for the queue I<mqdes>." |
| 393 |
msgstr "" |
| 394 |
"В POSIX.1-2008 сказано, что реализация I<может> генерировать ошибку " |
| 395 |
"B<EINVAL>, если I<sevp> равно NULL, и вызывающий ещё не зарегистрирован для " |
| 396 |
"получения уведомлений из очереди I<mqdes>." |
| 397 |
|
| 398 |
#. type: SH |
| 399 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 400 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 401 |
#, no-wrap |
| 402 |
msgid "ATTRIBUTES" |
| 403 |
msgstr "АТРИБУТЫ" |
| 404 |
|
| 405 |
#. type: Plain text |
| 406 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 407 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 408 |
msgid "" |
| 409 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 410 |
msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)." |
| 411 |
|
| 412 |
#. type: tbl table |
| 413 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 414 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 415 |
#, no-wrap |
| 416 |
msgid "Interface" |
| 417 |
msgstr "Интерфейс" |
| 418 |
|
| 419 |
#. type: tbl table |
| 420 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 421 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 422 |
#, no-wrap |
| 423 |
msgid "Attribute" |
| 424 |
msgstr "Атрибут" |
| 425 |
|
| 426 |
#. type: tbl table |
| 427 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 428 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 429 |
#, no-wrap |
| 430 |
msgid "Value" |
| 431 |
msgstr "Значение" |
| 432 |
|
| 433 |
#. type: tbl table |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
#, no-wrap |
| 437 |
msgid ".na\n" |
| 438 |
msgstr ".na\n" |
| 439 |
|
| 440 |
#. type: tbl table |
| 441 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 442 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 443 |
#, no-wrap |
| 444 |
msgid ".nh\n" |
| 445 |
msgstr ".nh\n" |
| 446 |
|
| 447 |
#. type: tbl table |
| 448 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 449 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 450 |
#, no-wrap |
| 451 |
msgid "B<mq_notify>()" |
| 452 |
msgstr "B<mq_notify>()" |
| 453 |
|
| 454 |
#. type: tbl table |
| 455 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 456 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 457 |
#, no-wrap |
| 458 |
msgid "Thread safety" |
| 459 |
msgstr "Безвредность в нитях" |
| 460 |
|
| 461 |
#. type: tbl table |
| 462 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 463 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 464 |
#, no-wrap |
| 465 |
msgid "MT-Safe" |
| 466 |
msgstr "MT-Safe" |
| 467 |
|
| 468 |
#. type: SH |
| 469 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 470 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 471 |
#, no-wrap |
| 472 |
msgid "VERSIONS" |
| 473 |
msgstr "ВЕРСИИ" |
| 474 |
|
| 475 |
#. type: SS |
| 476 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 477 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 478 |
#, no-wrap |
| 479 |
msgid "C library/kernel differences" |
| 480 |
msgstr "Отличия между библиотекой C и ядром" |
| 481 |
|
| 482 |
#. type: Plain text |
| 483 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 484 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 485 |
msgid "" |
| 486 |
"In the glibc implementation, the B<mq_notify>() library function is " |
| 487 |
"implemented on top of the system call of the same name. When I<sevp> is " |
| 488 |
"NULL, or specifies a notification mechanism other than B<SIGEV_THREAD>, the " |
| 489 |
"library function directly invokes the system call. For B<SIGEV_THREAD>, " |
| 490 |
"much of the implementation resides within the library, rather than the " |
| 491 |
"kernel. (This is necessarily so, since the thread involved in handling the " |
| 492 |
"notification is one that must be managed by the C library POSIX threads " |
| 493 |
"implementation.) The implementation involves the use of a raw " |
| 494 |
"B<netlink>(7) socket and creates a new thread for each notification that is " |
| 495 |
"delivered to the process." |
| 496 |
msgstr "" |
| 497 |
"В glibc библиотечная функция B<mq_notify>() реализована на основе системного " |
| 498 |
"вызова с тем же именем. Если I<sevp> равно NULL или задаёт механизм " |
| 499 |
"уведомления не B<SIGEV_THREAD>, то библиотечная функция напрямую вызывает " |
| 500 |
"системный вызов. Большая часть реализации B<SIGEV_THREAD> располагается " |
| 501 |
"внутри библиотеки, а не в ядре (эта необходимость возникает из-за того, что " |
| 502 |
"нить, вовлечённая в обработку уведомления, должна управляться в библиотечной " |
| 503 |
"реализации C нитей POSIX). В реализации задействуется неструктурированный " |
| 504 |
"сокет B<netlink>(7) и создаётся новая нить для каждого уведомления, " |
| 505 |
"доставляемого процессу." |
| 506 |
|
| 507 |
#. type: SH |
| 508 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 509 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 510 |
#, no-wrap |
| 511 |
msgid "STANDARDS" |
| 512 |
msgstr "СТАНДАРТЫ" |
| 513 |
|
| 514 |
#. type: Plain text |
| 515 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 516 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 517 |
msgid "POSIX.1-2008." |
| 518 |
msgstr "POSIX.1-2008." |
| 519 |
|
| 520 |
#. type: SH |
| 521 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 522 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 523 |
#, no-wrap |
| 524 |
msgid "HISTORY" |
| 525 |
msgstr "ИСТОРИЯ" |
| 526 |
|
| 527 |
#. type: Plain text |
| 528 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 529 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
msgid "POSIX.1-2001." |
| 531 |
msgstr "POSIX.1-2001." |
| 532 |
|
| 533 |
#. type: SH |
| 534 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 535 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 536 |
#, no-wrap |
| 537 |
msgid "EXAMPLES" |
| 538 |
msgstr "ПРИМЕРЫ" |
| 539 |
|
| 540 |
#. type: Plain text |
| 541 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 542 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 543 |
msgid "" |
| 544 |
"The following program registers a notification request for the message queue " |
| 545 |
"named in its command-line argument. Notification is performed by creating a " |
| 546 |
"thread. The thread executes a function which reads one message from the " |
| 547 |
"queue and then terminates the process." |
| 548 |
msgstr "" |
| 549 |
"В следующей программе показана регистрация запроса уведомления для очереди " |
| 550 |
"сообщений с именем, указанном в аргументе командной строки. Уведомление " |
| 551 |
"выполняется создаваемой нитью. Нить выполняет функцию, которая читает одно " |
| 552 |
"сообщение из очереди и завершает процесс." |
| 553 |
|
| 554 |
#. type: SS |
| 555 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 556 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 557 |
#, no-wrap |
| 558 |
msgid "Program source" |
| 559 |
msgstr "Исходный код программы" |
| 560 |
|
| 561 |
#. type: Plain text |
| 562 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 563 |
#: opensuse-tumbleweed |
| 564 |
#, no-wrap |
| 565 |
msgid "" |
| 566 |
"#include E<lt>err.hE<gt>\n" |
| 567 |
"#include E<lt>mqueue.hE<gt>\n" |
| 568 |
"#include E<lt>pthread.hE<gt>\n" |
| 569 |
"#include E<lt>signal.hE<gt>\n" |
| 570 |
"#include E<lt>stdio.hE<gt>\n" |
| 571 |
"#include E<lt>stdlib.hE<gt>\n" |
| 572 |
"#include E<lt>unistd.hE<gt>\n" |
| 573 |
"\\&\n" |
| 574 |
"static void /* Thread start function */\n" |
| 575 |
"tfunc(union sigval sv)\n" |
| 576 |
"{\n" |
| 577 |
" struct mq_attr attr;\n" |
| 578 |
" ssize_t nr;\n" |
| 579 |
" void *buf;\n" |
| 580 |
" mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n" |
| 581 |
"\\&\n" |
| 582 |
" /* Determine max.\\& msg size; allocate buffer to receive msg */\n" |
| 583 |
"\\&\n" |
| 584 |
" if (mq_getattr(mqdes, &attr) == -1)\n" |
| 585 |
" err(EXIT_FAILURE, \"mq_getattr\");\n" |
| 586 |
" buf = malloc(attr.mq_msgsize);\n" |
| 587 |
" if (buf == NULL)\n" |
| 588 |
" err(EXIT_FAILURE, \"malloc\");\n" |
| 589 |
"\\&\n" |
| 590 |
" nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n" |
| 591 |
" if (nr == -1)\n" |
| 592 |
" err(EXIT_FAILURE, \"mq_receive\");\n" |
| 593 |
"\\&\n" |
| 594 |
" printf(\"Read %zd bytes from MQ\\[rs]n\", nr);\n" |
| 595 |
" free(buf);\n" |
| 596 |
" exit(EXIT_SUCCESS); /* Terminate the process */\n" |
| 597 |
"}\n" |
| 598 |
"\\&\n" |
| 599 |
"int\n" |
| 600 |
"main(int argc, char *argv[])\n" |
| 601 |
"{\n" |
| 602 |
" mqd_t mqdes;\n" |
| 603 |
" struct sigevent sev;\n" |
| 604 |
"\\&\n" |
| 605 |
" if (argc != 2) {\n" |
| 606 |
" fprintf(stderr, \"Usage: %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n" |
| 607 |
" exit(EXIT_FAILURE);\n" |
| 608 |
" }\n" |
| 609 |
"\\&\n" |
| 610 |
" mqdes = mq_open(argv[1], O_RDONLY);\n" |
| 611 |
" if (mqdes == (mqd_t) -1)\n" |
| 612 |
" err(EXIT_FAILURE, \"mq_open\");\n" |
| 613 |
"\\&\n" |
| 614 |
" sev.sigev_notify = SIGEV_THREAD;\n" |
| 615 |
" sev.sigev_notify_function = tfunc;\n" |
| 616 |
" sev.sigev_notify_attributes = NULL;\n" |
| 617 |
" sev.sigev_value.sival_ptr = &mqdes; /* Arg.\\& to thread func. */\n" |
| 618 |
" if (mq_notify(mqdes, &sev) == -1)\n" |
| 619 |
" err(EXIT_FAILURE, \"mq_notify\");\n" |
| 620 |
"\\&\n" |
| 621 |
" pause(); /* Process will be terminated by thread function */\n" |
| 622 |
"}\n" |
| 623 |
msgstr "" |
| 624 |
|
| 625 |
#. SRC END |
| 626 |
#. type: SH |
| 627 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 628 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 629 |
#, no-wrap |
| 630 |
msgid "SEE ALSO" |
| 631 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 632 |
|
| 633 |
#. type: Plain text |
| 634 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 635 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 636 |
#, fuzzy |
| 637 |
#| msgid "" |
| 638 |
#| "B<mq_close>(3), B<mq_getattr>(3), B<mq_open>(3), B<mq_receive>(3), " |
| 639 |
#| "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7), B<sigevent>(7)" |
| 640 |
msgid "" |
| 641 |
"B<mq_close>(3), B<mq_getattr>(3), B<mq_open>(3), B<mq_receive>(3), " |
| 642 |
"B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7), B<sigevent>(3type)" |
| 643 |
msgstr "" |
| 644 |
"B<mq_close>(3), B<mq_getattr>(3), B<mq_open>(3), B<mq_receive>(3), " |
| 645 |
"B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7), B<sigevent>(7)" |
| 646 |
|
| 647 |
#. type: TH |
| 648 |
#: debian-trixie |
| 649 |
#, no-wrap |
| 650 |
msgid "2024-06-15" |
| 651 |
msgstr "15 июня 2024 г." |
| 652 |
|
| 653 |
#. type: TH |
| 654 |
#: debian-trixie |
| 655 |
#, no-wrap |
| 656 |
msgid "Linux man-pages 6.9.1" |
| 657 |
msgstr "Страницы руководства Linux 6.9.1" |
| 658 |
|
| 659 |
#. type: Plain text |
| 660 |
#: debian-trixie |
| 661 |
msgid "Real-time library (I<librt>, I<-lrt>)" |
| 662 |
msgstr "Библиотека реального времени (I<librt>, I<-lrt>)" |
| 663 |
|
| 664 |
#. type: Plain text |
| 665 |
#: debian-trixie fedora-44 fedora-rawhide |
| 666 |
#, no-wrap |
| 667 |
msgid "" |
| 668 |
"#include E<lt>mqueue.hE<gt>\n" |
| 669 |
"#include E<lt>pthread.hE<gt>\n" |
| 670 |
"#include E<lt>signal.hE<gt>\n" |
| 671 |
"#include E<lt>stdio.hE<gt>\n" |
| 672 |
"#include E<lt>stdlib.hE<gt>\n" |
| 673 |
"#include E<lt>unistd.hE<gt>\n" |
| 674 |
"\\&\n" |
| 675 |
"#define handle_error(msg) \\[rs]\n" |
| 676 |
" do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" |
| 677 |
"\\&\n" |
| 678 |
"static void /* Thread start function */\n" |
| 679 |
"tfunc(union sigval sv)\n" |
| 680 |
"{\n" |
| 681 |
" struct mq_attr attr;\n" |
| 682 |
" ssize_t nr;\n" |
| 683 |
" void *buf;\n" |
| 684 |
" mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n" |
| 685 |
"\\&\n" |
| 686 |
" /* Determine max. msg size; allocate buffer to receive msg */\n" |
| 687 |
"\\&\n" |
| 688 |
" if (mq_getattr(mqdes, &attr) == -1)\n" |
| 689 |
" handle_error(\"mq_getattr\");\n" |
| 690 |
" buf = malloc(attr.mq_msgsize);\n" |
| 691 |
" if (buf == NULL)\n" |
| 692 |
" handle_error(\"malloc\");\n" |
| 693 |
"\\&\n" |
| 694 |
" nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n" |
| 695 |
" if (nr == -1)\n" |
| 696 |
" handle_error(\"mq_receive\");\n" |
| 697 |
"\\&\n" |
| 698 |
" printf(\"Read %zd bytes from MQ\\[rs]n\", nr);\n" |
| 699 |
" free(buf);\n" |
| 700 |
" exit(EXIT_SUCCESS); /* Terminate the process */\n" |
| 701 |
"}\n" |
| 702 |
"\\&\n" |
| 703 |
"int\n" |
| 704 |
"main(int argc, char *argv[])\n" |
| 705 |
"{\n" |
| 706 |
" mqd_t mqdes;\n" |
| 707 |
" struct sigevent sev;\n" |
| 708 |
"\\&\n" |
| 709 |
" if (argc != 2) {\n" |
| 710 |
" fprintf(stderr, \"Usage: %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n" |
| 711 |
" exit(EXIT_FAILURE);\n" |
| 712 |
" }\n" |
| 713 |
"\\&\n" |
| 714 |
" mqdes = mq_open(argv[1], O_RDONLY);\n" |
| 715 |
" if (mqdes == (mqd_t) -1)\n" |
| 716 |
" handle_error(\"mq_open\");\n" |
| 717 |
"\\&\n" |
| 718 |
" sev.sigev_notify = SIGEV_THREAD;\n" |
| 719 |
" sev.sigev_notify_function = tfunc;\n" |
| 720 |
" sev.sigev_notify_attributes = NULL;\n" |
| 721 |
" sev.sigev_value.sival_ptr = &mqdes; /* Arg. to thread func. */\n" |
| 722 |
" if (mq_notify(mqdes, &sev) == -1)\n" |
| 723 |
" handle_error(\"mq_notify\");\n" |
| 724 |
"\\&\n" |
| 725 |
" pause(); /* Process will be terminated by thread function */\n" |
| 726 |
"}\n" |
| 727 |
msgstr "" |
| 728 |
|
| 729 |
#. type: TH |
| 730 |
#: fedora-44 fedora-rawhide |
| 731 |
#, no-wrap |
| 732 |
msgid "2024-07-23" |
| 733 |
msgstr "23 июля 2024 г." |
| 734 |
|
| 735 |
#. type: TH |
| 736 |
#: fedora-44 fedora-rawhide |
| 737 |
#, no-wrap |
| 738 |
msgid "Linux man-pages 6.13" |
| 739 |
msgstr "Страницы руководства Linux 6.13" |
| 740 |
|
| 741 |
#. type: TH |
| 742 |
#: mageia-cauldron |
| 743 |
#, no-wrap |
| 744 |
msgid "Linux man-pages 6.17" |
| 745 |
msgstr "Страницы руководства Linux 6.17" |
| 746 |
|
| 747 |
#. type: TH |
| 748 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 749 |
#, no-wrap |
| 750 |
msgid "Linux man-pages (unreleased)" |
| 751 |
msgstr "Страницы руководства Linux (не выпущены)" |