# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:27+0200\n" "PO-Revision-Date: 2026-06-02 19:25+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "inet_pton" msgstr "inet_pton" #. type: TH #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "2026-02-22" msgstr "22 فبراير 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "inet_pton - convert IPv4 and IPv6 addresses from text to binary form" msgstr "inet_pton - تحويل عناوين IPv4 و IPv6 من نص إلى شكل ثنائي" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "المكتبة" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "مكتبة سي المعيارية (I،\\ I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Earpa/inet.hE>\n" msgstr "B<#include Earpa/inet.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BIB<, const char *restrict >IB<, void *restrict >IB<);>\n" msgstr "BIB<, const char *restrict >IB<, void *restrict >IB<);>\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "This function converts the character string I into a network address " "structure in the I address family, then copies the network address " "structure to I. The I argument must be either B or " "B. I is written in network byte order." msgstr "" "تحوّل هذه الدالة سلسلة المحارف I إلى بنية عنوان شبكة في عائلة العناوين " "I، ثم تنسخ بنية عنوان الشبكة إلى I. يجب أن تكون وسيطة I إما " "B أو B. يُكتب I بترتيب البايت الشبكي." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The following address families are currently supported:" msgstr "عناوين العائلات التالية مدعومة حالياً:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "I points to a character string containing an IPv4 network address in " "dotted-decimal format, \\[dq]I\\[dq], where I is a " "decimal number of up to three digits in the range 0 to 255. The address is " "converted to a I and copied to I, which must be " "I (4) bytes (32 bits) long." msgstr "" "يشير I إلى سلسلة محارف تحتوي على عنوان شبكة IPv4 بتنسيق عشري منقوط، " "\\[dq]I\\[dq]، حيث I هو رقم عشري يصل إلى ثلاثة أرقام " "في النطاق 0 إلى 255. يُحوَّل العنوان إلى I ويُنسخ إلى I، " "الذي يجب أن يكون طوله I (4) بايت (32 بت)." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I points to a character string containing an IPv6 network address. The " "address is converted to a I and copied to I, which " "must be I (16) bytes (128 bits) long. The allowed " "formats for IPv6 addresses follow these rules:" msgstr "" "يشير I إلى سلسلة محارف تحتوي على عنوان شبكة IPv6. يُحوَّل العنوان إلى " "I ويُنسخ إلى I، الذي يجب أن يكون طوله I (16) بايت (128 بت). تتبع التنسيقات المسموح بها لعناوين IPv6 هذه " "القواعد:" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "\\[bu]" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The preferred format is I. This form consists of eight " "hexadecimal numbers, each of which expresses a 16-bit value (i.e., each I " "can be up to 4 hex digits)." msgstr "" "التنسيق المفضل هو I. يتكون هذا الشكل من ثمانية أرقام ست " "عشرية، كل منها يعبر عن قيمة 16 بت (أي كل I يمكن أن يصل إلى 4 أرقام ست " "عشرية)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A series of contiguous zero values in the preferred format can be " "abbreviated to I<::>. Only one instance of I<::> can occur in an address. " "For example, the loopback address I<0:0:0:0:0:0:0:1> can be abbreviated as " "I<::1>. The wildcard address, consisting of all zeros, can be written as " "I<::>." msgstr "" "يمكن اختصار سلسلة من القيم الصفرية المتجاورة في التنسيق المفضل إلى I<::>. " "يمكن أن يحدث مثيل واحد فقط من I<::> في العنوان. على سبيل المثال، يمكن اختصار " "عنوان الاسترجاع I<0:0:0:0:0:0:0:1> كـ I<::1>. يمكن كتابة عنوان البدل، المكون " "من جميع الأصفار، كـ I<::>." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "An alternate format is useful for expressing IPv4-mapped IPv6 addresses. " "This form is written as I, where the six leading Is " "are hexadecimal values that define the six most-significant 16-bit pieces of " "the address (i.e., 96 bits), and the Is express a value in dotted-decimal " "notation that defines the least significant 32 bits of the address. An " "example of such an address is I<::FFFF:204.152.189.116>." msgstr "" "التنسيق البديل مفيد للتعبير عن عناوين IPv6 المعينة بـ IPv4. يُكتب هذا الشكل " "كـ I، حيث الستة Is الرائدة هي قيم ست عشرية تحدد " "الأجزاء الستة الأكثر أهمية من 16 بت من العنوان (أي 96 بت)، وتعبر Is عن " "قيمة بتدوين عشري منقوط تحدد أقل 32 بت أهمية من العنوان. مثال على هذا العنوان " "هو I<::FFFF:204.152.189.116>." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "See RFC 2373 for further details on the representation of IPv6 addresses." msgstr "انظر RFC 2373 لمزيد من التفاصيل حول تمثيل عناوين IPv6." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "قيمة الإرجاع" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B() returns 1 on success (network address was successfully " "converted). 0 is returned if I does not contain a character string " "representing a valid network address in the specified address family. If " "I does not contain a valid address family, -1 is returned and I " "is set to B." msgstr "" "تُرجع B() 1 عند النجاح (تم تحويل عنوان الشبكة بنجاح). تُرجع 0 إذا " "كان I لا يحتوي على سلسلة محارف تمثل عنوان شبكة صالح في عائلة العنوان " "المحددة. إذا كان I لا يحتوي على عائلة عنوان صالحة، تُرجع -1 ويُضبط " "I على B." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "السمات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B(7)." #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "الواجهة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "السمة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "القيمة" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr ".na\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr ".nh\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "سلامة الخيوط" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Safe locale" msgstr "المنطقة (locale) آمنة لتعدد المسالك (MT-Safe)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "VERSIONS" msgstr "الإصدارات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Unlike B(3) and B(3), B() supports IPv6 " "addresses. On the other hand, B() accepts only IPv4 addresses " "in dotted-decimal notation, whereas B(3) and B(3) " "allow the more general numbers-and-dots notation (hexadecimal and octal " "number formats, and formats that don't require all four bytes to be " "explicitly written). For an interface that handles both IPv6 addresses, and " "IPv4 addresses in numbers-and-dots notation, see B(3)." msgstr "" "على عكس B(3) و B(3)، تدعم B() عناوين IPv6. " "من ناحية أخرى، تقبل B() فقط عناوين IPv4 بالتدوين العشري المنقوط، " "بينما تسمح B(3) و B(3) بالتدوين الأكثر عمومية للأرقام " "والنقاط (تنسيقات الأرقام الست عشرية والثمانية، والتنسيقات التي لا تتطلب " "كتابة جميع البايتات الأربعة صراحة). لواجهة تتعامل مع كل من عناوين IPv6 " "وعناوين IPv4 بتدوين الأرقام والنقاط، انظر B(3)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2008." msgstr "POSIX.1-2008." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2001." msgstr "POSIX.1-2001." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BUGS" msgstr "العلل" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B does not recognize IPv4 addresses. An explicit IPv4-mapped IPv6 " "address must be supplied in I instead." msgstr "" "لا يتعرف B على عناوين IPv4. يجب توفير عنوان IPv6 معين بـ IPv4 صريح " "في I بدلاً من ذلك." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The program below demonstrates the use of B() and " "B(3). Here are some example runs:" msgstr "" "يوضح البرنامج أدناه استخدام B() و B(3). فيما يلي بعض " "الأمثلة على التشغيل:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n" "::\n" "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n" "1::8\n" "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n" "::ffff:204.152.189.116\n" msgstr "" "$B< ./a.out i6 0:0:0:0:0:0:0:0>\n" "::\n" "$B< ./a.out i6 1:0:0:0:0:0:0:8>\n" "1::8\n" "$B< ./a.out i6 0:0:0:0:0:FFFF:204.152.189.116>\n" "::ffff:204.152.189.116\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "مصدر البرنامج" #. type: Plain text #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#include Earpa/inet.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " unsigned char buf[sizeof(struct in6_addr)];\n" " int domain, s;\n" " char str[INET6_ADDRSTRLEN];\n" "\\&\n" " if (argc != 3) {\n" " fprintf(stderr, \"Usage: %s {i4|i6|EnumE} string\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " domain = streq(argv[1], \"i4\") ? AF_INET :\n" " streq(argv[1], \"i6\") ? AF_INET6 : atoi(argv[1]);\n" "\\&\n" " s = inet_pton(domain, argv[2], buf);\n" " if (s E= 0) {\n" " if (s == 0)\n" " fprintf(stderr, \"Not in presentation format\");\n" " else\n" " perror(\"inet_pton\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n" " perror(\"inet_ntop\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"%s\\[rs]n\", str);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Earpa/inet.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "#define streq(...) (strcmp(__VA_ARGS__) == 0)\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " unsigned char buf[sizeof(struct in6_addr)];\n" " int domain, s;\n" " char str[INET6_ADDRSTRLEN];\n" "\\&\n" " if (argc != 3) {\n" " fprintf(stderr, \"Usage: %s {i4|i6|EnumE} string\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " domain = streq(argv[1], \"i4\") ? AF_INET :\n" " streq(argv[1], \"i6\") ? AF_INET6 : atoi(argv[1]);\n" "\\&\n" " s = inet_pton(domain, argv[2], buf);\n" " if (s E= 0) {\n" " if (s == 0)\n" " fprintf(stderr, \"Not in presentation format\");\n" " else\n" " perror(\"inet_pton\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n" " perror(\"inet_ntop\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"%s\\[rs]n\", str);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B(3), B(3), B(3)" msgstr "B(3), B(3), B(3)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 يونيو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "مكتبة سي المعيارية (I، I<-lc>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "I points to a character string containing an IPv4 network address in " "dotted-decimal format, \"I\", where I is a decimal " "number of up to three digits in the range 0 to 255. The address is " "converted to a I and copied to I, which must be " "I (4) bytes (32 bits) long." msgstr "" "يشير I إلى سلسلة محارف تحتوي على عنوان شبكة IPv4 بتنسيق عشري منقوط، " "\"I\"، حيث I هو رقم عشري يصل إلى ثلاثة أرقام في النطاق " "0 إلى 255. يُحوَّل العنوان إلى I ويُنسخ إلى I، الذي يجب أن " "يكون طوله I (4) بايت (32 بت)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron #, no-wrap msgid "" "#include Earpa/inet.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " unsigned char buf[sizeof(struct in6_addr)];\n" " int domain, s;\n" " char str[INET6_ADDRSTRLEN];\n" "\\&\n" " if (argc != 3) {\n" " fprintf(stderr, \"Usage: %s {i4|i6|EnumE} string\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n" " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n" "\\&\n" " s = inet_pton(domain, argv[2], buf);\n" " if (s E= 0) {\n" " if (s == 0)\n" " fprintf(stderr, \"Not in presentation format\");\n" " else\n" " perror(\"inet_pton\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n" " perror(\"inet_ntop\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"%s\\[rs]n\", str);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Earpa/inet.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " unsigned char buf[sizeof(struct in6_addr)];\n" " int domain, s;\n" " char str[INET6_ADDRSTRLEN];\n" "\\&\n" " if (argc != 3) {\n" " fprintf(stderr, \"Usage: %s {i4|i6|EnumE} string\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " domain = (strcmp(argv[1], \"i4\") == 0) ? AF_INET :\n" " (strcmp(argv[1], \"i6\") == 0) ? AF_INET6 : atoi(argv[1]);\n" "\\&\n" " s = inet_pton(domain, argv[2], buf);\n" " if (s E= 0) {\n" " if (s == 0)\n" " fprintf(stderr, \"Not in presentation format\");\n" " else\n" " perror(\"inet_pton\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (inet_ntop(domain, buf, str, INET6_ADDRSTRLEN) == NULL) {\n" " perror(\"inet_ntop\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"%s\\[rs]n\", str);\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "23 يوليو 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 2026" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"