# 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:25+0200\n" "PO-Revision-Date: 2026-06-06 08:57+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 "getopt" msgstr "getopt" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 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-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "getopt, optarg, optind, opterr, optopt - Parse command-line options" msgstr "getopt, optarg, optind, opterr, optopt - تحليل خيارات سطر الأوامر" #. 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 Eunistd.hE>\n" msgstr "B<#include Eunistd.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<, char *>IB<[],>\n" "B< const char *>IB<);>\n" msgstr "" "BIB<, char *>IB<[],>\n" "B< const char *>IB<);>\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<;>\n" "BIB<, >IB<, >IB<;>\n" msgstr "" "BIB<;>\n" "BIB<, >IB<, >IB<;>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B(7)):" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B():" msgstr "B():" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid " _POSIX_C_SOURCE E= 2 || _XOPEN_SOURCE\n" msgstr " _POSIX_C_SOURCE E= 2 || _XOPEN_SOURCE\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 "" "The B() function parses the command-line arguments. Its arguments " "I and I are the argument count and array as passed to the " "I
() function on program invocation. An element of I that " "starts with \\[aq]-\\[aq] (and is not exactly \"-\" or \"--\") is an option " "element. The characters of this element (aside from the initial \\[aq]-" "\\[aq]) are option characters. If B() is called repeatedly, it " "returns successively each of the option characters from each of the option " "elements." msgstr "" "الدالة B() تحلل وسائط سطر الأوامر. وسيطاها I و I هما " "عدد الوسائط والمصفوفة كما تم تمريرهما إلى الدالة I
() عند استدعاء " "البرنامج. عنصر من I يبدأ بـ \\[aq]-\\[aq] (وليس بالضبط \"-\" أو \"--" "\") هو عنصر خيار. محارف هذا العنصر (باستثناء \\[aq]-\\[aq] الأولي) هي محارف " "خيار. إذا استُدعيت B() بشكل متكرر، فإنها تُرجع تباعًا كل محرف خيار" " من " "كل عنصر خيار." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The variable I is the index of the next element to be processed in " "I. The system initializes this value to 1. The caller can reset it " "to 1 to restart scanning of the same I, or when scanning a new " "argument vector." msgstr "" "المتغير I هو فهرس العنصر التالي الذي سيُعالج في I. يُهيئ النظام " "هذه القيمة إلى 1. يمكن للمستدعي إعادة تعيينها إلى 1 لإعادة مسح نفس I، " "أو عند مسح متجه وسائط جديد." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If B() finds another option character, it returns that character, " "updating the external variable I and a static variable I " "so that the next call to B() can resume the scan with the following " "option character or I-element." msgstr "" "إذا وجدت B() محرف خيار آخر، فإنها تُرجع ذلك المحرف، مُحدّثة المتغير " "الخارجي I والمتغير الثابت I بحيث يمكن للاستدعاء التالي لـ " "B() استئناف المسح بمحرف الخيار التالي أو عنصر I." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If there are no more option characters, B() returns -1. Then " "I is the index in I of the first I-element that is not " "an option." msgstr "" "إذا لم يكن هناك المزيد من محارف الخيار، تُرجع B() -1. عندها يكون " "I هو الفهرس في I لأول عنصر I ليس خيارًا." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I is a string containing the legitimate option characters. A " "legitimate option character is any visible one byte B(7) character " "(for which B(3) would return nonzero) that is not \\[aq]-\\[aq], " "\\[aq]:\\[aq], or \\[aq];\\[aq]. If such a character is followed by a " "colon, the option requires an argument, so B() places a pointer to " "the following text in the same I-element, or the text of the following " "I-element, in I. Two colons mean an option takes an optional " "arg; if there is text in the current I-element (i.e., in the same word " "as the option name itself, for example, \"-oarg\"), then it is returned in " "I, otherwise I is set to zero. This is a GNU extension. If " "I contains B followed by a semicolon, then B<-W foo> is " "treated as the long option B<--foo>. (The B<-W> option is reserved by " "POSIX.2 for implementation extensions.) This behavior is a GNU extension, " "not available with libraries before glibc 2." msgstr "" "I هو سلسلة محارف تحتوي على محارف الخيار المشروعة. محرف الخيار " "المشروع هو أي محرف B(7) مرئي ذو بايت واحد (الذي ستعيد له " "B(3) قيمة غير صفرية) وليس \\[aq]-\\[aq] أو \\[aq]:\\[aq] أو \\[aq];" "\\[aq]. إذا تبع هذا المحرف نقطتان رأسيتان، فإن الخيار يتطلب وسيطًا، لذا تضع " "B() مؤشرًا إلى النص التالي في نفس عنصر I، أو نص عنصر I " "التالي، في I. نقطتان رأسيتان تعنيان أن الخيار يأخذ وسيطًا اختياريًا؛ " "إذا كان هناك نص في عنصر I الحالي (أي في نفس الكلمة مثل اسم الخيار " "نفسه، على سبيل المثال، \"-oarg\")، فإنه يُعاد في I، وإلا يُضبط " "I إلى صفر. هذا امتداد لـ GNU. إذا احتوى I على B متبوعًا " "بفاصلة منقوطة، فإن B<-W foo> يُعالج كخيار طويل B<--foo>. (خيار B<-W> محجوز " "بواسطة POSIX.2 لامتدادات التنفيذ.) هذا السلوك هو امتداد لـ GNU، غير متوفر مع " "المكتبات قبل glibc 2." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "By default, B() permutes the contents of I as it scans, so " "that eventually all the nonoptions are at the end. Two other scanning modes " "are also implemented. If the first character of I is \\[aq]+" "\\[aq] or the environment variable B<\\%POSIXLY_CORRECT> is set, then option " "processing stops as soon as a nonoption argument is encountered. If \\[aq]+" "\\[aq] is not the first character of I, it is treated as a normal " "option. If B<\\%POSIXLY_CORRECT> behavior is required in this case " "I will contain two \\[aq]+\\[aq] symbols. If the first character " "of I is \\[aq]-\\[aq], then each nonoption I-element is " "handled as if it were the argument of an option with character code 1. " "(This is used by programs that were written to expect options and other " "I-elements in any order and that care about the ordering of the two.) " "The special argument \"--\" forces an end of option-scanning regardless of " "the scanning mode." msgstr "" "بشكل مبدئي، تُبدّل B() محتويات I أثناء مسحها، بحيث تكون جميع " "غير الخيارات في النهاية في النهاية. يُنفذ أيضًا وضعا مسح آخران. إذا كان" " المحرف " "الأول من I هو \\[aq]+\\[aq] أو كان متغير البيئة B<\\" "%POSIXLY_CORRECT> مضبوطًا، فإن معالجة الخيار تتوقف فور مواجهة وسيط غير خيار. " "إذا لم يكن \\[aq]+\\[aq] هو المحرف الأول من I، فإنه يُعالج كخيار " "عادي. إذا كان سلوك B<\\%POSIXLY_CORRECT> مطلوبًا في هذه الحالة، سيحتوي " "I على رمزين \\[aq]+\\[aq]. إذا كان المحرف الأول من I " "هو \\[aq]-\\[aq]، فإن كل عنصر I غير خيار يُعالج كما لو كان وسيط خيار " "برمز محرف 1. (يُستخدم هذا بواسطة البرامج التي كُتبت لتتوقع خيارات وعناصر " "I أخرى بأي ترتيب وتهتم بترتيبهما.) الوسيط الخاص \"--\" يُجبر على إنهاء " "مسح الخيار بغض النظر عن وضع المسح." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "While processing the option list, B() can detect two kinds of " "errors: (1) an option character that was not specified in I and " "(2) a missing option argument (i.e., an option at the end of the command " "line without an expected argument). Such errors are handled and reported as " "follows:" msgstr "" "أثناء معالجة قائمة الخيارات، يمكن لـ B() اكتشاف نوعين من الأخطاء: " "(1) محرف خيار لم يُحدد في I و(2) وسيط خيار مفقود (أي خيار في نهاية " "سطر الأوامر بدون وسيط متوقع). تُعالج هذه الأخطاء وتُبلغ عنها كما يلي:" #. 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 "" "By default, B() prints an error message on standard error, places " "the erroneous option character in I, and returns \\[aq]?\\[aq] as " "the function result." msgstr "" "بشكل مبدئي، تطبع B() رسالة خطأ على الخطأ المعياري، وتضع محرف الخيار " "الخاطئ في I، وتُعيد \\[aq]?\\[aq] كنتيجة للدالة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the caller has set the global variable I to zero, then " "B() does not print an error message. The caller can determine that " "there was an error by testing whether the function return value is \\[aq]?" "\\[aq]. (By default, I has a nonzero value.)" msgstr "" "إذا ضبط المستدعي المتغير العام I إلى صفر، فإن B() لا تطبع " "رسالة خطأ. يمكن للمستدعي تحديد وجود خطأ باختبار ما إذا كانت قيمة إرجاع " "الدالة هي \\[aq]?\\[aq]. (بشكل مبدئي، I له قيمة غير صفرية.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the first character (following any optional \\[aq]+\\[aq] or \\[aq]-" "\\[aq] described above) of I is a colon (\\[aq]:\\[aq]), then " "B() likewise does not print an error message. In addition, it " "returns \\[aq]:\\[aq] instead of \\[aq]?\\[aq] to indicate a missing option " "argument. This allows the caller to distinguish the two different types of " "errors." msgstr "" "إذا كان المحرف الأول (بعد أي \\[aq]+\\[aq] أو \\[aq]-\\[aq] اختياري موصوف " "أعلاه) من I هو نقطتان رأسيتان (\\[aq]:\\[aq])، فإن B() " "بالمثل لا تطبع رسالة خطأ. بالإضافة إلى ذلك، تُعيد \\[aq]:\\[aq] بدلاً من " "\\[aq]?\\[aq] للإشارة إلى وسيط خيار مفقود. هذا يسمح للمستدعي بالتمييز بين " "نوعي الخطأ المختلفين." #. 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 "" "If an option was successfully found, then B() returns the option " "character. If all command-line options have been parsed, then B() " "returns -1. If B() encounters an option character that was not in " "I, then \\[aq]?\\[aq] is returned. If B() encounters an " "option with a missing argument, then the return value depends on the first " "character in I: if it is \\[aq]:\\[aq], then \\[aq]:\\[aq] is " "returned; otherwise \\[aq]?\\[aq] is returned." msgstr "" "إذا وُجد خيار بنجاح، فإن B() تُعيد محرف الخيار. إذا حُللت جميع" " خيارات " "سطر الأوامر، فإن B() تُعيد -1. إذا واجهت B() محرف خيار لم " "يكن في I، فإن \\[aq]?\\[aq] يُعاد. إذا واجهت B() خيارًا " "بوسيط مفقود، فإن قيمة الإرجاع تعتمد على المحرف الأول في I: إذا " "كان \\[aq]:\\[aq]، فإن \\[aq]:\\[aq] يُعاد؛ وإلا يُعاد \\[aq]?\\[aq]." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ENVIRONMENT" msgstr "البيئة" #. type: TP #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "B<\\%POSIXLY_CORRECT>" msgstr "B<\\%POSIXLY_CORRECT>" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If this is set, then option processing stops as soon as a nonoption argument " "is encountered." msgstr "إذا كان هذا مضبوطًا، فإن معالجة الخيار تتوقف فور مواجهة وسيط غير خيار." #. 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: 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: 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-Unsafe race:getopt env" msgstr "غير آمن للمسارات المتعددة (MT-Unsafe) سباق:getopt env" #. 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-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "POSIX specifies that the I array argument should be I, but " "these functions permute its elements unless the environment variable B<\\" "%POSIXLY_CORRECT> is set. I is used in the actual prototype to be " "compatible with other systems; however, this page doesn't show the " "qualifier, to avoid confusing readers." msgstr "" "يحدد POSIX أن وسيط المصفوفة I يجب أن يكون I، لكن هذه الدوال " "تُبدّل عناصرها ما لم يُضبط متغير البيئة B<\\%POSIXLY_CORRECT>. يُستخدم I<" "const> " "في النموذج الأولي الفعلي ليكون متوافقًا مع الأنظمة الأخرى؛ ومع ذلك، لا تُظهر " "هذه الصفحة المؤهل، لتجنب إرباك القراء." #. 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: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The use of \\[aq]+\\[aq] and \\[aq]-\\[aq] in I is a GNU " "extension." msgstr "" "استخدام \\[aq]+\\[aq] و \\[aq]-\\[aq] في I هو امتداد لـ GNU." #. 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, and POSIX.2." msgstr "POSIX.1-2001، وPOSIX.2." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On some older implementations, B() was declared in Istdio." "hE>. SUSv1 permitted the declaration to appear in either Iunistd." "hE> or Istdio.hE>. POSIX.1-1996 marked the use of " "Istdio.hE> for this purpose as LEGACY. POSIX.1-2001 does not " "require the declaration to appear in Istdio.hE>." msgstr "" "في بعض التطبيقات القديمة، أُعلنت B() في Istdio.hE>. سمح " "SUSv1 بظهور الإعلان إما في Iunistd.hE> أو Istdio.hE>. " "وسم POSIX.1-1996 استخدام Istdio.hE> لهذا الغرض بأنه قديم " "(LEGACY). لا يتطلب POSIX.1-2001 ظهور الإعلان في Istdio.hE>." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Very old versions of glibc were affected by a E<.UR https:\\://\\:sourceware." "org/\\:git/\\:?p=glibc.git;a=commitdiff;h=bf079e19f50d64aa5e05> B<\\" "%_>IB<_GNU_nonoption_argv_flags_> environment variable E<.UE .>" msgstr "" "تأثرت الإصدارات القديمة جدًا من glibc بمتغير البيئة E<.UR https:\\://\\:" "sourceware.org/\\:git/\\:?p=glibc.git;a=commitdiff;h=bf079e19f50d64aa5e05> " "B<\\%_>IB<_GNU_nonoption_argv_flags_> E<.UE .>" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "A program that scans multiple argument vectors, or rescans the same vector " "more than once, and wants to make use of GNU extensions such as \\[aq]+" "\\[aq] and \\[aq]-\\[aq] at the start of I, or changes the value " "of B<\\%POSIXLY_CORRECT> between scans, must reinitialize B() by " "resetting I to 0, rather than the traditional value of 1. " "(Resetting to 0 forces the invocation of an internal initialization routine " "that rechecks B<\\%POSIXLY_CORRECT> and checks for GNU extensions in " "I.)" msgstr "" "البرنامج الذي يمسح متجهات وسائط متعددة، أو يعيد مسح نفس المتجه أكثر من مرة، " "ويريد استخدام امتدادات GNU مثل \\[aq]+\\[aq] و\\[aq]-\\[aq] في بداية " "I، أو يغير قيمة B<\\%POSIXLY_CORRECT> بين عمليات المسح، يجب عليه " "إعادة تهيئة B() بإعادة تعيين I إلى 0، بدلاً من القيمة " "التقليدية 1. (إعادة التعيين إلى 0 تُجبر استدعاء روتين تهيئة داخلي يعيد فحص " "B<\\%POSIXLY_CORRECT> ويتحقق من امتدادات GNU في I.)" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Command-line arguments are parsed in strict order meaning that an option " "requiring an argument will consume the next argument, regardless of whether " "that argument is the correctly specified option argument or simply the next " "option (in the scenario the user mis-specifies the command line). For " "example, if I is specified as \"1n:\" and the user specifies the " "command line arguments incorrectly as I, the I<-n> option " "will be given the B value \"-1\", and the I<-1> option will be " "considered to have not been specified." msgstr "" "تُحلل وسائط سطر الأوامر بترتيب صارم، مما يعني أن الخيار الذي يتطلب وسيطة " "سيستهلك الوسيطة التالية، بغض النظر عما إذا كانت تلك الوسيطة هي وسيطة الخيار " "المحددة بشكل صحيح أو مجرد الخيار التالي (في السيناريو الذي يحدد فيه المستخدم " "سطر الأوامر بشكل خاطئ). على سبيل المثال، إذا تم تحديد I كـ \"1n:" "\" وحدد المستخدم وسائط سطر الأوامر بشكل غير صحيح كـ I، فسيتم " "إعطاء الخيار I<-n> قيمة B \"-1\"، وسيُعتبر الخيار I<-1> غير محدد." #. 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: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "getopt()" msgstr "getopt()" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #| msgid "" #| "The following trivial example program uses B() to handle two " #| "program options: I<-n>, with no associated value; and I<-t val>, which " #| "expects an associated value." msgid "" "The following trivial example program uses B() to handle two " "program options: I<-n>, with no associated value; and I<-t\\ val>, which " "expects an associated value." msgstr "" "برنامج المثال التالي البسيط يستخدم B() لمعالجة خيارين للبرنامج: I<-" "n>، بدون قيمة مرتبطة؛ و I<-t\\ val>، الذي يتوقع قيمة مرتبطة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int flags, opt;\n" " int nsecs, tfnd;\n" "\\&\n" " nsecs = 0;\n" " tfnd = 0;\n" " flags = 0;\n" " while ((opt = getopt(argc, argv, \"nt:\")) != -1) {\n" " switch (opt) {\n" " case \\[aq]n\\[aq]:\n" " flags = 1;\n" " break;\n" " case \\[aq]t\\[aq]:\n" " nsecs = atoi(optarg);\n" " tfnd = 1;\n" " break;\n" " default: /* \\[aq]?\\[aq] */\n" " fprintf(stderr, \"Usage: %s [-t nsecs] [-n] name\\[rs]n\",\n" " argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" " }\n" "\\&\n" " printf(\"flags=%d; tfnd=%d; nsecs=%d; optind=%d\\[rs]n\",\n" " flags, tfnd, nsecs, optind);\n" "\\&\n" " if (optind E= argc) {\n" " fprintf(stderr, \"Expected argument after options\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"name argument = %s\\[rs]n\", argv[optind]);\n" "\\&\n" " /* Other code omitted */\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int flags, opt;\n" " int nsecs, tfnd;\n" "\\&\n" " nsecs = 0;\n" " tfnd = 0;\n" " flags = 0;\n" " while ((opt = getopt(argc, argv, \"nt:\")) != -1) {\n" " switch (opt) {\n" " case \\[aq]n\\[aq]:\n" " flags = 1;\n" " break;\n" " case \\[aq]t\\[aq]:\n" " nsecs = atoi(optarg);\n" " tfnd = 1;\n" " break;\n" " default: /* \\[aq]?\\[aq] */\n" " fprintf(stderr, \"Usage: %s [-t nsecs] [-n] name\\[rs]n\",\n" " argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" " }\n" "\\&\n" " printf(\"flags=%d; tfnd=%d; nsecs=%d; optind=%d\\[rs]n\",\n" " flags, tfnd, nsecs, optind);\n" "\\&\n" " if (optind E= argc) {\n" " fprintf(stderr, \"Expected argument after options\\[rs]n\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"name argument = %s\\[rs]n\", argv[optind]);\n" "\\&\n" " /* Other code omitted */\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-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "B(1), B(3), B(3), B(3)" msgstr "" "B(1)، 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 fedora-44 fedora-rawhide msgid "" "getopt, getopt_long, getopt_long_only, optarg, optind, opterr, optopt - " "Parse command-line options" msgstr "" "getopt, getopt_long, getopt_long_only, optarg, optind, opterr, optopt - " "تحليل خيارات سطر الأوامر" #. 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 #, no-wrap msgid "B<#include Egetopt.hE>\n" msgstr "B<#include Egetopt.hE>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "BIB<, char *>IB<[],>\n" "B< const char *>IB<,>\n" "B< const struct option *>IB<, int *>IB<);>\n" "BIB<, char *>IB<[],>\n" "B< const char *>IB<,>\n" "B< const struct option *>IB<, int *>IB<);>\n" msgstr "" "BIB<, char *>IB<[],>\n" "B< const char *>IB<,>\n" "B< const struct option *>IB<, int *>IB<);>\n" "BIB<, char *>IB<[],>\n" "B< const char *>IB<,>\n" "B< const struct option *>IB<, int *>IB<);>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "B(), B():" msgstr "B()، B() :" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid " _GNU_SOURCE\n" msgstr " _GNU_SOURCE\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "By default, B() permutes the contents of I as it scans, so " "that eventually all the nonoptions are at the end. Two other scanning modes " "are also implemented. If the first character of I is \\[aq]+" "\\[aq] or the environment variable B is set, then option " "processing stops as soon as a nonoption argument is encountered. If \\[aq]+" "\\[aq] is not the first character of I, it is treated as a normal " "option. If B behaviour is required in this case " "I will contain two \\[aq]+\\[aq] symbols. If the first character " "of I is \\[aq]-\\[aq], then each nonoption I-element is " "handled as if it were the argument of an option with character code 1. " "(This is used by programs that were written to expect options and other " "I-elements in any order and that care about the ordering of the two.) " "The special argument \"--\" forces an end of option-scanning regardless of " "the scanning mode." msgstr "" "افتراضيًا، يُبدل B() محتويات I أثناء مسحها، بحيث تكون جميع " "العناصر غير الخيارية في النهاية. يُنفذ أيضًا وضعان آخران للمسح. إذا كان " "الحرف الأول من I هو \\[aq]+\\[aq] أو تم تعيين متغير البيئة " "B، فإن معالجة الخيار تتوقف فور مواجهة وسيطة غير خيارية. " "إذا لم يكن \\[aq]+\\[aq] هو الحرف الأول من I، فيُعامل كخيار عادي. " "إذا كان سلوك B مطلوبًا في هذه الحالة، فسيحتوي I " "على رمزين \\[aq]+\\[aq]. إذا كان الحرف الأول من I هو \\[aq]-" "\\[aq]، فسيتم التعامل مع كل عنصر I غير خياري كما لو كان وسيطة خيار " "برمز حرف 1. (يُستخدم هذا بواسطة البرامج التي كُتبت لتتوقع خيارات وعناصر " "I أخرى بأي ترتيب وتهتم بترتيبهما.) الوسيطة الخاصة \"--\" تُجبر إنهاء " "مسح الخيار بغض النظر عن وضع المسح." #. type: SS #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "getopt_long() and getopt_long_only()" msgstr "getopt_long() وgetopt_long_only()" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The B() function works like B() except that it also " "accepts long options, started with two dashes. (If the program accepts only " "long options, then I should be specified as an empty string " "(\"\"), not NULL.) Long option names may be abbreviated if the abbreviation " "is unique or is an exact match for some defined option. A long option may " "take a parameter, of the form B<--arg=param> or B<--arg param>." msgstr "" "تعمل الدالة B() مثل B() باستثناء أنها تقبل أيضًا " "الخيارات الطويلة، التي تبدأ بشرطتين. (إذا كان البرنامج يقبل الخيارات " "الطويلة فقط، فيجب تحديد I كسلسلة فارغة (\"\")، وليس NULL.) يمكن " "اختصار أسماء الخيارات الطويلة إذا كان الاختصار فريدًا أو مطابقًا تمامًا لبعض " "الخيارات المحددة. قد يأخذ الخيار الطويل معاملًا، بالشكل B<--arg=param> أو " "B<--arg param>." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "I is a pointer to the first element of an array of I declared in Igetopt.hE> as" msgstr "" "I هو مؤشر للعنصر الأول من مصفوفة من I مُصرح عنها في " "Igetopt.hE> كـ" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "struct option {\n" " const char *name;\n" " int has_arg;\n" " int *flag;\n" " int val;\n" "};\n" msgstr "" "struct option {\n" " const char *name;\n" " int has_arg;\n" " int *flag;\n" " int val;\n" "};\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "The meanings of the different fields are:" msgstr "معاني الحقول المختلفة هي:" #. type: TP #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "I" msgstr "I<الاسم>" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "is the name of the long option." msgstr "هو اسم الخيار الطويل." #. type: TP #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "is: B (or 0) if the option does not take an argument; " "B (or 1) if the option requires an argument; or " "B (or 2) if the option takes an optional argument." msgstr "" "هو: B (أو 0) إذا كان الخيار لا يأخذ معاملًا؛ أو " "B (أو 1) إذا كان الخيار يتطلب معاملًا؛ أو " "B (أو 2) إذا كان الخيار يأخذ معاملًا اختياريًا." #. type: TP #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "specifies how results are returned for a long option. If I is NULL, " "then B() returns I. (For example, the calling program " "may set I to the equivalent short option character.) Otherwise, " "B() returns 0, and I points to a variable which is set " "to I if the option is found, but left unchanged if the option is not " "found." msgstr "" "يحدد كيفية إرجاع النتائج للخيار الطويل. إذا كان I هو NULL، فإن " "B() تُرجع I. (على سبيل المثال، قد يضبط البرنامج المستدعِي " "I على محرف الخيار القصير المكافئ.) خلاف ذلك، تُرجع B() " "القيمة 0، ويشير I إلى متغير يُضبط على I إذا عُثر على الخيار، ولكنه " "يُترك دون تغيير إذا لم يُعثر على الخيار." #. type: TP #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "I" msgstr "I" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "is the value to return, or to load into the variable pointed to by I." msgstr "" "هي القيمة المراد إرجاعها، أو تحميلها في المتغير الذي يشير إليه I." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "The last element of the array has to be filled with zeros." msgstr "يجب ملء العنصر الأخير من المصفوفة بالأصفار." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "If I is not NULL, it points to a variable which is set to the " "index of the long option relative to I." msgstr "" "إذا لم يكن I هو NULL، فإنه يشير إلى متغير يُضبط على فهرس الخيار " "الطويل بالنسبة إلى I." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "B() is like B(), but \\[aq]-\\[aq] as well " "as \"--\" can indicate a long option. If an option that starts with \\[aq]-" "\\[aq] (not \"--\") doesn't match a long option, but does match a short " "option, it is parsed as a short option instead." msgstr "" "B() تشبه B()، ولكن \\[aq]-\\[aq] بالإضافة إلى " "\"--\" يمكن أن يشير إلى خيار طويل. إذا كان الخيار الذي يبدأ بـ \\[aq]-" "\\[aq] (وليس \"--\") لا يطابق خيارًا طويلًا، ولكنه يطابق خيارًا قصيرًا، فسيتم " "تحليله كخيار قصير بدلاً من ذلك." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "B() and B() also return the option " "character when a short option is recognized. For a long option, they return " "I if I is NULL, and 0 otherwise. Error and -1 returns are the " "same as for B(), plus \\[aq]?\\[aq] for an ambiguous match or an " "extraneous parameter." msgstr "" "B() وB() تُرجعان أيضًا حرف الخيار عند التعرف " "على خيار قصير. بالنسبة لخيار طويل، تُرجعان I إذا كان I هو NULL، " "و0 بخلاف ذلك. إرجاعات الخطأ و-1 هي نفسها لـ B()، بالإضافة إلى " "\\[aq]?\\[aq] للمطابقة الغامضة أو معامل زائد." #. type: TP #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "B" msgstr "B" #. type: TP #: debian-trixie #, no-wrap msgid "B<_EPIDE_GNU_nonoption_argv_flags_>" msgstr "B<_EPIDE_GNU_nonoption_argv_flags_>" #. type: Plain text #: debian-trixie msgid "" "This variable was used by B(1) 2.0 to communicate to glibc which " "arguments are the results of wildcard expansion and so should not be " "considered as options. This behavior was removed in B(1) 2.01, but " "the support remains in glibc." msgstr "" "استُخدم هذا المتغير بواسطة B(1) 2.0 للتواصل مع glibc حول الوسائط التي " "هي نتائج توسيع أحرف البدل وبالتالي لا ينبغي اعتبارها خيارات. أُزيل هذا " "السلوك في B(1) 2.01، لكن الدعم لا يزال موجودًا في glibc." #. type: tbl table #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "B(),\n" "B(),\n" "B()" msgstr "" "B(),\n" "B(),\n" "B()" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "POSIX specifies that the I array argument should be I, but " "these functions permute its elements unless the environment variable " "B is set. I is used in the actual prototype to be " "compatible with other systems; however, this page doesn't show the " "qualifier, to avoid confusing readers." msgstr "" "يحدد POSIX أن وسيط المصفوفة I يجب أن يكون I، لكن هذه الدوال " "تبدل عناصرها ما لم يُضبط متغير البيئة B. يُستخدم I في " "النموذج الأولي الفعلي للتوافق مع الأنظمة الأخرى؛ لكن هذه الصفحة لا تُظهر " "المؤهل، لتجنب إرباك القراء." #. type: TP #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "B()" msgstr "B()" #. type: TQ #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "B()" msgstr "B()" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "GNU." msgstr "GNU." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "A program that scans multiple argument vectors, or rescans the same vector " "more than once, and wants to make use of GNU extensions such as \\[aq]+" "\\[aq] and \\[aq]-\\[aq] at the start of I, or changes the value " "of B between scans, must reinitialize B() by " "resetting I to 0, rather than the traditional value of 1. " "(Resetting to 0 forces the invocation of an internal initialization routine " "that rechecks B and checks for GNU extensions in " "I.)" msgstr "" "برنامج يمسح متجهات وسائط متعددة، أو يعيد مسح نفس المتجه أكثر من مرة، ويريد " "استخدام إضافات GNU مثل \\[aq]+\\[aq] و \\[aq]-\\[aq] في بداية I، " "أو يغير قيمة B بين عمليات المسح، يجب أن يعيد تهيئة " "B() بإعادة ضبط I إلى 0، بدلاً من القيمة التقليدية 1. (إعادة " "الضبط إلى 0 تُجبر استدعاء روتين تهيئة داخلي يعيد فحص B " "ويتحقق من إضافات GNU في I.)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The following trivial example program uses B() to handle two " "program options: I<-n>, with no associated value; and I<-t val>, which " "expects an associated value." msgstr "" "برنامج المثال التالي البسيط يستخدم B() لمعالجة خيارين للبرنامج: I<-" "n>، بدون قيمة مرتبطة؛ و I<-t val>، الذي يتوقع قيمة مرتبطة." #. SRC END #. type: SS #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "getopt_long()" msgstr "getopt_long()" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The following example program illustrates the use of B() with " "most of its features." msgstr "يوضح البرنامج المثال التالي استخدام B() مع معظم ميزاتها." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Egetopt.hE\n" "#include Estdio.hE /* for printf */\n" "#include Estdlib.hE /* for exit */\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int c;\n" " int digit_optind = 0;\n" "\\&\n" " while (1) {\n" " int this_option_optind = optind ? optind : 1;\n" " int option_index = 0;\n" " static struct option long_options[] = {\n" " {\"add\", required_argument, 0, 0 },\n" " {\"append\", no_argument, 0, 0 },\n" " {\"delete\", required_argument, 0, 0 },\n" " {\"verbose\", no_argument, 0, 0 },\n" " {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n" " {\"file\", required_argument, 0, 0 },\n" " {0, 0, 0, 0 }\n" " };\n" "\\&\n" " c = getopt_long(argc, argv, \"abc:d:012\",\n" " long_options, &option_index);\n" " if (c == -1)\n" " break;\n" "\\&\n" " switch (c) {\n" " case 0:\n" " printf(\"option %s\", long_options[option_index].name);\n" " if (optarg)\n" " printf(\" with arg %s\", optarg);\n" " printf(\"\\[rs]n\");\n" " break;\n" "\\&\n" " case \\[aq]0\\[aq]:\n" " case \\[aq]1\\[aq]:\n" " case \\[aq]2\\[aq]:\n" " if (digit_optind != 0 && digit_optind != this_option_optind)\n" " printf(\"digits occur in two different" " argv-elements.\\[rs]n\");\n" " digit_optind = this_option_optind;\n" " printf(\"option %c\\[rs]n\", c);\n" " break;\n" "\\&\n" " case \\[aq]a\\[aq]:\n" " printf(\"option a\\[rs]n\");\n" " break;\n" "\\&\n" " case \\[aq]b\\[aq]:\n" " printf(\"option b\\[rs]n\");\n" " break;\n" "\\&\n" " case \\[aq]c\\[aq]:\n" " printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" " break;\n" "\\&\n" " case \\[aq]d\\[aq]:\n" " printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" " break;\n" "\\&\n" " case \\[aq]?\\[aq]:\n" " break;\n" "\\&\n" " default:\n" " printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n" " }\n" " }\n" "\\&\n" " if (optind E argc) {\n" " printf(\"non-option ARGV-elements: \");\n" " while (optind E argc)\n" " printf(\"%s \", argv[optind++]);\n" " printf(\"\\[rs]n\");\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Egetopt.hE\n" "#include Estdio.hE /* for printf */\n" "#include Estdlib.hE /* for exit */\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int c;\n" " int digit_optind = 0;\n" "\\&\n" " while (1) {\n" " int this_option_optind = optind ? optind : 1;\n" " int option_index = 0;\n" " static struct option long_options[] = {\n" " {\"add\", required_argument, 0, 0 },\n" " {\"append\", no_argument, 0, 0 },\n" " {\"delete\", required_argument, 0, 0 },\n" " {\"verbose\", no_argument, 0, 0 },\n" " {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n" " {\"file\", required_argument, 0, 0 },\n" " {0, 0, 0, 0 }\n" " };\n" "\\&\n" " c = getopt_long(argc, argv, \"abc:d:012\",\n" " long_options, &option_index);\n" " if (c == -1)\n" " break;\n" "\\&\n" " switch (c) {\n" " case 0:\n" " printf(\"option %s\", long_options[option_index].name);\n" " if (optarg)\n" " printf(\" with arg %s\", optarg);\n" " printf(\"\\[rs]n\");\n" " break;\n" "\\&\n" " case \\[aq]0\\[aq]:\n" " case \\[aq]1\\[aq]:\n" " case \\[aq]2\\[aq]:\n" " if (digit_optind != 0 && digit_optind != this_option_optind)\n" " printf(\"digits occur in two different" " argv-elements.\\[rs]n\");\n" " digit_optind = this_option_optind;\n" " printf(\"option %c\\[rs]n\", c);\n" " break;\n" "\\&\n" " case \\[aq]a\\[aq]:\n" " printf(\"option a\\[rs]n\");\n" " break;\n" "\\&\n" " case \\[aq]b\\[aq]:\n" " printf(\"option b\\[rs]n\");\n" " break;\n" "\\&\n" " case \\[aq]c\\[aq]:\n" " printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" " break;\n" "\\&\n" " case \\[aq]d\\[aq]:\n" " printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" " break;\n" "\\&\n" " case \\[aq]?\\[aq]:\n" " break;\n" "\\&\n" " default:\n" " printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n" " }\n" " }\n" "\\&\n" " if (optind E argc) {\n" " printf(\"non-option ARGV-elements: \");\n" " while (optind E argc)\n" " printf(\"%s \", argv[optind++]);\n" " printf(\"\\[rs]n\");\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "B(1), B(3)" msgstr "B(1)، B(3)" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-12-19" msgstr "19 ديسمبر 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: Plain text #: fedora-44 fedora-rawhide msgid "" "Very old versions of glibc were affected by a E<.UR https://\\:sourceware." "org/\\:git/\\:?p=glibc.git;a=commitdiff;h=bf079e19f50d64aa5e05> " "B<_>IB<_GNU_nonoption_argv_flags_> environment variable E<.UE .>" msgstr "" "الإصدارات القديمة جدًا من glibc تأثرت بمتغير البيئة E<.UR https://\\:" "sourceware.org/\\:git/\\:?p=glibc.git;a=commitdiff;h=bf079e19f50d64aa5e05> " "B<_>IB<_GNU_nonoption_argv_flags_> E<.UE .>" #. 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 "صفحات دليل لينكس (لم تصدر بعد)"