Debian Codegraph @

po/ru/man3/mq_getattr.3.po

raw
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 #, no-wrap
34 msgid "mq_getattr"
35 msgstr ""
36
37 #. type: TH
38 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
39 #: opensuse-tumbleweed
40 #, no-wrap
41 msgid "2026-02-08"
42 msgstr "8 февраля 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 "mq_getattr, mq_setattr - get/set message queue attributes"
62 msgstr ""
63 "mq_getattr, mq_setattr - возвращает/изменяет атрибуты очереди сообщений"
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 #, no-wrap
89 msgid "B<#include E<lt>mqueue.hE<gt>>\n"
90 msgstr "B<#include E<lt>mqueue.hE<gt>>\n"
91
92 #. type: Plain text
93 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
94 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
95 #, fuzzy, no-wrap
96 #| msgid ""
97 #| "B<int mq_setattr(mqd_t >I<mqdes>B<, const struct mq_attr *>I<newattr>B<,>\n"
98 #| "B< struct mq_attr *>I<oldattr>B<);>\n"
99 msgid ""
100 "B<int mq_getattr(mqd_t >I<mqdes>B<, struct mq_attr *>I<attr>B<);>\n"
101 "B<int mq_setattr(mqd_t >I<mqdes>B<, const struct mq_attr *restrict >I<newattr>B<,>\n"
102 "B< struct mq_attr *restrict >I<oldattr>B<);>\n"
103 msgstr ""
104 "B<int mq_setattr(mqd_t >I<mqdes>B<, const struct mq_attr *>I<newattr>B<,>\n"
105 "B< struct mq_attr *>I<oldattr>B<);>\n"
106
107 #. type: SH
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 #, no-wrap
111 msgid "DESCRIPTION"
112 msgstr "ОПИСАНИЕ"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 msgid ""
118 "B<mq_getattr>() and B<mq_setattr>() respectively retrieve and modify "
119 "attributes of the message queue referred to by the message queue descriptor "
120 "I<mqdes>."
121 msgstr ""
122 "Функция B<mq_getattr>() и B<mq_setattr>(), соответственно, возвращает и "
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 msgid ""
130 "B<mq_getattr>() returns an I<mq_attr> structure in the buffer pointed by "
131 "I<attr>. This structure is defined as:"
132 msgstr ""
133 "Функция B<mq_getattr>() возвращает структуру I<mq_attr> в буфер, указанный в "
134 "I<attr>. Эта структура определена следующим образом:"
135
136 #. type: Plain text
137 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
138 #: opensuse-tumbleweed
139 #, fuzzy, no-wrap
140 #| msgid ""
141 #| "struct mq_attr {\n"
142 #| " long mq_flags; /* Flags: 0 or O_NONBLOCK */\n"
143 #| " long mq_maxmsg; /* Max. # of messages on queue */\n"
144 #| " long mq_msgsize; /* Max. message size (bytes) */\n"
145 #| " long mq_curmsgs; /* # of messages currently in queue */\n"
146 #| "};\n"
147 msgid ""
148 "struct mq_attr {\n"
149 " long mq_flags; /* Flags: 0 or O_NONBLOCK */\n"
150 " long mq_maxmsg; /* Max.\\& # of messages on queue */\n"
151 " long mq_msgsize; /* Max.\\& message size (bytes) */\n"
152 " long mq_curmsgs; /* # of messages currently in queue */\n"
153 "};\n"
154 msgstr ""
155 "struct mq_attr {\n"
156 " long mq_flags; /* флаги: 0 или O_NONBLOCK */\n"
157 " long mq_maxmsg; /* макс. кол-во сообщений в очереди */\n"
158 " long mq_msgsize; /* макс. размер сообщения (в байтах) */\n"
159 " long mq_curmsgs; /* кол-во сообщений в очереди в данный момент */\n"
160 "};\n"
161
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 "The I<mq_flags> field contains flags associated with the open message queue "
167 "description. This field is initialized when the queue is created by "
168 "B<mq_open>(3). The only flag that can appear in this field is B<O_NONBLOCK>."
169 msgstr ""
170 "В поле I<mq_flags> содержатся флаги, связанные с открытым описанием очереди "
171 "сообщений. Это поле инициализируется при создании очереди с помощью "
172 "B<mq_open>(3). В этом поле может содержаться только флаг B<O_NONBLOCK>."
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "The I<mq_maxmsg> and I<mq_msgsize> fields are set when the message queue is "
179 "created by B<mq_open>(3). The I<mq_maxmsg> field is an upper limit on the "
180 "number of messages that may be placed on the queue using B<mq_send>(3). The "
181 "I<mq_msgsize> field is an upper limit on the size of messages that may be "
182 "placed on the queue. Both of these fields must have a value greater than "
183 "zero. Two I</proc> files that place ceilings on the values for these fields "
184 "are described in B<mq_overview>(7)."
185 msgstr ""
186 "Поля I<mq_maxmsg> и I<mq_msgsize> заполняются при создании очереди сообщений "
187 "с помощью B<mq_open>(3). В поле I<mq_maxmsg> содержится верхний предел на "
188 "количество сообщений, которое может поместиться в очереди с помощью "
189 "B<mq_send>(3). В поле I<mq_msgsize> содержится верхний предел на размер "
190 "сообщений, которые могут помещаться в очередь. Значение обоих полей должно "
191 "быть больше нуля. Два файла в I</proc>, в которых размещаются значения этих "
192 "полей, описаны в B<mq_overview>(7)."
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "The I<mq_curmsgs> field returns the number of messages currently held in the "
199 "queue."
200 msgstr ""
201 "В поле I<mq_curmsgs> возвращается количество сообщений в очереди в текущей "
202 "момент времени."
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 msgid ""
208 "B<mq_setattr>() sets message queue attributes using information supplied in "
209 "the I<mq_attr> structure pointed to by I<newattr>. The only attribute that "
210 "can be modified is the setting of the B<O_NONBLOCK> flag in I<mq_flags>. "
211 "The other fields in I<newattr> are ignored. If the I<oldattr> field is not "
212 "NULL, then the buffer that it points to is used to return an I<mq_attr> "
213 "structure that contains the same information that is returned by "
214 "B<mq_getattr>()."
215 msgstr ""
216 "Функция B<mq_setattr>() изменяет атрибуты очереди согласно информации из "
217 "передаваемой структуры I<mq_attr>, на которую указывает I<newattr>. "
218 "Единственным атрибутом, который можно изменить, является флаг B<O_NONBLOCK> "
219 "в I<mq_flags>. Остальные поля в I<newattr> игнорируются. Если поле "
220 "I<oldattr> не равно NULL, то буфер, на который оно указывает, используется "
221 "для возврата структуры I<mq_attr>, с той же информацией как после вызова "
222 "B<mq_getattr>()."
223
224 #. type: SH
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "RETURN VALUE"
229 msgstr "ВОЗВРАЩАЕМОЕ ЗНАЧЕНИЕ"
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "On success B<mq_getattr>() and B<mq_setattr>() return 0; on error, -1 is "
236 "returned, with I<errno> set to indicate the error."
237 msgstr ""
238 "При успешном выполнении B<mq_getattr>() и B<mq_setattr>() возвращается 0; "
239 "при ошибке возвращается -1, а в I<errno> помещается код ошибки."
240
241 #. type: SH
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 #, no-wrap
245 msgid "ERRORS"
246 msgstr "ОШИБКИ"
247
248 #. type: TP
249 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
250 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
251 #, no-wrap
252 msgid "B<EBADF>"
253 msgstr "B<EBADF>"
254
255 #. type: Plain text
256 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
257 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
258 msgid "The message queue descriptor specified in I<mqdes> is invalid."
259 msgstr "В I<mqdes> размещён некорректный дескриптор очереди сообщений."
260
261 #. type: TP
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 #, no-wrap
265 msgid "B<EINVAL>"
266 msgstr "B<EINVAL>"
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid "I<newattr-E<gt>mq_flags> contained set bits other than B<O_NONBLOCK>."
272 msgstr ""
273 "В I<newattr-E<gt>mq_flags> содержится набор битов, отличный от B<O_NONBLOCK>."
274
275 #. type: SH
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "ATTRIBUTES"
280 msgstr "АТРИБУТЫ"
281
282 #. type: Plain text
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 msgid ""
286 "For an explanation of the terms used in this section, see B<attributes>(7)."
287 msgstr "Описание терминов данного раздела смотрите в B<attributes>(7)."
288
289 #. type: tbl table
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "Interface"
294 msgstr "Интерфейс"
295
296 #. type: tbl table
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "Attribute"
301 msgstr "Атрибут"
302
303 #. type: tbl table
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "Value"
308 msgstr "Значение"
309
310 #. type: tbl table
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid ".na\n"
315 msgstr ".na\n"
316
317 #. type: tbl table
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid ".nh\n"
322 msgstr ".nh\n"
323
324 #. type: tbl table
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid ""
329 "B<mq_getattr>(),\n"
330 "B<mq_setattr>()"
331 msgstr ""
332 "B<mq_getattr>(),\n"
333 "B<mq_setattr>()"
334
335 #. type: tbl table
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "Thread safety"
340 msgstr "Безвредность в нитях"
341
342 #. type: tbl table
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "MT-Safe"
347 msgstr "MT-Safe"
348
349 #. type: SH
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "VERSIONS"
354 msgstr "ВЕРСИИ"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid ""
360 "On Linux, B<mq_getattr>() and B<mq_setattr>() are library functions "
361 "layered on top of the B<mq_getsetattr>(2) system call."
362 msgstr ""
363 "В Linux, B<mq_getattr>() и B<mq_setattr>() является библиотечными "
364 "функциями, реализованными на основе системного вызова B<mq_getsetattr>(2)."
365
366 #. type: SH
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "STANDARDS"
371 msgstr "СТАНДАРТЫ"
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid "POSIX.1-2008."
377 msgstr "POSIX.1-2008."
378
379 #. type: SH
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "HISTORY"
384 msgstr "ИСТОРИЯ"
385
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 "POSIX.1-2001."
390 msgstr "POSIX.1-2001."
391
392 #. type: SH
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "EXAMPLES"
397 msgstr "ПРИМЕРЫ"
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "The program below can be used to show the default I<mq_maxmsg> and "
404 "I<mq_msgsize> values that are assigned to a message queue that is created "
405 "with a call to B<mq_open>(3) in which the I<attr> argument is NULL. Here "
406 "is an example run of the program:"
407 msgstr ""
408 "Программу, представленную ниже, можно использовать для просмотра значений по "
409 "умолчанию I<mq_maxmsg> и I<mq_msgsize>, которые назначаются очереди "
410 "сообщений, создаваемой вызовом B<mq_open>(3) с аргументом I<attr>, равным "
411 "NULL. Пример работы программы:"
412
413 #. type: Plain text
414 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
415 #: opensuse-tumbleweed
416 #, fuzzy, no-wrap
417 #| msgid ""
418 #| "$ B<./a.out /testq>\n"
419 #| "Maximum # of messages on queue: 10\n"
420 #| "Maximum message size: 8192\n"
421 msgid ""
422 "$B< ./a.out /testq>;\n"
423 "Maximum # of messages on queue: 10\n"
424 "Maximum message size: 8192\n"
425 msgstr ""
426 "$ B<./a.out /testq>\n"
427 "Максимальное количество сообщений в очереди: 10\n"
428 "Максимальный размер сообщения: 8192\n"
429
430 #. type: Plain text
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 msgid ""
434 "Since Linux 3.5, the following I</proc> files (described in "
435 "B<mq_overview>(7)) can be used to control the defaults:"
436 msgstr ""
437 "Начиная с Linux 3.5 для управления значениями по умолчанию можно "
438 "использовать следующие файлы в I</proc> (описаны в B<mq_overview>(7)):"
439
440 #. type: Plain text
441 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
442 #: opensuse-tumbleweed
443 #, fuzzy, no-wrap
444 #| msgid ""
445 #| "$ B<uname -sr>\n"
446 #| "Linux 3.8.0\n"
447 #| "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
448 #| "10\n"
449 #| "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
450 #| "8192\n"
451 msgid ""
452 "$B< uname -sr>;\n"
453 "Linux 3.8.0\n"
454 "$B< cat /proc/sys/fs/mqueue/msg_default>;\n"
455 "10\n"
456 "$B< cat /proc/sys/fs/mqueue/msgsize_default>;\n"
457 "8192\n"
458 msgstr ""
459 "$ B<uname -sr>\n"
460 "Linux 3.8.0\n"
461 "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
462 "10\n"
463 "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
464 "8192\n"
465
466 #. type: SS
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 #, no-wrap
470 msgid "Program source"
471 msgstr "Исходный код программы"
472
473 #. type: Plain text
474 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
475 #: opensuse-tumbleweed
476 #, no-wrap
477 msgid ""
478 "#include E<lt>err.hE<gt>\n"
479 "#include E<lt>fcntl.hE<gt>\n"
480 "#include E<lt>mqueue.hE<gt>\n"
481 "#include E<lt>stdio.hE<gt>\n"
482 "#include E<lt>stdlib.hE<gt>\n"
483 "#include E<lt>sys/stat.hE<gt>\n"
484 "#include E<lt>unistd.hE<gt>\n"
485 "\\&\n"
486 "int\n"
487 "main(int argc, char *argv[])\n"
488 "{\n"
489 " mqd_t mqd;\n"
490 " struct mq_attr attr;\n"
491 "\\&\n"
492 " if (argc != 2) {\n"
493 " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
494 " exit(EXIT_FAILURE);\n"
495 " }\n"
496 "\\&\n"
497 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
498 " if (mqd == (mqd_t) -1)\n"
499 " err(EXIT_FAILURE, \"mq_open\");\n"
500 "\\&\n"
501 " if (mq_getattr(mqd, &attr) == -1)\n"
502 " err(EXIT_FAILURE, \"mq_getattr\");\n"
503 "\\&\n"
504 " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
505 " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
506 "\\&\n"
507 " if (mq_unlink(argv[1]) == -1)\n"
508 " err(EXIT_FAILURE, \"mq_unlink\");\n"
509 "\\&\n"
510 " exit(EXIT_SUCCESS);\n"
511 "}\n"
512 msgstr ""
513
514 #. SRC END
515 #. type: SH
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "SEE ALSO"
520 msgstr "СМОТРИТЕ ТАКЖЕ"
521
522 #. type: Plain text
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 msgid ""
526 "B<mq_close>(3), B<mq_notify>(3), B<mq_open>(3), B<mq_receive>(3), "
527 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7)"
528 msgstr ""
529 "B<mq_close>(3), B<mq_notify>(3), B<mq_open>(3), B<mq_receive>(3), "
530 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7)"
531
532 #. type: TH
533 #: debian-trixie
534 #, no-wrap
535 msgid "2024-06-15"
536 msgstr "15 июня 2024 г."
537
538 #. type: TH
539 #: debian-trixie
540 #, no-wrap
541 msgid "Linux man-pages 6.9.1"
542 msgstr "Страницы руководства Linux 6.9.1"
543
544 #. type: Plain text
545 #: debian-trixie
546 msgid "Real-time library (I<librt>, I<-lrt>)"
547 msgstr "Библиотека реального времени (I<librt>, I<-lrt>)"
548
549 #. type: Plain text
550 #: debian-trixie fedora-44 fedora-rawhide
551 #, no-wrap
552 msgid ""
553 "struct mq_attr {\n"
554 " long mq_flags; /* Flags: 0 or O_NONBLOCK */\n"
555 " long mq_maxmsg; /* Max. # of messages on queue */\n"
556 " long mq_msgsize; /* Max. message size (bytes) */\n"
557 " long mq_curmsgs; /* # of messages currently in queue */\n"
558 "};\n"
559 msgstr ""
560 "struct mq_attr {\n"
561 " long mq_flags; /* флаги: 0 или O_NONBLOCK */\n"
562 " long mq_maxmsg; /* макс. кол-во сообщений в очереди */\n"
563 " long mq_msgsize; /* макс. размер сообщения (в байтах) */\n"
564 " long mq_curmsgs; /* кол-во сообщений в очереди в данный момент */\n"
565 "};\n"
566
567 #. type: Plain text
568 #: debian-trixie fedora-44 fedora-rawhide
569 #, no-wrap
570 msgid ""
571 "$ B<./a.out /testq>\n"
572 "Maximum # of messages on queue: 10\n"
573 "Maximum message size: 8192\n"
574 msgstr ""
575 "$ B<./a.out /testq>\n"
576 "Максимальное количество сообщений в очереди: 10\n"
577 "Максимальный размер сообщения: 8192\n"
578
579 #. type: Plain text
580 #: debian-trixie fedora-44 fedora-rawhide
581 #, no-wrap
582 msgid ""
583 "$ B<uname -sr>\n"
584 "Linux 3.8.0\n"
585 "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
586 "10\n"
587 "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
588 "8192\n"
589 msgstr ""
590 "$ B<uname -sr>\n"
591 "Linux 3.8.0\n"
592 "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
593 "10\n"
594 "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
595 "8192\n"
596
597 #. type: Plain text
598 #: debian-trixie fedora-44 fedora-rawhide
599 #, no-wrap
600 msgid ""
601 "#include E<lt>fcntl.hE<gt>\n"
602 "#include E<lt>mqueue.hE<gt>\n"
603 "#include E<lt>stdio.hE<gt>\n"
604 "#include E<lt>stdlib.hE<gt>\n"
605 "#include E<lt>sys/stat.hE<gt>\n"
606 "#include E<lt>unistd.hE<gt>\n"
607 "\\&\n"
608 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
609 " } while (0)\n"
610 "\\&\n"
611 "int\n"
612 "main(int argc, char *argv[])\n"
613 "{\n"
614 " mqd_t mqd;\n"
615 " struct mq_attr attr;\n"
616 "\\&\n"
617 " if (argc != 2) {\n"
618 " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
619 " exit(EXIT_FAILURE);\n"
620 " }\n"
621 "\\&\n"
622 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
623 " if (mqd == (mqd_t) -1)\n"
624 " errExit(\"mq_open\");\n"
625 "\\&\n"
626 " if (mq_getattr(mqd, &attr) == -1)\n"
627 " errExit(\"mq_getattr\");\n"
628 "\\&\n"
629 " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
630 " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
631 "\\&\n"
632 " if (mq_unlink(argv[1]) == -1)\n"
633 " errExit(\"mq_unlink\");\n"
634 "\\&\n"
635 " exit(EXIT_SUCCESS);\n"
636 "}\n"
637 msgstr ""
638
639 #. type: TH
640 #: fedora-44 fedora-rawhide
641 #, no-wrap
642 msgid "2024-07-23"
643 msgstr "23 июля 2024 г."
644
645 #. type: TH
646 #: fedora-44 fedora-rawhide
647 #, no-wrap
648 msgid "Linux man-pages 6.13"
649 msgstr "Страницы руководства Linux 6.13"
650
651 #. type: TH
652 #: mageia-cauldron
653 #, no-wrap
654 msgid "Linux man-pages 6.17"
655 msgstr "Страницы руководства Linux 6.17"
656
657 #. type: TH
658 #: opensuse-leap-16-1 opensuse-tumbleweed
659 #, no-wrap
660 msgid "Linux man-pages (unreleased)"
661 msgstr "Страницы руководства Linux (не выпущены)"