Debian Codegraph @

po/ar/man3/inet_pton.3.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:27+0200\n"
9 "PO-Revision-Date: 2026-06-02 19:25+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\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=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
17 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
18 "X-Generator: Lokalize 23.08.5\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 فبراير 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "صفحات دليل لينكس 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 "الاسم"
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 "inet_pton - تحويل عناوين IPv4 و IPv6 من نص إلى شكل ثنائي"
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr "المكتبة"
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr "موجز"
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid "B<#include E<lt>arpa/inet.hE<gt>>\n"
77 msgstr "B<#include E<lt>arpa/inet.hE<gt>>\n"
78
79 #. type: Plain text
80 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
81 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
82 #, no-wrap
83 msgid "B<int inet_pton(int >I<af>B<, const char *restrict >I<src>B<, void *restrict >I<dst>B<);>\n"
84 msgstr "B<int inet_pton(int >I<af>B<, const char *restrict >I<src>B<, void *restrict >I<dst>B<);>\n"
85
86 #. type: SH
87 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
88 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
89 #, no-wrap
90 msgid "DESCRIPTION"
91 msgstr "الوصف"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 msgid ""
97 "This function converts the character string I<src> into a network address "
98 "structure in the I<af> address family, then copies the network address "
99 "structure to I<dst>. The I<af> argument must be either B<AF_INET> or "
100 "B<AF_INET6>. I<dst> is written in network byte order."
101 msgstr ""
102 "تحوّل هذه الدالة سلسلة المحارف I<src> إلى بنية عنوان شبكة في عائلة العناوين "
103 "I<af>، ثم تنسخ بنية عنوان الشبكة إلى I<dst>. يجب أن تكون وسيطة I<af> إما "
104 "B<AF_INET> أو B<AF_INET6>. يُكتب I<dst> بترتيب البايت الشبكي."
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid "The following address families are currently supported:"
110 msgstr "عناوين العائلات التالية مدعومة حالياً:"
111
112 #. type: TP
113 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
114 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
115 #, no-wrap
116 msgid "B<AF_INET>"
117 msgstr "B<AF_INET>"
118
119 #. type: Plain text
120 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
121 #: opensuse-tumbleweed
122 msgid ""
123 "I<src> points to a character string containing an IPv4 network address in "
124 "dotted-decimal format, \\[dq]I<ddd.ddd.ddd.ddd>\\[dq], where I<ddd> is a "
125 "decimal number of up to three digits in the range 0 to 255. The address is "
126 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
127 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
128 msgstr ""
129 "يشير I<src> إلى سلسلة محارف تحتوي على عنوان شبكة IPv4 بتنسيق عشري منقوط، "
130 "\\[dq]I<ddd.ddd.ddd.ddd>\\[dq]، حيث I<ddd> هو رقم عشري يصل إلى ثلاثة أرقام "
131 "في النطاق 0 إلى 255. يُحوَّل العنوان إلى I<struct in_addr> ويُنسخ إلى I<dst>، "
132 "الذي يجب أن يكون طوله I<sizeof(struct in_addr)> (4) بايت (32 بت)."
133
134 #. type: TP
135 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
136 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
137 #, no-wrap
138 msgid "B<AF_INET6>"
139 msgstr "B<AF_INET6>"
140
141 #. type: Plain text
142 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
143 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "I<src> points to a character string containing an IPv6 network address. The "
146 "address is converted to a I<struct in6_addr> and copied to I<dst>, which "
147 "must be I<sizeof(struct in6_addr)> (16) bytes (128 bits) long. The allowed "
148 "formats for IPv6 addresses follow these rules:"
149 msgstr ""
150 "يشير I<src> إلى سلسلة محارف تحتوي على عنوان شبكة IPv6. يُحوَّل العنوان إلى "
151 "I<struct in6_addr> ويُنسخ إلى I<dst>، الذي يجب أن يكون طوله I<sizeof(struct "
152 "in6_addr)> (16) بايت (128 بت). تتبع التنسيقات المسموح بها لعناوين IPv6 هذه "
153 "القواعد:"
154
155 #. type: IP
156 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
157 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
158 #, no-wrap
159 msgid "\\[bu]"
160 msgstr "\\[bu]"
161
162 #. type: Plain text
163 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
164 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
165 msgid ""
166 "The preferred format is I<x:x:x:x:x:x:x:x>. This form consists of eight "
167 "hexadecimal numbers, each of which expresses a 16-bit value (i.e., each I<x> "
168 "can be up to 4 hex digits)."
169 msgstr ""
170 "التنسيق المفضل هو I<x:x:x:x:x:x:x:x>. يتكون هذا الشكل من ثمانية أرقام ست "
171 "عشرية، كل منها يعبر عن قيمة 16 بت (أي كل I<x> يمكن أن يصل إلى 4 أرقام ست "
172 "عشرية)."
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 "A series of contiguous zero values in the preferred format can be "
179 "abbreviated to I<::>. Only one instance of I<::> can occur in an address. "
180 "For example, the loopback address I<0:0:0:0:0:0:0:1> can be abbreviated as "
181 "I<::1>. The wildcard address, consisting of all zeros, can be written as "
182 "I<::>."
183 msgstr ""
184 "يمكن اختصار سلسلة من القيم الصفرية المتجاورة في التنسيق المفضل إلى I<::>. "
185 "يمكن أن يحدث مثيل واحد فقط من I<::> في العنوان. على سبيل المثال، يمكن اختصار "
186 "عنوان الاسترجاع I<0:0:0:0:0:0:0:1> كـ I<::1>. يمكن كتابة عنوان البدل، المكون "
187 "من جميع الأصفار، كـ I<::>."
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 "An alternate format is useful for expressing IPv4-mapped IPv6 addresses. "
194 "This form is written as I<x:x:x:x:x:x:d.d.d.d>, where the six leading I<x>s "
195 "are hexadecimal values that define the six most-significant 16-bit pieces of "
196 "the address (i.e., 96 bits), and the I<d>s express a value in dotted-decimal "
197 "notation that defines the least significant 32 bits of the address. An "
198 "example of such an address is I<::FFFF:204.152.189.116>."
199 msgstr ""
200 "التنسيق البديل مفيد للتعبير عن عناوين IPv6 المعينة بـ IPv4. يُكتب هذا الشكل "
201 "كـ I<x:x:x:x:x:x:d.d.d.d>، حيث الستة I<x>s الرائدة هي قيم ست عشرية تحدد "
202 "الأجزاء الستة الأكثر أهمية من 16 بت من العنوان (أي 96 بت)، وتعبر I<d>s عن "
203 "قيمة بتدوين عشري منقوط تحدد أقل 32 بت أهمية من العنوان. مثال على هذا العنوان "
204 "هو I<::FFFF:204.152.189.116>."
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 "See RFC 2373 for further details on the representation of IPv6 addresses."
211 msgstr "انظر RFC 2373 لمزيد من التفاصيل حول تمثيل عناوين IPv6."
212
213 #. type: SH
214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
216 #, no-wrap
217 msgid "RETURN VALUE"
218 msgstr "قيمة الإرجاع"
219
220 #. type: Plain text
221 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
222 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
223 msgid ""
224 "B<inet_pton>() returns 1 on success (network address was successfully "
225 "converted). 0 is returned if I<src> does not contain a character string "
226 "representing a valid network address in the specified address family. If "
227 "I<af> does not contain a valid address family, -1 is returned and I<errno> "
228 "is set to B<EAFNOSUPPORT>."
229 msgstr ""
230 "تُرجع B<inet_pton>() 1 عند النجاح (تم تحويل عنوان الشبكة بنجاح). تُرجع 0 إذا "
231 "كان I<src> لا يحتوي على سلسلة محارف تمثل عنوان شبكة صالح في عائلة العنوان "
232 "المحددة. إذا كان I<af> لا يحتوي على عائلة عنوان صالحة، تُرجع -1 ويُضبط "
233 "I<errno> على B<EAFNOSUPPORT>."
234
235 #. type: SH
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 #, no-wrap
239 msgid "ATTRIBUTES"
240 msgstr "السمات"
241
242 #. type: Plain text
243 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
244 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
245 msgid ""
246 "For an explanation of the terms used in this section, see B<attributes>(7)."
247 msgstr ""
248 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
249
250 #. type: tbl table
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "Interface"
255 msgstr "الواجهة"
256
257 #. type: tbl table
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 #, no-wrap
261 msgid "Attribute"
262 msgstr "السمة"
263
264 #. type: tbl table
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 #, no-wrap
268 msgid "Value"
269 msgstr "القيمة"
270
271 #. type: tbl table
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid ".na\n"
276 msgstr ".na\n"
277
278 #. type: tbl table
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid ".nh\n"
283 msgstr ".nh\n"
284
285 #. type: tbl table
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid "B<inet_pton>()"
290 msgstr "B<inet_pton>()"
291
292 #. type: tbl table
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid "Thread safety"
297 msgstr "سلامة الخيوط"
298
299 #. type: tbl table
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid "MT-Safe locale"
304 msgstr "المنطقة (locale) آمنة لتعدد المسالك (MT-Safe)"
305
306 #. type: SH
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "VERSIONS"
311 msgstr "الإصدارات"
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 msgid ""
317 "Unlike B<inet_aton>(3) and B<inet_addr>(3), B<inet_pton>() supports IPv6 "
318 "addresses. On the other hand, B<inet_pton>() accepts only IPv4 addresses "
319 "in dotted-decimal notation, whereas B<inet_aton>(3) and B<inet_addr>(3) "
320 "allow the more general numbers-and-dots notation (hexadecimal and octal "
321 "number formats, and formats that don't require all four bytes to be "
322 "explicitly written). For an interface that handles both IPv6 addresses, and "
323 "IPv4 addresses in numbers-and-dots notation, see B<getaddrinfo>(3)."
324 msgstr ""
325 "على عكس B<inet_aton>(3) و B<inet_addr>(3)، تدعم B<inet_pton>() عناوين IPv6. "
326 "من ناحية أخرى، تقبل B<inet_pton>() فقط عناوين IPv4 بالتدوين العشري المنقوط، "
327 "بينما تسمح B<inet_aton>(3) و B<inet_addr>(3) بالتدوين الأكثر عمومية للأرقام "
328 "والنقاط (تنسيقات الأرقام الست عشرية والثمانية، والتنسيقات التي لا تتطلب "
329 "كتابة جميع البايتات الأربعة صراحة). لواجهة تتعامل مع كل من عناوين IPv6 "
330 "وعناوين IPv4 بتدوين الأرقام والنقاط، انظر B<getaddrinfo>(3)."
331
332 #. type: SH
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, no-wrap
336 msgid "STANDARDS"
337 msgstr "المعايير"
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 msgid "POSIX.1-2008."
343 msgstr "POSIX.1-2008."
344
345 #. type: SH
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 #, no-wrap
349 msgid "HISTORY"
350 msgstr "التاريخ"
351
352 #. type: Plain text
353 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
354 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
355 msgid "POSIX.1-2001."
356 msgstr "POSIX.1-2001."
357
358 #. type: SH
359 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
360 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
361 #, no-wrap
362 msgid "BUGS"
363 msgstr "العلل"
364
365 #. type: Plain text
366 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
367 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
368 msgid ""
369 "B<AF_INET6> does not recognize IPv4 addresses. An explicit IPv4-mapped IPv6 "
370 "address must be supplied in I<src> instead."
371 msgstr ""
372 "لا يتعرف B<AF_INET6> على عناوين IPv4. يجب توفير عنوان IPv6 معين بـ IPv4 صريح "
373 "في I<src> بدلاً من ذلك."
374
375 #. type: SH
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 #, no-wrap
379 msgid "EXAMPLES"
380 msgstr "أمثلة"
381
382 #. type: Plain text
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 msgid ""
386 "The program below demonstrates the use of B<inet_pton>() and "
387 "B<inet_ntop>(3). Here are some example runs:"
388 msgstr ""
389 "يوضح البرنامج أدناه استخدام B<inet_pton>() و B<inet_ntop>(3). فيما يلي بعض "
390 "الأمثلة على التشغيل:"
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 #, no-wrap
396 msgid ""
397 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
398 "::\n"
399 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
400 "1::8\n"
401 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
402 "::ffff:204.152.189.116\n"
403 msgstr ""
404 "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n"
405 "::\n"
406 "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n"
407 "1::8\n"
408 "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n"
409 "::ffff:204.152.189.116\n"
410
411 #. type: SS
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 #, no-wrap
415 msgid "Program source"
416 msgstr "مصدر البرنامج"
417
418 #. type: Plain text
419 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
420 #, no-wrap
421 msgid ""
422 "#include E<lt>arpa/inet.hE<gt>\n"
423 "#include E<lt>stdio.hE<gt>\n"
424 "#include E<lt>stdlib.hE<gt>\n"
425 "#include E<lt>string.hE<gt>\n"
426 "\\&\n"
427 "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n"
428 "\\&\n"
429 "int\n"
430 "main(int argc, char *argv[])\n"
431 "{\n"
432 " unsigned char buf[sizeof(struct in6_addr)];\n"
433 " int domain, s;\n"
434 " char str[INET6_ADDRSTRLEN];\n"
435 "\\&\n"
436 " if (argc != 3) {\n"
437 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
438 " exit(EXIT_FAILURE);\n"
439 " }\n"
440 "\\&\n"
441 " domain = streq(argv[1], \"i4\") ? AF_INET :\n"
442 " streq(argv[1], \"i6\") ? AF_INET6 : atoi(argv[1]);\n"
443 "\\&\n"
444 " s = inet_pton(domain, argv[2], buf);\n"
445 " if (s E<lt>= 0) {\n"
446 " if (s == 0)\n"
447 " fprintf(stderr, \"Not in presentation format\");\n"
448 " else\n"
449 " perror(\"inet_pton\");\n"
450 " exit(EXIT_FAILURE);\n"
451 " }\n"
452 "\\&\n"
453 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
454 " perror(\"inet_ntop\");\n"
455 " exit(EXIT_FAILURE);\n"
456 " }\n"
457 "\\&\n"
458 " printf(\"%s\\[rs]n\", str);\n"
459 "\\&\n"
460 " exit(EXIT_SUCCESS);\n"
461 "}\n"
462 msgstr ""
463 "#include E<lt>arpa/inet.hE<gt>\n"
464 "#include E<lt>stdio.hE<gt>\n"
465 "#include E<lt>stdlib.hE<gt>\n"
466 "#include E<lt>string.hE<gt>\n"
467 "\\&\n"
468 "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n"
469 "\\&\n"
470 "int\n"
471 "main(int argc, char *argv[])\n"
472 "{\n"
473 " unsigned char buf[sizeof(struct in6_addr)];\n"
474 " int domain, s;\n"
475 " char str[INET6_ADDRSTRLEN];\n"
476 "\\&\n"
477 " if (argc != 3) {\n"
478 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
479 " exit(EXIT_FAILURE);\n"
480 " }\n"
481 "\\&\n"
482 " domain = streq(argv[1], \"i4\") ? AF_INET :\n"
483 " streq(argv[1], \"i6\") ? AF_INET6 : atoi(argv[1]);\n"
484 "\\&\n"
485 " s = inet_pton(domain, argv[2], buf);\n"
486 " if (s E<lt>= 0) {\n"
487 " if (s == 0)\n"
488 " fprintf(stderr, \"Not in presentation format\");\n"
489 " else\n"
490 " perror(\"inet_pton\");\n"
491 " exit(EXIT_FAILURE);\n"
492 " }\n"
493 "\\&\n"
494 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
495 " perror(\"inet_ntop\");\n"
496 " exit(EXIT_FAILURE);\n"
497 " }\n"
498 "\\&\n"
499 " printf(\"%s\\[rs]n\", str);\n"
500 "\\&\n"
501 " exit(EXIT_SUCCESS);\n"
502 "}\n"
503
504 #. SRC END
505 #. type: SH
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 #, no-wrap
509 msgid "SEE ALSO"
510 msgstr "انظر أيضًا"
511
512 #. type: Plain text
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 msgid "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
516 msgstr "B<getaddrinfo>(3), B<inet>(3), B<inet_ntop>(3)"
517
518 #. type: TH
519 #: debian-trixie
520 #, no-wrap
521 msgid "2024-06-15"
522 msgstr "15 يونيو 2024"
523
524 #. type: TH
525 #: debian-trixie
526 #, no-wrap
527 msgid "Linux man-pages 6.9.1"
528 msgstr "صفحات دليل لينكس 6.9.1"
529
530 #. type: Plain text
531 #: debian-trixie
532 msgid "Standard C library (I<libc>, I<-lc>)"
533 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
534
535 #. type: Plain text
536 #: debian-trixie fedora-44 fedora-rawhide
537 msgid ""
538 "I<src> points to a character string containing an IPv4 network address in "
539 "dotted-decimal format, \"I<ddd.ddd.ddd.ddd>\", where I<ddd> is a decimal "
540 "number of up to three digits in the range 0 to 255. The address is "
541 "converted to a I<struct in_addr> and copied to I<dst>, which must be "
542 "I<sizeof(struct in_addr)> (4) bytes (32 bits) long."
543 msgstr ""
544 "يشير I<src> إلى سلسلة محارف تحتوي على عنوان شبكة IPv4 بتنسيق عشري منقوط، "
545 "\"I<ddd.ddd.ddd.ddd>\"، حيث I<ddd> هو رقم عشري يصل إلى ثلاثة أرقام في النطاق "
546 "0 إلى 255. يُحوَّل العنوان إلى I<struct in_addr> ويُنسخ إلى I<dst>، الذي يجب أن "
547 "يكون طوله I<sizeof(struct in_addr)> (4) بايت (32 بت)."
548
549 #. type: Plain text
550 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
551 #, no-wrap
552 msgid ""
553 "#include E<lt>arpa/inet.hE<gt>\n"
554 "#include E<lt>stdio.hE<gt>\n"
555 "#include E<lt>stdlib.hE<gt>\n"
556 "#include E<lt>string.hE<gt>\n"
557 "\\&\n"
558 "int\n"
559 "main(int argc, char *argv[])\n"
560 "{\n"
561 " unsigned char buf[sizeof(struct in6_addr)];\n"
562 " int domain, s;\n"
563 " char str[INET6_ADDRSTRLEN];\n"
564 "\\&\n"
565 " if (argc != 3) {\n"
566 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
567 " exit(EXIT_FAILURE);\n"
568 " }\n"
569 "\\&\n"
570 " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
571 " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
572 "\\&\n"
573 " s = inet_pton(domain, argv[2], buf);\n"
574 " if (s E<lt>= 0) {\n"
575 " if (s == 0)\n"
576 " fprintf(stderr, \"Not in presentation format\");\n"
577 " else\n"
578 " perror(\"inet_pton\");\n"
579 " exit(EXIT_FAILURE);\n"
580 " }\n"
581 "\\&\n"
582 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
583 " perror(\"inet_ntop\");\n"
584 " exit(EXIT_FAILURE);\n"
585 " }\n"
586 "\\&\n"
587 " printf(\"%s\\[rs]n\", str);\n"
588 "\\&\n"
589 " exit(EXIT_SUCCESS);\n"
590 "}\n"
591 msgstr ""
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 "#include E<lt>string.hE<gt>\n"
596 "\\&\n"
597 "int\n"
598 "main(int argc, char *argv[])\n"
599 "{\n"
600 " unsigned char buf[sizeof(struct in6_addr)];\n"
601 " int domain, s;\n"
602 " char str[INET6_ADDRSTRLEN];\n"
603 "\\&\n"
604 " if (argc != 3) {\n"
605 " fprintf(stderr, \"Usage: %s {i4|i6|E<lt>numE<gt>} string\\[rs]n\", argv[0]);\n"
606 " exit(EXIT_FAILURE);\n"
607 " }\n"
608 "\\&\n"
609 " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n"
610 " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n"
611 "\\&\n"
612 " s = inet_pton(domain, argv[2], buf);\n"
613 " if (s E<lt>= 0) {\n"
614 " if (s == 0)\n"
615 " fprintf(stderr, \"Not in presentation format\");\n"
616 " else\n"
617 " perror(\"inet_pton\");\n"
618 " exit(EXIT_FAILURE);\n"
619 " }\n"
620 "\\&\n"
621 " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n"
622 " perror(\"inet_ntop\");\n"
623 " exit(EXIT_FAILURE);\n"
624 " }\n"
625 "\\&\n"
626 " printf(\"%s\\[rs]n\", str);\n"
627 "\\&\n"
628 " exit(EXIT_SUCCESS);\n"
629 "}\n"
630
631 #. type: TH
632 #: fedora-44 fedora-rawhide
633 #, no-wrap
634 msgid "2024-07-23"
635 msgstr "23 يوليو 2024"
636
637 #. type: TH
638 #: fedora-44 fedora-rawhide
639 #, no-wrap
640 msgid "Linux man-pages 6.13"
641 msgstr "صفحات دليل لينكس 6.13"
642
643 #. type: TH
644 #: mageia-cauldron
645 #, no-wrap
646 msgid "2026-02-08"
647 msgstr "8 فبراير 2026"
648
649 #. type: TH
650 #: mageia-cauldron
651 #, no-wrap
652 msgid "Linux man-pages 6.17"
653 msgstr "صفحات دليل لينكس 6.17"
654
655 #. type: TH
656 #: opensuse-leap-16-1 opensuse-tumbleweed
657 #, no-wrap
658 msgid "Linux man-pages (unreleased)"
659 msgstr "صفحات دليل لينكس (لم تصدر بعد)"