Debian Codegraph @

po/fr/man3/cmsg.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, 2013-2014.
16 # Denis Barbier <[email protected]>, 2006, 2010.
17 # David Prévot <[email protected]>, 2010-2014.
18 # Lucien Gentis <[email protected]>, 2022.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n 4.21.0\n"
22 "POT-Creation-Date: 2026-06-05 06:21+0200\n"
23 "PO-Revision-Date: 2024-03-04 17:15+0100\n"
24 "Last-Translator: Lucien Gentis <[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: Poedit 2.4.2\n"
32 "X-Poedit-Bookmarks: 55,-1,-1,-1,-1,-1,-1,-1,-1,-1\n"
33
34 #. type: TH
35 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
36 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
37 #, no-wrap
38 msgid "CMSG"
39 msgstr "CMSG"
40
41 #. type: TH
42 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
43 #: opensuse-tumbleweed
44 #, no-wrap
45 msgid "2026-02-08"
46 msgstr "8 février 2026"
47
48 #. type: TH
49 #: archlinux debian-unstable
50 #, no-wrap
51 msgid "Linux man-pages 6.18"
52 msgstr "Pages du manuel de Linux 6.18"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "NAME"
59 msgstr "NOM"
60
61 #. type: Plain text
62 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
63 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
64 msgid ""
65 "CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR - access ancillary data"
66 msgstr ""
67 "CMSG_ALIGN, CMSG_SPACE, CMSG_NXTHDR, CMSG_FIRSTHDR - Accéder aux "
68 "informations de service"
69
70 #. type: SH
71 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
72 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
73 #, no-wrap
74 msgid "LIBRARY"
75 msgstr "BIBLIOTHÈQUE"
76
77 #. type: Plain text
78 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
79 #: opensuse-leap-16-1 opensuse-tumbleweed
80 msgid "Standard C library (I<libc>,\\ I<-lc>)"
81 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
82
83 #. type: SH
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid "SYNOPSIS"
88 msgstr "SYNOPSIS"
89
90 #. type: Plain text
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "B<#include E<lt>sys/socket.hE<gt>>\n"
95 msgstr "B<#include E<lt>sys/socket.hE<gt>>\n"
96
97 #. type: Plain text
98 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
99 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid ""
102 "B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>\n"
103 "B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B<,>\n"
104 "B< struct cmsghdr *>cmsgB<);>\n"
105 "B<size_t CMSG_ALIGN(size_t >I<length>B<);>\n"
106 "B<size_t CMSG_SPACE(size_t >I<length>B<);>\n"
107 "B<size_t CMSG_LEN(size_t >I<length>B<);>\n"
108 "B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>\n"
109 msgstr ""
110 "B<struct cmsghdr *CMSG_FIRSTHDR(struct msghdr *>I<msgh>B<);>\n"
111 "B<struct cmsghdr *CMSG_NXTHDR(struct msghdr *>I<msgh>B<,>\n"
112 "B< struct cmsghdr *>cmsgB<);>\n"
113 "B<size_t CMSG_ALIGN(size_t >I<longueur>B<);>\n"
114 "B<size_t CMSG_SPACE(size_t >I<longueur>B<);>\n"
115 "B<size_t CMSG_LEN(size_t >I<longueur>B<);>\n"
116 "B<unsigned char *CMSG_DATA(struct cmsghdr *>I<cmsg>B<);>\n"
117
118 #. type: SH
119 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
120 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
121 #, no-wrap
122 msgid "DESCRIPTION"
123 msgstr "DESCRIPTION"
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "These macros are used to create and access control messages (also called "
130 "ancillary data) that are not a part of the socket payload. This control "
131 "information may include the interface the packet was received on, various "
132 "rarely used header fields, an extended error description, a set of file "
133 "descriptors, or UNIX credentials. For instance, control messages can be "
134 "used to send additional header fields such as IP options. Ancillary data is "
135 "sent by calling B<sendmsg>(2) and received by calling B<recvmsg>(2). See "
136 "their manual pages for more information."
137 msgstr ""
138 "Ces macros permettent de créer et accéder aux messages de contrôle (aussi "
139 "appelé informations de service) qui ne font pas partie de la charge utile "
140 "des sockets. Ces informations de contrôle peuvent inclure l'interface sur "
141 "laquelle le paquet a été reçu, des champs d'en-tête rarement employés, des "
142 "descriptions d'erreur approfondies, un ensemble de descripteurs de fichiers "
143 "ou des identificateurs UNIX. Par exemple, les messages de contrôle peuvent "
144 "être utilisés pour envoyer des champs d'en-tête supplémentaires tels que des "
145 "options IP. Les données de service sont émises en appelant B<sendmsg>(2) et "
146 "reçues avec B<recvmsg>(2). Reportez-vous à leurs pages de manuel respectives "
147 "pour plus d'informations."
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 msgid ""
153 "Ancillary data is a sequence of I<cmsghdr> structures with appended data. "
154 "See the specific protocol man pages for the available control message "
155 "types. The maximum ancillary buffer size allowed per socket can be set "
156 "using I</proc/sys/net/core/optmem_max>; see B<socket>(7)."
157 msgstr ""
158 "Une information de service est une séquence de structures I<cmsghdr> avec "
159 "des données ajoutées. Consultez les pages de manuel relatives aux protocoles "
160 "pour les types de message de commande disponibles. La taille maximale d'un "
161 "tampon de service par socket peut être définie à l'aide de I</proc/sys/net/"
162 "core/optmem_max>. Consultez B<socket>(7)."
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid "The I<cmsghdr> structure is defined as follows:"
168 msgstr "La structure I<cmsghdr> est définie comme suit :"
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, no-wrap
174 msgid ""
175 "struct cmsghdr {\n"
176 " size_t cmsg_len; /* Data byte count, including header\n"
177 " (type is socklen_t in POSIX) */\n"
178 " int cmsg_level; /* Originating protocol */\n"
179 " int cmsg_type; /* Protocol-specific type */\n"
180 "/* followed by\n"
181 " unsigned char cmsg_data[]; */\n"
182 "};\n"
183 msgstr ""
184 "struct cmsghdr {\n"
185 " size_t cmsg_len; /* Nombre d'octets de données, incluant l'en-tête \n"
186 " (le type est socklen_t dans POSIX) */\n"
187 " int cmsg_level; /* Protocole d'origine */\n"
188 " int cmsg_type; /* Type spécifique au protocole */\n"
189 "/* suivi par\n"
190 " unsigned char cmsg_data[]; */\n"
191 "};\n"
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid ""
197 "The sequence of I<cmsghdr> structures should never be accessed directly. "
198 "Instead, use only the following macros:"
199 msgstr ""
200 "Plutôt que d'accéder directement à la séquence de structures I<cmsghdr>, il "
201 "est impératif d'utiliser les macros suivantes :"
202
203 #. type: TP
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 #, no-wrap
207 msgid "B<CMSG_FIRSTHDR>()"
208 msgstr "B<CMSG_FIRSTHDR>()"
209
210 #. type: Plain text
211 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
212 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "returns a pointer to the first I<cmsghdr> in the ancillary data buffer "
215 "associated with the passed I<msghdr>. It returns NULL if there isn't enough "
216 "space for a I<cmsghdr> in the buffer."
217 msgstr ""
218 "renvoie un pointeur sur la première structure I<cmsghdr> du tampon de "
219 "données de service associé à la structure I<msghdr> passée en paramètre. "
220 "Elle renvoie NULL s'il n'y a pas assez de place pour une structure "
221 "I<cmsghdr> dans le tampon."
222
223 #. type: TQ
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 #, no-wrap
227 msgid "B<CMSG_NXTHDR>()"
228 msgstr "B<CMSG_NXTHDR>()"
229
230 #. type: Plain text
231 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
232 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
233 msgid ""
234 "returns the next valid I<cmsghdr> after the passed I<cmsghdr>. It returns "
235 "NULL when there isn't enough space left in the buffer."
236 msgstr ""
237 "renvoie la prochaine structure I<cmsghdr> valable après la structure "
238 "I<cmsghdr> passée en paramètre. Elle renvoie NULL s'il n'y a plus assez de "
239 "place dans le tampon."
240
241 #. type: Plain text
242 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
243 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
244 msgid ""
245 "When initializing a buffer that will contain a series of I<cmsghdr> "
246 "structures (e.g., to be sent with B<sendmsg>(2)), that buffer should first "
247 "be zero-initialized to ensure the correct operation of B<CMSG_NXTHDR>()."
248 msgstr ""
249 "Lorsqu'on initialise un tampon qui contiendra une série de structures "
250 "I<cmsghdr> (à envoyer par exemple en appelant B<sendmsg>(2)), ce tampon doit "
251 "être initialisé avec des zéros pour être sûr que B<CMSG_NXTHDR>() "
252 "fonctionnera correctement."
253
254 #. type: TP
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 #, no-wrap
258 msgid "B<CMSG_ALIGN>(),"
259 msgstr "B<CMSG_ALIGN>(),"
260
261 #. type: Plain text
262 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
263 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
264 msgid ""
265 "given a length, returns it including the required alignment. This is a "
266 "constant expression."
267 msgstr ""
268 "avec comme argument une longueur, la renvoie en incluant l'alignement "
269 "nécessaire. C'est une expression constante."
270
271 #. type: TP
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "B<CMSG_SPACE>()"
276 msgstr "B<CMSG_SPACE>()"
277
278 #. type: Plain text
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 msgid ""
282 "returns the number of bytes an ancillary element with payload of the passed "
283 "data length occupies. This is a constant expression."
284 msgstr ""
285 "renvoie le nombre d'octets qu'occupe un élément de service avec une charge "
286 "utile de la longueur passée en paramètre. C'est une expression constante."
287
288 #. type: TQ
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid "B<CMSG_DATA>()"
293 msgstr "B<CMSG_DATA>()"
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid ""
299 "returns a pointer to the data portion of a I<cmsghdr>. The pointer returned "
300 "cannot be assumed to be suitably aligned for accessing arbitrary payload "
301 "data types. Applications should not cast it to a pointer type matching the "
302 "payload, but should instead use B<memcpy>(3) to copy data to or from a "
303 "suitably declared object."
304 msgstr ""
305 " renvoie un pointeur vers la partie données d'une structure I<cmsghdr>. Il "
306 "n'est pas certain que le pointeur renvoyé soit correctement aligné pour "
307 "accéder à des données de charge utile de type quelconque. Les applications "
308 "ne doivent pas forcer son type à un type de pointeur correspondant à celui "
309 "de la charge utile, mais doivent plutôt utiliser B<memcpy>(3) pour copier "
310 "les données vers ou depuis un objet déclaré de manière appropriée."
311
312 #. type: TQ
313 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
314 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
315 #, no-wrap
316 msgid "B<CMSG_LEN>()"
317 msgstr "B<CMSG_LEN>()"
318
319 #. type: Plain text
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 msgid ""
323 "returns the value to store in the I<cmsg_len> member of the I<cmsghdr> "
324 "structure, taking into account any necessary alignment. It takes the data "
325 "length as an argument. This is a constant expression."
326 msgstr ""
327 "renvoie la valeur à stocker dans le membre I<cmsg_len> de la structure "
328 "I<cmsghdr>, en tenant compte des alignements nécessaires. Elle prend en "
329 "paramètre la longueur des données. C'est une expression constante."
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 "To create ancillary data, first initialize the I<msg_controllen> member of "
336 "the I<msghdr> with the length of the control message buffer. Use "
337 "B<CMSG_FIRSTHDR>() on the I<msghdr> to get the first control message and "
338 "B<CMSG_NXTHDR>() to get all subsequent ones. In each control message, "
339 "initialize I<cmsg_len> (with B<CMSG_LEN>()), the other I<cmsghdr> header "
340 "fields, and the data portion using B<CMSG_DATA>(). Finally, the "
341 "I<msg_controllen> field of the I<msghdr> should be set to the sum of the "
342 "B<CMSG_SPACE>() of the length of all control messages in the buffer. For "
343 "more information on the I<msghdr>, see B<recvmsg>(2)."
344 msgstr ""
345 "Pour créer des données de service, il faut tout d'abord initialiser le "
346 "membre I<msg_controllen> de la structure I<msghdr> avec la longueur du "
347 "tampon du message de contrôle. Utilisez B<CMSG_FIRSTHDR>() sur la structure "
348 "I<msghdr> pour obtenir le premier message de contrôle, puis B<CMSG_NXTHDR>() "
349 "pour obtenir les suivants. Dans chaque message de contrôle, initialisez "
350 "I<cmsg_len> (avec B<CMSG_LEN>()), les autres champs d'en-tête de I<cmsghdr> "
351 "et la partie des données avec B<CMSG_DATA>(). Enfin, il faut définir le "
352 "membre I<msg_controllen> de la structure I<msghdr> avec la somme des valeurs "
353 "de retour de B<CMSG_SPACE>() pour la longueur de tous les messages de "
354 "contrôle contenus dans le tampon..Pour plus d'informations sur la structure "
355 "I<msghdr>, consultez B<recvmsg>(2)."
356
357 #. type: SH
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "VERSIONS"
362 msgstr "VERSIONS"
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid ""
368 "For portability, ancillary data should be accessed using only the macros "
369 "described here."
370 msgstr ""
371 "Pour des questions de portabilité, les données de service ne doivent être "
372 "manipulées qu'avec les macros décrites ici."
373
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 "In Linux, B<CMSG_LEN>(), B<CMSG_DATA>(), and B<CMSG_ALIGN>() are constant "
379 "expressions (assuming their argument is constant), meaning that these values "
380 "can be used to declare the size of global variables. This may not be "
381 "portable, however."
382 msgstr ""
383 "Sous Linux, B<CMSG_LEN>(), B<CMSG_DATA>() et B<CMSG_ALIGN>() sont des "
384 "expressions constantes (si leur argument est une constante) ; elles peuvent "
385 "donc être utilisées pour déclarer la taille de variables globales. Cela peut "
386 "néanmoins ne pas être portable."
387
388 #. type: SH
389 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
390 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
391 #, no-wrap
392 msgid "STANDARDS"
393 msgstr "NORMES"
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid "POSIX.1-2008."
399 msgstr "POSIX.1-2008."
400
401 #. type: TQ
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "B<CMSG_ALIGN>()"
406 msgstr "B<CMSG_ALIGN>()"
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid "Linux."
412 msgstr "Linux."
413
414 #. type: SH
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "HISTORY"
419 msgstr "HISTORIQUE"
420
421 #. type: Plain text
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 msgid ""
425 "This ancillary data model conforms to the POSIX.1g draft, 4.4BSD-Lite, the "
426 "IPv6 advanced API described in RFC\\ 2292 and SUSv2."
427 msgstr ""
428 "Le modèle des données de service est conforme à POSIX.1g draft, 4.4BSD-Lite, "
429 "l'API IPv6 avancée décrite dans la RFC\\ 2292 et SUSv2."
430
431 #. https://www.austingroupbugs.net/view.php?id=978#c3242
432 #. type: Plain text
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 msgid ""
436 "B<CMSG_SPACE>() and B<CMSG_LEN>() will be included in the next POSIX "
437 "release (Issue 8)."
438 msgstr ""
439 "B<CMSG_SPACE>() et B<CMSG_LEN>() seront incluses dans la prochaine version "
440 "de POSIX (édition 8)."
441
442 #. type: SH
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 #, no-wrap
446 msgid "EXAMPLES"
447 msgstr "EXEMPLES"
448
449 #. type: Plain text
450 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
451 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
452 msgid ""
453 "This code looks for the B<IP_TTL> option in a received ancillary buffer:"
454 msgstr ""
455 "Ce code recherche l'option B<IP_TTL> dans un tampon de service reçu\\ :"
456
457 #. type: Plain text
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid ""
462 "struct msghdr msgh;\n"
463 "struct cmsghdr *cmsg;\n"
464 "int received_ttl;\n"
465 "\\&\n"
466 "/* Receive auxiliary data in msgh */\n"
467 "\\&\n"
468 "for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n"
469 " cmsg = CMSG_NXTHDR(&msgh, cmsg)) {\n"
470 " if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n"
471 " && cmsg-E<gt>cmsg_type == IP_TTL) {\n"
472 " memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl));\n"
473 " break;\n"
474 " }\n"
475 "}\n"
476 "\\&\n"
477 "if (cmsg == NULL) {\n"
478 " /* Error: IP_TTL not enabled or small buffer or I/O error */\n"
479 "}\n"
480 msgstr ""
481 "struct msghdr msgh;\n"
482 "struct cmsghdr *cmsg;\n"
483 "int received_ttl;\n"
484 "\\&\n"
485 "/* Recevoir des données de service dans msgh */\n"
486 "\\&\n"
487 "for (cmsg = CMSG_FIRSTHDR(&msgh); cmsg != NULL;\n"
488 " cmsg = CMSG_NXTHDR(&msgh, cmsg)) {\n"
489 " if (cmsg-E<gt>cmsg_level == IPPROTO_IP\n"
490 " && cmsg-E<gt>cmsg_type == IP_TTL) {\n"
491 " memcpy(&receive_ttl, CMSG_DATA(cmsg), sizeof(received_ttl));\n"
492 " break;\n"
493 " }\n"
494 "}\n"
495
496 #. type: Plain text
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 msgid ""
500 "The code below passes an array of file descriptors over a UNIX domain socket "
501 "using B<SCM_RIGHTS>:"
502 msgstr ""
503 "Le code ci-dessous passe un tableau de descripteurs de fichier au travers "
504 "d'un socket de domaine UNIX à l'aide de B<SCM_RIGHTS>\\ :"
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 #, no-wrap
510 msgid ""
511 "struct msghdr msg = { 0 };\n"
512 "struct cmsghdr *cmsg;\n"
513 "int myfds[NUM_FD]; /* Contains the file descriptors to pass */\n"
514 "char iobuf[1];\n"
515 "struct iovec io = {\n"
516 " .iov_base = iobuf,\n"
517 " .iov_len = sizeof(iobuf)\n"
518 "};\n"
519 "union { /* Ancillary data buffer, wrapped in a union\n"
520 " in order to ensure it is suitably aligned */\n"
521 " char buf[CMSG_SPACE(sizeof(myfds))];\n"
522 " struct cmsghdr align;\n"
523 "} u;\n"
524 "\\&\n"
525 "msg.msg_iov = &io;\n"
526 "msg.msg_iovlen = 1;\n"
527 "msg.msg_control = u.buf;\n"
528 "msg.msg_controllen = sizeof(u.buf);\n"
529 "cmsg = CMSG_FIRSTHDR(&msg);\n"
530 "cmsg-E<gt>cmsg_level = SOL_SOCKET;\n"
531 "cmsg-E<gt>cmsg_type = SCM_RIGHTS;\n"
532 "cmsg-E<gt>cmsg_len = CMSG_LEN(sizeof(myfds));\n"
533 "memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds));\n"
534 msgstr ""
535 "struct msghdr msg = { 0 };\n"
536 "struct cmsghdr *cmsg;\n"
537 "int myfds[NUM_FD]; /* Contient les descripteurs de fichier à passer */\n"
538 "char iobuf[1];\n"
539 "struct iovec io = {\n"
540 " .iov_base = iobuf,\n"
541 " .iov_len = sizeof(iobuf)\n"
542 "};\n"
543 "union { /* Tampon des données de service empaqueté dans une union\n"
544 " pour être sûr qu'il soit correctement aligné */\n"
545 " char buf[CMSG_SPACE(sizeof(myfds))];\n"
546 " struct cmsghdr align;\n"
547 "} u;\n"
548 "\\&\n"
549 "msg.msg_iov = &io;\n"
550 "msg.msg_iovlen = 1;\n"
551 "msg.msg_control = u.buf;\n"
552 "msg.msg_controllen = sizeof(u.buf);\n"
553 "cmsg = CMSG_FIRSTHDR(&msg);\n"
554 "cmsg-E<gt>cmsg_level = SOL_SOCKET;\n"
555 "cmsg-E<gt>cmsg_type = SCM_RIGHTS;\n"
556 "cmsg-E<gt>cmsg_len = CMSG_LEN(sizeof(myfds));\n"
557 "memcpy(CMSG_DATA(cmsg), myfds, sizeof(myfds));\n"
558
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 msgid ""
563 "For a complete code example that shows passing of file descriptors over a "
564 "UNIX domain socket, see B<seccomp_unotify>(2)."
565 msgstr ""
566 "Pour un exemple de code complet qui montre la transmission de descripteurs "
567 "de fichier à travers un socket de domaine UNIX, voir B<seccomp_unotify>(2)."
568
569 #. type: SH
570 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
571 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
572 #, no-wrap
573 msgid "SEE ALSO"
574 msgstr "VOIR AUSSI"
575
576 #. type: Plain text
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 msgid "B<recvmsg>(2), B<sendmsg>(2)"
580 msgstr "B<recvmsg>(2), B<sendmsg>(2)"
581
582 #. type: Plain text
583 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
584 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
585 msgid "RFC\\ 2292"
586 msgstr "RFC\\ 2292"
587
588 #. type: TH
589 #: debian-trixie
590 #, no-wrap
591 msgid "2024-05-02"
592 msgstr "2 mai 2024"
593
594 #. type: TH
595 #: debian-trixie
596 #, no-wrap
597 msgid "Linux man-pages 6.9.1"
598 msgstr "Pages du manuel de Linux 6.9.1"
599
600 #. type: Plain text
601 #: debian-trixie
602 msgid "Standard C library (I<libc>, I<-lc>)"
603 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
604
605 #. type: TH
606 #: fedora-44 fedora-rawhide
607 #, no-wrap
608 msgid "2024-07-23"
609 msgstr "23 juillet 2024"
610
611 #. type: TH
612 #: fedora-44 fedora-rawhide
613 #, no-wrap
614 msgid "Linux man-pages 6.13"
615 msgstr "Pages du manuel de Linux 6.13"
616
617 #. type: TH
618 #: mageia-cauldron
619 #, no-wrap
620 msgid "Linux man-pages 6.17"
621 msgstr "Pages du manuel de Linux 6.17"
622
623 #. type: TH
624 #: opensuse-leap-16-1 opensuse-tumbleweed
625 #, no-wrap
626 msgid "Linux man-pages (unreleased)"
627 msgstr "Pages du manuel de Linux (non publiées)"