Debian Codegraph @

templates/man3/mq_getattr.3.pot

raw
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5 #
6 #, fuzzy
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <[email protected]>\n"
14 "Language: \n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18
19 #. type: TH
20 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
21 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
22 #, no-wrap
23 msgid "mq_getattr"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "mq_getattr, mq_setattr - get/set message queue attributes"
50 msgstr ""
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 "LIBRARY"
57 msgstr ""
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Real-time library (I<librt>,\\ I<-lrt>)"
63 msgstr ""
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 "SYNOPSIS"
70 msgstr ""
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>mqueue.hE<gt>>\n"
77 msgstr ""
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid ""
84 "B<int mq_getattr(mqd_t >I<mqdes>B<, struct mq_attr *>I<attr>B<);>\n"
85 "B<int mq_setattr(mqd_t >I<mqdes>B<, const struct mq_attr *restrict >I<newattr>B<,>\n"
86 "B< struct mq_attr *restrict >I<oldattr>B<);>\n"
87 msgstr ""
88
89 #. type: SH
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid "DESCRIPTION"
94 msgstr ""
95
96 #. type: Plain text
97 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
98 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
99 msgid ""
100 "B<mq_getattr>() and B<mq_setattr>() respectively retrieve and modify "
101 "attributes of the message queue referred to by the message queue descriptor "
102 "I<mqdes>."
103 msgstr ""
104
105 #. type: Plain text
106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
108 msgid ""
109 "B<mq_getattr>() returns an I<mq_attr> structure in the buffer pointed by "
110 "I<attr>. This structure is defined as:"
111 msgstr ""
112
113 #. type: Plain text
114 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
115 #: opensuse-tumbleweed
116 #, no-wrap
117 msgid ""
118 "struct mq_attr {\n"
119 " long mq_flags; /* Flags: 0 or O_NONBLOCK */\n"
120 " long mq_maxmsg; /* Max.\\& # of messages on queue */\n"
121 " long mq_msgsize; /* Max.\\& message size (bytes) */\n"
122 " long mq_curmsgs; /* # of messages currently in queue */\n"
123 "};\n"
124 msgstr ""
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 "The I<mq_flags> field contains flags associated with the open message queue "
131 "description. This field is initialized when the queue is created by "
132 "B<mq_open>(3). The only flag that can appear in this field is B<O_NONBLOCK>."
133 msgstr ""
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid ""
139 "The I<mq_maxmsg> and I<mq_msgsize> fields are set when the message queue is "
140 "created by B<mq_open>(3). The I<mq_maxmsg> field is an upper limit on the "
141 "number of messages that may be placed on the queue using B<mq_send>(3). The "
142 "I<mq_msgsize> field is an upper limit on the size of messages that may be "
143 "placed on the queue. Both of these fields must have a value greater than "
144 "zero. Two I</proc> files that place ceilings on the values for these fields "
145 "are described in B<mq_overview>(7)."
146 msgstr ""
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 msgid ""
152 "The I<mq_curmsgs> field returns the number of messages currently held in the "
153 "queue."
154 msgstr ""
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 msgid ""
160 "B<mq_setattr>() sets message queue attributes using information supplied in "
161 "the I<mq_attr> structure pointed to by I<newattr>. The only attribute that "
162 "can be modified is the setting of the B<O_NONBLOCK> flag in I<mq_flags>. "
163 "The other fields in I<newattr> are ignored. If the I<oldattr> field is not "
164 "NULL, then the buffer that it points to is used to return an I<mq_attr> "
165 "structure that contains the same information that is returned by "
166 "B<mq_getattr>()."
167 msgstr ""
168
169 #. type: SH
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "RETURN VALUE"
174 msgstr ""
175
176 #. type: Plain text
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 msgid ""
180 "On success B<mq_getattr>() and B<mq_setattr>() return 0; on error, -1 is "
181 "returned, with I<errno> set to indicate the error."
182 msgstr ""
183
184 #. type: SH
185 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
186 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
187 #, no-wrap
188 msgid "ERRORS"
189 msgstr ""
190
191 #. type: TP
192 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
193 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
194 #, no-wrap
195 msgid "B<EBADF>"
196 msgstr ""
197
198 #. type: Plain text
199 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
200 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
201 msgid "The message queue descriptor specified in I<mqdes> is invalid."
202 msgstr ""
203
204 #. type: TP
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "B<EINVAL>"
209 msgstr ""
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid "I<newattr-E<gt>mq_flags> contained set bits other than B<O_NONBLOCK>."
215 msgstr ""
216
217 #. type: SH
218 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
219 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
220 #, no-wrap
221 msgid "ATTRIBUTES"
222 msgstr ""
223
224 #. type: Plain text
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 msgid ""
228 "For an explanation of the terms used in this section, see B<attributes>(7)."
229 msgstr ""
230
231 #. type: tbl table
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 #, no-wrap
235 msgid "Interface"
236 msgstr ""
237
238 #. type: tbl table
239 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
240 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
241 #, no-wrap
242 msgid "Attribute"
243 msgstr ""
244
245 #. type: tbl table
246 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
247 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
248 #, no-wrap
249 msgid "Value"
250 msgstr ""
251
252 #. type: tbl table
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid ".na\n"
257 msgstr ""
258
259 #. type: tbl table
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 #, no-wrap
263 msgid ".nh\n"
264 msgstr ""
265
266 #. type: tbl table
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid ""
271 "B<mq_getattr>(),\n"
272 "B<mq_setattr>()"
273 msgstr ""
274
275 #. type: tbl table
276 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
277 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
278 #, no-wrap
279 msgid "Thread safety"
280 msgstr ""
281
282 #. type: tbl table
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "MT-Safe"
287 msgstr ""
288
289 #. type: SH
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "VERSIONS"
294 msgstr ""
295
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid ""
300 "On Linux, B<mq_getattr>() and B<mq_setattr>() are library functions "
301 "layered on top of the B<mq_getsetattr>(2) system call."
302 msgstr ""
303
304 #. type: SH
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 #, no-wrap
308 msgid "STANDARDS"
309 msgstr ""
310
311 #. type: Plain text
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 msgid "POSIX.1-2008."
315 msgstr ""
316
317 #. type: SH
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "HISTORY"
322 msgstr ""
323
324 #. type: Plain text
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 msgid "POSIX.1-2001."
328 msgstr ""
329
330 #. type: SH
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "EXAMPLES"
335 msgstr ""
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "The program below can be used to show the default I<mq_maxmsg> and "
342 "I<mq_msgsize> values that are assigned to a message queue that is created "
343 "with a call to B<mq_open>(3) in which the I<attr> argument is NULL. Here "
344 "is an example run of the program:"
345 msgstr ""
346
347 #. type: Plain text
348 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
349 #: opensuse-tumbleweed
350 #, no-wrap
351 msgid ""
352 "$B< ./a.out /testq>;\n"
353 "Maximum # of messages on queue: 10\n"
354 "Maximum message size: 8192\n"
355 msgstr ""
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid ""
361 "Since Linux 3.5, the following I</proc> files (described in "
362 "B<mq_overview>(7)) can be used to control the defaults:"
363 msgstr ""
364
365 #. type: Plain text
366 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
367 #: opensuse-tumbleweed
368 #, no-wrap
369 msgid ""
370 "$B< uname -sr>;\n"
371 "Linux 3.8.0\n"
372 "$B< cat /proc/sys/fs/mqueue/msg_default>;\n"
373 "10\n"
374 "$B< cat /proc/sys/fs/mqueue/msgsize_default>;\n"
375 "8192\n"
376 msgstr ""
377
378 #. type: SS
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "Program source"
383 msgstr ""
384
385 #. type: Plain text
386 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
387 #: opensuse-tumbleweed
388 #, no-wrap
389 msgid ""
390 "#include E<lt>err.hE<gt>\n"
391 "#include E<lt>fcntl.hE<gt>\n"
392 "#include E<lt>mqueue.hE<gt>\n"
393 "#include E<lt>stdio.hE<gt>\n"
394 "#include E<lt>stdlib.hE<gt>\n"
395 "#include E<lt>sys/stat.hE<gt>\n"
396 "#include E<lt>unistd.hE<gt>\n"
397 "\\&\n"
398 "int\n"
399 "main(int argc, char *argv[])\n"
400 "{\n"
401 " mqd_t mqd;\n"
402 " struct mq_attr attr;\n"
403 "\\&\n"
404 " if (argc != 2) {\n"
405 " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
406 " exit(EXIT_FAILURE);\n"
407 " }\n"
408 "\\&\n"
409 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
410 " if (mqd == (mqd_t) -1)\n"
411 " err(EXIT_FAILURE, \"mq_open\");\n"
412 "\\&\n"
413 " if (mq_getattr(mqd, &attr) == -1)\n"
414 " err(EXIT_FAILURE, \"mq_getattr\");\n"
415 "\\&\n"
416 " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
417 " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
418 "\\&\n"
419 " if (mq_unlink(argv[1]) == -1)\n"
420 " err(EXIT_FAILURE, \"mq_unlink\");\n"
421 "\\&\n"
422 " exit(EXIT_SUCCESS);\n"
423 "}\n"
424 msgstr ""
425
426 #. SRC END
427 #. type: SH
428 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
429 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
430 #, no-wrap
431 msgid "SEE ALSO"
432 msgstr ""
433
434 #. type: Plain text
435 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
436 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
437 msgid ""
438 "B<mq_close>(3), B<mq_notify>(3), B<mq_open>(3), B<mq_receive>(3), "
439 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7)"
440 msgstr ""
441
442 #. type: TH
443 #: debian-trixie
444 #, no-wrap
445 msgid "2024-06-15"
446 msgstr ""
447
448 #. type: TH
449 #: debian-trixie
450 #, no-wrap
451 msgid "Linux man-pages 6.9.1"
452 msgstr ""
453
454 #. type: Plain text
455 #: debian-trixie
456 msgid "Real-time library (I<librt>, I<-lrt>)"
457 msgstr ""
458
459 #. type: Plain text
460 #: debian-trixie fedora-44 fedora-rawhide
461 #, no-wrap
462 msgid ""
463 "struct mq_attr {\n"
464 " long mq_flags; /* Flags: 0 or O_NONBLOCK */\n"
465 " long mq_maxmsg; /* Max. # of messages on queue */\n"
466 " long mq_msgsize; /* Max. message size (bytes) */\n"
467 " long mq_curmsgs; /* # of messages currently in queue */\n"
468 "};\n"
469 msgstr ""
470
471 #. type: Plain text
472 #: debian-trixie fedora-44 fedora-rawhide
473 #, no-wrap
474 msgid ""
475 "$ B<./a.out /testq>\n"
476 "Maximum # of messages on queue: 10\n"
477 "Maximum message size: 8192\n"
478 msgstr ""
479
480 #. type: Plain text
481 #: debian-trixie fedora-44 fedora-rawhide
482 #, no-wrap
483 msgid ""
484 "$ B<uname -sr>\n"
485 "Linux 3.8.0\n"
486 "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
487 "10\n"
488 "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
489 "8192\n"
490 msgstr ""
491
492 #. type: Plain text
493 #: debian-trixie fedora-44 fedora-rawhide
494 #, no-wrap
495 msgid ""
496 "#include E<lt>fcntl.hE<gt>\n"
497 "#include E<lt>mqueue.hE<gt>\n"
498 "#include E<lt>stdio.hE<gt>\n"
499 "#include E<lt>stdlib.hE<gt>\n"
500 "#include E<lt>sys/stat.hE<gt>\n"
501 "#include E<lt>unistd.hE<gt>\n"
502 "\\&\n"
503 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
504 " } while (0)\n"
505 "\\&\n"
506 "int\n"
507 "main(int argc, char *argv[])\n"
508 "{\n"
509 " mqd_t mqd;\n"
510 " struct mq_attr attr;\n"
511 "\\&\n"
512 " if (argc != 2) {\n"
513 " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
514 " exit(EXIT_FAILURE);\n"
515 " }\n"
516 "\\&\n"
517 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
518 " if (mqd == (mqd_t) -1)\n"
519 " errExit(\"mq_open\");\n"
520 "\\&\n"
521 " if (mq_getattr(mqd, &attr) == -1)\n"
522 " errExit(\"mq_getattr\");\n"
523 "\\&\n"
524 " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
525 " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
526 "\\&\n"
527 " if (mq_unlink(argv[1]) == -1)\n"
528 " errExit(\"mq_unlink\");\n"
529 "\\&\n"
530 " exit(EXIT_SUCCESS);\n"
531 "}\n"
532 msgstr ""
533
534 #. type: TH
535 #: fedora-44 fedora-rawhide
536 #, no-wrap
537 msgid "2024-07-23"
538 msgstr ""
539
540 #. type: TH
541 #: fedora-44 fedora-rawhide
542 #, no-wrap
543 msgid "Linux man-pages 6.13"
544 msgstr ""
545
546 #. type: TH
547 #: mageia-cauldron
548 #, no-wrap
549 msgid "Linux man-pages 6.17"
550 msgstr ""
551
552 #. type: TH
553 #: opensuse-leap-16-1 opensuse-tumbleweed
554 #, no-wrap
555 msgid "Linux man-pages (unreleased)"
556 msgstr ""