Debian Codegraph @

po/fr/man3/mq_notify.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 16:59+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_notify"
38 msgstr "mq_notify"
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_notify - register for notification when a message is available"
64 msgstr ""
65 "mq_notify - S'enregistrer pour la réception d'une notification de l'arrivée "
66 "d'un nouveau message"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "LIBRARY"
73 msgstr "BIBLIOTHÈQUE"
74
75 #. type: Plain text
76 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
77 #: opensuse-leap-16-1 opensuse-tumbleweed
78 msgid "Real-time library (I<librt>,\\ I<-lrt>)"
79 msgstr "Bibliothèque de temps réel (I<librt>,\\ I<-lrt>)"
80
81 #. type: SH
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid "SYNOPSIS"
86 msgstr "SYNOPSIS"
87
88 #. type: Plain text
89 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
90 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
91 #, no-wrap
92 msgid ""
93 "B<#include E<lt>mqueue.hE<gt>>\n"
94 "B<#include E<lt>signal.hE<gt> >/* Definition of SIGEV_* constants */\n"
95 msgstr ""
96 "B<#include E<lt>mqueue.hE<gt>>\n"
97 "B<#include E<lt>signal.hE<gt> >/* Définition des constantes SIGEV_* */\n"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 #, no-wrap
103 msgid "B<int mq_notify(mqd_t >I<mqdes>B<, const struct sigevent *>I<sevp>B<);>\n"
104 msgstr "B<int mq_notify(mqd_t >I<mqdes>B<, const struct sigevent *>I<sevp>B<);>\n"
105
106 #. type: SH
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid "DESCRIPTION"
111 msgstr "DESCRIPTION"
112
113 #. type: Plain text
114 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
115 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
116 msgid ""
117 "B<mq_notify>() allows the calling process to register or unregister for "
118 "delivery of an asynchronous notification when a new message arrives on the "
119 "empty message queue referred to by the message queue descriptor I<mqdes>."
120 msgstr ""
121 "B<mq_notify>() permet à un processus appelant de s'enregistrer ou de ne plus "
122 "s'enregistrer pour délivrer une notification asynchrone lorsqu'un message "
123 "entre dans une file de messages vide référencée par le descripteur de file "
124 "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 "The I<sevp> argument is a pointer to a I<sigevent> structure. For the "
131 "definition and general details of this structure, see B<sigevent>(3type)."
132 msgstr ""
133 "L'argument I<sevp> est un pointeur vers une structure I<sigevent>. Pour plus "
134 "d'informations sur cette structure, consultez B<sigevent>(3type)."
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 msgid ""
140 "If I<sevp> is a non-null pointer, then B<mq_notify>() registers the calling "
141 "process to receive message notification. The I<sigev_notify> field of the "
142 "I<sigevent> structure to which I<sevp> points specifies how notification is "
143 "to be performed. This field has one of the following values:"
144 msgstr ""
145 "Si I<sevp> est un pointeur non NULL, alors B<mq_notify>() enregistre le "
146 "processus appelant afin de recevoir les notifications. Le champ "
147 "I<sigev_notify> de I<sigevent> qui pointe vers I<sevp> spécifie comment la "
148 "notification est réalisée. Ce champ possède l'une des valeurs suivantes\\ :"
149
150 #. type: TP
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 #, no-wrap
154 msgid "B<SIGEV_NONE>"
155 msgstr "B<SIGEV_NONE>"
156
157 #. When is SIGEV_NONE useful?
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid ""
162 "A \"null\" notification: the calling process is registered as the target for "
163 "notification, but when a message arrives, no notification is sent."
164 msgstr ""
165 "Une notification «\\ null\\ »\\ : le processus appelant est enregistré comme "
166 "destinataire des notifications, mais aucune notification n'est envoyée "
167 "lorsqu'un message arrive."
168
169 #. type: TP
170 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
171 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
172 #, no-wrap
173 msgid "B<SIGEV_SIGNAL>"
174 msgstr "B<SIGEV_SIGNAL>"
175
176 #. I don't know of other implementations that set
177 #. si_pid and si_uid -- MTK
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "Notify the process by sending the signal specified in I<sigev_signo>. See "
183 "B<sigevent>(3type) for general details. The I<si_code> field of the "
184 "I<siginfo_t> structure will be set to B<SI_MESGQ>. In addition, I<si_pid> "
185 "will be set to the PID of the process that sent the message, and I<si_uid> "
186 "will be set to the real user ID of the sending process."
187 msgstr ""
188 "Notifier le processus en envoyant le signal spécifié dans I<sigev_signo>. "
189 "Consultez B<sigevent>(3type) pour plus de détails. Le champ I<si_code> de la "
190 "structure I<siginfo_t> sera défini à B<SI_MESGQ>. De plus, I<si_pid> sera "
191 "défini au PID du processus qui envoie le message, et I<si_uid> sera défini à "
192 "l'ID utilisateur du processus émetteur."
193
194 #. type: TP
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 #, no-wrap
198 msgid "B<SIGEV_THREAD>"
199 msgstr "B<SIGEV_THREAD>"
200
201 #. type: Plain text
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 msgid ""
205 "Upon message delivery, invoke I<sigev_notify_function> as if it were the "
206 "start function of a new thread. See B<sigevent>(3type) for details."
207 msgstr ""
208 "Jusqu'à la livraison du message, invoquer I<sigev_notify_function> comme si "
209 "c'était la fonction de création d'un nouveau processus léger. Consultez "
210 "B<sigevent>(3type) pour plus détails."
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "Only one process can be registered to receive notification from a message "
217 "queue."
218 msgstr ""
219 "Seul un processus peut être enregistré pour recevoir les notifications d'une "
220 "file de messages."
221
222 #. type: Plain text
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 msgid ""
226 "If I<sevp> is NULL, and the calling process is currently registered to "
227 "receive notifications for this message queue, then the registration is "
228 "removed; another process can then register to receive a message notification "
229 "for this queue."
230 msgstr ""
231 "Si I<sevp> est NULL, et si le processus appelant est actuellement enregistré "
232 "pour recevoir des notifications de cette file de messages, alors "
233 "l'enregistrement est supprimé\\ ; un autre processus peut s'enregistrer pour "
234 "recevoir les notifications de cette file."
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid ""
240 "Message notification occurs only when a new message arrives and the queue "
241 "was previously empty. If the queue was not empty at the time "
242 "B<mq_notify>() was called, then a notification will occur only after the "
243 "queue is emptied and a new message arrives."
244 msgstr ""
245 "Une notification de message n'est créée que lorsqu'un nouveau message arrive "
246 "et que la file est vide. Si la file n'est pas vide à ce moment, "
247 "B<mq_notify>() est appelée, alors une notification sera créée après que la "
248 "file est vidée et qu'un nouveau message arrive."
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid ""
254 "If another process or thread is waiting to read a message from an empty "
255 "queue using B<mq_receive>(3), then any message notification registration is "
256 "ignored: the message is delivered to the process or thread calling "
257 "B<mq_receive>(3), and the message notification registration remains in "
258 "effect."
259 msgstr ""
260 "Si un autre processus ou thread attend pour lire un message d'une file vide "
261 "avec B<mq_receive>(3), alors tout enregistrement de notification de message "
262 "est ignoré\\ : le message est délivré au processus ou au thread appelant "
263 "avec B<mq_receive>(3) et l'enregistrement de notification de message garde "
264 "son effet."
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 "Notification occurs once: after a notification is delivered, the "
271 "notification registration is removed, and another process can register for "
272 "message notification. If the notified process wishes to receive the next "
273 "notification, it can use B<mq_notify>() to request a further notification. "
274 "This should be done before emptying all unread messages from the queue. "
275 "(Placing the queue in nonblocking mode is useful for emptying the queue of "
276 "messages without blocking once it is empty.)"
277 msgstr ""
278 "Une notification apparaît une seule fois\\ : après qu'une notification est "
279 "délivrée, l'enregistrement de notification est supprimé et d'autre processus "
280 "peuvent s'enregistrer. Si le processus notifié souhaite recevoir la "
281 "prochaine notification, il peut utiliser B<mq_notify>() pour demander une "
282 "autre notification. Cela doit être fait avant de vider tous les messages non "
283 "lus de la file (Placer la file en mode non bloquant est utile pour la vider "
284 "sans la bloquer une seule fois si elle est vide)."
285
286 #. type: SH
287 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
288 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
289 #, no-wrap
290 msgid "RETURN VALUE"
291 msgstr "VALEUR RENVOYÉE"
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid ""
297 "On success B<mq_notify>() returns 0; on error, -1 is returned, with "
298 "I<errno> set to indicate the error."
299 msgstr ""
300 "Si elle réussit, la fonction B<mq_notify>() renvoie B<0>. En cas d'erreur, "
301 "elle renvoie B<-1> et définit I<errno> en conséquence."
302
303 #. type: SH
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "ERRORS"
308 msgstr "ERREURS"
309
310 #. type: TP
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "B<EBADF>"
315 msgstr "B<EBADF>"
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid "The message queue descriptor specified in I<mqdes> is invalid."
321 msgstr ""
322 "Le descripteur de file de messages spécifié dans I<mqdes> n'est pas valable."
323
324 #. type: TP
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "B<EBUSY>"
329 msgstr "B<EBUSY>"
330
331 #. type: Plain text
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 msgid ""
335 "Another process has already registered to receive notification for this "
336 "message queue."
337 msgstr ""
338 "Un autre processus est déjà enregistré pour recevoir les notifications de "
339 "cette file de messages."
340
341 #. type: TP
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 #, no-wrap
345 msgid "B<EINVAL>"
346 msgstr "B<EINVAL>"
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 msgid ""
352 "I<sevp-E<gt>sigev_notify> is not one of the permitted values; or I<sevp-"
353 "E<gt>sigev_notify> is B<SIGEV_SIGNAL> and I<sevp-E<gt>sigev_signo> is not a "
354 "valid signal number."
355 msgstr ""
356 "I<sevp-E<gt>sigev_notify> n'est pas l'une des valeurs permises\\ ; ou I<sevp-"
357 "E<gt>sigev_notify> vaut B<SIGEV_SIGNAL> et I<sevp-E<gt>sigev_signo> n'est "
358 "pas un numéro de signal valable."
359
360 #. type: TP
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 #, no-wrap
364 msgid "B<ENOMEM>"
365 msgstr "B<ENOMEM>"
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid "Insufficient memory."
371 msgstr "Mémoire insuffisante."
372
373 #. Linux does not do this
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid ""
378 "POSIX.1-2008 says that an implementation I<may> generate an B<EINVAL> error "
379 "if I<sevp> is NULL, and the caller is not currently registered to receive "
380 "notifications for the queue I<mqdes>."
381 msgstr ""
382 "POSIX.1-2008 dit qu'une implémentation I<pourrait> générer une erreur "
383 "B<EINVAL> si I<sevp> est NULL et si l'appelant n'a pas souscrit aux "
384 "notifications de la file I<mqdes>."
385
386 #. type: SH
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 #, no-wrap
390 msgid "ATTRIBUTES"
391 msgstr "ATTRIBUTS"
392
393 #. type: Plain text
394 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
395 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
396 msgid ""
397 "For an explanation of the terms used in this section, see B<attributes>(7)."
398 msgstr ""
399 "Pour une explication des termes utilisés dans cette section, consulter "
400 "B<attributes>(7)."
401
402 #. type: tbl table
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid "Interface"
407 msgstr "Interface"
408
409 #. type: tbl table
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid "Attribute"
414 msgstr "Attribut"
415
416 #. type: tbl table
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 #, no-wrap
420 msgid "Value"
421 msgstr "Valeur"
422
423 #. type: tbl table
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid ".na\n"
428 msgstr ".na\n"
429
430 #. type: tbl table
431 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
432 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
433 #, no-wrap
434 msgid ".nh\n"
435 msgstr ".nh\n"
436
437 #. type: tbl table
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid "B<mq_notify>()"
442 msgstr "B<mq_notify>()"
443
444 #. type: tbl table
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 #, no-wrap
448 msgid "Thread safety"
449 msgstr "Sécurité des threads"
450
451 #. type: tbl table
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 #, no-wrap
455 msgid "MT-Safe"
456 msgstr "MT-Safe"
457
458 #. type: SH
459 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
460 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
461 #, no-wrap
462 msgid "VERSIONS"
463 msgstr "VERSIONS"
464
465 #. type: SS
466 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
467 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
468 #, no-wrap
469 msgid "C library/kernel differences"
470 msgstr "Différences entre bibliothèque C et noyau"
471
472 #. type: Plain text
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 msgid ""
476 "In the glibc implementation, the B<mq_notify>() library function is "
477 "implemented on top of the system call of the same name. When I<sevp> is "
478 "NULL, or specifies a notification mechanism other than B<SIGEV_THREAD>, the "
479 "library function directly invokes the system call. For B<SIGEV_THREAD>, "
480 "much of the implementation resides within the library, rather than the "
481 "kernel. (This is necessarily so, since the thread involved in handling the "
482 "notification is one that must be managed by the C library POSIX threads "
483 "implementation.) The implementation involves the use of a raw "
484 "B<netlink>(7) socket and creates a new thread for each notification that is "
485 "delivered to the process."
486 msgstr ""
487 "Dans l'implémentation de la glibc, la fonction de bibliothèque "
488 "B<mq_notify>() est implémentée au-dessus de l'appel système du même nom. "
489 "Quand I<sevp> est NULL, ou spécifie un mécanisme de notification autre que "
490 "B<SIGEV_THREAD>, la fonction de la bibliothèque invoque directement l'appel "
491 "système. Pour B<SIGEV_THREAD>, l'essentiel de l'implémentation réside à "
492 "l'intérieur de la bibliothèque plutôt que dans le noyau. (Il en est "
493 "nécessairement ainsi, dans la mesure où le thread impliqué dans la gestion "
494 "de la notification fait partie de ceux qui doivent être géré par "
495 "l'implémentation de la bibliothèque des threads POSIX de C.) La mise en "
496 "œuvre implique l'utilisation d'un socket B<netlink>(7) brut et crée un "
497 "nouveau thread pour chaque notification délivrée au processus."
498
499 #. type: SH
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "STANDARDS"
504 msgstr "NORMES"
505
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 msgid "POSIX.1-2008."
510 msgstr "POSIX.1-2008."
511
512 #. type: SH
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 #, no-wrap
516 msgid "HISTORY"
517 msgstr "HISTORIQUE"
518
519 #. type: Plain text
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 msgid "POSIX.1-2001."
523 msgstr "POSIX.1-2001."
524
525 #. type: SH
526 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
527 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
528 #, no-wrap
529 msgid "EXAMPLES"
530 msgstr "EXEMPLES"
531
532 #. type: Plain text
533 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
534 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
535 msgid ""
536 "The following program registers a notification request for the message queue "
537 "named in its command-line argument. Notification is performed by creating a "
538 "thread. The thread executes a function which reads one message from the "
539 "queue and then terminates the process."
540 msgstr ""
541 "Le programme suivant enregistre une requête de notification pour une file de "
542 "messages nommée avec l'un des arguments de la ligne de commande. La "
543 "notification est réalisée en créant un thread. Le thread exécute une "
544 "fonction qui lit un message provenant de la file puis le processus se "
545 "termine."
546
547 #. type: SS
548 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
549 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
550 #, no-wrap
551 msgid "Program source"
552 msgstr "Source du programme"
553
554 #. type: Plain text
555 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
556 #: opensuse-tumbleweed
557 #, fuzzy, no-wrap
558 #| msgid ""
559 #| "#include E<lt>mqueue.hE<gt>\n"
560 #| "#include E<lt>pthread.hE<gt>\n"
561 #| "#include E<lt>signal.hE<gt>\n"
562 #| "#include E<lt>stdio.hE<gt>\n"
563 #| "#include E<lt>stdlib.hE<gt>\n"
564 #| "#include E<lt>unistd.hE<gt>\n"
565 #| "\\&\n"
566 #| "#define handle_error(msg) \\[rs]\n"
567 #| " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
568 #| "\\&\n"
569 #| "static void /* Thread start function */\n"
570 #| "tfunc(union sigval sv)\n"
571 #| "{\n"
572 #| " struct mq_attr attr;\n"
573 #| " ssize_t nr;\n"
574 #| " void *buf;\n"
575 #| " mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n"
576 #| "\\&\n"
577 #| " /* Determine max. msg size; allocate buffer to receive msg */\n"
578 #| "\\&\n"
579 #| " if (mq_getattr(mqdes, &attr) == -1)\n"
580 #| " handle_error(\"mq_getattr\");\n"
581 #| " buf = malloc(attr.mq_msgsize);\n"
582 #| " if (buf == NULL)\n"
583 #| " handle_error(\"malloc\");\n"
584 #| "\\&\n"
585 #| " nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n"
586 #| " if (nr == -1)\n"
587 #| " handle_error(\"mq_receive\");\n"
588 #| "\\&\n"
589 #| " printf(\"Read %zd bytes from MQ\\[rs]n\", nr);\n"
590 #| " free(buf);\n"
591 #| " exit(EXIT_SUCCESS); /* Terminate the process */\n"
592 #| "}\n"
593 #| "\\&\n"
594 #| "int\n"
595 #| "main(int argc, char *argv[])\n"
596 #| "{\n"
597 #| " mqd_t mqdes;\n"
598 #| " struct sigevent sev;\n"
599 #| "\\&\n"
600 #| " if (argc != 2) {\n"
601 #| " fprintf(stderr, \"Usage: %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n"
602 #| " exit(EXIT_FAILURE);\n"
603 #| " }\n"
604 #| "\\&\n"
605 #| " mqdes = mq_open(argv[1], O_RDONLY);\n"
606 #| " if (mqdes == (mqd_t) -1)\n"
607 #| " handle_error(\"mq_open\");\n"
608 #| "\\&\n"
609 #| " sev.sigev_notify = SIGEV_THREAD;\n"
610 #| " sev.sigev_notify_function = tfunc;\n"
611 #| " sev.sigev_notify_attributes = NULL;\n"
612 #| " sev.sigev_value.sival_ptr = &mqdes; /* Arg. to thread func. */\n"
613 #| " if (mq_notify(mqdes, &sev) == -1)\n"
614 #| " handle_error(\"mq_notify\");\n"
615 #| "\\&\n"
616 #| " pause(); /* Process will be terminated by thread function */\n"
617 #| "}\n"
618 msgid ""
619 "#include E<lt>err.hE<gt>\n"
620 "#include E<lt>mqueue.hE<gt>\n"
621 "#include E<lt>pthread.hE<gt>\n"
622 "#include E<lt>signal.hE<gt>\n"
623 "#include E<lt>stdio.hE<gt>\n"
624 "#include E<lt>stdlib.hE<gt>\n"
625 "#include E<lt>unistd.hE<gt>\n"
626 "\\&\n"
627 "static void /* Thread start function */\n"
628 "tfunc(union sigval sv)\n"
629 "{\n"
630 " struct mq_attr attr;\n"
631 " ssize_t nr;\n"
632 " void *buf;\n"
633 " mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n"
634 "\\&\n"
635 " /* Determine max.\\& msg size; allocate buffer to receive msg */\n"
636 "\\&\n"
637 " if (mq_getattr(mqdes, &attr) == -1)\n"
638 " err(EXIT_FAILURE, \"mq_getattr\");\n"
639 " buf = malloc(attr.mq_msgsize);\n"
640 " if (buf == NULL)\n"
641 " err(EXIT_FAILURE, \"malloc\");\n"
642 "\\&\n"
643 " nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n"
644 " if (nr == -1)\n"
645 " err(EXIT_FAILURE, \"mq_receive\");\n"
646 "\\&\n"
647 " printf(\"Read %zd bytes from MQ\\[rs]n\", nr);\n"
648 " free(buf);\n"
649 " exit(EXIT_SUCCESS); /* Terminate the process */\n"
650 "}\n"
651 "\\&\n"
652 "int\n"
653 "main(int argc, char *argv[])\n"
654 "{\n"
655 " mqd_t mqdes;\n"
656 " struct sigevent sev;\n"
657 "\\&\n"
658 " if (argc != 2) {\n"
659 " fprintf(stderr, \"Usage: %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n"
660 " exit(EXIT_FAILURE);\n"
661 " }\n"
662 "\\&\n"
663 " mqdes = mq_open(argv[1], O_RDONLY);\n"
664 " if (mqdes == (mqd_t) -1)\n"
665 " err(EXIT_FAILURE, \"mq_open\");\n"
666 "\\&\n"
667 " sev.sigev_notify = SIGEV_THREAD;\n"
668 " sev.sigev_notify_function = tfunc;\n"
669 " sev.sigev_notify_attributes = NULL;\n"
670 " sev.sigev_value.sival_ptr = &mqdes; /* Arg.\\& to thread func. */\n"
671 " if (mq_notify(mqdes, &sev) == -1)\n"
672 " err(EXIT_FAILURE, \"mq_notify\");\n"
673 "\\&\n"
674 " pause(); /* Process will be terminated by thread function */\n"
675 "}\n"
676 msgstr ""
677 "#include E<lt>mqueue.hE<gt>\n"
678 "#include E<lt>pthread.hE<gt>\n"
679 "#include E<lt>signal.hE<gt>\n"
680 "#include E<lt>stdio.hE<gt>\n"
681 "#include E<lt>stdlib.hE<gt>\n"
682 "#include E<lt>unistd.hE<gt>\n"
683 "\\&\n"
684 "#define handle_error(msg) \\[rs]\n"
685 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
686 "\\&\n"
687 "static void /* Thread start function */\n"
688 "tfunc(union sigval sv)\n"
689 "{\n"
690 " struct mq_attr attr;\n"
691 " ssize_t nr;\n"
692 " void *buf;\n"
693 " mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n"
694 "\\&\n"
695 " /* Déterminer la taille max. du msg ; allouer un tampon\n"
696 " pour recevoir le msg */\n"
697 "\\&\n"
698 " if (mq_getattr(mqdes, &attr) == -1)\n"
699 " handle_error(\"mq_getattr\");\n"
700 " buf = malloc(attr.mq_msgsize);\n"
701 " if (buf == NULL)\n"
702 " handle_error(\"malloc\");\n"
703 "\\&\n"
704 " nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n"
705 " if (nr == -1)\n"
706 " handle_error(\"mq_receive\");\n"
707 "\\&\n"
708 " printf(\"Read %zd bytes from MQ\\[rs]n\", nr);\n"
709 " free(buf);\n"
710 " exit(EXIT_SUCCESS); /* Terminer le processus */\n"
711 "}\n"
712 "\\&\n"
713 "int\n"
714 "main(int argc, char *argv[])\n"
715 "{\n"
716 " mqd_t mqdes;\n"
717 " struct sigevent sev;\n"
718 "\\&\n"
719 " if (argc != 2) {\n"
720 " fprintf(stderr, \"Utilisation : %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n"
721 " exit(EXIT_FAILURE);\n"
722 " }\n"
723 "\\&\n"
724 " mqdes = mq_open(argv[1], O_RDONLY);\n"
725 " if (mqdes == (mqd_t) -1)\n"
726 " handle_error(\"mq_open\");\n"
727 "\\&\n"
728 " sev.sigev_notify = SIGEV_THREAD;\n"
729 " sev.sigev_notify_function = tfunc;\n"
730 " sev.sigev_notify_attributes = NULL;\n"
731 " sev.sigev_value.sival_ptr = &mqdes; /* Arg. to thread func. */\n"
732 " if (mq_notify(mqdes, &sev) == -1)\n"
733 " handle_error(\"mq_notify\");\n"
734 "\\&\n"
735 " pause(); /* Le processus sera terminé par la fonction du proc. */\n"
736 "}\n"
737
738 #. SRC END
739 #. type: SH
740 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
741 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
742 #, no-wrap
743 msgid "SEE ALSO"
744 msgstr "VOIR AUSSI"
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 "B<mq_close>(3), B<mq_getattr>(3), B<mq_open>(3), B<mq_receive>(3), "
751 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7), B<sigevent>(3type)"
752 msgstr ""
753 "B<mq_close>(3), B<mq_getattr>(3), B<mq_open>(3), B<mq_receive>(3), "
754 "B<mq_send>(3), B<mq_unlink>(3), B<mq_overview>(7), B<sigevent>(3type)"
755
756 #. type: TH
757 #: debian-trixie
758 #, no-wrap
759 msgid "2024-06-15"
760 msgstr "15 juin 2024"
761
762 #. type: TH
763 #: debian-trixie
764 #, no-wrap
765 msgid "Linux man-pages 6.9.1"
766 msgstr "Pages du manuel de Linux 6.9.1"
767
768 #. type: Plain text
769 #: debian-trixie
770 msgid "Real-time library (I<librt>, I<-lrt>)"
771 msgstr "Bibliothèque de temps réel (I<librt>, I<-lrt>)"
772
773 #. type: Plain text
774 #: debian-trixie fedora-44 fedora-rawhide
775 #, no-wrap
776 msgid ""
777 "#include E<lt>mqueue.hE<gt>\n"
778 "#include E<lt>pthread.hE<gt>\n"
779 "#include E<lt>signal.hE<gt>\n"
780 "#include E<lt>stdio.hE<gt>\n"
781 "#include E<lt>stdlib.hE<gt>\n"
782 "#include E<lt>unistd.hE<gt>\n"
783 "\\&\n"
784 "#define handle_error(msg) \\[rs]\n"
785 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
786 "\\&\n"
787 "static void /* Thread start function */\n"
788 "tfunc(union sigval sv)\n"
789 "{\n"
790 " struct mq_attr attr;\n"
791 " ssize_t nr;\n"
792 " void *buf;\n"
793 " mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n"
794 "\\&\n"
795 " /* Determine max. msg size; allocate buffer to receive msg */\n"
796 "\\&\n"
797 " if (mq_getattr(mqdes, &attr) == -1)\n"
798 " handle_error(\"mq_getattr\");\n"
799 " buf = malloc(attr.mq_msgsize);\n"
800 " if (buf == NULL)\n"
801 " handle_error(\"malloc\");\n"
802 "\\&\n"
803 " nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n"
804 " if (nr == -1)\n"
805 " handle_error(\"mq_receive\");\n"
806 "\\&\n"
807 " printf(\"Read %zd bytes from MQ\\[rs]n\", nr);\n"
808 " free(buf);\n"
809 " exit(EXIT_SUCCESS); /* Terminate the process */\n"
810 "}\n"
811 "\\&\n"
812 "int\n"
813 "main(int argc, char *argv[])\n"
814 "{\n"
815 " mqd_t mqdes;\n"
816 " struct sigevent sev;\n"
817 "\\&\n"
818 " if (argc != 2) {\n"
819 " fprintf(stderr, \"Usage: %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n"
820 " exit(EXIT_FAILURE);\n"
821 " }\n"
822 "\\&\n"
823 " mqdes = mq_open(argv[1], O_RDONLY);\n"
824 " if (mqdes == (mqd_t) -1)\n"
825 " handle_error(\"mq_open\");\n"
826 "\\&\n"
827 " sev.sigev_notify = SIGEV_THREAD;\n"
828 " sev.sigev_notify_function = tfunc;\n"
829 " sev.sigev_notify_attributes = NULL;\n"
830 " sev.sigev_value.sival_ptr = &mqdes; /* Arg. to thread func. */\n"
831 " if (mq_notify(mqdes, &sev) == -1)\n"
832 " handle_error(\"mq_notify\");\n"
833 "\\&\n"
834 " pause(); /* Process will be terminated by thread function */\n"
835 "}\n"
836 msgstr ""
837 "#include E<lt>mqueue.hE<gt>\n"
838 "#include E<lt>pthread.hE<gt>\n"
839 "#include E<lt>signal.hE<gt>\n"
840 "#include E<lt>stdio.hE<gt>\n"
841 "#include E<lt>stdlib.hE<gt>\n"
842 "#include E<lt>unistd.hE<gt>\n"
843 "\\&\n"
844 "#define handle_error(msg) \\[rs]\n"
845 " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n"
846 "\\&\n"
847 "static void /* Thread start function */\n"
848 "tfunc(union sigval sv)\n"
849 "{\n"
850 " struct mq_attr attr;\n"
851 " ssize_t nr;\n"
852 " void *buf;\n"
853 " mqd_t mqdes = *((mqd_t *) sv.sival_ptr);\n"
854 "\\&\n"
855 " /* Déterminer la taille max. du msg ; allouer un tampon\n"
856 " pour recevoir le msg */\n"
857 "\\&\n"
858 " if (mq_getattr(mqdes, &attr) == -1)\n"
859 " handle_error(\"mq_getattr\");\n"
860 " buf = malloc(attr.mq_msgsize);\n"
861 " if (buf == NULL)\n"
862 " handle_error(\"malloc\");\n"
863 "\\&\n"
864 " nr = mq_receive(mqdes, buf, attr.mq_msgsize, NULL);\n"
865 " if (nr == -1)\n"
866 " handle_error(\"mq_receive\");\n"
867 "\\&\n"
868 " printf(\"Read %zd bytes from MQ\\[rs]n\", nr);\n"
869 " free(buf);\n"
870 " exit(EXIT_SUCCESS); /* Terminer le processus */\n"
871 "}\n"
872 "\\&\n"
873 "int\n"
874 "main(int argc, char *argv[])\n"
875 "{\n"
876 " mqd_t mqdes;\n"
877 " struct sigevent sev;\n"
878 "\\&\n"
879 " if (argc != 2) {\n"
880 " fprintf(stderr, \"Utilisation : %s E<lt>mq-nameE<gt>\\[rs]n\", argv[0]);\n"
881 " exit(EXIT_FAILURE);\n"
882 " }\n"
883 "\\&\n"
884 " mqdes = mq_open(argv[1], O_RDONLY);\n"
885 " if (mqdes == (mqd_t) -1)\n"
886 " handle_error(\"mq_open\");\n"
887 "\\&\n"
888 " sev.sigev_notify = SIGEV_THREAD;\n"
889 " sev.sigev_notify_function = tfunc;\n"
890 " sev.sigev_notify_attributes = NULL;\n"
891 " sev.sigev_value.sival_ptr = &mqdes; /* Arg. to thread func. */\n"
892 " if (mq_notify(mqdes, &sev) == -1)\n"
893 " handle_error(\"mq_notify\");\n"
894 "\\&\n"
895 " pause(); /* Le processus sera terminé par la fonction du proc. */\n"
896 "}\n"
897
898 #. type: TH
899 #: fedora-44 fedora-rawhide
900 #, no-wrap
901 msgid "2024-07-23"
902 msgstr "23 juillet 2024"
903
904 #. type: TH
905 #: fedora-44 fedora-rawhide
906 #, no-wrap
907 msgid "Linux man-pages 6.13"
908 msgstr "Pages du manuel de Linux 6.13"
909
910 #. type: TH
911 #: mageia-cauldron
912 #, no-wrap
913 msgid "Linux man-pages 6.17"
914 msgstr "Pages du manuel de Linux 6.17"
915
916 #. type: TH
917 #: opensuse-leap-16-1 opensuse-tumbleweed
918 #, no-wrap
919 msgid "Linux man-pages (unreleased)"
920 msgstr "Pages du manuel de Linux (non publiées)"