| 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:32+0200\n" |
| 18 |
"PO-Revision-Date: 2024-12-21 19:49+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 |
#, no-wrap |
| 34 |
msgid "MSGOP" |
| 35 |
msgstr "MSGOP" |
| 36 |
|
| 37 |
#. type: TH |
| 38 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 39 |
#: opensuse-tumbleweed |
| 40 |
#, no-wrap |
| 41 |
msgid "2026-02-11" |
| 42 |
msgstr "11 февраля 2026 г." |
| 43 |
|
| 44 |
#. type: TH |
| 45 |
#: archlinux debian-unstable |
| 46 |
#, fuzzy, no-wrap |
| 47 |
#| msgid "Linux man-pages 6.17" |
| 48 |
msgid "Linux man-pages 6.18" |
| 49 |
msgstr "Справочные страницы Linux 6.17" |
| 50 |
|
| 51 |
#. type: SH |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
#, no-wrap |
| 55 |
msgid "NAME" |
| 56 |
msgstr "НАИМЕНОВАНИЕ" |
| 57 |
|
| 58 |
#. type: Plain text |
| 59 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 60 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
msgid "msgrcv, msgsnd - System V message queue operations" |
| 62 |
msgstr "msgrcv, msgsnd - операции с очередью сообщений System V" |
| 63 |
|
| 64 |
#. type: SH |
| 65 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 66 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "LIBRARY" |
| 69 |
msgstr "БИБЛИОТЕКА" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 73 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 75 |
msgstr "Стандартная библиотека языка C (I<libc>,\\ I<-lc>)" |
| 76 |
|
| 77 |
#. type: SH |
| 78 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 79 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 80 |
#, no-wrap |
| 81 |
msgid "SYNOPSIS" |
| 82 |
msgstr "СИНТАКСИС" |
| 83 |
|
| 84 |
#. type: Plain text |
| 85 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 86 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "B<#include E<lt>sys/msg.hE<gt>>\n" |
| 89 |
msgstr "B<#include E<lt>sys/msg.hE<gt>>\n" |
| 90 |
|
| 91 |
#. type: Plain text |
| 92 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 93 |
#: opensuse-tumbleweed |
| 94 |
#, fuzzy, no-wrap |
| 95 |
#| msgid "" |
| 96 |
#| "B<ssize_t msgrcv(int >I<msqid>B<, void *>I<msgp>B<, size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 97 |
#| "B< int >I<msgflg>B<);>\n" |
| 98 |
msgid "" |
| 99 |
"B<ssize_t msgrcv(>size_t msgsz;\n" |
| 100 |
"B< int >I<msqid>B<, void >I<msgp>B<[>I<msgsz>B<], size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 101 |
"B< int >I<msgflg>B<);>\n" |
| 102 |
msgstr "" |
| 103 |
"B<ssize_t msgrcv(int >I<msqid>B<, void *>I<msgp>B<, size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 104 |
"B< int >I<msgflg>B<);>\n" |
| 105 |
|
| 106 |
#. type: Plain text |
| 107 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 108 |
#: opensuse-tumbleweed |
| 109 |
#, fuzzy, no-wrap |
| 110 |
#| msgid "B<int msgsnd(int >I<msqid>B<, const void *>I<msgp>B<, size_t >I<msgsz>B<, int >I<msgflg>B<);>\n" |
| 111 |
msgid "" |
| 112 |
"B<int msgsnd(>size_t msgsz;\n" |
| 113 |
"B< int >I<msqid>B<, const void >I<msgp>B<[>I<msgsz>B<], size_t >I<msgsz>B<,>\n" |
| 114 |
"B< int >I<msgflg>B<);>\n" |
| 115 |
msgstr "B<int msgsnd(int >I<msqid>B<, const void *>I<msgp>B<, size_t >I<msgsz>B<, int >I<msgflg>B<);>\n" |
| 116 |
|
| 117 |
#. type: SH |
| 118 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 119 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 120 |
#, no-wrap |
| 121 |
msgid "DESCRIPTION" |
| 122 |
msgstr "ОПИСАНИЕ" |
| 123 |
|
| 124 |
#. type: Plain text |
| 125 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 126 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 127 |
msgid "" |
| 128 |
"The B<msgsnd>() and B<msgrcv>() system calls are used to send messages to, " |
| 129 |
"and receive messages from, a System\\ V message queue. The calling process " |
| 130 |
"must have write permission on the message queue in order to send a message, " |
| 131 |
"and read permission to receive a message." |
| 132 |
msgstr "" |
| 133 |
"Системные вызовы B<msgsnd>() и B<msgrcv>() используются для отправки и " |
| 134 |
"получения сообщений из очереди сообщений System\\ V. Вызывающий процесс " |
| 135 |
"должен иметь права на запись в очередь сообщений, чтобы отправлять сообщения " |
| 136 |
"и права на чтение для получения сообщений." |
| 137 |
|
| 138 |
#. type: Plain text |
| 139 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 140 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 141 |
msgid "" |
| 142 |
"The I<msgp> argument is a pointer to a caller-defined structure of the " |
| 143 |
"following general form:" |
| 144 |
msgstr "" |
| 145 |
"Аргумент I<msgp> представляет собой указатель на структуру, определяемую " |
| 146 |
"вызывающим как:" |
| 147 |
|
| 148 |
#. type: Plain text |
| 149 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 150 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 151 |
#, no-wrap |
| 152 |
msgid "" |
| 153 |
"struct msgbuf {\n" |
| 154 |
" long mtype; /* message type, must be E<gt> 0 */\n" |
| 155 |
" char mtext[1]; /* message data */\n" |
| 156 |
"};\n" |
| 157 |
msgstr "" |
| 158 |
"struct msgbuf {\n" |
| 159 |
" long mtype; /* тип сообщения, значение должно быть E<gt> 0 */\n" |
| 160 |
" char mtext[1]; /* данные сообщения */\n" |
| 161 |
"};\n" |
| 162 |
|
| 163 |
#. type: Plain text |
| 164 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 165 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 166 |
msgid "" |
| 167 |
"The I<mtext> field is an array (or other structure) whose size is specified " |
| 168 |
"by I<msgsz>, a nonnegative integer value. Messages of zero length (i.e., no " |
| 169 |
"I<mtext> field) are permitted. The I<mtype> field must have a strictly " |
| 170 |
"positive integer value. This value can be used by the receiving process for " |
| 171 |
"message selection (see the description of B<msgrcv>() below)." |
| 172 |
msgstr "" |
| 173 |
"Поле I<mtext> является массивом (или другой структурой), размер которого " |
| 174 |
"определяется I<msgsz> — неотрицательным целым значением. Разрешены сообщения " |
| 175 |
"нулевой длины (т.е. без поля I<mtext>). Поле I<mtype> должно быть только " |
| 176 |
"положительным целым значением. Это значение используется процессом-" |
| 177 |
"получателем для выбора сообщения (см. описание B<msgrcv>() далее)." |
| 178 |
|
| 179 |
#. type: SS |
| 180 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 181 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 182 |
#, no-wrap |
| 183 |
msgid "msgsnd()" |
| 184 |
msgstr "msgsnd()" |
| 185 |
|
| 186 |
#. type: Plain text |
| 187 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 188 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 189 |
msgid "" |
| 190 |
"The B<msgsnd>() system call appends a copy of the message pointed to by " |
| 191 |
"I<msgp> to the message queue whose identifier is specified by I<msqid>." |
| 192 |
msgstr "" |
| 193 |
"Системный вызов B<msgsnd>() добавляет копию сообщения, указанного I<msgp>, в " |
| 194 |
"очередь сообщений, идентификатор которой задаётся в I<msqid>." |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 198 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
msgid "" |
| 200 |
"If sufficient space is available in the queue, B<msgsnd>() succeeds " |
| 201 |
"immediately. The queue capacity is governed by the I<msg_qbytes> field in " |
| 202 |
"the associated data structure for the message queue. During queue creation " |
| 203 |
"this field is initialized to B<MSGMNB> bytes, but this limit can be modified " |
| 204 |
"using B<msgctl>(2). A message queue is considered to be full if either of " |
| 205 |
"the following conditions is true:" |
| 206 |
msgstr "" |
| 207 |
"Если в очереди достаточно места, то B<msgsnd>() сразу успешно завершается. " |
| 208 |
"Размер очереди управляется полем I<msg_qbytes> в связанной структуре данных " |
| 209 |
"очереди сообщений. При создании очереди это поле инициализируется значением " |
| 210 |
"B<MSGMNB> байт, но данное ограничение можно изменить с помощью B<msgctl>(2). " |
| 211 |
"Очередь сообщений считается заполненной при одном из следующих условий:" |
| 212 |
|
| 213 |
#. type: IP |
| 214 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 215 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 216 |
#, no-wrap |
| 217 |
msgid "\\[bu]" |
| 218 |
msgstr "\\[bu]" |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 222 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 223 |
msgid "" |
| 224 |
"Adding a new message to the queue would cause the total number of bytes in " |
| 225 |
"the queue to exceed the queue's maximum size (the I<msg_qbytes> field)." |
| 226 |
msgstr "" |
| 227 |
"Добавление нового сообщения привело бы к превышению общего количества байт " |
| 228 |
"очереди над максимальным количеством размером очереди (поле I<msg_qbytes>)." |
| 229 |
|
| 230 |
#. type: Plain text |
| 231 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 232 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 233 |
msgid "" |
| 234 |
"Adding another message to the queue would cause the total number of messages " |
| 235 |
"in the queue to exceed the queue's maximum size (the I<msg_qbytes> field). " |
| 236 |
"This check is necessary to prevent an unlimited number of zero-length " |
| 237 |
"messages being placed on the queue. Although such messages contain no data, " |
| 238 |
"they nevertheless consume (locked) kernel memory." |
| 239 |
msgstr "" |
| 240 |
"Добавление другого сообщения привело бы к превышению общего количества " |
| 241 |
"сообщений очереди над максимальным количеством размером очереди (поле " |
| 242 |
"I<msg_qbytes>). Эта проверка необходима для предотвращения помещения в " |
| 243 |
"очередь бесконечного количества сообщений нулевой длины. Хотя такие " |
| 244 |
"сообщения не содержат данных, тем не менее, они потребляют (блокируют) " |
| 245 |
"память ядра." |
| 246 |
|
| 247 |
#. type: Plain text |
| 248 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 249 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 250 |
msgid "" |
| 251 |
"If insufficient space is available in the queue, then the default behavior " |
| 252 |
"of B<msgsnd>() is to block until space becomes available. If B<IPC_NOWAIT> " |
| 253 |
"is specified in I<msgflg>, then the call instead fails with the error " |
| 254 |
"B<EAGAIN>." |
| 255 |
msgstr "" |
| 256 |
"Если в очереди недостаточно места, то по умолчанию B<msgsnd>() блокирует " |
| 257 |
"выполнение до появления свободного места. Если в I<msgflg> указан " |
| 258 |
"B<IPC_NOWAIT>, то вызов вместо этого завершается с ошибкой B<EAGAIN>." |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 262 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 263 |
msgid "A blocked B<msgsnd>() call may also fail if:" |
| 264 |
msgstr "Заблокированный вызов B<msgsnd>() может завершиться ошибкой если:" |
| 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 |
"the queue is removed, in which case the system call fails with I<errno> set " |
| 271 |
"to B<EIDRM>; or" |
| 272 |
msgstr "" |
| 273 |
"очередь удалена (в этом случае системный вызов выдаст ошибку, определив " |
| 274 |
"I<errno> в значение B<EIDRM>;" |
| 275 |
|
| 276 |
#. type: Plain text |
| 277 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 278 |
#: opensuse-tumbleweed |
| 279 |
#, fuzzy |
| 280 |
#| msgid "" |
| 281 |
#| "a signal is caught, in which case the system call fails with I<errno> set " |
| 282 |
#| "to B<EINTR>;B<see> B<signal>(7). (B<msgsnd>() is never automatically " |
| 283 |
#| "restarted after being interrupted by a signal handler, regardless of the " |
| 284 |
#| "setting of the B<SA_RESTART> flag when establishing a signal handler.)" |
| 285 |
msgid "" |
| 286 |
"a signal is caught, in which case the system call fails with I<errno> set to " |
| 287 |
"B<EINTR>; see B<signal>(7). (B<msgsnd>() is never automatically restarted " |
| 288 |
"after being interrupted by a signal handler, regardless of the setting of " |
| 289 |
"the B<SA_RESTART> flag when establishing a signal handler.)" |
| 290 |
msgstr "" |
| 291 |
"пойман сигнал; в этом случае системный вызов завершается с ошибкой и " |
| 292 |
"присваивает I<errno> значение B<EINTR>; B<см.> B<signal>(7). Вызов " |
| 293 |
"B<msgsnd>() никогда не перезапускается автоматически после прерывания " |
| 294 |
"обработчиком сигнала, независимо от установки флага B<SA_RESTART> при " |
| 295 |
"настройке обработчика сигнала." |
| 296 |
|
| 297 |
#. type: Plain text |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
msgid "" |
| 301 |
"Upon successful completion the message queue data structure is updated as " |
| 302 |
"follows:" |
| 303 |
msgstr "" |
| 304 |
"Перед успешным завершением структура данных очереди сообщений будет " |
| 305 |
"обновлена следующим образом:" |
| 306 |
|
| 307 |
#. type: Plain text |
| 308 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 309 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 310 |
msgid "I<msg_lspid> is set to the process ID of the calling process." |
| 311 |
msgstr "" |
| 312 |
"Значение I<msg_lspid> устанавливается равным идентификатору вызывающего " |
| 313 |
"процесса." |
| 314 |
|
| 315 |
#. type: Plain text |
| 316 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 317 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 318 |
msgid "I<msg_qnum> is incremented by 1." |
| 319 |
msgstr "Значение I<msg_qnum> увеличивается на 1." |
| 320 |
|
| 321 |
#. type: Plain text |
| 322 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 323 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 324 |
msgid "I<msg_stime> is set to the current time." |
| 325 |
msgstr "Значение I<msg_stime> присваивается значение текущего времени." |
| 326 |
|
| 327 |
#. type: SS |
| 328 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 329 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 330 |
#, no-wrap |
| 331 |
msgid "msgrcv()" |
| 332 |
msgstr "msgrcv()" |
| 333 |
|
| 334 |
#. type: Plain text |
| 335 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 336 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 337 |
msgid "" |
| 338 |
"The B<msgrcv>() system call removes a message from the queue specified by " |
| 339 |
"I<msqid> and places it in the buffer pointed to by I<msgp>." |
| 340 |
msgstr "" |
| 341 |
"Системный вызов B<msgrcv>() удаляет сообщение из очереди, указанной в " |
| 342 |
"I<msqid> и помещает его в буфер, указанный в I<msgp>." |
| 343 |
|
| 344 |
#. type: Plain text |
| 345 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 346 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 347 |
msgid "" |
| 348 |
"The argument I<msgsz> specifies the maximum size in bytes for the member " |
| 349 |
"I<mtext> of the structure pointed to by the I<msgp> argument. If the " |
| 350 |
"message text has length greater than I<msgsz>, then the behavior depends on " |
| 351 |
"whether B<MSG_NOERROR> is specified in I<msgflg>. If B<MSG_NOERROR> is " |
| 352 |
"specified, then the message text will be truncated (and the truncated part " |
| 353 |
"will be lost); if B<MSG_NOERROR> is not specified, then the message isn't " |
| 354 |
"removed from the queue and the system call fails returning -1 with I<errno> " |
| 355 |
"set to B<E2BIG>." |
| 356 |
msgstr "" |
| 357 |
"Параметр I<msgsz> задаёт максимальный размер (в байтах) элемента I<mtext> " |
| 358 |
"структуры, находящейся по адресу, указанному в аргументе I<msgp>. Если длина " |
| 359 |
"текста сообщения больше чем I<msgsz>, то поведение зависит от наличия флага " |
| 360 |
"B<MSG_NOERROR> в I<msgflg>. Если B<MSG_NOERROR> указан, то текст сообщения " |
| 361 |
"будет урезан (а урезанная часть потеряна); иначе сообщение не удаляется из " |
| 362 |
"очереди, а системный вызов возвращает -1 и присваивает I<errno> значение " |
| 363 |
"B<E2BIG>." |
| 364 |
|
| 365 |
#. type: Plain text |
| 366 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 367 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 368 |
msgid "" |
| 369 |
"Unless B<MSG_COPY> is specified in I<msgflg> (see below), the I<msgtyp> " |
| 370 |
"argument specifies the type of message requested, as follows:" |
| 371 |
msgstr "" |
| 372 |
"Если в I<msgflg> (смотрите ниже ) не указан B<MSG_COPY>, то в аргументе " |
| 373 |
"I<msgtyp> указывается тип запрашиваемого сообщения:" |
| 374 |
|
| 375 |
#. type: Plain text |
| 376 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 377 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 378 |
msgid "If I<msgtyp> is 0, then the first message in the queue is read." |
| 379 |
msgstr "Если I<msgtyp> равно нулю, то читается первое сообщение в очереди." |
| 380 |
|
| 381 |
#. type: Plain text |
| 382 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 383 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 384 |
msgid "" |
| 385 |
"If I<msgtyp> is greater than 0, then the first message in the queue of type " |
| 386 |
"I<msgtyp> is read, unless B<MSG_EXCEPT> was specified in I<msgflg>, in which " |
| 387 |
"case the first message in the queue of type not equal to I<msgtyp> will be " |
| 388 |
"read." |
| 389 |
msgstr "" |
| 390 |
"Если I<msgtyp> больше нуля, то из очереди читается первое сообщение с типом " |
| 391 |
"I<msgtyp> (если только в I<msgflg> не указан B<MSG_EXCEPT>. В этом случае из " |
| 392 |
"очереди читается первое сообщение, тип которого не равен I<msgtyp>)." |
| 393 |
|
| 394 |
#. type: Plain text |
| 395 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 396 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 397 |
msgid "" |
| 398 |
"If I<msgtyp> is less than 0, then the first message in the queue with the " |
| 399 |
"lowest type less than or equal to the absolute value of I<msgtyp> will be " |
| 400 |
"read." |
| 401 |
msgstr "" |
| 402 |
"Если I<msgtyp> меньше нуля, то из очереди читается первое сообщение со " |
| 403 |
"значением, меньшим или равным абсолютному значению I<msgtyp>." |
| 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 |
"The I<msgflg> argument is a bit mask constructed by ORing together zero or " |
| 410 |
"more of the following flags:" |
| 411 |
msgstr "" |
| 412 |
"Аргумент I<msgflg> представляет собой битовую маску из комбинации нуля или " |
| 413 |
"более следующих флагов:" |
| 414 |
|
| 415 |
#. type: TP |
| 416 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 417 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 418 |
#, no-wrap |
| 419 |
msgid "B<IPC_NOWAIT>" |
| 420 |
msgstr "B<IPC_NOWAIT>" |
| 421 |
|
| 422 |
#. type: Plain text |
| 423 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 424 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 425 |
msgid "" |
| 426 |
"Return immediately if no message of the requested type is in the queue. The " |
| 427 |
"system call fails with I<errno> set to B<ENOMSG>." |
| 428 |
msgstr "" |
| 429 |
"Немедленный возврат, если в очереди нет сообщений необходимого типа. При " |
| 430 |
"этом системный вызов возвращает ошибку, присваивая I<errno> значение " |
| 431 |
"B<ENOMSG>." |
| 432 |
|
| 433 |
#. type: TP |
| 434 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 435 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 436 |
#, no-wrap |
| 437 |
msgid "B<MSG_COPY> (since Linux 3.8)" |
| 438 |
msgstr "B<MSG_COPY> (начиная с Linux 3.8)" |
| 439 |
|
| 440 |
#. commit 4a674f34ba04a002244edaf891b5da7fc1473ae8 |
| 441 |
#. type: Plain text |
| 442 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 443 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 444 |
msgid "" |
| 445 |
"Nondestructively fetch a copy of the message at the ordinal position in the " |
| 446 |
"queue specified by I<msgtyp> (messages are considered to be numbered " |
| 447 |
"starting at 0)." |
| 448 |
msgstr "" |
| 449 |
"Забирает копию сообщения без удаления из начальной позиции в очереди, " |
| 450 |
"заданной в I<msgtyp> (сообщения нумеруются начиная с 0)." |
| 451 |
|
| 452 |
#. type: Plain text |
| 453 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 454 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 455 |
msgid "" |
| 456 |
"This flag must be specified in conjunction with B<IPC_NOWAIT>, with the " |
| 457 |
"result that, if there is no message available at the given position, the " |
| 458 |
"call fails immediately with the error B<ENOMSG>. Because they alter the " |
| 459 |
"meaning of I<msgtyp> in orthogonal ways, B<MSG_COPY> and B<MSG_EXCEPT> may " |
| 460 |
"not both be specified in I<msgflg>." |
| 461 |
msgstr "" |
| 462 |
"Этот флаг должен указываться вместе с B<IPC_NOWAIT>; в этом случае, если в " |
| 463 |
"заданной позиции сообщение отсутствует, то вызов завершается с ошибкой " |
| 464 |
"B<ENOMSG> немедленно. Флаги B<MSG_COPY> и B<MSG_EXCEPT> не могут указываться " |
| 465 |
"вместе в I<msgflg>, так как кардинально изменяют смысл I<msgtyp>." |
| 466 |
|
| 467 |
#. type: Plain text |
| 468 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 469 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 470 |
msgid "" |
| 471 |
"The B<MSG_COPY> flag was added for the implementation of the kernel " |
| 472 |
"checkpoint-restore facility and is available only if the kernel was built " |
| 473 |
"with the B<CONFIG_CHECKPOINT_RESTORE> option." |
| 474 |
msgstr "" |
| 475 |
"Флаг B<MSG_COPY> был добавлен для реализации способности ядра для " |
| 476 |
"контрольных точек/восстановления и доступен только, если ядро собрано с " |
| 477 |
"параметром B<CONFIG_CHECKPOINT_RESTORE>." |
| 478 |
|
| 479 |
#. type: TP |
| 480 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 481 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 482 |
#, no-wrap |
| 483 |
msgid "B<MSG_EXCEPT>" |
| 484 |
msgstr "B<MSG_EXCEPT>" |
| 485 |
|
| 486 |
#. type: Plain text |
| 487 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 488 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 489 |
msgid "" |
| 490 |
"Used with I<msgtyp> greater than 0 to read the first message in the queue " |
| 491 |
"with message type that differs from I<msgtyp>." |
| 492 |
msgstr "" |
| 493 |
"Используется, если I<msgtyp> больше 0, для чтения первого сообщения в " |
| 494 |
"очереди с типом, отличным от I<msgtyp>." |
| 495 |
|
| 496 |
#. type: TP |
| 497 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 498 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 499 |
#, no-wrap |
| 500 |
msgid "B<MSG_NOERROR>" |
| 501 |
msgstr "B<MSG_NOERROR>" |
| 502 |
|
| 503 |
#. type: Plain text |
| 504 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 505 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 506 |
msgid "To truncate the message text if longer than I<msgsz> bytes." |
| 507 |
msgstr "" |
| 508 |
"Используется для урезания текста сообщения, если его размер больше I<msgsz> " |
| 509 |
"байт." |
| 510 |
|
| 511 |
#. type: Plain text |
| 512 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 513 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 514 |
msgid "" |
| 515 |
"If no message of the requested type is available and B<IPC_NOWAIT> isn't " |
| 516 |
"specified in I<msgflg>, the calling process is blocked until one of the " |
| 517 |
"following conditions occurs:" |
| 518 |
msgstr "" |
| 519 |
"Если в очереди нет сообщения необходимого типа и в I<msgflg> не указан " |
| 520 |
"B<IPC_NOWAIT>, то вызывающий процесс будет заблокирован до тех пор, пока не " |
| 521 |
"произойдет одно из следующих событий:" |
| 522 |
|
| 523 |
#. type: Plain text |
| 524 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 525 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 526 |
msgid "A message of the desired type is placed in the queue." |
| 527 |
msgstr "В очередь не будет помещено сообщение необходимого типа." |
| 528 |
|
| 529 |
#. type: Plain text |
| 530 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 531 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 532 |
msgid "" |
| 533 |
"The message queue is removed from the system. In this case, the system call " |
| 534 |
"fails with I<errno> set to B<EIDRM>." |
| 535 |
msgstr "" |
| 536 |
"Очередь сообщений удалена из системы. В этом случае системный вызов " |
| 537 |
"возвращает ошибку и присваивает I<errno> значение B<EIDRM>." |
| 538 |
|
| 539 |
#. type: Plain text |
| 540 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 541 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 542 |
msgid "" |
| 543 |
"The calling process catches a signal. In this case, the system call fails " |
| 544 |
"with I<errno> set to B<EINTR>. (B<msgrcv>() is never automatically " |
| 545 |
"restarted after being interrupted by a signal handler, regardless of the " |
| 546 |
"setting of the B<SA_RESTART> flag when establishing a signal handler.)" |
| 547 |
msgstr "" |
| 548 |
"Вызывающий процесс не получит сигнал, который должен обработать. В этом " |
| 549 |
"случае системный вызов возвращает ошибку и присваивает переменной I<errno> " |
| 550 |
"значение B<EINTR>. Вызов B<msgrcv>() никогда не перезапускается " |
| 551 |
"автоматически после прерывания обработчиком сигнала, независимо от установки " |
| 552 |
"флага B<SA_RESTART> при настройке обработчика сигнала." |
| 553 |
|
| 554 |
#. type: Plain text |
| 555 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 556 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 557 |
msgid "I<msg_lrpid> is set to the process ID of the calling process." |
| 558 |
msgstr "" |
| 559 |
"Значение I<msg_lrpid> устанавливается равным идентификатору вызывающего " |
| 560 |
"процесса." |
| 561 |
|
| 562 |
#. type: Plain text |
| 563 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 564 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 565 |
msgid "I<msg_qnum> is decremented by 1." |
| 566 |
msgstr "Значение I<msg_qnum> уменьшается на 1." |
| 567 |
|
| 568 |
#. type: Plain text |
| 569 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 570 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 571 |
msgid "I<msg_rtime> is set to the current time." |
| 572 |
msgstr "Значение I<msg_rtime> становится равным текущему времени." |
| 573 |
|
| 574 |
#. type: SH |
| 575 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 576 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 577 |
#, no-wrap |
| 578 |
msgid "RETURN VALUE" |
| 579 |
msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ" |
| 580 |
|
| 581 |
#. type: Plain text |
| 582 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 583 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 584 |
#, fuzzy |
| 585 |
#| msgid "" |
| 586 |
#| "On success, B<modify_ldt>() returns either the actual number of bytes " |
| 587 |
#| "read (for reading) or 0 (for writing). On failure, B<modify_ldt>() " |
| 588 |
#| "returns -1 and sets I<errno> to indicate the error." |
| 589 |
msgid "" |
| 590 |
"On success, B<msgsnd>() returns 0 and B<msgrcv>() returns the number of " |
| 591 |
"bytes actually copied into the I<mtext> array. On failure, both functions " |
| 592 |
"return -1, and set I<errno> to indicate the error." |
| 593 |
msgstr "" |
| 594 |
"При успешном выполнении B<modify_ldt>() возвращается реальное количество " |
| 595 |
"прочитанных байт (при чтении) или 0 (при записи). При ошибке B<modify_ldt>() " |
| 596 |
"возвращает -1, а I<errno> устанавливается в соответствующее значение." |
| 597 |
|
| 598 |
#. type: SH |
| 599 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 600 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 601 |
#, no-wrap |
| 602 |
msgid "ERRORS" |
| 603 |
msgstr "ОШИБКИ" |
| 604 |
|
| 605 |
#. type: Plain text |
| 606 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 607 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 608 |
#, fuzzy |
| 609 |
#| msgid "" |
| 610 |
#| "When B<msgsnd>() fails, I<errno> will be set to one among the following " |
| 611 |
#| "values:" |
| 612 |
msgid "B<msgsnd>() can fail with the following errors:" |
| 613 |
msgstr "" |
| 614 |
"Значения I<errno>, устанавливаемые при возникновении ошибок в B<msgsnd>():" |
| 615 |
|
| 616 |
#. type: TP |
| 617 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 618 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 619 |
#, no-wrap |
| 620 |
msgid "B<EACCES>" |
| 621 |
msgstr "B<EACCES>" |
| 622 |
|
| 623 |
#. type: Plain text |
| 624 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 625 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 626 |
msgid "" |
| 627 |
"The calling process does not have write permission on the message queue, and " |
| 628 |
"does not have the B<CAP_IPC_OWNER> capability in the user namespace that " |
| 629 |
"governs its IPC namespace." |
| 630 |
msgstr "" |
| 631 |
"Вызывающий процесс не имеет прав записи в очередь сообщений и не имеет " |
| 632 |
"мандата B<CAP_IPC_OWNER> в пользовательском пространстве имён, которое " |
| 633 |
"управляет его пространством имён IPC." |
| 634 |
|
| 635 |
#. type: TP |
| 636 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 637 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 638 |
#, no-wrap |
| 639 |
msgid "B<EAGAIN>" |
| 640 |
msgstr "B<EAGAIN>" |
| 641 |
|
| 642 |
#. type: Plain text |
| 643 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 644 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 645 |
msgid "" |
| 646 |
"The message can't be sent due to the I<msg_qbytes> limit for the queue and " |
| 647 |
"B<IPC_NOWAIT> was specified in I<msgflg>." |
| 648 |
msgstr "" |
| 649 |
"Сообщение не может быть отправлено, так как размер очереди превысит лимит, " |
| 650 |
"равный I<msg_qbytes>, а в параметре I<msgflg> установлен флаг B<IPC_NOWAIT>." |
| 651 |
|
| 652 |
#. type: TP |
| 653 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 654 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 655 |
#, no-wrap |
| 656 |
msgid "B<EFAULT>" |
| 657 |
msgstr "B<EFAULT>" |
| 658 |
|
| 659 |
#. type: Plain text |
| 660 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 661 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 662 |
msgid "The address pointed to by I<msgp> isn't accessible." |
| 663 |
msgstr "Память с адресом, указанным I<msgp>, недоступна." |
| 664 |
|
| 665 |
#. type: TP |
| 666 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 667 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 668 |
#, no-wrap |
| 669 |
msgid "B<EIDRM>" |
| 670 |
msgstr "B<EIDRM>" |
| 671 |
|
| 672 |
#. type: Plain text |
| 673 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 674 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 675 |
msgid "The message queue was removed." |
| 676 |
msgstr "Очередь сообщений была удалена." |
| 677 |
|
| 678 |
#. type: TP |
| 679 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 680 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 681 |
#, no-wrap |
| 682 |
msgid "B<EINTR>" |
| 683 |
msgstr "B<EINTR>" |
| 684 |
|
| 685 |
#. type: Plain text |
| 686 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 687 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 688 |
msgid "" |
| 689 |
"Sleeping on a full message queue condition, the process caught a signal." |
| 690 |
msgstr "" |
| 691 |
"Процесс ждал свободного места в очереди и получил сигнал, который должен " |
| 692 |
"обработать." |
| 693 |
|
| 694 |
#. type: TP |
| 695 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 696 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 697 |
#, no-wrap |
| 698 |
msgid "B<EINVAL>" |
| 699 |
msgstr "B<EINVAL>" |
| 700 |
|
| 701 |
#. type: Plain text |
| 702 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 703 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 704 |
msgid "" |
| 705 |
"Invalid I<msqid> value, or nonpositive I<mtype> value, or invalid I<msgsz> " |
| 706 |
"value (less than 0 or greater than the system value B<MSGMAX>)." |
| 707 |
msgstr "" |
| 708 |
"Задано неправильное значение I<msqid>, не положительное значение I<mtype> " |
| 709 |
"или неправильное значение I<msgsz> (меньше 0, или больше системного лимита, " |
| 710 |
"заданного B<MSGMAX>)." |
| 711 |
|
| 712 |
#. type: TP |
| 713 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 714 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 715 |
#, no-wrap |
| 716 |
msgid "B<ENOMEM>" |
| 717 |
msgstr "B<ENOMEM>" |
| 718 |
|
| 719 |
#. type: Plain text |
| 720 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 721 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 722 |
msgid "" |
| 723 |
"The system does not have enough memory to make a copy of the message pointed " |
| 724 |
"to by I<msgp>." |
| 725 |
msgstr "" |
| 726 |
"Недостаточно памяти в системе для копирования сообщения, указанного I<msgp>." |
| 727 |
|
| 728 |
#. type: Plain text |
| 729 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 730 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 731 |
#, fuzzy |
| 732 |
#| msgid "" |
| 733 |
#| "When B<msgrcv>() fails, I<errno> will be set to one among the following " |
| 734 |
#| "values:" |
| 735 |
msgid "B<msgrcv>() can fail with the following errors:" |
| 736 |
msgstr "" |
| 737 |
"Значения I<errno>, устанавливаемые при возникновении ошибок в B<msgrcv>():" |
| 738 |
|
| 739 |
#. type: TP |
| 740 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 741 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 742 |
#, no-wrap |
| 743 |
msgid "B<E2BIG>" |
| 744 |
msgstr "B<E2BIG>" |
| 745 |
|
| 746 |
#. type: Plain text |
| 747 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 748 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 749 |
msgid "" |
| 750 |
"The message text length is greater than I<msgsz> and B<MSG_NOERROR> isn't " |
| 751 |
"specified in I<msgflg>." |
| 752 |
msgstr "" |
| 753 |
"Длина текста получаемого сообщения больше, чем I<msgsz>, а в поле I<msgflg> " |
| 754 |
"не установлен флаг B<MSG_NOERROR>." |
| 755 |
|
| 756 |
#. type: Plain text |
| 757 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 758 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 759 |
msgid "" |
| 760 |
"The calling process does not have read permission on the message queue, and " |
| 761 |
"does not have the B<CAP_IPC_OWNER> capability in the user namespace that " |
| 762 |
"governs its IPC namespace." |
| 763 |
msgstr "" |
| 764 |
"Вызывающий процесс не имеет прав чтобы прочитать очереди сообщений и не " |
| 765 |
"имеет мандата B<CAP_IPC_OWNER> в пространстве имён пользователя, который " |
| 766 |
"управляет его пространством имён IPC." |
| 767 |
|
| 768 |
#. type: Plain text |
| 769 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 770 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 771 |
msgid "" |
| 772 |
"While the process was sleeping to receive a message, the message queue was " |
| 773 |
"removed." |
| 774 |
msgstr "" |
| 775 |
"Процесс ждал приёма сообщения, и в это время очередь сообщений была удалена." |
| 776 |
|
| 777 |
#. type: Plain text |
| 778 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 779 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 780 |
msgid "" |
| 781 |
"While the process was sleeping to receive a message, the process caught a " |
| 782 |
"signal; see B<signal>(7)." |
| 783 |
msgstr "" |
| 784 |
"Во время ожидания приёма сообщения процесс получил сигнал; см. B<signal>(7)." |
| 785 |
|
| 786 |
#. type: Plain text |
| 787 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 788 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 789 |
msgid "I<msqid> was invalid, or I<msgsz> was less than 0." |
| 790 |
msgstr "Неверное значение I<msqid> или I<msgsz> меньше 0." |
| 791 |
|
| 792 |
#. type: TP |
| 793 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 794 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 795 |
#, no-wrap |
| 796 |
msgid "B<EINVAL> (since Linux 3.14)" |
| 797 |
msgstr "B<EINVAL> (начиная с Linux 3.14)" |
| 798 |
|
| 799 |
#. type: Plain text |
| 800 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 801 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 802 |
msgid "I<msgflg> specified B<MSG_COPY>, but not B<IPC_NOWAIT>." |
| 803 |
msgstr "В I<msgflg> указан флаг B<MSG_COPY>, но нет B<IPC_NOWAIT>." |
| 804 |
|
| 805 |
#. type: Plain text |
| 806 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 807 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 808 |
msgid "I<msgflg> specified both B<MSG_COPY> and B<MSG_EXCEPT>." |
| 809 |
msgstr "В I<msgflg> указаны B<MSG_COPY> и B<MSG_EXCEPT>." |
| 810 |
|
| 811 |
#. type: TP |
| 812 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 813 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 814 |
#, no-wrap |
| 815 |
msgid "B<ENOMSG>" |
| 816 |
msgstr "B<ENOMSG>" |
| 817 |
|
| 818 |
#. type: Plain text |
| 819 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 820 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 821 |
msgid "" |
| 822 |
"B<IPC_NOWAIT> was specified in I<msgflg> and no message of the requested " |
| 823 |
"type existed on the message queue." |
| 824 |
msgstr "" |
| 825 |
"В очереди нет сообщения необходимого типа, а в параметре I<msgflg> " |
| 826 |
"установлен флаг B<IPC_NOWAIT>." |
| 827 |
|
| 828 |
#. type: Plain text |
| 829 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 830 |
#: opensuse-tumbleweed |
| 831 |
#, fuzzy |
| 832 |
#| msgid "" |
| 833 |
#| "B<IPC_NOWAIT> and B<MSG_COPY> were specified in I<msgflg> and the queue " |
| 834 |
#| "contains less than I<msgtyp> messages." |
| 835 |
msgid "" |
| 836 |
"B<IPC_NOWAIT> and B<MSG_COPY> were specified in I<msgflg> and the queue " |
| 837 |
"contains fewer than I<msgtyp> messages." |
| 838 |
msgstr "" |
| 839 |
"Флаги B<IPC_NOWAIT> и B<MSG_COPY> указаны в I<msgflg>, но в очереди " |
| 840 |
"содержится меньше I<msgtyp> сообщений." |
| 841 |
|
| 842 |
#. type: TP |
| 843 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 844 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 845 |
#, no-wrap |
| 846 |
msgid "B<ENOSYS> (since Linux 3.8)" |
| 847 |
msgstr "B<ENOSYS> (начиная с Linux 3.8)" |
| 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 |
#, fuzzy |
| 853 |
#| msgid "" |
| 854 |
#| "I<MSG_COPY> was specified in I<msgflg>, and this kernel was configured " |
| 855 |
#| "without B<CONFIG_CHECKPOINT_RESTORE>." |
| 856 |
msgid "" |
| 857 |
"Both B<MSG_COPY> and B<IPC_NOWAIT> were specified in I<msgflg>, and this " |
| 858 |
"kernel was configured without B<CONFIG_CHECKPOINT_RESTORE>." |
| 859 |
msgstr "" |
| 860 |
"Флаг I<MSG_COPY> указан в I<msgflg>, но ядро собрано без параметра " |
| 861 |
"B<CONFIG_CHECKPOINT_RESTORE>." |
| 862 |
|
| 863 |
#. type: SH |
| 864 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 865 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 866 |
#, no-wrap |
| 867 |
msgid "STANDARDS" |
| 868 |
msgstr "СТАНДАРТЫ" |
| 869 |
|
| 870 |
#. type: Plain text |
| 871 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 872 |
#: opensuse-tumbleweed |
| 873 |
#, fuzzy |
| 874 |
#| msgid "POSIX.1-2024." |
| 875 |
msgid "POSIX.1-2024 XSI." |
| 876 |
msgstr "POSIX.1-2024." |
| 877 |
|
| 878 |
#. MSG_COPY since glibc 2.18 |
| 879 |
#. type: Plain text |
| 880 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 881 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 882 |
msgid "" |
| 883 |
"The B<MSG_EXCEPT> and B<MSG_COPY> flags are Linux-specific; their " |
| 884 |
"definitions can be obtained by defining the B<_GNU_SOURCE> feature test " |
| 885 |
"macro." |
| 886 |
msgstr "" |
| 887 |
"Флаги B<MSG_EXCEPT> и B<MSG_COPY> есть только в Linux; их определения можно " |
| 888 |
"получить указав макрос тестирования свойств B<_GNU_SOURCE>." |
| 889 |
|
| 890 |
#. type: SH |
| 891 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 892 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 893 |
#, no-wrap |
| 894 |
msgid "HISTORY" |
| 895 |
msgstr "ИСТОРИЯ" |
| 896 |
|
| 897 |
#. type: Plain text |
| 898 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 899 |
#: opensuse-tumbleweed |
| 900 |
#, fuzzy |
| 901 |
#| msgid "SVr4, POSIX.1-2001." |
| 902 |
msgid "SVr4, SUSv1, POSIX.1-2001 XSI." |
| 903 |
msgstr "SVr4, POSIX.1-2001." |
| 904 |
|
| 905 |
#. type: Plain text |
| 906 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 907 |
#: opensuse-tumbleweed |
| 908 |
#, fuzzy |
| 909 |
#| msgid "" |
| 910 |
#| "The I<msgp> argument is declared as I<struct msgbuf\\ *> in glibc 2.0 and " |
| 911 |
#| "2.1. It is declared as I<void\\ *> in glibc 2.2 and later, as required " |
| 912 |
#| "by SUSv2 and SUSv3." |
| 913 |
msgid "" |
| 914 |
"The I<msgp> argument is declared as I<struct\\ msgbuf\\ *> in glibc 2.0 and " |
| 915 |
"2.1. It is declared as I<void\\ *> in glibc 2.2 and later, as required by " |
| 916 |
"SUSv2 and SUSv3." |
| 917 |
msgstr "" |
| 918 |
"Аргумент I<msgp> в glibc 2.0 и 2.1 объявлен как I<struct msgbuf *>. В glibc " |
| 919 |
"2.2 и новее, в соответствии с SUSv2 и SUSv3, он объявлен как I<void\\ *>." |
| 920 |
|
| 921 |
#. type: SH |
| 922 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 923 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 924 |
#, no-wrap |
| 925 |
msgid "NOTES" |
| 926 |
msgstr "ПРИМЕЧАНИЯ" |
| 927 |
|
| 928 |
#. type: Plain text |
| 929 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 930 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 931 |
msgid "" |
| 932 |
"The following limits on message queue resources affect the B<msgsnd>() call:" |
| 933 |
msgstr "" |
| 934 |
"На работу системного вызова B<msgsnd>() влияют следующие системные " |
| 935 |
"ограничения на ресурсы очереди сообщений:" |
| 936 |
|
| 937 |
#. type: TP |
| 938 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 939 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 940 |
#, no-wrap |
| 941 |
msgid "B<MSGMAX>" |
| 942 |
msgstr "B<MSGMAX>" |
| 943 |
|
| 944 |
#. type: Plain text |
| 945 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 946 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 947 |
msgid "" |
| 948 |
"Maximum size of a message text, in bytes (default value: 8192 bytes). On " |
| 949 |
"Linux, this limit can be read and modified via I</proc/sys/kernel/msgmax>." |
| 950 |
msgstr "" |
| 951 |
"Максимальный размер текста сообщения: по умолчанию он равен 8192 байтам (в " |
| 952 |
"Linux это ограничение можно прочитать и изменить через I</proc/sys/kernel/" |
| 953 |
"msgmax>)." |
| 954 |
|
| 955 |
#. type: TP |
| 956 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 957 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 958 |
#, no-wrap |
| 959 |
msgid "B<MSGMNB>" |
| 960 |
msgstr "B<MSGMNB>" |
| 961 |
|
| 962 |
#. type: Plain text |
| 963 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 964 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 965 |
msgid "" |
| 966 |
"Maximum number of bytes that can be held in a message queue (default value: " |
| 967 |
"16384 bytes). On Linux, this limit can be read and modified via I</proc/sys/" |
| 968 |
"kernel/msgmnb>. A privileged process (Linux: a process with the " |
| 969 |
"B<CAP_SYS_RESOURCE> capability) can increase the size of a message queue " |
| 970 |
"beyond B<MSGMNB> using the B<msgctl>(2) B<IPC_SET> operation." |
| 971 |
msgstr "" |
| 972 |
"Максимальное количество байт, которое может храниться в очереди сообщений " |
| 973 |
"(по умолчанию 16384 байт). В Linux это ограничение можно прочитать и " |
| 974 |
"изменить через I</proc/sys/kernel/msgmnb>. Привилегированный процесс (Linux: " |
| 975 |
"процесс с мандатом B<CAP_SYS_RESOURCE>) может устанавливать размер очереди " |
| 976 |
"сообщений больше чем B<MSGMNB> при помощи вызова B<msgctl>() с операцией " |
| 977 |
"B<IPC_SET>." |
| 978 |
|
| 979 |
#. type: Plain text |
| 980 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 981 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 982 |
msgid "" |
| 983 |
"The implementation has no intrinsic system-wide limits on the number of " |
| 984 |
"message headers (B<MSGTQL>) and the number of bytes in the message pool " |
| 985 |
"(B<MSGPOOL>)." |
| 986 |
msgstr "" |
| 987 |
"Реализация не накладывает существенных системных ограничений на максимальное " |
| 988 |
"количество заголовков сообщений (B<MSGTQL>) и на количество байт в пуле " |
| 989 |
"сообщений (B<MSGPOOL>)." |
| 990 |
|
| 991 |
#. type: SH |
| 992 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 993 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 994 |
#, no-wrap |
| 995 |
msgid "BUGS" |
| 996 |
msgstr "ПРОГРАММНЫЕ ОШИБКИ" |
| 997 |
|
| 998 |
#. http://marc.info/?l=linux-kernel&m=139048542803605&w=2 |
| 999 |
#. commit 4f87dac386cc43d5525da7a939d4b4e7edbea22c |
| 1000 |
#. type: Plain text |
| 1001 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1002 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1003 |
msgid "" |
| 1004 |
"In Linux 3.13 and earlier, if B<msgrcv>() was called with the B<MSG_COPY> " |
| 1005 |
"flag, but without B<IPC_NOWAIT>, and the message queue contained less than " |
| 1006 |
"I<msgtyp> messages, then the call would block until the next message is " |
| 1007 |
"written to the queue. At that point, the call would return a copy of the " |
| 1008 |
"message, I<regardless> of whether that message was at the ordinal position " |
| 1009 |
"I<msgtyp>. This bug is fixed in Linux 3.14." |
| 1010 |
msgstr "" |
| 1011 |
"В Linux 3.13 и старее, если B<msgrcv>() был вызван с флагом B<MSG_COPY> " |
| 1012 |
"flag, но без B<IPC_NOWAIT>, и очередь сообщений содержала менее I<msgtyp> " |
| 1013 |
"сообщений, то вызов блокировал выполнения до тех пор, пока следующее " |
| 1014 |
"сообщение не записывалось в очередь. written to the queue. В этот момент " |
| 1015 |
"вызов возвращал копию сообщения, I<независимо> от того, что сообщение было в " |
| 1016 |
"начальной позиции I<msgtyp>. Этот дефект был исправлен в Linux 3.14." |
| 1017 |
|
| 1018 |
#. http://marc.info/?l=linux-kernel&m=139048542803605&w=2 |
| 1019 |
#. commit 4f87dac386cc43d5525da7a939d4b4e7edbea22c |
| 1020 |
#. type: Plain text |
| 1021 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1022 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1023 |
msgid "" |
| 1024 |
"Specifying both B<MSG_COPY> and B<MSC_EXCEPT> in I<msgflg> is a logical " |
| 1025 |
"error (since these flags impose different interpretations on I<msgtyp>). In " |
| 1026 |
"Linux 3.13 and earlier, this error was not diagnosed by B<msgrcv>(). This " |
| 1027 |
"bug is fixed in Linux 3.14." |
| 1028 |
msgstr "" |
| 1029 |
"Указание обоих флагов B<MSG_COPY> и B<MSC_EXCEPT> в I<msgflg> является " |
| 1030 |
"логической ошибкой (так как для флагов по-разному интерпретируется " |
| 1031 |
"I<msgtyp>). В Linux 3.13 и старее эта ошибка не определялась B<msgrcv>(). " |
| 1032 |
"Этот дефект был исправлен в Linux 3.14." |
| 1033 |
|
| 1034 |
#. type: SH |
| 1035 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1036 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1037 |
#, no-wrap |
| 1038 |
msgid "EXAMPLES" |
| 1039 |
msgstr "ПРИМЕРЫ" |
| 1040 |
|
| 1041 |
#. type: Plain text |
| 1042 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1043 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1044 |
msgid "The program below demonstrates the use of B<msgsnd>() and B<msgrcv>()." |
| 1045 |
msgstr "" |
| 1046 |
"Представленная ниже программа показывает использование B<msgsnd>() и " |
| 1047 |
"B<msgrcv>()." |
| 1048 |
|
| 1049 |
#. type: Plain text |
| 1050 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1051 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1052 |
msgid "" |
| 1053 |
"The example program is first run with the B<-s> option to send a message and " |
| 1054 |
"then run again with the B<-r> option to receive a message." |
| 1055 |
msgstr "" |
| 1056 |
"В первый раз программа запускается с параметром B<-s> для отправки " |
| 1057 |
"сообщения, а в второй — с параметром B<-r> для получения сообщения." |
| 1058 |
|
| 1059 |
#. type: Plain text |
| 1060 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1061 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1062 |
msgid "The following shell session shows a sample run of the program:" |
| 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 |
#, no-wrap |
| 1069 |
msgid "" |
| 1070 |
"$B< ./a.out -s>\n" |
| 1071 |
"sent: a message at Wed Mar 4 16:25:45 2015\n" |
| 1072 |
msgstr "" |
| 1073 |
"$B< ./a.out -s>\n" |
| 1074 |
"отправка: дата сообщения Wed Mar 4 16:25:45 2015\n" |
| 1075 |
|
| 1076 |
#. type: Plain text |
| 1077 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1078 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1079 |
#, no-wrap |
| 1080 |
msgid "" |
| 1081 |
"$B< ./a.out -r>\n" |
| 1082 |
"message received: a message at Wed Mar 4 16:25:45 2015\n" |
| 1083 |
msgstr "" |
| 1084 |
"$B< ./a.out -r>\n" |
| 1085 |
"приём: дата сообщения Wed Mar 4 16:25:45 2015\n" |
| 1086 |
|
| 1087 |
#. type: SS |
| 1088 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1089 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1090 |
#, no-wrap |
| 1091 |
msgid "Program source" |
| 1092 |
msgstr "Исходный код программы" |
| 1093 |
|
| 1094 |
#. type: Plain text |
| 1095 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1096 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1097 |
#, no-wrap |
| 1098 |
msgid "" |
| 1099 |
"#include E<lt>errno.hE<gt>\n" |
| 1100 |
"#include E<lt>stdio.hE<gt>\n" |
| 1101 |
"#include E<lt>stdlib.hE<gt>\n" |
| 1102 |
"#include E<lt>sys/ipc.hE<gt>\n" |
| 1103 |
"#include E<lt>sys/msg.hE<gt>\n" |
| 1104 |
"#include E<lt>time.hE<gt>\n" |
| 1105 |
"#include E<lt>unistd.hE<gt>\n" |
| 1106 |
"\\&\n" |
| 1107 |
"struct msgbuf {\n" |
| 1108 |
" long mtype;\n" |
| 1109 |
" char mtext[80];\n" |
| 1110 |
"};\n" |
| 1111 |
"\\&\n" |
| 1112 |
"static void\n" |
| 1113 |
"usage(char *prog_name, char *msg)\n" |
| 1114 |
"{\n" |
| 1115 |
" if (msg != NULL)\n" |
| 1116 |
" fputs(msg, stderr);\n" |
| 1117 |
"\\&\n" |
| 1118 |
" fprintf(stderr, \"Usage: %s [options]\\[rs]n\", prog_name);\n" |
| 1119 |
" fprintf(stderr, \"Options are:\\[rs]n\");\n" |
| 1120 |
" fprintf(stderr, \"-s send message using msgsnd()\\[rs]n\");\n" |
| 1121 |
" fprintf(stderr, \"-r read message using msgrcv()\\[rs]n\");\n" |
| 1122 |
" fprintf(stderr, \"-t message type (default is 1)\\[rs]n\");\n" |
| 1123 |
" fprintf(stderr, \"-k message queue key (default is 1234)\\[rs]n\");\n" |
| 1124 |
" exit(EXIT_FAILURE);\n" |
| 1125 |
"}\n" |
| 1126 |
"\\&\n" |
| 1127 |
"static void\n" |
| 1128 |
"send_msg(int qid, int msgtype)\n" |
| 1129 |
"{\n" |
| 1130 |
" time_t t;\n" |
| 1131 |
" struct msgbuf msg;\n" |
| 1132 |
"\\&\n" |
| 1133 |
" msg.mtype = msgtype;\n" |
| 1134 |
"\\&\n" |
| 1135 |
" time(&t);\n" |
| 1136 |
" snprintf(msg.mtext, sizeof(msg.mtext), \"a message at %s\",\n" |
| 1137 |
" ctime(&t));\n" |
| 1138 |
"\\&\n" |
| 1139 |
" if (msgsnd(qid, &msg, sizeof(msg.mtext),\n" |
| 1140 |
" IPC_NOWAIT) == -1)\n" |
| 1141 |
" {\n" |
| 1142 |
" perror(\"msgsnd error\");\n" |
| 1143 |
" exit(EXIT_FAILURE);\n" |
| 1144 |
" }\n" |
| 1145 |
" printf(\"sent: %s\\[rs]n\", msg.mtext);\n" |
| 1146 |
"}\n" |
| 1147 |
"\\&\n" |
| 1148 |
"static void\n" |
| 1149 |
"get_msg(int qid, int msgtype)\n" |
| 1150 |
"{\n" |
| 1151 |
" struct msgbuf msg;\n" |
| 1152 |
"\\&\n" |
| 1153 |
" if (msgrcv(qid, &msg, sizeof(msg.mtext), msgtype,\n" |
| 1154 |
" MSG_NOERROR | IPC_NOWAIT) == -1) {\n" |
| 1155 |
" if (errno != ENOMSG) {\n" |
| 1156 |
" perror(\"msgrcv\");\n" |
| 1157 |
" exit(EXIT_FAILURE);\n" |
| 1158 |
" }\n" |
| 1159 |
" printf(\"No message available for msgrcv()\\[rs]n\");\n" |
| 1160 |
" } else {\n" |
| 1161 |
" printf(\"message received: %s\\[rs]n\", msg.mtext);\n" |
| 1162 |
" }\n" |
| 1163 |
"}\n" |
| 1164 |
"\\&\n" |
| 1165 |
"int\n" |
| 1166 |
"main(int argc, char *argv[])\n" |
| 1167 |
"{\n" |
| 1168 |
" int qid, opt;\n" |
| 1169 |
" int mode = 0; /* 1 = send, 2 = receive */\n" |
| 1170 |
" int msgtype = 1;\n" |
| 1171 |
" int msgkey = 1234;\n" |
| 1172 |
"\\&\n" |
| 1173 |
" while ((opt = getopt(argc, argv, \"srt:k:\")) != -1) {\n" |
| 1174 |
" switch (opt) {\n" |
| 1175 |
" case \\[aq]s\\[aq]:\n" |
| 1176 |
" mode = 1;\n" |
| 1177 |
" break;\n" |
| 1178 |
" case \\[aq]r\\[aq]:\n" |
| 1179 |
" mode = 2;\n" |
| 1180 |
" break;\n" |
| 1181 |
" case \\[aq]t\\[aq]:\n" |
| 1182 |
" msgtype = atoi(optarg);\n" |
| 1183 |
" if (msgtype E<lt>= 0)\n" |
| 1184 |
" usage(argv[0], \"-t option must be greater than 0\\[rs]n\");\n" |
| 1185 |
" break;\n" |
| 1186 |
" case \\[aq]k\\[aq]:\n" |
| 1187 |
" msgkey = atoi(optarg);\n" |
| 1188 |
" break;\n" |
| 1189 |
" default:\n" |
| 1190 |
" usage(argv[0], \"Unrecognized option\\[rs]n\");\n" |
| 1191 |
" }\n" |
| 1192 |
" }\n" |
| 1193 |
"\\&\n" |
| 1194 |
" if (mode == 0)\n" |
| 1195 |
" usage(argv[0], \"must use either -s or -r option\\[rs]n\");\n" |
| 1196 |
"\\&\n" |
| 1197 |
" qid = msgget(msgkey, IPC_CREAT | 0666);\n" |
| 1198 |
"\\&\n" |
| 1199 |
" if (qid == -1) {\n" |
| 1200 |
" perror(\"msgget\");\n" |
| 1201 |
" exit(EXIT_FAILURE);\n" |
| 1202 |
" }\n" |
| 1203 |
"\\&\n" |
| 1204 |
" if (mode == 2)\n" |
| 1205 |
" get_msg(qid, msgtype);\n" |
| 1206 |
" else\n" |
| 1207 |
" send_msg(qid, msgtype);\n" |
| 1208 |
"\\&\n" |
| 1209 |
" exit(EXIT_SUCCESS);\n" |
| 1210 |
"}\n" |
| 1211 |
msgstr "" |
| 1212 |
|
| 1213 |
#. SRC END |
| 1214 |
#. type: SH |
| 1215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1217 |
#, no-wrap |
| 1218 |
msgid "SEE ALSO" |
| 1219 |
msgstr "СМОТРИТЕ ТАКЖЕ" |
| 1220 |
|
| 1221 |
#. type: Plain text |
| 1222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 1223 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 1224 |
msgid "" |
| 1225 |
"B<msgctl>(2), B<msgget>(2), B<capabilities>(7), B<mq_overview>(7), " |
| 1226 |
"B<sysvipc>(7)" |
| 1227 |
msgstr "" |
| 1228 |
"B<msgctl>(2), B<msgget>(2), B<capabilities>(7), B<mq_overview>(7), " |
| 1229 |
"B<sysvipc>(7)" |
| 1230 |
|
| 1231 |
#. type: TH |
| 1232 |
#: debian-trixie |
| 1233 |
#, no-wrap |
| 1234 |
msgid "2024-06-15" |
| 1235 |
msgstr "15 июня 2024 г." |
| 1236 |
|
| 1237 |
#. type: TH |
| 1238 |
#: debian-trixie |
| 1239 |
#, no-wrap |
| 1240 |
msgid "Linux man-pages 6.9.1" |
| 1241 |
msgstr "Страницы руководства Linux 6.9.1" |
| 1242 |
|
| 1243 |
#. type: Plain text |
| 1244 |
#: debian-trixie |
| 1245 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 1246 |
msgstr "Стандартная библиотека языка C (I<libc>, I<-lc>)" |
| 1247 |
|
| 1248 |
#. type: Plain text |
| 1249 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1250 |
#, fuzzy, no-wrap |
| 1251 |
#| msgid "B<int msgsnd(int >I<msqid>B<, const void *>I<msgp>B<, size_t >I<msgsz>B<, int >I<msgflg>B<);>\n" |
| 1252 |
msgid "" |
| 1253 |
"B<int msgsnd(int >I<msqid>B<, const void >I<msgp>B<[.>I<msgsz>B<], size_t >I<msgsz>B<,>\n" |
| 1254 |
"B< int >I<msgflg>B<);>\n" |
| 1255 |
msgstr "B<int msgsnd(int >I<msqid>B<, const void *>I<msgp>B<, size_t >I<msgsz>B<, int >I<msgflg>B<);>\n" |
| 1256 |
|
| 1257 |
#. type: Plain text |
| 1258 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1259 |
#, fuzzy, no-wrap |
| 1260 |
#| msgid "" |
| 1261 |
#| "B<ssize_t msgrcv(int >I<msqid>B<, void *>I<msgp>B<, size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 1262 |
#| "B< int >I<msgflg>B<);>\n" |
| 1263 |
msgid "" |
| 1264 |
"B<ssize_t msgrcv(int >I<msqid>B<, void >I<msgp>B<[.>I<msgsz>B<], size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 1265 |
"B< int >I<msgflg>B<);>\n" |
| 1266 |
msgstr "" |
| 1267 |
"B<ssize_t msgrcv(int >I<msqid>B<, void *>I<msgp>B<, size_t >I<msgsz>B<, long >I<msgtyp>B<,>\n" |
| 1268 |
"B< int >I<msgflg>B<);>\n" |
| 1269 |
|
| 1270 |
#. type: Plain text |
| 1271 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1272 |
msgid "" |
| 1273 |
"a signal is caught, in which case the system call fails with I<errno> set to " |
| 1274 |
"B<EINTR>;B<see> B<signal>(7). (B<msgsnd>() is never automatically " |
| 1275 |
"restarted after being interrupted by a signal handler, regardless of the " |
| 1276 |
"setting of the B<SA_RESTART> flag when establishing a signal handler.)" |
| 1277 |
msgstr "" |
| 1278 |
"пойман сигнал; в этом случае системный вызов завершается с ошибкой и " |
| 1279 |
"присваивает I<errno> значение B<EINTR>; B<см.> B<signal>(7). Вызов " |
| 1280 |
"B<msgsnd>() никогда не перезапускается автоматически после прерывания " |
| 1281 |
"обработчиком сигнала, независимо от установки флага B<SA_RESTART> при " |
| 1282 |
"настройке обработчика сигнала." |
| 1283 |
|
| 1284 |
#. type: Plain text |
| 1285 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1286 |
msgid "" |
| 1287 |
"B<IPC_NOWAIT> and B<MSG_COPY> were specified in I<msgflg> and the queue " |
| 1288 |
"contains less than I<msgtyp> messages." |
| 1289 |
msgstr "" |
| 1290 |
"Флаги B<IPC_NOWAIT> и B<MSG_COPY> указаны в I<msgflg>, но в очереди " |
| 1291 |
"содержится меньше I<msgtyp> сообщений." |
| 1292 |
|
| 1293 |
#. type: Plain text |
| 1294 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1295 |
msgid "POSIX.1-2008." |
| 1296 |
msgstr "POSIX.1-2008." |
| 1297 |
|
| 1298 |
#. type: Plain text |
| 1299 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1300 |
msgid "POSIX.1-2001, SVr4." |
| 1301 |
msgstr "POSIX.1-2001, SVr4." |
| 1302 |
|
| 1303 |
#. type: Plain text |
| 1304 |
#: debian-trixie fedora-44 fedora-rawhide |
| 1305 |
msgid "" |
| 1306 |
"The I<msgp> argument is declared as I<struct msgbuf\\ *> in glibc 2.0 and " |
| 1307 |
"2.1. It is declared as I<void\\ *> in glibc 2.2 and later, as required by " |
| 1308 |
"SUSv2 and SUSv3." |
| 1309 |
msgstr "" |
| 1310 |
"Аргумент I<msgp> в glibc 2.0 и 2.1 объявлен как I<struct msgbuf *>. В glibc " |
| 1311 |
"2.2 и новее, в соответствии с SUSv2 и SUSv3, он объявлен как I<void\\ *>." |
| 1312 |
|
| 1313 |
#. type: TH |
| 1314 |
#: fedora-44 fedora-rawhide |
| 1315 |
#, no-wrap |
| 1316 |
msgid "2024-07-23" |
| 1317 |
msgstr "23 июля 2024 г." |
| 1318 |
|
| 1319 |
#. type: TH |
| 1320 |
#: fedora-44 fedora-rawhide |
| 1321 |
#, no-wrap |
| 1322 |
msgid "Linux man-pages 6.13" |
| 1323 |
msgstr "Страницы руководства Linux 6.13" |
| 1324 |
|
| 1325 |
#. type: TH |
| 1326 |
#: mageia-cauldron |
| 1327 |
#, no-wrap |
| 1328 |
msgid "Linux man-pages 6.17" |
| 1329 |
msgstr "Страницы руководства Linux 6.17" |
| 1330 |
|
| 1331 |
#. type: TH |
| 1332 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 1333 |
#, no-wrap |
| 1334 |
msgid "Linux man-pages (unreleased)" |
| 1335 |
msgstr "Страницы руководства Linux (не выпущены)" |