Debian Codegraph @

po/fr/man3/mq_getattr.3.po

raw
1 # French translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Christophe Blaess <https://www.blaess.fr/christophe/>, 1996-2003.
5 # Stéphan Rafin <[email protected]>, 2002.
6 # Thierry Vignaud <[email protected]>, 1999, 2002.
7 # François Micaux, 2002.
8 # Alain Portal <[email protected]>, 2003-2008.
9 # Jean-Philippe Guérard <[email protected]>, 2005-2006.
10 # Jean-Luc Coulon (f5ibh) <[email protected]>, 2006-2007.
11 # Julien Cristau <[email protected]>, 2006-2007.
12 # Thomas Huriaux <[email protected]>, 2006-2008.
13 # Nicolas François <[email protected]>, 2006-2008.
14 # Florentin Duneau <[email protected]>, 2006-2010.
15 # Simon Paillard <[email protected]>, 2006, 2014.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010, 2012-2014.
18 # Jean-Pierre Giraud <[email protected]>, 2021, 2024.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n 4.22.0\n"
22 "POT-Creation-Date: 2026-06-05 06:31+0200\n"
23 "PO-Revision-Date: 2024-04-22 12:25+0200\n"
24 "Last-Translator: Jean-Pierre Giraud <[email protected]>\n"
25 "Language-Team: French <[email protected]>\n"
26 "Language: fr\n"
27 "MIME-Version: 1.0\n"
28 "Content-Type: text/plain; charset=UTF-8\n"
29 "Content-Transfer-Encoding: 8bit\n"
30 "Plural-Forms: nplurals=2; plural=n > 1;\n"
31 "X-Generator: Lokalize 22.12.3\n"
32
33 #. type: TH
34 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
35 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
36 #, no-wrap
37 msgid "mq_getattr"
38 msgstr "mq_getattr"
39
40 #. type: TH
41 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
42 #: opensuse-tumbleweed
43 #, no-wrap
44 msgid "2026-02-08"
45 msgstr "8 février 2026"
46
47 #. type: TH
48 #: archlinux debian-unstable
49 #, no-wrap
50 msgid "Linux man-pages 6.18"
51 msgstr "Pages du manuel de Linux 6.18"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "NAME"
58 msgstr "NOM"
59
60 #. type: Plain text
61 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
62 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "mq_getattr, mq_setattr - get/set message queue attributes"
64 msgstr ""
65 "mq_getattr, mq_setattr - Lire et écrire les attributs d'une file de messages"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "LIBRARY"
72 msgstr "BIBLIOTHÈQUE"
73
74 #. type: Plain text
75 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
76 #: opensuse-leap-16-1 opensuse-tumbleweed
77 msgid "Real-time library (I<librt>,\\ I<-lrt>)"
78 msgstr "Bibliothèque de temps réel (I<librt>,\\ I<-lrt>)"
79
80 #. type: SH
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid "SYNOPSIS"
85 msgstr "SYNOPSIS"
86
87 #. type: Plain text
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "B<#include E<lt>mqueue.hE<gt>>\n"
92 msgstr "B<#include E<lt>mqueue.hE<gt>>\n"
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid ""
99 "B<int mq_getattr(mqd_t >I<mqdes>B<, struct mq_attr *>I<attr>B<);>\n"
100 "B<int mq_setattr(mqd_t >I<mqdes>B<, const struct mq_attr *restrict >I<newattr>B<,>\n"
101 "B< struct mq_attr *restrict >I<oldattr>B<);>\n"
102 msgstr ""
103 "B<int mq_getattr(mqd_t >I<mqdes>B<, struct mq_attr *>I<attr>B<);>\n"
104 "B<int mq_setattr(mqd_t >I<mqdes>B<, const struct mq_attr *restrict >I<newattr>B<,>\n"
105 "B< struct mq_attr *restrict >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 "DESCRIPTION"
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 "Les fonctions B<mq_getattr>() et B<mq_setattr>() extraient et modifient "
123 "respectivement les attributs de la file de messages référencée par le "
124 "descripteur de file de messages 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>() renvoie une structure I<mq_attr> dans le tampon pointé par "
134 "I<attr>. Cette structure est définie comme suit\\ :"
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; /* Drapeaux : 0 or O_NONBLOCK */\n"
157 " long mq_maxmsg; /* Max. # de messages dans la file */\n"
158 " long mq_msgsize; /* Max de la taille du message (octets) */\n"
159 " long mq_curmsgs; /* # de messages actuellement dans la file */\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 "Le champ I<mq_flags> contient des drapeaux associés à la description de la "
171 "file de messages ouverte. Ce champ est initialisé lorsque la file est créée "
172 "avec B<mq_open>(3). Le seul drapeau qui peut apparaître dans ce champ est "
173 "B<O_NONBLOCK>."
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "The I<mq_maxmsg> and I<mq_msgsize> fields are set when the message queue is "
180 "created by B<mq_open>(3). The I<mq_maxmsg> field is an upper limit on the "
181 "number of messages that may be placed on the queue using B<mq_send>(3). The "
182 "I<mq_msgsize> field is an upper limit on the size of messages that may be "
183 "placed on the queue. Both of these fields must have a value greater than "
184 "zero. Two I</proc> files that place ceilings on the values for these fields "
185 "are described in B<mq_overview>(7)."
186 msgstr ""
187 "Les champs I<mq_maxmsg> et I<mq_msgsize> sont définis lorsque la file de "
188 "messages est créée avec B<mq_open>(3). Le champ I<mq_maxmsg> est le nombre "
189 "maximal de messages qui peuvent être placés dans la file avec B<mq_send>(3). "
190 "Le champ I<mq_msgsize> est la taille maximale des messages qui peuvent être "
191 "placés dans la file. Chacun de ces champs doit avoir une valeur supérieure à "
192 "zéro. Deux fichiers de I</proc> qui plafonnent ces valeurs pour ces champs "
193 "sont décrites dans B<mq_overview>(7)."
194
195 #. type: Plain text
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 msgid ""
199 "The I<mq_curmsgs> field returns the number of messages currently held in the "
200 "queue."
201 msgstr ""
202 "Le champ I<mq_curmsgs> renvoie le nombre de messages actuellement dans la "
203 "file."
204
205 #. type: Plain text
206 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
207 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
208 msgid ""
209 "B<mq_setattr>() sets message queue attributes using information supplied in "
210 "the I<mq_attr> structure pointed to by I<newattr>. The only attribute that "
211 "can be modified is the setting of the B<O_NONBLOCK> flag in I<mq_flags>. "
212 "The other fields in I<newattr> are ignored. If the I<oldattr> field is not "
213 "NULL, then the buffer that it points to is used to return an I<mq_attr> "
214 "structure that contains the same information that is returned by "
215 "B<mq_getattr>()."
216 msgstr ""
217 "B<mq_setattr>() définit les attributs de la file de messages avec les "
218 "informations fournies par la structure I<mq_attr> pointée par I<newattr>. Le "
219 "seul attribut qui peut être modifié est le drapeau B<O_NONBLOCK> de "
220 "I<mq_flags>. Les autres champs de I<newattr> sont ignorés. Si le champ "
221 "I<oldattr> est non NULL, alors le tampon qu'il pointe est utilisé pour "
222 "renvoyer une structure I<mq_attr> contenant les mêmes informations que la "
223 "fonction B<mq_getattr>() renverrait."
224
225 #. type: SH
226 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
227 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
228 #, no-wrap
229 msgid "RETURN VALUE"
230 msgstr "VALEUR RENVOYÉE"
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "On success B<mq_getattr>() and B<mq_setattr>() return 0; on error, -1 is "
237 "returned, with I<errno> set to indicate the error."
238 msgstr ""
239 "En cas de succès, B<mq_getattr>() et B<mq_setattr>() renvoient B<0>. En cas "
240 "d'erreur, elles renvoient B<-1> et définissent I<errno> en conséquence."
241
242 #. type: SH
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 #, no-wrap
246 msgid "ERRORS"
247 msgstr "ERREURS"
248
249 #. type: TP
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "B<EBADF>"
254 msgstr "B<EBADF>"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid "The message queue descriptor specified in I<mqdes> is invalid."
260 msgstr ""
261 "Le descripteur de file de messages spécifié dans I<mqdes> n'est pas valable."
262
263 #. type: TP
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "B<EINVAL>"
268 msgstr "B<EINVAL>"
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid "I<newattr-E<gt>mq_flags> contained set bits other than B<O_NONBLOCK>."
274 msgstr ""
275 "I<newattr-E<gt>mq_flags> contient des bits définis autres que B<O_NONBLOCK>."
276
277 #. type: SH
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "ATTRIBUTES"
282 msgstr "ATTRIBUTS"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid ""
288 "For an explanation of the terms used in this section, see B<attributes>(7)."
289 msgstr ""
290 "Pour une explication des termes utilisés dans cette section, consulter "
291 "B<attributes>(7)."
292
293 #. type: tbl table
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 #, no-wrap
297 msgid "Interface"
298 msgstr "Interface"
299
300 #. type: tbl table
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "Attribute"
305 msgstr "Attribut"
306
307 #. type: tbl table
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 #, no-wrap
311 msgid "Value"
312 msgstr "Valeur"
313
314 #. type: tbl table
315 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
316 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
317 #, no-wrap
318 msgid ".na\n"
319 msgstr ".na\n"
320
321 #. type: tbl table
322 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
323 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
324 #, no-wrap
325 msgid ".nh\n"
326 msgstr ".nh\n"
327
328 #. type: tbl table
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid ""
333 "B<mq_getattr>(),\n"
334 "B<mq_setattr>()"
335 msgstr ""
336 "B<mq_getattr>(),\n"
337 "B<mq_setattr>()"
338
339 #. type: tbl table
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 #, no-wrap
343 msgid "Thread safety"
344 msgstr "Sécurité des threads"
345
346 #. type: tbl table
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 #, no-wrap
350 msgid "MT-Safe"
351 msgstr "MT-Safe"
352
353 #. type: SH
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "VERSIONS"
358 msgstr "VERSIONS"
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "On Linux, B<mq_getattr>() and B<mq_setattr>() are library functions "
365 "layered on top of the B<mq_getsetattr>(2) system call."
366 msgstr ""
367 "Sous Linux, B<mq_getattr>() et B<mq_setattr>() sont des fonctions de "
368 "bibliothèque au dessus de l'appel système B<mq_getsetattr>(2)."
369
370 #. type: SH
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "STANDARDS"
375 msgstr "NORMES"
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid "POSIX.1-2008."
381 msgstr "POSIX.1-2008."
382
383 #. type: SH
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 #, no-wrap
387 msgid "HISTORY"
388 msgstr "HISTORIQUE"
389
390 #. type: Plain text
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 msgid "POSIX.1-2001."
394 msgstr "POSIX.1-2001."
395
396 #. type: SH
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 #, no-wrap
400 msgid "EXAMPLES"
401 msgstr "EXEMPLES"
402
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "The program below can be used to show the default I<mq_maxmsg> and "
408 "I<mq_msgsize> values that are assigned to a message queue that is created "
409 "with a call to B<mq_open>(3) in which the I<attr> argument is NULL. Here "
410 "is an example run of the program:"
411 msgstr ""
412 "Le programme ci-dessous peut être utilisé pour afficher les valeurs par "
413 "défaut de I<mq_maxmsg> et I<mq_msgsize> assignées à une file de messages qui "
414 "est créée avec un appel à B<mq_open>(3) dans lequel le paramètre est NULL. "
415 "Voici un exemple d'exécution du programme."
416
417 #. type: Plain text
418 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
419 #: opensuse-tumbleweed
420 #, fuzzy, no-wrap
421 #| msgid ""
422 #| "$ B<./a.out /testq>\n"
423 #| "Maximum # of messages on queue: 10\n"
424 #| "Maximum message size: 8192\n"
425 msgid ""
426 "$B< ./a.out /testq>;\n"
427 "Maximum # of messages on queue: 10\n"
428 "Maximum message size: 8192\n"
429 msgstr ""
430 "$ B<./a.out /testq>\n"
431 "Nbre maximal de messages de la file : 10\n"
432 "Taille maximale de message : 8192\n"
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 "Since Linux 3.5, the following I</proc> files (described in "
439 "B<mq_overview>(7)) can be used to control the defaults:"
440 msgstr ""
441 "Depuis Linux 3.5, les fichiers suivants de I</proc> (décrits dans) "
442 "B<mq_overview>(7)) peuvent être utilisés pour contrôler les valeurs par "
443 "défaut :"
444
445 #. type: Plain text
446 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
447 #: opensuse-tumbleweed
448 #, fuzzy, no-wrap
449 #| msgid ""
450 #| "$ B<uname -sr>\n"
451 #| "Linux 3.8.0\n"
452 #| "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
453 #| "10\n"
454 #| "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
455 #| "8192\n"
456 msgid ""
457 "$B< uname -sr>;\n"
458 "Linux 3.8.0\n"
459 "$B< cat /proc/sys/fs/mqueue/msg_default>;\n"
460 "10\n"
461 "$B< cat /proc/sys/fs/mqueue/msgsize_default>;\n"
462 "8192\n"
463 msgstr ""
464 "$ B<uname -sr>\n"
465 "Linux 3.8.0\n"
466 "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
467 "10\n"
468 "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
469 "8192\n"
470
471 #. type: SS
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 #, no-wrap
475 msgid "Program source"
476 msgstr "Source du programme"
477
478 #. type: Plain text
479 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
480 #: opensuse-tumbleweed
481 #, fuzzy, no-wrap
482 #| msgid ""
483 #| "#include E<lt>fcntl.hE<gt>\n"
484 #| "#include E<lt>mqueue.hE<gt>\n"
485 #| "#include E<lt>stdio.hE<gt>\n"
486 #| "#include E<lt>stdlib.hE<gt>\n"
487 #| "#include E<lt>sys/stat.hE<gt>\n"
488 #| "#include E<lt>unistd.hE<gt>\n"
489 #| "\\&\n"
490 #| "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
491 #| " } while (0)\n"
492 #| "\\&\n"
493 #| "int\n"
494 #| "main(int argc, char *argv[])\n"
495 #| "{\n"
496 #| " mqd_t mqd;\n"
497 #| " struct mq_attr attr;\n"
498 #| "\\&\n"
499 #| " if (argc != 2) {\n"
500 #| " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
501 #| " exit(EXIT_FAILURE);\n"
502 #| " }\n"
503 #| "\\&\n"
504 #| " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
505 #| " if (mqd == (mqd_t) -1)\n"
506 #| " errExit(\"mq_open\");\n"
507 #| "\\&\n"
508 #| " if (mq_getattr(mqd, &attr) == -1)\n"
509 #| " errExit(\"mq_getattr\");\n"
510 #| "\\&\n"
511 #| " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
512 #| " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
513 #| "\\&\n"
514 #| " if (mq_unlink(argv[1]) == -1)\n"
515 #| " errExit(\"mq_unlink\");\n"
516 #| "\\&\n"
517 #| " exit(EXIT_SUCCESS);\n"
518 #| "}\n"
519 msgid ""
520 "#include E<lt>err.hE<gt>\n"
521 "#include E<lt>fcntl.hE<gt>\n"
522 "#include E<lt>mqueue.hE<gt>\n"
523 "#include E<lt>stdio.hE<gt>\n"
524 "#include E<lt>stdlib.hE<gt>\n"
525 "#include E<lt>sys/stat.hE<gt>\n"
526 "#include E<lt>unistd.hE<gt>\n"
527 "\\&\n"
528 "int\n"
529 "main(int argc, char *argv[])\n"
530 "{\n"
531 " mqd_t mqd;\n"
532 " struct mq_attr attr;\n"
533 "\\&\n"
534 " if (argc != 2) {\n"
535 " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
536 " exit(EXIT_FAILURE);\n"
537 " }\n"
538 "\\&\n"
539 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
540 " if (mqd == (mqd_t) -1)\n"
541 " err(EXIT_FAILURE, \"mq_open\");\n"
542 "\\&\n"
543 " if (mq_getattr(mqd, &attr) == -1)\n"
544 " err(EXIT_FAILURE, \"mq_getattr\");\n"
545 "\\&\n"
546 " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
547 " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
548 "\\&\n"
549 " if (mq_unlink(argv[1]) == -1)\n"
550 " err(EXIT_FAILURE, \"mq_unlink\");\n"
551 "\\&\n"
552 " exit(EXIT_SUCCESS);\n"
553 "}\n"
554 msgstr ""
555 "#include E<lt>fcntl.hE<gt>\n"
556 "#include E<lt>mqueue.hE<gt>\n"
557 "#include E<lt>stdio.hE<gt>\n"
558 "#include E<lt>stdlib.hE<gt>\n"
559 "#include E<lt>sys/stat.hE<gt>\n"
560 "#include E<lt>unistd.hE<gt>\n"
561 "\\&\n"
562 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
563 " } while (0)\n"
564 "\\&\n"
565 "int\n"
566 "main(int argc, char *argv[])\n"
567 "{\n"
568 " mqd_t mqd;\n"
569 " struct mq_attr attr;\n"
570 "\\&\n"
571 " if (argc != 2) {\n"
572 " fprintf(stderr, \"Utilisation : %s mq-name\\[rs]n\", argv[0]);\n"
573 " exit(EXIT_FAILURE);\n"
574 " }\n"
575 "\\&\n"
576 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
577 " if (mqd == (mqd_t) -1)\n"
578 " errExit(\"mq_open\");\n"
579 "\\&\n"
580 " if (mq_getattr(mqd, &attr) == -1)\n"
581 " errExit(\"mq_getattr\");\n"
582 "\\&\n"
583 " printf(\"Nbre maximal de messages de la file : %ld\\[rs]n\", attr.mq_maxmsg);\n"
584 " printf(\"Taille maximale de message : %ld\\[rs]n\", attr.mq_msgsize);\n"
585 "\\&\n"
586 " if (mq_unlink(argv[1]) == -1)\n"
587 " errExit(\"mq_unlink\");\n"
588 "\\&\n"
589 " exit(EXIT_SUCCESS);\n"
590 "}\n"
591
592 #. SRC END
593 #. type: SH
594 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
595 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
596 #, no-wrap
597 msgid "SEE ALSO"
598 msgstr "VOIR AUSSI"
599
600 #. type: Plain text
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 msgid ""
604 "B<mq_close>(3), B<mq_notify>(3), B<mq_open>(3), B<mq_receive>(3), "
605 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7)"
606 msgstr ""
607 "B<mq_close>(3), B<mq_notify>(3), B<mq_open>(3), B<mq_receive>(3), "
608 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7)"
609
610 #. type: TH
611 #: debian-trixie
612 #, no-wrap
613 msgid "2024-06-15"
614 msgstr "15 juin 2024"
615
616 #. type: TH
617 #: debian-trixie
618 #, no-wrap
619 msgid "Linux man-pages 6.9.1"
620 msgstr "Pages du manuel de Linux 6.9.1"
621
622 #. type: Plain text
623 #: debian-trixie
624 msgid "Real-time library (I<librt>, I<-lrt>)"
625 msgstr "Bibliothèque de temps réel (I<librt>, I<-lrt>)"
626
627 #. type: Plain text
628 #: debian-trixie fedora-44 fedora-rawhide
629 #, no-wrap
630 msgid ""
631 "struct mq_attr {\n"
632 " long mq_flags; /* Flags: 0 or O_NONBLOCK */\n"
633 " long mq_maxmsg; /* Max. # of messages on queue */\n"
634 " long mq_msgsize; /* Max. message size (bytes) */\n"
635 " long mq_curmsgs; /* # of messages currently in queue */\n"
636 "};\n"
637 msgstr ""
638 "struct mq_attr {\n"
639 " long mq_flags; /* Drapeaux : 0 or O_NONBLOCK */\n"
640 " long mq_maxmsg; /* Max. # de messages dans la file */\n"
641 " long mq_msgsize; /* Max de la taille du message (octets) */\n"
642 " long mq_curmsgs; /* # de messages actuellement dans la file */\n"
643 "};\n"
644
645 #. type: Plain text
646 #: debian-trixie fedora-44 fedora-rawhide
647 #, no-wrap
648 msgid ""
649 "$ B<./a.out /testq>\n"
650 "Maximum # of messages on queue: 10\n"
651 "Maximum message size: 8192\n"
652 msgstr ""
653 "$ B<./a.out /testq>\n"
654 "Nbre maximal de messages de la file : 10\n"
655 "Taille maximale de message : 8192\n"
656
657 #. type: Plain text
658 #: debian-trixie fedora-44 fedora-rawhide
659 #, no-wrap
660 msgid ""
661 "$ B<uname -sr>\n"
662 "Linux 3.8.0\n"
663 "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
664 "10\n"
665 "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
666 "8192\n"
667 msgstr ""
668 "$ B<uname -sr>\n"
669 "Linux 3.8.0\n"
670 "$ B<cat /proc/sys/fs/mqueue/msg_default>\n"
671 "10\n"
672 "$ B<cat /proc/sys/fs/mqueue/msgsize_default>\n"
673 "8192\n"
674
675 #. type: Plain text
676 #: debian-trixie fedora-44 fedora-rawhide
677 #, no-wrap
678 msgid ""
679 "#include E<lt>fcntl.hE<gt>\n"
680 "#include E<lt>mqueue.hE<gt>\n"
681 "#include E<lt>stdio.hE<gt>\n"
682 "#include E<lt>stdlib.hE<gt>\n"
683 "#include E<lt>sys/stat.hE<gt>\n"
684 "#include E<lt>unistd.hE<gt>\n"
685 "\\&\n"
686 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
687 " } while (0)\n"
688 "\\&\n"
689 "int\n"
690 "main(int argc, char *argv[])\n"
691 "{\n"
692 " mqd_t mqd;\n"
693 " struct mq_attr attr;\n"
694 "\\&\n"
695 " if (argc != 2) {\n"
696 " fprintf(stderr, \"Usage: %s mq-name\\[rs]n\", argv[0]);\n"
697 " exit(EXIT_FAILURE);\n"
698 " }\n"
699 "\\&\n"
700 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
701 " if (mqd == (mqd_t) -1)\n"
702 " errExit(\"mq_open\");\n"
703 "\\&\n"
704 " if (mq_getattr(mqd, &attr) == -1)\n"
705 " errExit(\"mq_getattr\");\n"
706 "\\&\n"
707 " printf(\"Maximum # of messages on queue: %ld\\[rs]n\", attr.mq_maxmsg);\n"
708 " printf(\"Maximum message size: %ld\\[rs]n\", attr.mq_msgsize);\n"
709 "\\&\n"
710 " if (mq_unlink(argv[1]) == -1)\n"
711 " errExit(\"mq_unlink\");\n"
712 "\\&\n"
713 " exit(EXIT_SUCCESS);\n"
714 "}\n"
715 msgstr ""
716 "#include E<lt>fcntl.hE<gt>\n"
717 "#include E<lt>mqueue.hE<gt>\n"
718 "#include E<lt>stdio.hE<gt>\n"
719 "#include E<lt>stdlib.hE<gt>\n"
720 "#include E<lt>sys/stat.hE<gt>\n"
721 "#include E<lt>unistd.hE<gt>\n"
722 "\\&\n"
723 "#define errExit(msg) do { perror(msg); exit(EXIT_FAILURE); \\[rs]\n"
724 " } while (0)\n"
725 "\\&\n"
726 "int\n"
727 "main(int argc, char *argv[])\n"
728 "{\n"
729 " mqd_t mqd;\n"
730 " struct mq_attr attr;\n"
731 "\\&\n"
732 " if (argc != 2) {\n"
733 " fprintf(stderr, \"Utilisation : %s mq-name\\[rs]n\", argv[0]);\n"
734 " exit(EXIT_FAILURE);\n"
735 " }\n"
736 "\\&\n"
737 " mqd = mq_open(argv[1], O_CREAT | O_EXCL, 0600, NULL);\n"
738 " if (mqd == (mqd_t) -1)\n"
739 " errExit(\"mq_open\");\n"
740 "\\&\n"
741 " if (mq_getattr(mqd, &attr) == -1)\n"
742 " errExit(\"mq_getattr\");\n"
743 "\\&\n"
744 " printf(\"Nbre maximal de messages de la file : %ld\\[rs]n\", attr.mq_maxmsg);\n"
745 " printf(\"Taille maximale de message : %ld\\[rs]n\", attr.mq_msgsize);\n"
746 "\\&\n"
747 " if (mq_unlink(argv[1]) == -1)\n"
748 " errExit(\"mq_unlink\");\n"
749 "\\&\n"
750 " exit(EXIT_SUCCESS);\n"
751 "}\n"
752
753 #. type: TH
754 #: fedora-44 fedora-rawhide
755 #, no-wrap
756 msgid "2024-07-23"
757 msgstr "23 juillet 2024"
758
759 #. type: TH
760 #: fedora-44 fedora-rawhide
761 #, no-wrap
762 msgid "Linux man-pages 6.13"
763 msgstr "Pages du manuel de Linux 6.13"
764
765 #. type: TH
766 #: mageia-cauldron
767 #, no-wrap
768 msgid "Linux man-pages 6.17"
769 msgstr "Pages du manuel de Linux 6.17"
770
771 #. type: TH
772 #: opensuse-leap-16-1 opensuse-tumbleweed
773 #, no-wrap
774 msgid "Linux man-pages (unreleased)"
775 msgstr "Pages du manuel de Linux (non publiées)"