| 1 |
# SOME DESCRIPTIVE TITLE |
| 2 |
# Copyright (C) YEAR Free Software Foundation, Inc. |
| 3 |
# This file is distributed under the same license as the PACKAGE package. |
| 4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. |
| 5 |
# |
| 6 |
#, fuzzy |
| 7 |
msgid "" |
| 8 |
msgstr "" |
| 9 |
"Project-Id-Version: PACKAGE VERSION\n" |
| 10 |
"POT-Creation-Date: 2026-06-05 06:27+0200\n" |
| 11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
| 12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
| 13 |
"Language-Team: LANGUAGE <[email protected]>\n" |
| 14 |
"Language: \n" |
| 15 |
"MIME-Version: 1.0\n" |
| 16 |
"Content-Type: text/plain; charset=UTF-8\n" |
| 17 |
"Content-Transfer-Encoding: 8bit\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 |
#, no-wrap |
| 23 |
msgid "inet_pton" |
| 24 |
msgstr "" |
| 25 |
|
| 26 |
#. type: TH |
| 27 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 28 |
#, no-wrap |
| 29 |
msgid "2026-02-22" |
| 30 |
msgstr "" |
| 31 |
|
| 32 |
#. type: TH |
| 33 |
#: archlinux debian-unstable |
| 34 |
#, no-wrap |
| 35 |
msgid "Linux man-pages 6.18" |
| 36 |
msgstr "" |
| 37 |
|
| 38 |
#. type: SH |
| 39 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 40 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 41 |
#, no-wrap |
| 42 |
msgid "NAME" |
| 43 |
msgstr "" |
| 44 |
|
| 45 |
#. type: Plain text |
| 46 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 47 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 48 |
msgid "inet_pton - convert IPv4 and IPv6 addresses from text to binary form" |
| 49 |
msgstr "" |
| 50 |
|
| 51 |
#. type: SH |
| 52 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 53 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 54 |
#, no-wrap |
| 55 |
msgid "LIBRARY" |
| 56 |
msgstr "" |
| 57 |
|
| 58 |
#. type: Plain text |
| 59 |
#: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron |
| 60 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 61 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 62 |
msgstr "" |
| 63 |
|
| 64 |
#. type: SH |
| 65 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 66 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 67 |
#, no-wrap |
| 68 |
msgid "SYNOPSIS" |
| 69 |
msgstr "" |
| 70 |
|
| 71 |
#. type: Plain text |
| 72 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 73 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 74 |
#, no-wrap |
| 75 |
msgid "B<#include E<lt>arpa/inet.hE<gt>>\n" |
| 76 |
msgstr "" |
| 77 |
|
| 78 |
#. type: Plain text |
| 79 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 80 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 81 |
#, no-wrap |
| 82 |
msgid "B<int inet_pton(int >I<af>B<, const char *restrict >I<src>B<, void *restrict >I<dst>B<);>\n" |
| 83 |
msgstr "" |
| 84 |
|
| 85 |
#. type: SH |
| 86 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 87 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 88 |
#, no-wrap |
| 89 |
msgid "DESCRIPTION" |
| 90 |
msgstr "" |
| 91 |
|
| 92 |
#. type: Plain text |
| 93 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 94 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 95 |
msgid "" |
| 96 |
"This function converts the character string I<src> into a network address " |
| 97 |
"structure in the I<af> address family, then copies the network address " |
| 98 |
"structure to I<dst>. The I<af> argument must be either B<AF_INET> or " |
| 99 |
"B<AF_INET6>. I<dst> is written in network byte order." |
| 100 |
msgstr "" |
| 101 |
|
| 102 |
#. type: Plain text |
| 103 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 104 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 105 |
msgid "The following address families are currently supported:" |
| 106 |
msgstr "" |
| 107 |
|
| 108 |
#. type: TP |
| 109 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 110 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 111 |
#, no-wrap |
| 112 |
msgid "B<AF_INET>" |
| 113 |
msgstr "" |
| 114 |
|
| 115 |
#. type: Plain text |
| 116 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 117 |
#: opensuse-tumbleweed |
| 118 |
msgid "" |
| 119 |
"I<src> points to a character string containing an IPv4 network address in " |
| 120 |
"dotted-decimal format, \\[dq]I<ddd.ddd.ddd.ddd>\\[dq], where I<ddd> is a " |
| 121 |
"decimal number of up to three digits in the range 0 to 255. The address is " |
| 122 |
"converted to a I<struct in_addr> and copied to I<dst>, which must be " |
| 123 |
"I<sizeof(struct in_addr)> (4) bytes (32 bits) long." |
| 124 |
msgstr "" |
| 125 |
|
| 126 |
#. type: TP |
| 127 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 128 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 129 |
#, no-wrap |
| 130 |
msgid "B<AF_INET6>" |
| 131 |
msgstr "" |
| 132 |
|
| 133 |
#. type: Plain text |
| 134 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 135 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 136 |
msgid "" |
| 137 |
"I<src> points to a character string containing an IPv6 network address. The " |
| 138 |
"address is converted to a I<struct in6_addr> and copied to I<dst>, which " |
| 139 |
"must be I<sizeof(struct in6_addr)> (16) bytes (128 bits) long. The allowed " |
| 140 |
"formats for IPv6 addresses follow these rules:" |
| 141 |
msgstr "" |
| 142 |
|
| 143 |
#. type: IP |
| 144 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 145 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 146 |
#, no-wrap |
| 147 |
msgid "\\[bu]" |
| 148 |
msgstr "" |
| 149 |
|
| 150 |
#. type: Plain text |
| 151 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 152 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 153 |
msgid "" |
| 154 |
"The preferred format is I<x:x:x:x:x:x:x:x>. This form consists of eight " |
| 155 |
"hexadecimal numbers, each of which expresses a 16-bit value (i.e., each I<x> " |
| 156 |
"can be up to 4 hex digits)." |
| 157 |
msgstr "" |
| 158 |
|
| 159 |
#. type: Plain text |
| 160 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 161 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 162 |
msgid "" |
| 163 |
"A series of contiguous zero values in the preferred format can be " |
| 164 |
"abbreviated to I<::>. Only one instance of I<::> can occur in an address. " |
| 165 |
"For example, the loopback address I<0:0:0:0:0:0:0:1> can be abbreviated as " |
| 166 |
"I<::1>. The wildcard address, consisting of all zeros, can be written as " |
| 167 |
"I<::>." |
| 168 |
msgstr "" |
| 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 |
msgid "" |
| 174 |
"An alternate format is useful for expressing IPv4-mapped IPv6 addresses. " |
| 175 |
"This form is written as I<x:x:x:x:x:x:d.d.d.d>, where the six leading I<x>s " |
| 176 |
"are hexadecimal values that define the six most-significant 16-bit pieces of " |
| 177 |
"the address (i.e., 96 bits), and the I<d>s express a value in dotted-decimal " |
| 178 |
"notation that defines the least significant 32 bits of the address. An " |
| 179 |
"example of such an address is I<::FFFF:204.152.189.116>." |
| 180 |
msgstr "" |
| 181 |
|
| 182 |
#. type: Plain text |
| 183 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 184 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 185 |
msgid "" |
| 186 |
"See RFC 2373 for further details on the representation of IPv6 addresses." |
| 187 |
msgstr "" |
| 188 |
|
| 189 |
#. type: SH |
| 190 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 191 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 192 |
#, no-wrap |
| 193 |
msgid "RETURN VALUE" |
| 194 |
msgstr "" |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 198 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 199 |
msgid "" |
| 200 |
"B<inet_pton>() returns 1 on success (network address was successfully " |
| 201 |
"converted). 0 is returned if I<src> does not contain a character string " |
| 202 |
"representing a valid network address in the specified address family. If " |
| 203 |
"I<af> does not contain a valid address family, -1 is returned and I<errno> " |
| 204 |
"is set to B<EAFNOSUPPORT>." |
| 205 |
msgstr "" |
| 206 |
|
| 207 |
#. type: SH |
| 208 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 209 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 210 |
#, no-wrap |
| 211 |
msgid "ATTRIBUTES" |
| 212 |
msgstr "" |
| 213 |
|
| 214 |
#. type: Plain text |
| 215 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 216 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 217 |
msgid "" |
| 218 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 219 |
msgstr "" |
| 220 |
|
| 221 |
#. type: tbl table |
| 222 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 223 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 224 |
#, no-wrap |
| 225 |
msgid "Interface" |
| 226 |
msgstr "" |
| 227 |
|
| 228 |
#. type: tbl table |
| 229 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 230 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 231 |
#, no-wrap |
| 232 |
msgid "Attribute" |
| 233 |
msgstr "" |
| 234 |
|
| 235 |
#. type: tbl table |
| 236 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 237 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 238 |
#, no-wrap |
| 239 |
msgid "Value" |
| 240 |
msgstr "" |
| 241 |
|
| 242 |
#. type: tbl table |
| 243 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 244 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 245 |
#, no-wrap |
| 246 |
msgid ".na\n" |
| 247 |
msgstr "" |
| 248 |
|
| 249 |
#. type: tbl table |
| 250 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 251 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 252 |
#, no-wrap |
| 253 |
msgid ".nh\n" |
| 254 |
msgstr "" |
| 255 |
|
| 256 |
#. type: tbl table |
| 257 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 258 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 259 |
#, no-wrap |
| 260 |
msgid "B<inet_pton>()" |
| 261 |
msgstr "" |
| 262 |
|
| 263 |
#. type: tbl table |
| 264 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 265 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 266 |
#, no-wrap |
| 267 |
msgid "Thread safety" |
| 268 |
msgstr "" |
| 269 |
|
| 270 |
#. type: tbl table |
| 271 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 272 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 273 |
#, no-wrap |
| 274 |
msgid "MT-Safe locale" |
| 275 |
msgstr "" |
| 276 |
|
| 277 |
#. type: SH |
| 278 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 279 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 280 |
#, no-wrap |
| 281 |
msgid "VERSIONS" |
| 282 |
msgstr "" |
| 283 |
|
| 284 |
#. type: Plain text |
| 285 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 286 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 287 |
msgid "" |
| 288 |
"Unlike B<inet_aton>(3) and B<inet_addr>(3), B<inet_pton>() supports IPv6 " |
| 289 |
"addresses. On the other hand, B<inet_pton>() accepts only IPv4 addresses " |
| 290 |
"in dotted-decimal notation, whereas B<inet_aton>(3) and B<inet_addr>(3) " |
| 291 |
"allow the more general numbers-and-dots notation (hexadecimal and octal " |
| 292 |
"number formats, and formats that don't require all four bytes to be " |
| 293 |
"explicitly written). For an interface that handles both IPv6 addresses, and " |
| 294 |
"IPv4 addresses in numbers-and-dots notation, see B<getaddrinfo>(3)." |
| 295 |
msgstr "" |
| 296 |
|
| 297 |
#. type: SH |
| 298 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 299 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 300 |
#, no-wrap |
| 301 |
msgid "STANDARDS" |
| 302 |
msgstr "" |
| 303 |
|
| 304 |
#. type: Plain text |
| 305 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 306 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 307 |
msgid "POSIX.1-2008." |
| 308 |
msgstr "" |
| 309 |
|
| 310 |
#. type: SH |
| 311 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 312 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 313 |
#, no-wrap |
| 314 |
msgid "HISTORY" |
| 315 |
msgstr "" |
| 316 |
|
| 317 |
#. type: Plain text |
| 318 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 319 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 320 |
msgid "POSIX.1-2001." |
| 321 |
msgstr "" |
| 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 "BUGS" |
| 328 |
msgstr "" |
| 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 |
"B<AF_INET6> does not recognize IPv4 addresses. An explicit IPv4-mapped IPv6 " |
| 335 |
"address must be supplied in I<src> instead." |
| 336 |
msgstr "" |
| 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 "EXAMPLES" |
| 343 |
msgstr "" |
| 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 |
"The program below demonstrates the use of B<inet_pton>() and " |
| 350 |
"B<inet_ntop>(3). Here are some example runs:" |
| 351 |
msgstr "" |
| 352 |
|
| 353 |
#. type: Plain text |
| 354 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 355 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 356 |
#, no-wrap |
| 357 |
msgid "" |
| 358 |
"$B< ./a.out i6 0:0:0:0:0:0:0:0>\n" |
| 359 |
"::\n" |
| 360 |
"$B< ./a.out i6 1:0:0:0:0:0:0:8>\n" |
| 361 |
"1::8\n" |
| 362 |
"$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n" |
| 363 |
"::ffff:204.152.189.116\n" |
| 364 |
msgstr "" |
| 365 |
|
| 366 |
#. type: SS |
| 367 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 368 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 369 |
#, no-wrap |
| 370 |
msgid "Program source" |
| 371 |
msgstr "" |
| 372 |
|
| 373 |
#. type: Plain text |
| 374 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 375 |
#, no-wrap |
| 376 |
msgid "" |
| 377 |
"#include E<lt>arpa/inet.hE<gt>\n" |
| 378 |
"#include E<lt>stdio.hE<gt>\n" |
| 379 |
"#include E<lt>stdlib.hE<gt>\n" |
| 380 |
"#include E<lt>string.hE<gt>\n" |
| 381 |
"\\&\n" |
| 382 |
"#define streq(...) (strcmp(__VA_ARGS__) == 0)\n" |
| 383 |
"\\&\n" |
| 384 |
"int\n" |
| 385 |
"main(int argc, char *argv[])\n" |
| 386 |
"{\n" |
| 387 |
" unsigned char buf[sizeof(struct in6_addr)];\n" |
| 388 |
" int domain, s;\n" |
| 389 |
" char str[INET6_ADDRSTRLEN];\n" |
| 390 |
"\\&\n" |
| 391 |
" if (argc != 3) {\n" |
| 392 |
" fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n" |
| 393 |
" exit(EXIT_FAILURE);\n" |
| 394 |
" }\n" |
| 395 |
"\\&\n" |
| 396 |
" domain = streq(argv[1], \"i4\") ? AF_INET :\n" |
| 397 |
" streq(argv[1], \"i6\") ? AF_INET6 : atoi(argv[1]);\n" |
| 398 |
"\\&\n" |
| 399 |
" s = inet_pton(domain, argv[2], buf);\n" |
| 400 |
" if (s E<lt>= 0) {\n" |
| 401 |
" if (s == 0)\n" |
| 402 |
" fprintf(stderr, \"Not in presentation format\");\n" |
| 403 |
" else\n" |
| 404 |
" perror(\"inet_pton\");\n" |
| 405 |
" exit(EXIT_FAILURE);\n" |
| 406 |
" }\n" |
| 407 |
"\\&\n" |
| 408 |
" if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n" |
| 409 |
" perror(\"inet_ntop\");\n" |
| 410 |
" exit(EXIT_FAILURE);\n" |
| 411 |
" }\n" |
| 412 |
"\\&\n" |
| 413 |
" printf(\"%s\\[rs]n\", str);\n" |
| 414 |
"\\&\n" |
| 415 |
" exit(EXIT_SUCCESS);\n" |
| 416 |
"}\n" |
| 417 |
msgstr "" |
| 418 |
|
| 419 |
#. SRC END |
| 420 |
#. type: SH |
| 421 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 422 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 423 |
#, no-wrap |
| 424 |
msgid "SEE ALSO" |
| 425 |
msgstr "" |
| 426 |
|
| 427 |
#. type: Plain text |
| 428 |
#: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide |
| 429 |
#: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed |
| 430 |
msgid "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)" |
| 431 |
msgstr "" |
| 432 |
|
| 433 |
#. type: TH |
| 434 |
#: debian-trixie |
| 435 |
#, no-wrap |
| 436 |
msgid "2024-06-15" |
| 437 |
msgstr "" |
| 438 |
|
| 439 |
#. type: TH |
| 440 |
#: debian-trixie |
| 441 |
#, no-wrap |
| 442 |
msgid "Linux man-pages 6.9.1" |
| 443 |
msgstr "" |
| 444 |
|
| 445 |
#. type: Plain text |
| 446 |
#: debian-trixie |
| 447 |
msgid "Standard C library (I<libc>, I<-lc>)" |
| 448 |
msgstr "" |
| 449 |
|
| 450 |
#. type: Plain text |
| 451 |
#: debian-trixie fedora-44 fedora-rawhide |
| 452 |
msgid "" |
| 453 |
"I<src> points to a character string containing an IPv4 network address in " |
| 454 |
"dotted-decimal format, \"I<ddd.ddd.ddd.ddd>\", where I<ddd> is a decimal " |
| 455 |
"number of up to three digits in the range 0 to 255. The address is " |
| 456 |
"converted to a I<struct in_addr> and copied to I<dst>, which must be " |
| 457 |
"I<sizeof(struct in_addr)> (4) bytes (32 bits) long." |
| 458 |
msgstr "" |
| 459 |
|
| 460 |
#. type: Plain text |
| 461 |
#: debian-trixie fedora-44 fedora-rawhide mageia-cauldron |
| 462 |
#, no-wrap |
| 463 |
msgid "" |
| 464 |
"#include E<lt>arpa/inet.hE<gt>\n" |
| 465 |
"#include E<lt>stdio.hE<gt>\n" |
| 466 |
"#include E<lt>stdlib.hE<gt>\n" |
| 467 |
"#include E<lt>string.hE<gt>\n" |
| 468 |
"\\&\n" |
| 469 |
"int\n" |
| 470 |
"main(int argc, char *argv[])\n" |
| 471 |
"{\n" |
| 472 |
" unsigned char buf[sizeof(struct in6_addr)];\n" |
| 473 |
" int domain, s;\n" |
| 474 |
" char str[INET6_ADDRSTRLEN];\n" |
| 475 |
"\\&\n" |
| 476 |
" if (argc != 3) {\n" |
| 477 |
" fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n" |
| 478 |
" exit(EXIT_FAILURE);\n" |
| 479 |
" }\n" |
| 480 |
"\\&\n" |
| 481 |
" domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n" |
| 482 |
" (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n" |
| 483 |
"\\&\n" |
| 484 |
" s = inet_pton(domain, argv[2], buf);\n" |
| 485 |
" if (s E<lt>= 0) {\n" |
| 486 |
" if (s == 0)\n" |
| 487 |
" fprintf(stderr, \"Not in presentation format\");\n" |
| 488 |
" else\n" |
| 489 |
" perror(\"inet_pton\");\n" |
| 490 |
" exit(EXIT_FAILURE);\n" |
| 491 |
" }\n" |
| 492 |
"\\&\n" |
| 493 |
" if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n" |
| 494 |
" perror(\"inet_ntop\");\n" |
| 495 |
" exit(EXIT_FAILURE);\n" |
| 496 |
" }\n" |
| 497 |
"\\&\n" |
| 498 |
" printf(\"%s\\[rs]n\", str);\n" |
| 499 |
"\\&\n" |
| 500 |
" exit(EXIT_SUCCESS);\n" |
| 501 |
"}\n" |
| 502 |
msgstr "" |
| 503 |
|
| 504 |
#. type: TH |
| 505 |
#: fedora-44 fedora-rawhide |
| 506 |
#, no-wrap |
| 507 |
msgid "2024-07-23" |
| 508 |
msgstr "" |
| 509 |
|
| 510 |
#. type: TH |
| 511 |
#: fedora-44 fedora-rawhide |
| 512 |
#, no-wrap |
| 513 |
msgid "Linux man-pages 6.13" |
| 514 |
msgstr "" |
| 515 |
|
| 516 |
#. type: TH |
| 517 |
#: mageia-cauldron |
| 518 |
#, no-wrap |
| 519 |
msgid "2026-02-08" |
| 520 |
msgstr "" |
| 521 |
|
| 522 |
#. type: TH |
| 523 |
#: mageia-cauldron |
| 524 |
#, no-wrap |
| 525 |
msgid "Linux man-pages 6.17" |
| 526 |
msgstr "" |
| 527 |
|
| 528 |
#. type: TH |
| 529 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 530 |
#, no-wrap |
| 531 |
msgid "Linux man-pages (unreleased)" |
| 532 |
msgstr "" |