Debian Codegraph @

po/pt_BR/man3/inet_pton.3.po

raw
1 # Brazilian Portuguese translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Marcelo M. de Abreu <[email protected]>, 2001.
5 # André Luiz Fassone <[email protected]>, 2001.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
10 "PO-Revision-Date: 2001-05-31 17:26+0200\n"
11 "Last-Translator: André Luiz Fassone <[email protected]>\n"
12 "Language-Team: Brazilian Portuguese <debian-l10n-"
13 "[email protected]>\n"
14 "Language: pt_BR\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=2; plural=(n > 1);\n"
19 "X-Generator: Lokalize 20.04.1\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, fuzzy, no-wrap
25 #| msgid "B<inet_pton>()"
26 msgid "inet_pton"
27 msgstr "B<inet_pton>()"
28
29 #. type: TH
30 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-22"
33 msgstr "22 fevereiro 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, fuzzy, no-wrap
38 #| msgid "Linux man-pages 6.17"
39 msgid "Linux man-pages 6.18"
40 msgstr "Linux man-pages 6.17"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "NOME"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "inet_pton - convert IPv4 and IPv6 addresses from text to binary form"
53 msgstr ""
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "BIBLIOTECA"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "Biblioteca C Padrão (I<libc>,\\ I<-lc>)"
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 "SYNOPSIS"
73 msgstr "SINOPSE"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>arpa/inet.hE<gt>>\n"
80 msgstr "B<#include E<lt>arpa/inet.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, fuzzy, no-wrap
86 #| msgid "B<int inet_pton(int >I<af>B<, const char *>I<src>B<, void *>I<dst>B<);>\n"
87 msgid "B<int inet_pton(int >I<af>B<, const char *restrict >I<src>B<, void *restrict >I<dst>B<);>\n"
88 msgstr "B<int inet_pton(int >I<af>B<, const char *>I<src>B<, void *>I<dst>B<);>\n"
89
90 #. type: SH
91 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
92 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
93 #, no-wrap
94 msgid "DESCRIPTION"
95 msgstr "DESCRIÇÃO"
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 #, fuzzy
101 #| msgid ""
102 #| "This function converts the character string I<src> into a network address "
103 #| "structure in the I<af> address family, then copies the network address "
104 #| "structure to I<dst>."
105 msgid ""
106 "This function converts the character string I<src> into a network address "
107 "structure in the I<af> address family, then copies the network address "
108 "structure to I<dst>. The I<af> argument must be either B<AF_INET> or "
109 "B<AF_INET6>. I<dst> is written in network byte order."
110 msgstr ""
111 "Esta função converte a sequência de caracteres I<src> em uma estrutura de "
112 "endereço de rede na família de endereço I<af> e então copia a estrutura de "
113 "endereço de rede para I<dst>."
114
115 #. type: Plain text
116 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
117 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
118 msgid "The following address families are currently supported:"
119 msgstr ""
120
121 #. type: TP
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid "B<AF_INET>"
126 msgstr "B<AF_INET>"
127
128 #. type: Plain text
129 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
130 #: opensuse-tumbleweed
131 #, fuzzy
132 #| msgid ""
133 #| "I<src> points to a character string containing an IPv4 network address in "
134 #| "the dotted-quad format, \"I<ddd.ddd.ddd.ddd>\". The address is converted "
135 #| "to a I<struct in_addr> and copied to I<dst,> which must be "
136 #| "I<sizeof(struct in_addr)> bytes long."
137 msgid ""
138 "I<src> points to a character string containing an IPv4 network address in "
139 "dotted-decimal format, \\[dq]I<ddd.ddd.ddd.ddd>\\[dq], where I<ddd> is a "
140 "decimal number of up to three digits in the range 0 to 255. The address is "
141 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
142 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
143 msgstr ""
144 "I<src> aponta para uma sequência de caracteres contendo um endereço de rede "
145 "IPv4 no formato da quadra pontuada, \"I<ddd.ddd.ddd.ddd>\". O endereço é "
146 "convertido para uma I<struct in_addr> e copiado para I<dst>, que deve ter "
147 "comprimento de I<sizeof(struct in_addr)> bytes."
148
149 #. type: TP
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "B<AF_INET6>"
154 msgstr "B<AF_INET6>"
155
156 #. type: Plain text
157 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
158 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
159 #, fuzzy
160 #| msgid ""
161 #| "I<src> points to a character string containing an IPv6 network address in "
162 #| "any allowed IPv6 address format. The address is converted to a I<struct "
163 #| "in6_addr> and copied to I<dst,> which must be I<sizeof(struct in6_addr)> "
164 #| "bytes long."
165 msgid ""
166 "I<src> points to a character string containing an IPv6 network address. The "
167 "address is converted to a I<struct in6_addr> and copied to I<dst>, which "
168 "must be I<sizeof(struct in6_addr)> (16) bytes (128 bits) long. The allowed "
169 "formats for IPv6 addresses follow these rules:"
170 msgstr ""
171 "I<src> aponta para uma sequência de caracteres contendo um endereço de rede "
172 "IPv6 em qualquer formato de endereço IPv6 permitido. O endereço é convertido "
173 "para uma I<struct in6_addr> e copiado para I<dst>, que deve ter comprimento "
174 "de I<sizeof(struct in6_addr)> bytes."
175
176 #. type: IP
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 #, no-wrap
180 msgid "\\[bu]"
181 msgstr "\\[bu]"
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 msgid ""
187 "The preferred format is I<x:x:x:x:x:x:x:x>. This form consists of eight "
188 "hexadecimal numbers, each of which expresses a 16-bit value (i.e., each I<x> "
189 "can be up to 4 hex digits)."
190 msgstr ""
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "A series of contiguous zero values in the preferred format can be "
197 "abbreviated to I<::>. Only one instance of I<::> can occur in an address. "
198 "For example, the loopback address I<0:0:0:0:0:0:0:1> can be abbreviated as "
199 "I<::1>. The wildcard address, consisting of all zeros, can be written as "
200 "I<::>."
201 msgstr ""
202
203 #. type: Plain text
204 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
205 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
206 msgid ""
207 "An alternate format is useful for expressing IPv4-mapped IPv6 addresses. "
208 "This form is written as I<x:x:x:x:x:x:d.d.d.d>, where the six leading I<x>s "
209 "are hexadecimal values that define the six most-significant 16-bit pieces of "
210 "the address (i.e., 96 bits), and the I<d>s express a value in dotted-decimal "
211 "notation that defines the least significant 32 bits of the address. An "
212 "example of such an address is I<::FFFF:204.152.189.116>."
213 msgstr ""
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 msgid ""
219 "See RFC 2373 for further details on the representation of IPv6 addresses."
220 msgstr ""
221
222 #. type: SH
223 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
224 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
225 #, no-wrap
226 msgid "RETURN VALUE"
227 msgstr "VALOR DE RETORNO"
228
229 #. type: Plain text
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, fuzzy
233 #| msgid ""
234 #| "B<inet_pton> returns a negative value and sets I<errno> to "
235 #| "B<EAFNOSUPPORT> if I<af> does not contain a valid address family. 0 is "
236 #| "returned if I<src> does not contain a character string representing a "
237 #| "valid network address in the specified address family. A positive value "
238 #| "is returned if the network address was successfully converted."
239 msgid ""
240 "B<inet_pton>() returns 1 on success (network address was successfully "
241 "converted). 0 is returned if I<src> does not contain a character string "
242 "representing a valid network address in the specified address family. If "
243 "I<af> does not contain a valid address family, -1 is returned and I<errno> "
244 "is set to B<EAFNOSUPPORT>."
245 msgstr ""
246 "B<inet_pton> retorna um valor negativo e define I<errno> para "
247 "B<EAFNOSUPPORT> se I<af> não contiver uma família válida de endereço. 0 é "
248 "retornado se I<src> não contiver uma sequência de caracteres representando "
249 "uma endereço de rede válido na família de endereço especificada. Um valor "
250 "positivo é retornado se o endereço de rede foi convertido com sucesso."
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "ATTRIBUTES"
257 msgstr "ATRIBUTOS"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "For an explanation of the terms used in this section, see B<attributes>(7)."
264 msgstr ""
265 "Para uma explicação dos termos usados nesta seção, consulte B<attributes>(7)."
266
267 #. type: tbl table
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 #, no-wrap
271 msgid "Interface"
272 msgstr "Interface"
273
274 #. type: tbl table
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "Attribute"
279 msgstr "Atributo"
280
281 #. type: tbl table
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 #, no-wrap
285 msgid "Value"
286 msgstr "Valor"
287
288 #. type: tbl table
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid ".na\n"
293 msgstr ".na\n"
294
295 #. type: tbl table
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid ".nh\n"
300 msgstr ".nh\n"
301
302 #. type: tbl table
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "B<inet_pton>()"
307 msgstr "B<inet_pton>()"
308
309 #. type: tbl table
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 #, no-wrap
313 msgid "Thread safety"
314 msgstr "Thread safety"
315
316 #. type: tbl table
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "MT-Safe locale"
321 msgstr "MT-Safe locale"
322
323 #. type: SH
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 #, no-wrap
327 msgid "VERSIONS"
328 msgstr "VERSÕES"
329
330 #. type: Plain text
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 msgid ""
334 "Unlike B<inet_aton>(3) and B<inet_addr>(3), B<inet_pton>() supports IPv6 "
335 "addresses. On the other hand, B<inet_pton>() accepts only IPv4 addresses "
336 "in dotted-decimal notation, whereas B<inet_aton>(3) and B<inet_addr>(3) "
337 "allow the more general numbers-and-dots notation (hexadecimal and octal "
338 "number formats, and formats that don't require all four bytes to be "
339 "explicitly written). For an interface that handles both IPv6 addresses, and "
340 "IPv4 addresses in numbers-and-dots notation, see B<getaddrinfo>(3)."
341 msgstr ""
342
343 #. type: SH
344 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
345 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
346 #, no-wrap
347 msgid "STANDARDS"
348 msgstr "PADRÕES"
349
350 #. type: Plain text
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 msgid "POSIX.1-2008."
354 msgstr "POSIX.1-2008."
355
356 #. type: SH
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 #, no-wrap
360 msgid "HISTORY"
361 msgstr "HISTÓRICO"
362
363 #. type: Plain text
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 msgid "POSIX.1-2001."
367 msgstr "POSIX.1-2001."
368
369 #. type: SH
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "BUGS"
374 msgstr "BUGS"
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, fuzzy
380 #| msgid ""
381 #| "B<AF_INET6> does not recognize IPv4 addresses. An explicit IPv6-mapped "
382 #| "IPv4 address must be supplied in I<src> instead."
383 msgid ""
384 "B<AF_INET6> does not recognize IPv4 addresses. An explicit IPv4-mapped IPv6 "
385 "address must be supplied in I<src> instead."
386 msgstr ""
387 "B<AF_INET6> não reconhece endereços IPv4. Um endereço IPv4 explicitamente "
388 "mapeado para IPv6 deve ser fornecido em I<src> em vez disso."
389
390 #. type: SH
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "EXAMPLES"
395 msgstr "EXEMPLOS"
396
397 #. type: Plain text
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 msgid ""
401 "The program below demonstrates the use of B<inet_pton>() and "
402 "B<inet_ntop>(3). Here are some example runs:"
403 msgstr ""
404
405 #. type: Plain text
406 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
407 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
408 #, no-wrap
409 msgid ""
410 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
411 "::\n"
412 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
413 "1::8\n"
414 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
415 "::ffff:204.152.189.116\n"
416 msgstr ""
417 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
418 "::\n"
419 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
420 "1::8\n"
421 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
422 "::ffff:204.152.189.116\n"
423
424 #. type: SS
425 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
426 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
427 #, no-wrap
428 msgid "Program source"
429 msgstr "Fonte do programa"
430
431 #. type: Plain text
432 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
433 #, no-wrap
434 msgid ""
435 "#include E<lt>arpa/inet.hE<gt>\n"
436 "#include E<lt>stdio.hE<gt>\n"
437 "#include E<lt>stdlib.hE<gt>\n"
438 "#include E<lt>string.hE<gt>\n"
439 "\\&\n"
440 "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n"
441 "\\&\n"
442 "int\n"
443 "main(int argc, char *argv[])\n"
444 "{\n"
445 " unsigned char buf[sizeof(struct in6_addr)];\n"
446 " int domain, s;\n"
447 " char str[INET6_ADDRSTRLEN];\n"
448 "\\&\n"
449 " if (argc != 3) {\n"
450 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
451 " exit(EXIT_FAILURE);\n"
452 " }\n"
453 "\\&\n"
454 " domain = streq(argv[1], \"i4\") ? AF_INET :\n"
455 " streq(argv[1], \"i6\") ? AF_INET6 : atoi(argv[1]);\n"
456 "\\&\n"
457 " s = inet_pton(domain, argv[2], buf);\n"
458 " if (s E<lt>= 0) {\n"
459 " if (s == 0)\n"
460 " fprintf(stderr, \"Not in presentation format\");\n"
461 " else\n"
462 " perror(\"inet_pton\");\n"
463 " exit(EXIT_FAILURE);\n"
464 " }\n"
465 "\\&\n"
466 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
467 " perror(\"inet_ntop\");\n"
468 " exit(EXIT_FAILURE);\n"
469 " }\n"
470 "\\&\n"
471 " printf(\"%s\\[rs]n\", str);\n"
472 "\\&\n"
473 " exit(EXIT_SUCCESS);\n"
474 "}\n"
475 msgstr ""
476
477 #. SRC END
478 #. type: SH
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "SEE ALSO"
483 msgstr "VEJA TAMBÉM"
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 msgid "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
489 msgstr "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
490
491 #. type: TH
492 #: debian-trixie
493 #, no-wrap
494 msgid "2024-06-15"
495 msgstr "15 junho 2024"
496
497 #. type: TH
498 #: debian-trixie
499 #, no-wrap
500 msgid "Linux man-pages 6.9.1"
501 msgstr "Linux man-pages 6.9.1"
502
503 #. type: Plain text
504 #: debian-trixie
505 msgid "Standard C library (I<libc>, I<-lc>)"
506 msgstr "Biblioteca C Padrão (I<libc>, I<-lc>)"
507
508 #. type: Plain text
509 #: debian-trixie fedora-44 fedora-rawhide
510 #, fuzzy
511 #| msgid ""
512 #| "I<src> points to a character string containing an IPv4 network address in "
513 #| "the dotted-quad format, \"I<ddd.ddd.ddd.ddd>\". The address is converted "
514 #| "to a I<struct in_addr> and copied to I<dst,> which must be "
515 #| "I<sizeof(struct in_addr)> bytes long."
516 msgid ""
517 "I<src> points to a character string containing an IPv4 network address in "
518 "dotted-decimal format, \"I<ddd.ddd.ddd.ddd>\", where I<ddd> is a decimal "
519 "number of up to three digits in the range 0 to 255. The address is "
520 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
521 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
522 msgstr ""
523 "I<src> aponta para uma sequência de caracteres contendo um endereço de rede "
524 "IPv4 no formato da quadra pontuada, \"I<ddd.ddd.ddd.ddd>\". O endereço é "
525 "convertido para uma I<struct in_addr> e copiado para I<dst>, que deve ter "
526 "comprimento de I<sizeof(struct in_addr)> bytes."
527
528 #. type: Plain text
529 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
530 #, no-wrap
531 msgid ""
532 "#include E<lt>arpa/inet.hE<gt>\n"
533 "#include E<lt>stdio.hE<gt>\n"
534 "#include E<lt>stdlib.hE<gt>\n"
535 "#include E<lt>string.hE<gt>\n"
536 "\\&\n"
537 "int\n"
538 "main(int argc, char *argv[])\n"
539 "{\n"
540 " unsigned char buf[sizeof(struct in6_addr)];\n"
541 " int domain, s;\n"
542 " char str[INET6_ADDRSTRLEN];\n"
543 "\\&\n"
544 " if (argc != 3) {\n"
545 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
546 " exit(EXIT_FAILURE);\n"
547 " }\n"
548 "\\&\n"
549 " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
550 " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
551 "\\&\n"
552 " s = inet_pton(domain, argv[2], buf);\n"
553 " if (s E<lt>= 0) {\n"
554 " if (s == 0)\n"
555 " fprintf(stderr, \"Not in presentation format\");\n"
556 " else\n"
557 " perror(\"inet_pton\");\n"
558 " exit(EXIT_FAILURE);\n"
559 " }\n"
560 "\\&\n"
561 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
562 " perror(\"inet_ntop\");\n"
563 " exit(EXIT_FAILURE);\n"
564 " }\n"
565 "\\&\n"
566 " printf(\"%s\\[rs]n\", str);\n"
567 "\\&\n"
568 " exit(EXIT_SUCCESS);\n"
569 "}\n"
570 msgstr ""
571
572 #. type: TH
573 #: fedora-44 fedora-rawhide
574 #, no-wrap
575 msgid "2024-07-23"
576 msgstr "23 julho 2024"
577
578 #. type: TH
579 #: fedora-44 fedora-rawhide
580 #, no-wrap
581 msgid "Linux man-pages 6.13"
582 msgstr "Linux man-pages 6.13"
583
584 #. type: TH
585 #: mageia-cauldron
586 #, no-wrap
587 msgid "2026-02-08"
588 msgstr "8 fevereiro 2026"
589
590 #. type: TH
591 #: mageia-cauldron
592 #, no-wrap
593 msgid "Linux man-pages 6.17"
594 msgstr "Linux man-pages 6.17"
595
596 #. type: TH
597 #: opensuse-leap-16-1 opensuse-tumbleweed
598 #, no-wrap
599 msgid "Linux man-pages (unreleased)"
600 msgstr "Linux man-pages (não lançado)"