Debian Codegraph @

po/es/man3/inet_pton.3.po

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