Debian Codegraph @

templates/man3/inet.3.pot

raw
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"
24 msgstr ""
25
26 #. type: TH
27 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
28 #: opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-02-08"
31 msgstr ""
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr ""
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr ""
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid ""
50 "inet_aton, inet_addr, inet_network, inet_ntoa, inet_makeaddr, inet_lnaof, "
51 "inet_netof - Internet address manipulation routines"
52 msgstr ""
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr ""
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr ""
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 "SYNOPSIS"
72 msgstr ""
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid ""
79 "B<#include E<lt>sys/socket.hE<gt>>\n"
80 "B<#include E<lt>netinet/in.hE<gt>>\n"
81 "B<#include E<lt>arpa/inet.hE<gt>>\n"
82 msgstr ""
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<int inet_aton(const char *>I<cp>B<, struct in_addr *>I<inp>B<);>\n"
89 msgstr ""
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 #, no-wrap
95 msgid ""
96 "B<in_addr_t inet_addr(const char *>I<cp>B<);>\n"
97 "B<in_addr_t inet_network(const char *>I<cp>B<);>\n"
98 msgstr ""
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 #, no-wrap
104 msgid "B<[[deprecated]] char *inet_ntoa(struct in_addr >I<in>B<);>\n"
105 msgstr ""
106
107 #. type: Plain text
108 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
109 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
110 #, no-wrap
111 msgid ""
112 "B<[[deprecated]] struct in_addr inet_makeaddr(in_addr_t >I<net>B<,>\n"
113 "B< in_addr_t >I<host>B<);>\n"
114 msgstr ""
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 #, no-wrap
120 msgid ""
121 "B<[[deprecated]] in_addr_t inet_lnaof(struct in_addr >I<in>B<);>\n"
122 "B<[[deprecated]] in_addr_t inet_netof(struct in_addr >I<in>B<);>\n"
123 msgstr ""
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid ""
129 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
130 msgstr ""
131
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 msgid "B<inet_aton>(), B<inet_ntoa>():"
136 msgstr ""
137
138 #. type: Plain text
139 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
140 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
141 #, no-wrap
142 msgid ""
143 " Since glibc 2.19:\n"
144 " _DEFAULT_SOURCE\n"
145 " In glibc up to and including 2.19:\n"
146 " _BSD_SOURCE || _BSD_SOURCE\n"
147 msgstr ""
148
149 #. type: SH
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid "DESCRIPTION"
154 msgstr ""
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 msgid ""
160 "B<inet_aton>() converts the Internet host address I<cp> from the IPv4 "
161 "numbers-and-dots notation into binary form (in network byte order) and "
162 "stores it in the structure that I<inp> points to. B<inet_aton>() returns "
163 "nonzero if the address is valid, zero if not. The address supplied in I<cp> "
164 "can have one of the following forms:"
165 msgstr ""
166
167 #. type: TP
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 #, no-wrap
171 msgid "I<a.b.c.d>"
172 msgstr ""
173
174 #. type: Plain text
175 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
176 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
177 msgid ""
178 "Each of the four numeric parts specifies a byte of the address; the bytes "
179 "are assigned in left-to-right order to produce the binary address."
180 msgstr ""
181
182 #. type: TP
183 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
184 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
185 #, no-wrap
186 msgid "I<a.b.c>"
187 msgstr ""
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid ""
193 "Parts I<a> and I<b> specify the first two bytes of the binary address. Part "
194 "I<c> is interpreted as a 16-bit value that defines the rightmost two bytes "
195 "of the binary address. This notation is suitable for specifying (outmoded) "
196 "Class B network addresses."
197 msgstr ""
198
199 #. type: TP
200 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
201 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
202 #, no-wrap
203 msgid "I<a.b>"
204 msgstr ""
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid ""
210 "Part I<a> specifies the first byte of the binary address. Part I<b> is "
211 "interpreted as a 24-bit value that defines the rightmost three bytes of the "
212 "binary address. This notation is suitable for specifying (outmoded) Class A "
213 "network addresses."
214 msgstr ""
215
216 #. type: TP
217 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
218 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
219 #, no-wrap
220 msgid "I<a>"
221 msgstr ""
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid ""
227 "The value I<a> is interpreted as a 32-bit value that is stored directly into "
228 "the binary address without any byte rearrangement."
229 msgstr ""
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "In all of the above forms, components of the dotted address can be specified "
236 "in decimal, octal (with a leading I<0>), or hexadecimal, with a leading "
237 "I<0X>). Addresses in any of these forms are collectively termed I<IPV4 "
238 "numbers-and-dots notation>. The form that uses exactly four decimal numbers "
239 "is referred to as I<IPv4 dotted-decimal notation> (or sometimes: I<IPv4 "
240 "dotted-quad notation>)."
241 msgstr ""
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid ""
247 "B<inet_aton>() returns 1 if the supplied string was successfully "
248 "interpreted, or 0 if the string is invalid (B<errno> is I<not> set on error)."
249 msgstr ""
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "The B<inet_addr>() function converts the Internet host address I<cp> from "
256 "IPv4 numbers-and-dots notation into binary data in network byte order. If "
257 "the input is invalid, B<INADDR_NONE> (usually -1) is returned. Use of this "
258 "function is problematic because -1 is a valid address (255.255.255.255). "
259 "Avoid its use in favor of B<inet_aton>(), B<inet_pton>(3), or "
260 "B<getaddrinfo>(3), which provide a cleaner way to indicate error return."
261 msgstr ""
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid ""
267 "The B<inet_network>() function converts I<cp>, a string in IPv4 numbers-and-"
268 "dots notation, into a number in host byte order suitable for use as an "
269 "Internet network address. On success, the converted address is returned. "
270 "If the input is invalid, -1 is returned."
271 msgstr ""
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 "The B<inet_ntoa>() function converts the Internet host address I<in>, given "
278 "in network byte order, to a string in IPv4 dotted-decimal notation. The "
279 "string is returned in a statically allocated buffer, which subsequent calls "
280 "will overwrite."
281 msgstr ""
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid ""
287 "The B<inet_lnaof>() function returns the local network address part of the "
288 "Internet address I<in>. The returned value is in host byte order."
289 msgstr ""
290
291 #. type: Plain text
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 msgid ""
295 "The B<inet_netof>() function returns the network number part of the "
296 "Internet address I<in>. The returned value is in host byte order."
297 msgstr ""
298
299 #. type: Plain text
300 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
301 #: opensuse-tumbleweed
302 msgid ""
303 "The B<inet_makeaddr>() function is the converse of B<inet_netof>() and "
304 "B<inet_lnaof>(). It returns an Internet host address in network byte order, "
305 "created by combining the network number.I net with the local address "
306 "I<host>, both in host byte order."
307 msgstr ""
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid ""
313 "The structure I<in_addr> as used in B<inet_ntoa>(), B<inet_makeaddr>(), "
314 "B<inet_lnaof>(), and B<inet_netof>() is defined in I<E<lt>netinet/"
315 "in.hE<gt>> as:"
316 msgstr ""
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 #, no-wrap
322 msgid ""
323 "typedef uint32_t in_addr_t;\n"
324 "\\&\n"
325 "struct in_addr {\n"
326 " in_addr_t s_addr;\n"
327 "};\n"
328 msgstr ""
329
330 #. type: SH
331 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
332 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
333 #, no-wrap
334 msgid "ATTRIBUTES"
335 msgstr ""
336
337 #. type: Plain text
338 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
339 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
340 msgid ""
341 "For an explanation of the terms used in this section, see B<attributes>(7)."
342 msgstr ""
343
344 #. type: tbl table
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid "Interface"
349 msgstr ""
350
351 #. type: tbl table
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 #, no-wrap
355 msgid "Attribute"
356 msgstr ""
357
358 #. type: tbl table
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "Value"
363 msgstr ""
364
365 #. type: tbl table
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 #, no-wrap
369 msgid ".na\n"
370 msgstr ""
371
372 #. type: tbl table
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid ".nh\n"
377 msgstr ""
378
379 #. type: tbl table
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 #, no-wrap
383 msgid ""
384 "B<inet_aton>(),\n"
385 "B<inet_addr>(),\n"
386 "B<inet_network>(),\n"
387 "B<inet_ntoa>()"
388 msgstr ""
389
390 #. type: tbl table
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "Thread safety"
395 msgstr ""
396
397 #. type: tbl table
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "MT-Safe locale"
402 msgstr ""
403
404 #. type: tbl table
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid ""
409 "B<inet_makeaddr>(),\n"
410 "B<inet_lnaof>(),\n"
411 "B<inet_netof>()"
412 msgstr ""
413
414 #. type: tbl table
415 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
416 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
417 #, no-wrap
418 msgid "MT-Safe"
419 msgstr ""
420
421 #. type: SH
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid "STANDARDS"
426 msgstr ""
427
428 #. type: TP
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 #, no-wrap
432 msgid "B<inet_addr>()"
433 msgstr ""
434
435 #. type: TQ
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 #, no-wrap
439 msgid "B<inet_ntoa>()"
440 msgstr ""
441
442 #. type: Plain text
443 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
444 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
445 msgid "POSIX.1-2008."
446 msgstr ""
447
448 #. type: TP
449 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
450 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
451 #, no-wrap
452 msgid "B<inet_aton>()"
453 msgstr ""
454
455 #. type: Plain text
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 msgid "None."
459 msgstr ""
460
461 #. type: Plain text
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 msgid "POSIX.1-2001, 4.3BSD."
465 msgstr ""
466
467 #. type: Plain text
468 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
469 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
470 msgid ""
471 "B<inet_lnaof>(), B<inet_netof>(), and B<inet_makeaddr>() are legacy "
472 "functions that assume they are dealing with I<classful network addresses>. "
473 "Classful networking divides IPv4 network addresses into host and network "
474 "components at byte boundaries, as follows:"
475 msgstr ""
476
477 #. type: TP
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 #, no-wrap
481 msgid "Class A"
482 msgstr ""
483
484 #. type: Plain text
485 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
486 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
487 msgid ""
488 "This address type is indicated by the value 0 in the most significant bit of "
489 "the (network byte ordered) address. The network address is contained in the "
490 "most significant byte, and the host address occupies the remaining three "
491 "bytes."
492 msgstr ""
493
494 #. type: TP
495 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
496 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
497 #, no-wrap
498 msgid "Class B"
499 msgstr ""
500
501 #. type: Plain text
502 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
503 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
504 msgid ""
505 "This address type is indicated by the binary value 10 in the most "
506 "significant two bits of the address. The network address is contained in "
507 "the two most significant bytes, and the host address occupies the remaining "
508 "two bytes."
509 msgstr ""
510
511 #. type: TP
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "Class C"
516 msgstr ""
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid ""
522 "This address type is indicated by the binary value 110 in the most "
523 "significant three bits of the address. The network address is contained in "
524 "the three most significant bytes, and the host address occupies the "
525 "remaining byte."
526 msgstr ""
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid ""
532 "Classful network addresses are now obsolete, having been superseded by "
533 "Classless Inter-Domain Routing (CIDR), which divides addresses into network "
534 "and host components at arbitrary bit (rather than byte) boundaries."
535 msgstr ""
536
537 #. type: SH
538 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
539 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
540 #, no-wrap
541 msgid "NOTES"
542 msgstr ""
543
544 #. type: Plain text
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 msgid ""
548 "On x86 architectures, the host byte order is Least Significant Byte first "
549 "(little endian), whereas the network byte order, as used on the Internet, is "
550 "Most Significant Byte first (big endian)."
551 msgstr ""
552
553 #. type: SH
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 #, no-wrap
557 msgid "EXAMPLES"
558 msgstr ""
559
560 #. type: Plain text
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 msgid ""
564 "An example of the use of B<inet_aton>() and B<inet_ntoa>() is shown "
565 "below. Here are some example runs:"
566 msgstr ""
567
568 #. type: Plain text
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 #, no-wrap
572 msgid ""
573 "$B< ./a.out 226.000.000.037> # Last byte is in octal\n"
574 "226.0.0.31\n"
575 "$B< ./a.out 0x7f.1 > # First byte is in hex\n"
576 "127.0.0.1\n"
577 msgstr ""
578
579 #. type: SS
580 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
581 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
582 #, no-wrap
583 msgid "Program source"
584 msgstr ""
585
586 #. type: Plain text
587 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
588 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
589 #, no-wrap
590 msgid ""
591 "#define _DEFAULT_SOURCE\n"
592 "#include E<lt>arpa/inet.hE<gt>\n"
593 "#include E<lt>stdio.hE<gt>\n"
594 "#include E<lt>stdlib.hE<gt>\n"
595 "\\&\n"
596 "int\n"
597 "main(int argc, char *argv[])\n"
598 "{\n"
599 " struct in_addr addr;\n"
600 "\\&\n"
601 " if (argc != 2) {\n"
602 " fprintf(stderr, \"%s E<lt>dotted-addressE<gt>\\[rs]n\", argv[0]);\n"
603 " exit(EXIT_FAILURE);\n"
604 " }\n"
605 "\\&\n"
606 " if (inet_aton(argv[1], &addr) == 0) {\n"
607 " fprintf(stderr, \"Invalid address\\[rs]n\");\n"
608 " exit(EXIT_FAILURE);\n"
609 " }\n"
610 "\\&\n"
611 " printf(\"%s\\[rs]n\", inet_ntoa(addr));\n"
612 " exit(EXIT_SUCCESS);\n"
613 "}\n"
614 msgstr ""
615
616 #. SRC END
617 #. type: SH
618 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
619 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
620 #, no-wrap
621 msgid "SEE ALSO"
622 msgstr ""
623
624 #. type: Plain text
625 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
626 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
627 msgid ""
628 "B<byteorder>(3), B<getaddrinfo>(3), B<gethostbyname>(3), B<getnameinfo>(3), "
629 "B<getnetent>(3), B<inet_net_pton>(3), B<inet_ntop>(3), B<inet_pton>(3), "
630 "B<hosts>(5), B<networks>(5)"
631 msgstr ""
632
633 #. type: TH
634 #: debian-trixie
635 #, no-wrap
636 msgid "2024-06-15"
637 msgstr ""
638
639 #. type: TH
640 #: debian-trixie
641 #, no-wrap
642 msgid "Linux man-pages 6.9.1"
643 msgstr ""
644
645 #. type: Plain text
646 #: debian-trixie
647 msgid "Standard C library (I<libc>, I<-lc>)"
648 msgstr ""
649
650 #. type: Plain text
651 #: debian-trixie fedora-44 fedora-rawhide
652 msgid ""
653 "The B<inet_makeaddr>() function is the converse of B<inet_netof>() and "
654 "B<inet_lnaof>(). It returns an Internet host address in network byte order, "
655 "created by combining the network number I<net> with the local address "
656 "I<host>, both in host byte order."
657 msgstr ""
658
659 #. type: TH
660 #: fedora-44 fedora-rawhide
661 #, no-wrap
662 msgid "2024-07-23"
663 msgstr ""
664
665 #. type: TH
666 #: fedora-44 fedora-rawhide
667 #, no-wrap
668 msgid "Linux man-pages 6.13"
669 msgstr ""
670
671 #. type: TH
672 #: mageia-cauldron
673 #, no-wrap
674 msgid "Linux man-pages 6.17"
675 msgstr ""
676
677 #. type: TH
678 #: opensuse-leap-16-1 opensuse-tumbleweed
679 #, no-wrap
680 msgid "Linux man-pages (unreleased)"
681 msgstr ""