Debian Codegraph @

po/ro/man3/inet_pton.3.po

raw
1 # Romanian translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # Remus-Gabriel Chelu <[email protected]>, 2023, 2024, 2025, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.20.0\n"
8 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
9 "PO-Revision-Date: 2026-05-07 01:09+0200\n"
10 "Last-Translator: Remus-Gabriel Chelu <[email protected]>\n"
11 "Language-Team: Romanian <[email protected]>\n"
12 "Language: ro\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=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < "
17 "20)) ? 1 : 2;\n"
18 "X-Generator: Poedit 3.8\n"
19
20 #. type: TH
21 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
22 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
23 #, no-wrap
24 msgid "inet_pton"
25 msgstr "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 februarie 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "Pagini de manual de Linux 6.18"
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 "NUME"
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 "inet_pton - convert IPv4 and IPv6 addresses from text to binary form"
50 msgstr ""
51 "inet_pton - convertește adresele IPv4 și IPv6 din format text în format binar"
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 C standard (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 #, no-wrap
84 msgid "B<int inet_pton(int >I<af>B<, const char *restrict >I<src>B<, void *restrict >I<dst>B<);>\n"
85 msgstr "B<int inet_pton(int >I<af>B<, const char *restrict >I<src>B<, void *restrict >I<dst>B<);>\n"
86
87 #. type: SH
88 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
89 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
90 #, no-wrap
91 msgid "DESCRIPTION"
92 msgstr "DESCRIERE"
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 msgid ""
98 "This function converts the character string I<src> into a network address "
99 "structure in the I<af> address family, then copies the network address "
100 "structure to I<dst>. The I<af> argument must be either B<AF_INET> or "
101 "B<AF_INET6>. I<dst> is written in network byte order."
102 msgstr ""
103 "Această funcție convertește șirul de caractere I<src> într-o structură de "
104 "adrese de rețea din familia de adrese I<af>, apoi copiază structura de "
105 "adrese de rețea în I<dst>. Argumentul I<af> trebuie să fie fie B<AF_INET> "
106 "sau B<AF_INET6>. I<dst> este scris în ordinea octeților rețelei."
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 "The following address families are currently supported:"
112 msgstr "În prezent, sunt acceptate următoarele familii de adrese:"
113
114 #. type: TP
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 #, no-wrap
118 msgid "B<AF_INET>"
119 msgstr "B<AF_INET>"
120
121 #. type: Plain text
122 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
123 #: opensuse-tumbleweed
124 msgid ""
125 "I<src> points to a character string containing an IPv4 network address in "
126 "dotted-decimal format, \\[dq]I<ddd.ddd.ddd.ddd>\\[dq], where I<ddd> is a "
127 "decimal number of up to three digits in the range 0 to 255. The address is "
128 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
129 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
130 msgstr ""
131 "I<src> indică un șir de caractere care conține o adresă de rețea IPv4 în "
132 "format zecimal punctat, „I<ddd.ddd.ddd.ddd.ddd>”, unde I<ddd> este un număr "
133 "zecimal de până la trei cifre în intervalul 0-255. Adresa este convertită "
134 "într-o structură I<struct in_addr> și copiată în I<dst>, care trebuie să "
135 "aibă o lungime de I<sizeof(struct in_addr)> (4) octeți (32 de biți)."
136
137 #. type: TP
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, no-wrap
141 msgid "B<AF_INET6>"
142 msgstr "B<AF_INET6>"
143
144 #. type: Plain text
145 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
146 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
147 msgid ""
148 "I<src> points to a character string containing an IPv6 network address. The "
149 "address is converted to a I<struct in6_addr> and copied to I<dst>, which "
150 "must be I<sizeof(struct in6_addr)> (16) bytes (128 bits) long. The allowed "
151 "formats for IPv6 addresses follow these rules:"
152 msgstr ""
153 "I<src> indică un șir de caractere care conține o adresă de rețea IPv6. "
154 "Adresa este convertită într-o structură I<struct in6_addr> și copiată în "
155 "I<dst>, care trebuie să aibă o lungime de I<sizeof(struct in6_addr)> (16) "
156 "octeți (128 de biți). Formatele permise pentru adresele IPv6 respectă "
157 "următoarele reguli:"
158
159 #. type: IP
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 #, no-wrap
163 msgid "\\[bu]"
164 msgstr "\\[bu]"
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 "The preferred format is I<x:x:x:x:x:x:x:x>. This form consists of eight "
171 "hexadecimal numbers, each of which expresses a 16-bit value (i.e., each I<x> "
172 "can be up to 4 hex digits)."
173 msgstr ""
174 "Formatul preferat este I<x:x:x:x:x:x:x:x>. Acest format este format din opt "
175 "numere hexazecimale, fiecare dintre acestea exprimând o valoare pe 16 biți "
176 "(adică fiecare I<x> poate avea până la 4 cifre hexazecimale)."
177
178 #. type: Plain text
179 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
180 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
181 msgid ""
182 "A series of contiguous zero values in the preferred format can be "
183 "abbreviated to I<::>. Only one instance of I<::> can occur in an address. "
184 "For example, the loopback address I<0:0:0:0:0:0:0:1> can be abbreviated as "
185 "I<::1>. The wildcard address, consisting of all zeros, can be written as "
186 "I<::>."
187 msgstr ""
188 "O serie de valori zero contigue în formatul preferat poate fi prescurtată "
189 "I<::>. Într-o adresă nu poate apărea decât un singur element I<::>. De "
190 "exemplu, adresa loopback I<0:0:0:0:0:0:0:1> poate fi abreviată ca I<::1>. "
191 "Adresa „joker”, formată toată din zerouri, poate fi scrisă ca I<::>."
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid ""
197 "An alternate format is useful for expressing IPv4-mapped IPv6 addresses. "
198 "This form is written as I<x:x:x:x:x:x:d.d.d.d>, where the six leading I<x>s "
199 "are hexadecimal values that define the six most-significant 16-bit pieces of "
200 "the address (i.e., 96 bits), and the I<d>s express a value in dotted-decimal "
201 "notation that defines the least significant 32 bits of the address. An "
202 "example of such an address is I<::FFFF:204.152.189.116>."
203 msgstr ""
204 "Un format alternativ este util pentru exprimarea adreselor IPv4 transpuse în "
205 "adrese IPv6. Acest format se scrie ca I<x:x:x:x:x:x:d.d.d.d>, unde cele șase "
206 "I<x> din față sunt valori hexazecimale care definesc cele mai semnificative "
207 "șase părți de 16 biți ale adresei (adică 96 de biți), iar I<d> exprimă o "
208 "valoare în notație zecimală punctată care definește cei mai puțin "
209 "semnificativi 32 de biți ai adresei. Un exemplu de astfel de adresă este "
210 "I<::FFFF:204.152.189.116>."
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "See RFC 2373 for further details on the representation of IPv6 addresses."
217 msgstr ""
218 "A se vedea RFC 2373 pentru detalii suplimentare privind reprezentarea "
219 "adreselor IPv6."
220
221 #. type: SH
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid "RETURN VALUE"
226 msgstr "VALOAREA RETURNATĂ"
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "B<inet_pton>() returns 1 on success (network address was successfully "
233 "converted). 0 is returned if I<src> does not contain a character string "
234 "representing a valid network address in the specified address family. If "
235 "I<af> does not contain a valid address family, -1 is returned and I<errno> "
236 "is set to B<EAFNOSUPPORT>."
237 msgstr ""
238 "B<inet_pton>() returnează 1 în caz de succes (adresa de rețea a fost "
239 "convertită cu succes). Se returnează 0 dacă I<src> nu conține un șir de "
240 "caractere care să reprezinte o adresă de rețea validă în familia de adrese "
241 "specificată. Dacă I<af> nu conține o familie de adrese validă, se returnează "
242 "-1, iar I<errno> este configurată la B<EAFNOSUPPORT>."
243
244 #. type: SH
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 #, no-wrap
248 msgid "ATTRIBUTES"
249 msgstr "ATRIBUTE"
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 "For an explanation of the terms used in this section, see B<attributes>(7)."
256 msgstr ""
257 "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea "
258 "B<attributes>(7)."
259
260 #. type: tbl table
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "Interface"
265 msgstr "Interfață"
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 "Attribute"
272 msgstr "Atribut"
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 "Value"
279 msgstr "Valoare"
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 ".na\n"
286 msgstr ".na\n"
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 ".nh\n"
293 msgstr ".nh\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 "B<inet_pton>()"
300 msgstr "B<inet_pton>()"
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 "Thread safety"
307 msgstr "Siguranța firelor"
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 "MT-Safe locale"
314 msgstr "MT-Safe locale"
315
316 #. type: SH
317 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
318 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
319 #, no-wrap
320 msgid "VERSIONS"
321 msgstr "VERSIUNI"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "Unlike B<inet_aton>(3) and B<inet_addr>(3), B<inet_pton>() supports IPv6 "
328 "addresses. On the other hand, B<inet_pton>() accepts only IPv4 addresses "
329 "in dotted-decimal notation, whereas B<inet_aton>(3) and B<inet_addr>(3) "
330 "allow the more general numbers-and-dots notation (hexadecimal and octal "
331 "number formats, and formats that don't require all four bytes to be "
332 "explicitly written). For an interface that handles both IPv6 addresses, and "
333 "IPv4 addresses in numbers-and-dots notation, see B<getaddrinfo>(3)."
334 msgstr ""
335 "Spre deosebire de B<inet_aton>(3) și B<inet_addr>(3), B<inet_pton>() acceptă "
336 "adrese IPv6. Pe de altă parte, B<inet_pton>() acceptă numai adrese IPv4 în "
337 "notație zecimală punctată, în timp ce B<inet_aton>(3) și B<inet_addr>(3) "
338 "acceptă notația mai generală numere și puncte (formate de numere "
339 "hexazecimale și octale și formate care nu necesită scrierea explicită a "
340 "tuturor celor patru octeți). Pentru o interfață care gestionează atât adrese "
341 "IPv6, cât și adrese IPv4 în notație numere și puncte, a se vedea "
342 "B<getaddrinfo>(3)."
343
344 #. type: SH
345 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
346 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
347 #, no-wrap
348 msgid "STANDARDS"
349 msgstr "STANDARDE"
350
351 #. type: Plain text
352 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
353 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
354 msgid "POSIX.1-2008."
355 msgstr "POSIX.1-2008."
356
357 #. type: SH
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 #, no-wrap
361 msgid "HISTORY"
362 msgstr "ISTORIC"
363
364 #. type: Plain text
365 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
366 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
367 msgid "POSIX.1-2001."
368 msgstr "POSIX.1-2001."
369
370 #. type: SH
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 #, no-wrap
374 msgid "BUGS"
375 msgstr "ERORI"
376
377 #. type: Plain text
378 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
379 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
380 msgid ""
381 "B<AF_INET6> does not recognize IPv4 addresses. An explicit IPv4-mapped IPv6 "
382 "address must be supplied in I<src> instead."
383 msgstr ""
384 "B<AF_INET6> nu recunoaște adresele IPv4. În schimb, în I<src> trebuie "
385 "furnizată o adresă IPv4 explicită, care să fie transpusă într-o adresă IPv6."
386
387 #. type: SH
388 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
389 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
390 #, no-wrap
391 msgid "EXAMPLES"
392 msgstr "EXEMPLE"
393
394 #. type: Plain text
395 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
396 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
397 msgid ""
398 "The program below demonstrates the use of B<inet_pton>() and "
399 "B<inet_ntop>(3). Here are some example runs:"
400 msgstr ""
401 "Programul de mai jos demonstrează utilizarea B<inet_pton>() și "
402 "B<inet_ntop>(3). Iată câteva exemple de execuție:"
403
404 #. type: Plain text
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< ./a.out i6 0:0:0:0:0:0:0:0>\n"
410 "::\n"
411 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
412 "1::8\n"
413 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
414 "::ffff:204.152.189.116\n"
415 msgstr ""
416 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
417 "::\n"
418 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
419 "1::8\n"
420 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
421 "::ffff:204.152.189.116\n"
422
423 #. type: SS
424 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
425 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
426 #, no-wrap
427 msgid "Program source"
428 msgstr "Sursa programului"
429
430 #. type: Plain text
431 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
432 #, no-wrap
433 msgid ""
434 "#include E<lt>arpa/inet.hE<gt>\n"
435 "#include E<lt>stdio.hE<gt>\n"
436 "#include E<lt>stdlib.hE<gt>\n"
437 "#include E<lt>string.hE<gt>\n"
438 "\\&\n"
439 "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n"
440 "\\&\n"
441 "int\n"
442 "main(int argc, char *argv[])\n"
443 "{\n"
444 " unsigned char buf[sizeof(struct in6_addr)];\n"
445 " int domain, s;\n"
446 " char str[INET6_ADDRSTRLEN];\n"
447 "\\&\n"
448 " if (argc != 3) {\n"
449 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
450 " exit(EXIT_FAILURE);\n"
451 " }\n"
452 "\\&\n"
453 " domain = streq(argv[1], \"i4\") ? AF_INET :\n"
454 " streq(argv[1], \"i6\") ? AF_INET6 : atoi(argv[1]);\n"
455 "\\&\n"
456 " s = inet_pton(domain, argv[2], buf);\n"
457 " if (s E<lt>= 0) {\n"
458 " if (s == 0)\n"
459 " fprintf(stderr, \"Not in presentation format\");\n"
460 " else\n"
461 " perror(\"inet_pton\");\n"
462 " exit(EXIT_FAILURE);\n"
463 " }\n"
464 "\\&\n"
465 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
466 " perror(\"inet_ntop\");\n"
467 " exit(EXIT_FAILURE);\n"
468 " }\n"
469 "\\&\n"
470 " printf(\"%s\\[rs]n\", str);\n"
471 "\\&\n"
472 " exit(EXIT_SUCCESS);\n"
473 "}\n"
474 msgstr ""
475 "#include E<lt>arpa/inet.hE<gt>\n"
476 "#include E<lt>stdio.hE<gt>\n"
477 "#include E<lt>stdlib.hE<gt>\n"
478 "#include E<lt>string.hE<gt>\n"
479 "\\&\n"
480 "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n"
481 "\\&\n"
482 "int\n"
483 "main(int argc, char *argv[])\n"
484 "{\n"
485 " unsigned char buf[sizeof(struct in6_addr)];\n"
486 " int domain, s;\n"
487 " char str[INET6_ADDRSTRLEN];\n"
488 "\\&\n"
489 " if (argc != 3) {\n"
490 " fprintf(stderr, \"Utilizare: %s {i4|i6|E<lt>numE<gt>} șir\\[rs]n\", argv[0]);\n"
491 " exit(EXIT_FAILURE);\n"
492 " }\n"
493 "\\&\n"
494 " domain = streq(argv[1], \"i4\") ? AF_INET :\n"
495 " streq(argv[1], \"i6\") ? AF_INET6 : atoi(argv[1]);\n"
496 "\\&\n"
497 " s = inet_pton(domain, argv[2], buf);\n"
498 " if (s E<lt>= 0) {\n"
499 " if (s == 0)\n"
500 " fprintf(stderr, \"Nu este în format de prezentare\");\n"
501 " else\n"
502 " perror(\"inet_pton\");\n"
503 " exit(EXIT_FAILURE);\n"
504 " }\n"
505 "\\&\n"
506 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
507 " perror(\"inet_ntop\");\n"
508 " exit(EXIT_FAILURE);\n"
509 " }\n"
510 "\\&\n"
511 " printf(\"%s\\[rs]n\", str);\n"
512 "\\&\n"
513 " exit(EXIT_SUCCESS);\n"
514 "}\n"
515
516 #. SRC END
517 #. type: SH
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 #, no-wrap
521 msgid "SEE ALSO"
522 msgstr "CONSULTAȚI ȘI"
523
524 #. type: Plain text
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 msgid "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
528 msgstr "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
529
530 #. type: TH
531 #: debian-trixie
532 #, no-wrap
533 msgid "2024-06-15"
534 msgstr "15 iunie 2024"
535
536 #. type: TH
537 #: debian-trixie
538 #, no-wrap
539 msgid "Linux man-pages 6.9.1"
540 msgstr "Pagini de manual de Linux 6.9.1"
541
542 #. type: Plain text
543 #: debian-trixie
544 msgid "Standard C library (I<libc>, I<-lc>)"
545 msgstr "Biblioteca C standard (I<libc>, I<-lc>)"
546
547 #. type: Plain text
548 #: debian-trixie fedora-44 fedora-rawhide
549 msgid ""
550 "I<src> points to a character string containing an IPv4 network address in "
551 "dotted-decimal format, \"I<ddd.ddd.ddd.ddd>\", where I<ddd> is a decimal "
552 "number of up to three digits in the range 0 to 255. The address is "
553 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
554 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
555 msgstr ""
556 "I<src> indică un șir de caractere care conține o adresă de rețea IPv4 în "
557 "format zecimal punctat, \"I<ddd.ddd.ddd.ddd.ddd>\", unde I<ddd> este un "
558 "număr zecimal de până la trei cifre în intervalul 0-255. Adresa este "
559 "convertită într-o structură I<struct in_addr> și copiată în I<dst>, care "
560 "trebuie să aibă o lungime de I<sizeof(struct in_addr)> (4) octeți (32 de "
561 "biți)."
562
563 #. type: Plain text
564 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
565 #, no-wrap
566 msgid ""
567 "#include E<lt>arpa/inet.hE<gt>\n"
568 "#include E<lt>stdio.hE<gt>\n"
569 "#include E<lt>stdlib.hE<gt>\n"
570 "#include E<lt>string.hE<gt>\n"
571 "\\&\n"
572 "int\n"
573 "main(int argc, char *argv[])\n"
574 "{\n"
575 " unsigned char buf[sizeof(struct in6_addr)];\n"
576 " int domain, s;\n"
577 " char str[INET6_ADDRSTRLEN];\n"
578 "\\&\n"
579 " if (argc != 3) {\n"
580 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
581 " exit(EXIT_FAILURE);\n"
582 " }\n"
583 "\\&\n"
584 " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
585 " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
586 "\\&\n"
587 " s = inet_pton(domain, argv[2], buf);\n"
588 " if (s E<lt>= 0) {\n"
589 " if (s == 0)\n"
590 " fprintf(stderr, \"Not in presentation format\");\n"
591 " else\n"
592 " perror(\"inet_pton\");\n"
593 " exit(EXIT_FAILURE);\n"
594 " }\n"
595 "\\&\n"
596 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
597 " perror(\"inet_ntop\");\n"
598 " exit(EXIT_FAILURE);\n"
599 " }\n"
600 "\\&\n"
601 " printf(\"%s\\[rs]n\", str);\n"
602 "\\&\n"
603 " exit(EXIT_SUCCESS);\n"
604 "}\n"
605 msgstr ""
606 "#include E<lt>arpa/inet.hE<gt>\n"
607 "#include E<lt>stdio.hE<gt>\n"
608 "#include E<lt>stdlib.hE<gt>\n"
609 "#include E<lt>string.hE<gt>\n"
610 "\\&\n"
611 "int\n"
612 "main(int argc, char *argv[])\n"
613 "{\n"
614 " unsigned char buf[sizeof(struct in6_addr)];\n"
615 " int domain, s;\n"
616 " char str[INET6_ADDRSTRLEN];\n"
617 "\\&\n"
618 " if (argc != 3) {\n"
619 " fprintf(stderr, \"Utilizare: %s {i4|i6|E<lt>numE<gt>} șir\\[rs]n\", argv[0]);\n"
620 " exit(EXIT_FAILURE);\n"
621 " }\n"
622 "\\&\n"
623 " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
624 " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
625 "\\&\n"
626 " s = inet_pton(domain, argv[2], buf);\n"
627 " if (s E<lt>= 0) {\n"
628 " if (s == 0)\n"
629 " fprintf(stderr, \"Nu este în format de prezentare\");\n"
630 " else\n"
631 " perror(\"inet_pton\");\n"
632 " exit(EXIT_FAILURE);\n"
633 " }\n"
634 "\\&\n"
635 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
636 " perror(\"inet_ntop\");\n"
637 " exit(EXIT_FAILURE);\n"
638 " }\n"
639 "\\&\n"
640 " printf(\"%s\\[rs]n\", str);\n"
641 "\\&\n"
642 " exit(EXIT_SUCCESS);\n"
643 "}\n"
644
645 #. type: TH
646 #: fedora-44 fedora-rawhide
647 #, no-wrap
648 msgid "2024-07-23"
649 msgstr "23 iulie 2024"
650
651 #. type: TH
652 #: fedora-44 fedora-rawhide
653 #, no-wrap
654 msgid "Linux man-pages 6.13"
655 msgstr "Pagini de manual de Linux 6.13"
656
657 #. type: TH
658 #: mageia-cauldron
659 #, no-wrap
660 msgid "2026-02-08"
661 msgstr "8 februarie 2026"
662
663 #. type: TH
664 #: mageia-cauldron
665 #, no-wrap
666 msgid "Linux man-pages 6.17"
667 msgstr "Pagini de manual de Linux 6.17"
668
669 #. type: TH
670 #: opensuse-leap-16-1 opensuse-tumbleweed
671 #, no-wrap
672 msgid "Linux man-pages (unreleased)"
673 msgstr "Pagini de manual Linux (nepublicate)"