Debian Codegraph @

po/fr/man3/inet_pton.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 # Jean-Pierre Giraud <[email protected]>, 2024-2025.
19 msgid ""
20 msgstr ""
21 "Project-Id-Version: manpages-l10n 4.21.0\n"
22 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
23 "PO-Revision-Date: 2025-05-30 12:28+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 "inet_pton"
38 msgstr "inet_pton"
39
40 #. type: TH
41 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "2026-02-22"
44 msgstr "22 février 2026"
45
46 #. type: TH
47 #: archlinux debian-unstable
48 #, no-wrap
49 msgid "Linux man-pages 6.18"
50 msgstr "Pages du manuel de Linux 6.18"
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 "NAME"
57 msgstr "NOM"
58
59 #. type: Plain text
60 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
61 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "inet_pton - convert IPv4 and IPv6 addresses from text to binary form"
63 msgstr ""
64 "inet_pton - Convertir des adresses IPv4 et IPv6 sous forme texte en forme "
65 "binaire"
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 "Standard C library (I<libc>,\\ I<-lc>)"
78 msgstr "Bibliothèque C standard (I<libc>,\\ I<-lc>)"
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>arpa/inet.hE<gt>>\n"
92 msgstr "B<#include E<lt>arpa/inet.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 "B<int inet_pton(int >I<af>B<, const char *restrict >I<src>B<, void *restrict >I<dst>B<);>\n"
99 msgstr "B<int inet_pton(int >I<af>B<, const char *restrict >I<src>B<, void *restrict >I<dst>B<);>\n"
100
101 #. type: SH
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 #, no-wrap
105 msgid "DESCRIPTION"
106 msgstr "DESCRIPTION"
107
108 #. type: Plain text
109 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
110 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
111 msgid ""
112 "This function converts the character string I<src> into a network address "
113 "structure in the I<af> address family, then copies the network address "
114 "structure to I<dst>. The I<af> argument must be either B<AF_INET> or "
115 "B<AF_INET6>. I<dst> is written in network byte order."
116 msgstr ""
117 "Cette fonction convertit la chaîne de caractères I<src> en une structure "
118 "d'adresse réseau de la famille I<af>, puis copie cette structure dans "
119 "I<dst>. L'argument I<af> doit être soit B<AF_INET> soit B<AF_INET6>. I<dst> "
120 "est écrit dans l'ordre d'octets du réseau."
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 msgid "The following address families are currently supported:"
126 msgstr "Les familles d'adresses suivantes sont dès à présent supportées :"
127
128 #. type: TP
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 #, no-wrap
132 msgid "B<AF_INET>"
133 msgstr "B<AF_INET>"
134
135 #. type: Plain text
136 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
137 #: opensuse-tumbleweed
138 #, fuzzy
139 #| msgid ""
140 #| "I<src> points to a character string containing an IPv4 network address in "
141 #| "dotted-decimal format, \"I<ddd.ddd.ddd.ddd>\", where I<ddd> is a decimal "
142 #| "number of up to three digits in the range 0 to 255. The address is "
143 #| "converted to a I<struct in_addr> and copied to I<dst>, which must be "
144 #| "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
145 msgid ""
146 "I<src> points to a character string containing an IPv4 network address in "
147 "dotted-decimal format, \\[dq]I<ddd.ddd.ddd.ddd>\\[dq], where I<ddd> is a "
148 "decimal number of up to three digits in the range 0 to 255. The address is "
149 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
150 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
151 msgstr ""
152 "I<src> pointe sur une chaîne de caractère contenant une adresse réseau IPv4 "
153 "au format décimal pointé I<ddd.ddd.ddd.ddd>, où I<ddd> est un nombre "
154 "décimal, contenant jusqu'à trois chiffres, dans l'intervalle 0 à 255. "
155 "L'adresse est alors convertie en une structure I<struct in_addr> et copiée "
156 "dans I<dst>, qui doit donc contenir au minimum I<sizeof(struct in_addr)> (4) "
157 "octets (32 bits)."
158
159 #. type: TP
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "B<AF_INET6>"
164 msgstr "B<AF_INET6>"
165
166 #. type: Plain text
167 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
168 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
169 msgid ""
170 "I<src> points to a character string containing an IPv6 network address. The "
171 "address is converted to a I<struct in6_addr> and copied to I<dst>, which "
172 "must be I<sizeof(struct in6_addr)> (16) bytes (128 bits) long. The allowed "
173 "formats for IPv6 addresses follow these rules:"
174 msgstr ""
175 "I<src> pointe sur une chaîne de caractères contenant une adresse réseau "
176 "IPv6. L'adresse est convertie en une structure I<struct in6_addr> et copiée "
177 "dans I<dst>, qui doit donc contenir au moins I<sizeof(struct in6_addr)> (16) "
178 "octets (128 bits). Les formats d'adresse IPv6 autorisés suivent les règles "
179 "suivantes :"
180
181 #. type: IP
182 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
183 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
184 #, no-wrap
185 msgid "\\[bu]"
186 msgstr "-"
187
188 #. type: Plain text
189 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
190 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
191 msgid ""
192 "The preferred format is I<x:x:x:x:x:x:x:x>. This form consists of eight "
193 "hexadecimal numbers, each of which expresses a 16-bit value (i.e., each I<x> "
194 "can be up to 4 hex digits)."
195 msgstr ""
196 "Le format préféré est I<x:x:x:x:x:x:x:x>. Cette forme consiste en 8 nombres "
197 "hexadécimaux, chacun d'entre eux exprimant une valeur sur 16 bits (c'est-à-"
198 "dire que chaque I<x> peut contenir jusqu'à 4 symboles hexadécimaux)."
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid ""
204 "A series of contiguous zero values in the preferred format can be "
205 "abbreviated to I<::>. Only one instance of I<::> can occur in an address. "
206 "For example, the loopback address I<0:0:0:0:0:0:0:1> can be abbreviated as "
207 "I<::1>. The wildcard address, consisting of all zeros, can be written as "
208 "I<::>."
209 msgstr ""
210 "Une série de zéros contigus dans la forme préférée peut être abrégée en "
211 "I<::>. Une seule instance de I<::> peut apparaître dans une adresse. Par "
212 "exemple, l'adresse de boucle I<0:0:0:0:0:0:0:1> peut être abrégée en I<::1>. "
213 "L'adresse joker, constituée uniquement de zéros, peut être écrite comme "
214 "I<::>."
215
216 #. type: Plain text
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 msgid ""
220 "An alternate format is useful for expressing IPv4-mapped IPv6 addresses. "
221 "This form is written as I<x:x:x:x:x:x:d.d.d.d>, where the six leading I<x>s "
222 "are hexadecimal values that define the six most-significant 16-bit pieces of "
223 "the address (i.e., 96 bits), and the I<d>s express a value in dotted-decimal "
224 "notation that defines the least significant 32 bits of the address. An "
225 "example of such an address is I<::FFFF:204.152.189.116>."
226 msgstr ""
227 "Un autre format utile pour exprimer des adresses IPv4 projetées dans "
228 "l'espace IPv6 est I<x:x:x:x:x:x:d.d.d.d>, où les six I<x> de tête sont des "
229 "valeurs hexadécimales qui définissent les 6 mots 16 bits de poids fort de "
230 "l'adresse (c'est-à-dire 96 bits), et les I<d> expriment une valeur en "
231 "notation décimale pointée définissant les 32 bits de poids faible de "
232 "l'adresse. Un exemple d'une telle adresse est I<::FFFF:204.152.189.116>."
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid ""
238 "See RFC 2373 for further details on the representation of IPv6 addresses."
239 msgstr ""
240 "Consultez la RFC 2373 pour plus de détails sur la représentation des "
241 "adresses IPv6."
242
243 #. type: SH
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "RETURN VALUE"
248 msgstr "VALEUR RENVOYÉE"
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 "B<inet_pton>() returns 1 on success (network address was successfully "
255 "converted). 0 is returned if I<src> does not contain a character string "
256 "representing a valid network address in the specified address family. If "
257 "I<af> does not contain a valid address family, -1 is returned and I<errno> "
258 "is set to B<EAFNOSUPPORT>."
259 msgstr ""
260 "B<inet_pton>() renvoie 1 si elle réussit (l'adresse réseau a été convertie "
261 "avec succès). Elle renvoie une valeur nulle si I<src> ne contient pas une "
262 "adresse réseau valable pour la famille indiquée. Si I<af> ne contient pas de "
263 "famille d'adresse valable, -1 est renvoyé et I<errno> contient "
264 "B<EAFNOSUPPORT>."
265
266 #. type: SH
267 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
268 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
269 #, no-wrap
270 msgid "ATTRIBUTES"
271 msgstr "ATTRIBUTS"
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid ""
277 "For an explanation of the terms used in this section, see B<attributes>(7)."
278 msgstr ""
279 "Pour une explication des termes utilisés dans cette section, consulter "
280 "B<attributes>(7)."
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 "Interface"
287 msgstr "Interface"
288
289 #. type: tbl table
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "Attribute"
294 msgstr "Attribut"
295
296 #. type: tbl table
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 #, no-wrap
300 msgid "Value"
301 msgstr "Valeur"
302
303 #. type: tbl table
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid ".na\n"
308 msgstr ".na\n"
309
310 #. type: tbl table
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid ".nh\n"
315 msgstr ".nh\n"
316
317 #. type: tbl table
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "B<inet_pton>()"
322 msgstr "B<inet_pton>()."
323
324 #. type: tbl table
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "Thread safety"
329 msgstr "Sécurité des threads"
330
331 #. type: tbl table
332 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
333 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
334 #, no-wrap
335 msgid "MT-Safe locale"
336 msgstr "MT-Safe locale"
337
338 #. type: SH
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "VERSIONS"
343 msgstr "VERSIONS"
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 msgid ""
349 "Unlike B<inet_aton>(3) and B<inet_addr>(3), B<inet_pton>() supports IPv6 "
350 "addresses. On the other hand, B<inet_pton>() accepts only IPv4 addresses "
351 "in dotted-decimal notation, whereas B<inet_aton>(3) and B<inet_addr>(3) "
352 "allow the more general numbers-and-dots notation (hexadecimal and octal "
353 "number formats, and formats that don't require all four bytes to be "
354 "explicitly written). For an interface that handles both IPv6 addresses, and "
355 "IPv4 addresses in numbers-and-dots notation, see B<getaddrinfo>(3)."
356 msgstr ""
357 "Contrairement à B<inet_aton>(3) et B<inet_addr>(3), B<inet_pton>() gère les "
358 "adresses IPv6. D'un autre coté, B<inet_pton>() n'accepte que les adresses "
359 "IPv4 en notation décimale pointée alors que B<inet_aton>(3) et "
360 "B<inet_addr>(3) autorisent la notation plus générale numérique pointée "
361 "(formats à nombre hexadécimaux et octaux, de même que les formats n'exigeant "
362 "pas que les 4 octets soient explicitement écrits). Pour une interface gérant "
363 "les adresses IPv6 et IPv4 en notation numérique pointée, consultez "
364 "B<getaddrinfo>(3)."
365
366 #. type: SH
367 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
368 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
369 #, no-wrap
370 msgid "STANDARDS"
371 msgstr "NORMES"
372
373 #. type: Plain text
374 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
375 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
376 msgid "POSIX.1-2008."
377 msgstr "POSIX.1-2008."
378
379 #. type: SH
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid "HISTORY"
384 msgstr "HISTORIQUE"
385
386 #. type: Plain text
387 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
388 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
389 msgid "POSIX.1-2001."
390 msgstr "POSIX.1-2001."
391
392 #. type: SH
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 #, no-wrap
396 msgid "BUGS"
397 msgstr "BOGUES"
398
399 #. type: Plain text
400 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
401 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
402 msgid ""
403 "B<AF_INET6> does not recognize IPv4 addresses. An explicit IPv4-mapped IPv6 "
404 "address must be supplied in I<src> instead."
405 msgstr ""
406 "B<AF_INET6> ne reconnaît pas les adresses IPv4. Il faut dans ce cas fournir "
407 "dans I<src> une adresse IPv4 projetée dans l'espace IPv6."
408
409 #. type: SH
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 #, no-wrap
413 msgid "EXAMPLES"
414 msgstr "EXEMPLES"
415
416 #. type: Plain text
417 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
418 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
419 msgid ""
420 "The program below demonstrates the use of B<inet_pton>() and "
421 "B<inet_ntop>(3). Here are some example runs:"
422 msgstr ""
423 "Le programme suivant montre une utilisation de B<inet_pton>() et "
424 "B<inet_ntop>(3). Voici quelques exemples d'exécution :"
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 #, no-wrap
430 msgid ""
431 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
432 "::\n"
433 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
434 "1::8\n"
435 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
436 "::ffff:204.152.189.116\n"
437 msgstr ""
438 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
439 "::\n"
440 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
441 "1::8\n"
442 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
443 "::ffff:204.152.189.116\n"
444
445 #. type: SS
446 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
447 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
448 #, no-wrap
449 msgid "Program source"
450 msgstr "Source du programme"
451
452 #. type: Plain text
453 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
454 #, fuzzy, no-wrap
455 #| msgid ""
456 #| "#include E<lt>arpa/inet.hE<gt>\n"
457 #| "#include E<lt>stdio.hE<gt>\n"
458 #| "#include E<lt>stdlib.hE<gt>\n"
459 #| "#include E<lt>string.hE<gt>\n"
460 #| "\\&\n"
461 #| "int\n"
462 #| "main(int argc, char *argv[])\n"
463 #| "{\n"
464 #| " unsigned char buf[sizeof(struct in6_addr)];\n"
465 #| " int domain, s;\n"
466 #| " char str[INET6_ADDRSTRLEN];\n"
467 #| "\\&\n"
468 #| " if (argc != 3) {\n"
469 #| " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
470 #| " exit(EXIT_FAILURE);\n"
471 #| " }\n"
472 #| "\\&\n"
473 #| " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
474 #| " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
475 #| "\\&\n"
476 #| " s = inet_pton(domain, argv[2], buf);\n"
477 #| " if (s E<lt>= 0) {\n"
478 #| " if (s == 0)\n"
479 #| " fprintf(stderr, \"Not in presentation format\");\n"
480 #| " else\n"
481 #| " perror(\"inet_pton\");\n"
482 #| " exit(EXIT_FAILURE);\n"
483 #| " }\n"
484 #| "\\&\n"
485 #| " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
486 #| " perror(\"inet_ntop\");\n"
487 #| " exit(EXIT_FAILURE);\n"
488 #| " }\n"
489 #| "\\&\n"
490 #| " printf(\"%s\\[rs]n\", str);\n"
491 #| "\\&\n"
492 #| " exit(EXIT_SUCCESS);\n"
493 #| "}\n"
494 msgid ""
495 "#include E<lt>arpa/inet.hE<gt>\n"
496 "#include E<lt>stdio.hE<gt>\n"
497 "#include E<lt>stdlib.hE<gt>\n"
498 "#include E<lt>string.hE<gt>\n"
499 "\\&\n"
500 "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n"
501 "\\&\n"
502 "int\n"
503 "main(int argc, char *argv[])\n"
504 "{\n"
505 " unsigned char buf[sizeof(struct in6_addr)];\n"
506 " int domain, s;\n"
507 " char str[INET6_ADDRSTRLEN];\n"
508 "\\&\n"
509 " if (argc != 3) {\n"
510 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
511 " exit(EXIT_FAILURE);\n"
512 " }\n"
513 "\\&\n"
514 " domain = streq(argv[1], \"i4\") ? AF_INET :\n"
515 " streq(argv[1], \"i6\") ? AF_INET6 : atoi(argv[1]);\n"
516 "\\&\n"
517 " s = inet_pton(domain, argv[2], buf);\n"
518 " if (s E<lt>= 0) {\n"
519 " if (s == 0)\n"
520 " fprintf(stderr, \"Not in presentation format\");\n"
521 " else\n"
522 " perror(\"inet_pton\");\n"
523 " exit(EXIT_FAILURE);\n"
524 " }\n"
525 "\\&\n"
526 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
527 " perror(\"inet_ntop\");\n"
528 " exit(EXIT_FAILURE);\n"
529 " }\n"
530 "\\&\n"
531 " printf(\"%s\\[rs]n\", str);\n"
532 "\\&\n"
533 " exit(EXIT_SUCCESS);\n"
534 "}\n"
535 msgstr ""
536 "#include E<lt>arpa/inet.hE<gt>\n"
537 "#include E<lt>stdio.hE<gt>\n"
538 "#include E<lt>stdlib.hE<gt>\n"
539 "#include E<lt>string.hE<gt>\n"
540 "\\&\n"
541 "int\n"
542 "main(int argc, char *argv[])\n"
543 "{\n"
544 " unsigned char buf[sizeof(struct in6_addr)];\n"
545 " int domain, s;\n"
546 " char str[INET6_ADDRSTRLEN];\n"
547 "\\&\n"
548 " if (argc != 3) {\n"
549 " fprintf(stderr, \"Utilisation : %s chaîne {i4|i6|E<lt>numE<gt>}\\[rs]n\", argv[0]);\n"
550 " exit(EXIT_FAILURE);\n"
551 " }\n"
552 "\\&\n"
553 " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
554 " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
555 "\\&\n"
556 " s = inet_pton(domain, argv[2], buf);\n"
557 " if (s E<lt>= 0) {\n"
558 " if (s == 0)\n"
559 " fprintf(stderr, \"Pas en format de présentation\");\n"
560 " else\n"
561 " perror(\"inet_pton\");\n"
562 " exit(EXIT_FAILURE);\n"
563 " }\n"
564 "\\&\n"
565 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
566 " perror(\"inet_ntop\");\n"
567 " exit(EXIT_FAILURE);\n"
568 " }\n"
569 "\\&\n"
570 " printf(\"%s\\[rs]n\", str);\n"
571 "\\&\n"
572 " exit(EXIT_SUCCESS);\n"
573 "}\n"
574
575 #. SRC END
576 #. type: SH
577 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
578 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
579 #, no-wrap
580 msgid "SEE ALSO"
581 msgstr "VOIR AUSSI"
582
583 #. type: Plain text
584 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
585 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
586 msgid "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
587 msgstr "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
588
589 #. type: TH
590 #: debian-trixie
591 #, no-wrap
592 msgid "2024-06-15"
593 msgstr "15 juin 2024"
594
595 #. type: TH
596 #: debian-trixie
597 #, no-wrap
598 msgid "Linux man-pages 6.9.1"
599 msgstr "Pages du manuel de Linux 6.9.1"
600
601 #. type: Plain text
602 #: debian-trixie
603 msgid "Standard C library (I<libc>, I<-lc>)"
604 msgstr "Bibliothèque C standard (I<libc>, I<-lc>)"
605
606 #. type: Plain text
607 #: debian-trixie fedora-44 fedora-rawhide
608 msgid ""
609 "I<src> points to a character string containing an IPv4 network address in "
610 "dotted-decimal format, \"I<ddd.ddd.ddd.ddd>\", where I<ddd> is a decimal "
611 "number of up to three digits in the range 0 to 255. The address is "
612 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
613 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
614 msgstr ""
615 "I<src> pointe sur une chaîne de caractère contenant une adresse réseau IPv4 "
616 "au format décimal pointé I<ddd.ddd.ddd.ddd>, où I<ddd> est un nombre "
617 "décimal, contenant jusqu'à trois chiffres, dans l'intervalle 0 à 255. "
618 "L'adresse est alors convertie en une structure I<struct in_addr> et copiée "
619 "dans I<dst>, qui doit donc contenir au minimum I<sizeof(struct in_addr)> (4) "
620 "octets (32 bits)."
621
622 #. type: Plain text
623 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
624 #, no-wrap
625 msgid ""
626 "#include E<lt>arpa/inet.hE<gt>\n"
627 "#include E<lt>stdio.hE<gt>\n"
628 "#include E<lt>stdlib.hE<gt>\n"
629 "#include E<lt>string.hE<gt>\n"
630 "\\&\n"
631 "int\n"
632 "main(int argc, char *argv[])\n"
633 "{\n"
634 " unsigned char buf[sizeof(struct in6_addr)];\n"
635 " int domain, s;\n"
636 " char str[INET6_ADDRSTRLEN];\n"
637 "\\&\n"
638 " if (argc != 3) {\n"
639 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
640 " exit(EXIT_FAILURE);\n"
641 " }\n"
642 "\\&\n"
643 " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
644 " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
645 "\\&\n"
646 " s = inet_pton(domain, argv[2], buf);\n"
647 " if (s E<lt>= 0) {\n"
648 " if (s == 0)\n"
649 " fprintf(stderr, \"Not in presentation format\");\n"
650 " else\n"
651 " perror(\"inet_pton\");\n"
652 " exit(EXIT_FAILURE);\n"
653 " }\n"
654 "\\&\n"
655 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
656 " perror(\"inet_ntop\");\n"
657 " exit(EXIT_FAILURE);\n"
658 " }\n"
659 "\\&\n"
660 " printf(\"%s\\[rs]n\", str);\n"
661 "\\&\n"
662 " exit(EXIT_SUCCESS);\n"
663 "}\n"
664 msgstr ""
665 "#include E<lt>arpa/inet.hE<gt>\n"
666 "#include E<lt>stdio.hE<gt>\n"
667 "#include E<lt>stdlib.hE<gt>\n"
668 "#include E<lt>string.hE<gt>\n"
669 "\\&\n"
670 "int\n"
671 "main(int argc, char *argv[])\n"
672 "{\n"
673 " unsigned char buf[sizeof(struct in6_addr)];\n"
674 " int domain, s;\n"
675 " char str[INET6_ADDRSTRLEN];\n"
676 "\\&\n"
677 " if (argc != 3) {\n"
678 " fprintf(stderr, \"Utilisation : %s chaîne {i4|i6|E<lt>numE<gt>}\\[rs]n\", argv[0]);\n"
679 " exit(EXIT_FAILURE);\n"
680 " }\n"
681 "\\&\n"
682 " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
683 " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
684 "\\&\n"
685 " s = inet_pton(domain, argv[2], buf);\n"
686 " if (s E<lt>= 0) {\n"
687 " if (s == 0)\n"
688 " fprintf(stderr, \"Pas en format de présentation\");\n"
689 " else\n"
690 " perror(\"inet_pton\");\n"
691 " exit(EXIT_FAILURE);\n"
692 " }\n"
693 "\\&\n"
694 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
695 " perror(\"inet_ntop\");\n"
696 " exit(EXIT_FAILURE);\n"
697 " }\n"
698 "\\&\n"
699 " printf(\"%s\\[rs]n\", str);\n"
700 "\\&\n"
701 " exit(EXIT_SUCCESS);\n"
702 "}\n"
703
704 #. type: TH
705 #: fedora-44 fedora-rawhide
706 #, no-wrap
707 msgid "2024-07-23"
708 msgstr "23 juillet 2024"
709
710 #. type: TH
711 #: fedora-44 fedora-rawhide
712 #, no-wrap
713 msgid "Linux man-pages 6.13"
714 msgstr "Pages du manuel de Linux 6.13"
715
716 #. type: TH
717 #: mageia-cauldron
718 #, no-wrap
719 msgid "2026-02-08"
720 msgstr "8 février 2026"
721
722 #. type: TH
723 #: mageia-cauldron
724 #, no-wrap
725 msgid "Linux man-pages 6.17"
726 msgstr "Pages du manuel de Linux 6.17"
727
728 #. type: TH
729 #: opensuse-leap-16-1 opensuse-tumbleweed
730 #, no-wrap
731 msgid "Linux man-pages (unreleased)"
732 msgstr "Pages du manuel de Linux (non publiées)"