| 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\n" |
| 8 |
"POT-Creation-Date: 2026-06-05 06:25+0200\n" |
| 9 |
"PO-Revision-Date: 2026-06-03 04:49+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 |
".MIME-Version: 1.0\n" |
| 17 |
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " |
| 18 |
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" |
| 19 |
"X-Generator: Lokalize 23.08.5\n" |
| 20 |
|
| 21 |
#. type: TH |
| 22 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 23 |
#: opensuse-tumbleweed |
| 24 |
#, no-wrap |
| 25 |
msgid "getopt_long" |
| 26 |
msgstr "getopt_long" |
| 27 |
|
| 28 |
#. type: TH |
| 29 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 30 |
#, no-wrap |
| 31 |
msgid "2026-02-14" |
| 32 |
msgstr "14 فبراير 2026" |
| 33 |
|
| 34 |
#. type: TH |
| 35 |
#: archlinux debian-unstable |
| 36 |
#, no-wrap |
| 37 |
msgid "Linux man-pages 6.18" |
| 38 |
msgstr "صفحات دليل لينكس 6.18" |
| 39 |
|
| 40 |
#. type: SH |
| 41 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 42 |
#: opensuse-tumbleweed |
| 43 |
#, no-wrap |
| 44 |
msgid "NAME" |
| 45 |
msgstr "الاسم" |
| 46 |
|
| 47 |
#. type: Plain text |
| 48 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 49 |
#: opensuse-tumbleweed |
| 50 |
msgid "getopt_long - parse command-line options" |
| 51 |
msgstr "getopt_long - يُحلل خيارات سطر الأوامر" |
| 52 |
|
| 53 |
#. type: SH |
| 54 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 55 |
#: opensuse-tumbleweed |
| 56 |
#, no-wrap |
| 57 |
msgid "LIBRARY" |
| 58 |
msgstr "المكتبة" |
| 59 |
|
| 60 |
#. type: Plain text |
| 61 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 62 |
#: opensuse-tumbleweed |
| 63 |
msgid "Standard C library (I<libc>,\\ I<-lc>)" |
| 64 |
msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)" |
| 65 |
|
| 66 |
#. type: SH |
| 67 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 68 |
#: opensuse-tumbleweed |
| 69 |
#, no-wrap |
| 70 |
msgid "SYNOPSIS" |
| 71 |
msgstr "موجز" |
| 72 |
|
| 73 |
#. type: Plain text |
| 74 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 75 |
#: opensuse-tumbleweed |
| 76 |
#, no-wrap |
| 77 |
msgid "" |
| 78 |
"B<#define _GNU_SOURCE>\n" |
| 79 |
"B<#include E<lt>getopt.hE<gt>>\n" |
| 80 |
msgstr "" |
| 81 |
"B<#define _GNU_SOURCE>\n" |
| 82 |
"B<#include E<lt>getopt.hE<gt>>\n" |
| 83 |
|
| 84 |
#. type: Plain text |
| 85 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 86 |
#: opensuse-tumbleweed |
| 87 |
#, no-wrap |
| 88 |
msgid "" |
| 89 |
"B<int getopt_long(int >I<argc>B<, char *>I<argv>B<[],>\n" |
| 90 |
"B< const char *>I<optstring>B<,>\n" |
| 91 |
"B< const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n" |
| 92 |
msgstr "" |
| 93 |
"B<int getopt_long(int >I<argc>B<, char *>I<argv>B<[],>\n" |
| 94 |
"B< const char *>I<optstring>B<,>\n" |
| 95 |
"B< const struct option *>I<longopts>B<, int *>I<longindex>B<);>\n" |
| 96 |
|
| 97 |
#. type: SH |
| 98 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 99 |
#: opensuse-tumbleweed |
| 100 |
#, no-wrap |
| 101 |
msgid "DESCRIPTION" |
| 102 |
msgstr "الوصف" |
| 103 |
|
| 104 |
#. type: Plain text |
| 105 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 106 |
#: opensuse-tumbleweed |
| 107 |
msgid "" |
| 108 |
"The B<getopt_long>() function works like B<getopt>(3) except that it also " |
| 109 |
"accepts long options, started with two dashes. (If the program accepts only " |
| 110 |
"long options, then I<optstring> should be specified as an empty string " |
| 111 |
"(\"\"), not NULL.) Long option names may be abbreviated if the abbreviation " |
| 112 |
"is unique or is an exact match for some defined option. A long option may " |
| 113 |
"take a parameter, of the form B<--arg=param> or B<--arg param>." |
| 114 |
msgstr "" |
| 115 |
"دالة B<getopt_long>() تعمل مثل B<getopt>(3) فيما عدا أنها تقبل أيضًا الخيارات " |
| 116 |
"الطويلة، والتي تبدأ بشرطتين. (إذا كان البرنامج يقبل فقط الخيارات الطويلة، " |
| 117 |
"فيجب تحديد I<optstring> كنص فارغ (\"\")، وليس NULL.) يمكن اختصار أسماء " |
| 118 |
"الخيارات الطويلة إذا كان الاختصار فريداً أو مطابقاً تماماً لبعض الخيارات " |
| 119 |
"المعرفة. قد يأخذ الخيار الطويل مُعامل، بالشكل B<--arg=param> أو B<--arg " |
| 120 |
"param>." |
| 121 |
|
| 122 |
#. type: Plain text |
| 123 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 124 |
#: opensuse-tumbleweed |
| 125 |
msgid "" |
| 126 |
"I<longopts> is a pointer to the first element of an array of I<struct " |
| 127 |
"option> declared in I<E<lt>getopt.hE<gt>> as" |
| 128 |
msgstr "" |
| 129 |
"I<longopts> هو مؤشر للعنصر الأول من مصفوفة من I<struct option> مُصرح عنها في " |
| 130 |
"I<E<lt>getopt.hE<gt>> كـ" |
| 131 |
|
| 132 |
#. type: Plain text |
| 133 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 134 |
#: opensuse-tumbleweed |
| 135 |
#, no-wrap |
| 136 |
msgid "" |
| 137 |
"struct option {\n" |
| 138 |
" const char *name;\n" |
| 139 |
" int has_arg;\n" |
| 140 |
" int *flag;\n" |
| 141 |
" int val;\n" |
| 142 |
"};\n" |
| 143 |
msgstr "" |
| 144 |
"struct option {\n" |
| 145 |
" const char *name;\n" |
| 146 |
" int has_arg;\n" |
| 147 |
" int *flag;\n" |
| 148 |
" int val;\n" |
| 149 |
"};\n" |
| 150 |
|
| 151 |
#. type: Plain text |
| 152 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 153 |
#: opensuse-tumbleweed |
| 154 |
msgid "The meanings of the different fields are:" |
| 155 |
msgstr "معاني الحقول المختلفة هي:" |
| 156 |
|
| 157 |
#. type: TP |
| 158 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 159 |
#: opensuse-tumbleweed |
| 160 |
#, no-wrap |
| 161 |
msgid "I<name>" |
| 162 |
msgstr "I<الاسم>" |
| 163 |
|
| 164 |
#. type: Plain text |
| 165 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 166 |
#: opensuse-tumbleweed |
| 167 |
msgid "is the name of the long option." |
| 168 |
msgstr "هو اسم الخيار الطويل." |
| 169 |
|
| 170 |
#. type: TP |
| 171 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 172 |
#: opensuse-tumbleweed |
| 173 |
#, no-wrap |
| 174 |
msgid "I<has_arg>" |
| 175 |
msgstr "I<has_arg>" |
| 176 |
|
| 177 |
#. type: Plain text |
| 178 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 179 |
#: opensuse-tumbleweed |
| 180 |
msgid "" |
| 181 |
"is: B<no_argument> (or 0) if the option does not take an argument; " |
| 182 |
"B<required_argument> (or 1) if the option requires an argument; or " |
| 183 |
"B<optional_argument> (or 2) if the option takes an optional argument." |
| 184 |
msgstr "" |
| 185 |
"هو: B<no_argument> (أو 0) إذا كان الخيار لا يأخذ معاملًا؛ أو " |
| 186 |
"B<required_argument> (أو 1) إذا كان الخيار يتطلب معاملًا؛ أو " |
| 187 |
"B<optional_argument> (أو 2) إذا كان الخيار يأخذ معاملًا اختياريًا." |
| 188 |
|
| 189 |
#. type: TP |
| 190 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 191 |
#: opensuse-tumbleweed |
| 192 |
#, no-wrap |
| 193 |
msgid "I<flag>" |
| 194 |
msgstr "I<flag>" |
| 195 |
|
| 196 |
#. type: Plain text |
| 197 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 198 |
#: opensuse-tumbleweed |
| 199 |
msgid "" |
| 200 |
"specifies how results are returned for a long option. If I<flag> is NULL, " |
| 201 |
"then B<getopt_long>() returns I<val>. (For example, the calling program " |
| 202 |
"may set I<val> to the equivalent short option character.) Otherwise, " |
| 203 |
"B<getopt_long>() returns 0, and I<flag> points to a variable which is set " |
| 204 |
"to I<val> if the option is found, but left unchanged if the option is not " |
| 205 |
"found." |
| 206 |
msgstr "" |
| 207 |
"يحدد كيفية إرجاع النتائج للخيار الطويل. إذا كان I<flag> هو NULL، فإن " |
| 208 |
"B<getopt_long>() تُرجع I<val>. (على سبيل المثال، قد يضبط البرنامج المستدعِي " |
| 209 |
"I<val> على محرف الخيار القصير المكافئ.) خلاف ذلك، تُرجع B<getopt_long>() " |
| 210 |
"القيمة 0، ويشير I<flag> إلى متغير يُضبط على I<val> إذا عُثر على الخيار، ولكنه " |
| 211 |
"يُترك دون تغيير إذا لم يُعثر على الخيار." |
| 212 |
|
| 213 |
#. type: TP |
| 214 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 215 |
#: opensuse-tumbleweed |
| 216 |
#, no-wrap |
| 217 |
msgid "I<val>" |
| 218 |
msgstr "I<val>" |
| 219 |
|
| 220 |
#. type: Plain text |
| 221 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 222 |
#: opensuse-tumbleweed |
| 223 |
msgid "" |
| 224 |
"is the value to return, or to load into the variable pointed to by I<flag>." |
| 225 |
msgstr "" |
| 226 |
"هي القيمة المراد إرجاعها، أو تحميلها في المتغير الذي يشير إليه I<flag>." |
| 227 |
|
| 228 |
#. type: Plain text |
| 229 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 230 |
#: opensuse-tumbleweed |
| 231 |
msgid "The last element of the array has to be filled with zeros." |
| 232 |
msgstr "يجب ملء العنصر الأخير من المصفوفة بالأصفار." |
| 233 |
|
| 234 |
#. type: Plain text |
| 235 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 236 |
#: opensuse-tumbleweed |
| 237 |
msgid "" |
| 238 |
"If I<longindex> is not NULL, it points to a variable which is set to the " |
| 239 |
"index of the long option relative to I<longopts>." |
| 240 |
msgstr "" |
| 241 |
"إذا لم يكن I<longindex> هو NULL، فإنه يشير إلى متغير يُضبط على فهرس الخيار " |
| 242 |
"الطويل بالنسبة إلى I<longopts>." |
| 243 |
|
| 244 |
#. type: Plain text |
| 245 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 246 |
#: opensuse-tumbleweed |
| 247 |
msgid "" |
| 248 |
"Its analogue to B<getopt>(3)'s I<optopt> is \\[lq]I<argv[(optind - " |
| 249 |
"1)]>\\[rq]." |
| 250 |
msgstr "" |
| 251 |
"نظيرتها لـ I<optopt> في B<getopt>(3) هي \\[lq]I<argv[(optind - 1)]>\\[rq]." |
| 252 |
|
| 253 |
#. type: SH |
| 254 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 255 |
#: opensuse-tumbleweed |
| 256 |
#, no-wrap |
| 257 |
msgid "RETURN VALUE" |
| 258 |
msgstr "قيمة الإرجاع" |
| 259 |
|
| 260 |
#. type: Plain text |
| 261 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 262 |
#: opensuse-tumbleweed |
| 263 |
msgid "See B<getopt>(3)." |
| 264 |
msgstr "انظر B<getopt>(3)." |
| 265 |
|
| 266 |
#. type: Plain text |
| 267 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 268 |
#: opensuse-tumbleweed |
| 269 |
msgid "" |
| 270 |
"B<getopt_long>() also returns the option character when a short option is " |
| 271 |
"recognized. For a long option, it returns I<val> if I<flag> is NULL, and 0 " |
| 272 |
"otherwise. Error and -1 returns are the same as for B<getopt>(3), plus " |
| 273 |
"\\[aq]?\\[aq] for an ambiguous match or an extraneous parameter." |
| 274 |
msgstr "" |
| 275 |
"تُرجع B<getopt_long>() أيضًا محرف الخيار عند التعرف على خيار قصير. بالنسبة " |
| 276 |
"للخيار الطويل، فإنها تُرجع I<val> إذا كان I<flag> هو NULL، و 0 خلاف ذلك. قيم " |
| 277 |
"إرجاع الخطأ و -1 هي نفسها كما في B<getopt>(3)، بالإضافة إلى \\[aq]?\\[aq] " |
| 278 |
"للمطابقة الغامضة أو المعاملات الزائدة." |
| 279 |
|
| 280 |
#. type: SH |
| 281 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 282 |
#: opensuse-tumbleweed |
| 283 |
#, no-wrap |
| 284 |
msgid "ENVIRONMENT" |
| 285 |
msgstr "البيئة" |
| 286 |
|
| 287 |
#. type: SH |
| 288 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 289 |
#: opensuse-tumbleweed |
| 290 |
#, no-wrap |
| 291 |
msgid "ATTRIBUTES" |
| 292 |
msgstr "السمات" |
| 293 |
|
| 294 |
#. type: Plain text |
| 295 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 296 |
#: opensuse-tumbleweed |
| 297 |
msgid "" |
| 298 |
"For an explanation of the terms used in this section, see B<attributes>(7)." |
| 299 |
msgstr "" |
| 300 |
"للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)." |
| 301 |
|
| 302 |
#. type: tbl table |
| 303 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 304 |
#: opensuse-tumbleweed |
| 305 |
#, no-wrap |
| 306 |
msgid "Interface" |
| 307 |
msgstr "الواجهة" |
| 308 |
|
| 309 |
#. type: tbl table |
| 310 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 311 |
#: opensuse-tumbleweed |
| 312 |
#, no-wrap |
| 313 |
msgid "Attribute" |
| 314 |
msgstr "السمة" |
| 315 |
|
| 316 |
#. type: tbl table |
| 317 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 318 |
#: opensuse-tumbleweed |
| 319 |
#, no-wrap |
| 320 |
msgid "Value" |
| 321 |
msgstr "القيمة" |
| 322 |
|
| 323 |
#. type: tbl table |
| 324 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 325 |
#: opensuse-tumbleweed |
| 326 |
#, no-wrap |
| 327 |
msgid ".na\n" |
| 328 |
msgstr ".na\n" |
| 329 |
|
| 330 |
#. type: tbl table |
| 331 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 332 |
#: opensuse-tumbleweed |
| 333 |
#, no-wrap |
| 334 |
msgid ".nh\n" |
| 335 |
msgstr ".nh\n" |
| 336 |
|
| 337 |
#. type: tbl table |
| 338 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 339 |
#: opensuse-tumbleweed |
| 340 |
#, no-wrap |
| 341 |
msgid "B<getopt_long>()" |
| 342 |
msgstr "B<getopt_long>()" |
| 343 |
|
| 344 |
#. type: tbl table |
| 345 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 346 |
#: opensuse-tumbleweed |
| 347 |
#, no-wrap |
| 348 |
msgid "Thread safety" |
| 349 |
msgstr "سلامة الخيوط" |
| 350 |
|
| 351 |
#. type: tbl table |
| 352 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 353 |
#: opensuse-tumbleweed |
| 354 |
#, no-wrap |
| 355 |
msgid "MT-Unsafe race:getopt env" |
| 356 |
msgstr "غير آمن للمسارات المتعددة (MT-Unsafe) سباق:getopt env" |
| 357 |
|
| 358 |
#. type: SH |
| 359 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 360 |
#: opensuse-tumbleweed |
| 361 |
#, no-wrap |
| 362 |
msgid "STANDARDS" |
| 363 |
msgstr "المعايير" |
| 364 |
|
| 365 |
#. type: Plain text |
| 366 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 367 |
#: opensuse-tumbleweed |
| 368 |
msgid "GNU." |
| 369 |
msgstr "GNU." |
| 370 |
|
| 371 |
#. type: SH |
| 372 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 373 |
#: opensuse-tumbleweed |
| 374 |
#, no-wrap |
| 375 |
msgid "EXAMPLES" |
| 376 |
msgstr "أمثلة" |
| 377 |
|
| 378 |
#. type: Plain text |
| 379 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 380 |
#: opensuse-tumbleweed |
| 381 |
msgid "" |
| 382 |
"The following example program illustrates the use of B<getopt_long>() with " |
| 383 |
"most of its features." |
| 384 |
msgstr "يوضح البرنامج المثال التالي استخدام B<getopt_long>() مع معظم ميزاتها." |
| 385 |
|
| 386 |
#. type: Plain text |
| 387 |
#: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed |
| 388 |
#, no-wrap |
| 389 |
msgid "" |
| 390 |
"#include E<lt>getopt.hE<gt>\n" |
| 391 |
"#include E<lt>stdio.hE<gt>\n" |
| 392 |
"#include E<lt>stdlib.hE<gt>\n" |
| 393 |
"#include E<lt>unistd.hE<gt>\n" |
| 394 |
"\\&\n" |
| 395 |
"int\n" |
| 396 |
"main(int argc, char *argv[])\n" |
| 397 |
"{\n" |
| 398 |
" int c;\n" |
| 399 |
" int digit_optind = 0;\n" |
| 400 |
"\\&\n" |
| 401 |
" for (;;) {\n" |
| 402 |
" int this_option_optind = optind ? optind : 1;\n" |
| 403 |
" int option_index = 0;\n" |
| 404 |
" static struct option long_options[] = {\n" |
| 405 |
" {\"add\", required_argument, 0, 0 },\n" |
| 406 |
" {\"append\", no_argument, 0, 0 },\n" |
| 407 |
" {\"delete\", required_argument, 0, 0 },\n" |
| 408 |
" {\"verbose\", no_argument, 0, 0 },\n" |
| 409 |
" {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n" |
| 410 |
" {\"file\", required_argument, 0, 0 },\n" |
| 411 |
" {0, 0, 0, 0 }\n" |
| 412 |
" };\n" |
| 413 |
"\\&\n" |
| 414 |
" c = getopt_long(argc, argv, \"abc:d:012\",\n" |
| 415 |
" long_options, &option_index);\n" |
| 416 |
" if (c == -1)\n" |
| 417 |
" break;\n" |
| 418 |
"\\&\n" |
| 419 |
" switch (c) {\n" |
| 420 |
" case 0:\n" |
| 421 |
" printf(\"option %s\", long_options[option_index].name);\n" |
| 422 |
" if (optarg)\n" |
| 423 |
" printf(\" with arg %s\", optarg);\n" |
| 424 |
" printf(\"\\[rs]n\");\n" |
| 425 |
" break;\n" |
| 426 |
"\\&\n" |
| 427 |
" case \\[aq]0\\[aq]:\n" |
| 428 |
" case \\[aq]1\\[aq]:\n" |
| 429 |
" case \\[aq]2\\[aq]:\n" |
| 430 |
" if (digit_optind != 0 && digit_optind != this_option_optind)\n" |
| 431 |
" printf(\"digits occur in two different argv-elements.\\[rs]n\");\n" |
| 432 |
" digit_optind = this_option_optind;\n" |
| 433 |
" printf(\"option %c\\[rs]n\", c);\n" |
| 434 |
" break;\n" |
| 435 |
"\\&\n" |
| 436 |
" case \\[aq]a\\[aq]:\n" |
| 437 |
" printf(\"option a\\[rs]n\");\n" |
| 438 |
" break;\n" |
| 439 |
"\\&\n" |
| 440 |
" case \\[aq]b\\[aq]:\n" |
| 441 |
" printf(\"option b\\[rs]n\");\n" |
| 442 |
" break;\n" |
| 443 |
"\\&\n" |
| 444 |
" case \\[aq]c\\[aq]:\n" |
| 445 |
" printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 446 |
" break;\n" |
| 447 |
"\\&\n" |
| 448 |
" case \\[aq]d\\[aq]:\n" |
| 449 |
" printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 450 |
" break;\n" |
| 451 |
"\\&\n" |
| 452 |
" case \\[aq]?\\[aq]:\n" |
| 453 |
" break;\n" |
| 454 |
"\\&\n" |
| 455 |
" default:\n" |
| 456 |
" printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n" |
| 457 |
" }\n" |
| 458 |
" }\n" |
| 459 |
"\\&\n" |
| 460 |
" if (optind E<lt> argc) {\n" |
| 461 |
" printf(\"non-option ARGV-elements: \");\n" |
| 462 |
" while (optind E<lt> argc)\n" |
| 463 |
" printf(\"%s \", argv[optind++]);\n" |
| 464 |
" printf(\"\\[rs]n\");\n" |
| 465 |
" }\n" |
| 466 |
"\\&\n" |
| 467 |
" exit(EXIT_SUCCESS);\n" |
| 468 |
"}\n" |
| 469 |
msgstr "" |
| 470 |
"#include E<lt>getopt.hE<gt>\n" |
| 471 |
"#include E<lt>stdio.hE<gt>\n" |
| 472 |
"#include E<lt>stdlib.hE<gt>\n" |
| 473 |
"#include E<lt>unistd.hE<gt>\n" |
| 474 |
"\\&\n" |
| 475 |
"int\n" |
| 476 |
"main(int argc, char *argv[])\n" |
| 477 |
"{\n" |
| 478 |
" int c;\n" |
| 479 |
" int digit_optind = 0;\n" |
| 480 |
"\\&\n" |
| 481 |
" for (;;) {\n" |
| 482 |
" int this_option_optind = optind ? optind : 1;\n" |
| 483 |
" int option_index = 0;\n" |
| 484 |
" static struct option long_options[] = {\n" |
| 485 |
" {\"add\", required_argument, 0, 0 },\n" |
| 486 |
" {\"append\", no_argument, 0, 0 },\n" |
| 487 |
" {\"delete\", required_argument, 0, 0 },\n" |
| 488 |
" {\"verbose\", no_argument, 0, 0 },\n" |
| 489 |
" {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n" |
| 490 |
" {\"file\", required_argument, 0, 0 },\n" |
| 491 |
" {0, 0, 0, 0 }\n" |
| 492 |
" };\n" |
| 493 |
"\\&\n" |
| 494 |
" c = getopt_long(argc, argv, \"abc:d:012\",\n" |
| 495 |
" long_options, &option_index);\n" |
| 496 |
" if (c == -1)\n" |
| 497 |
" break;\n" |
| 498 |
"\\&\n" |
| 499 |
" switch (c) {\n" |
| 500 |
" case 0:\n" |
| 501 |
" printf(\"option %s\", long_options[option_index].name);\n" |
| 502 |
" if (optarg)\n" |
| 503 |
" printf(\" with arg %s\", optarg);\n" |
| 504 |
" printf(\"\\[rs]n\");\n" |
| 505 |
" break;\n" |
| 506 |
"\\&\n" |
| 507 |
" case \\[aq]0\\[aq]:\n" |
| 508 |
" case \\[aq]1\\[aq]:\n" |
| 509 |
" case \\[aq]2\\[aq]:\n" |
| 510 |
" if (digit_optind != 0 && digit_optind != this_option_optind)\n" |
| 511 |
" printf(\"digits occur in two different argv-elements.\\[rs]n\");\n" |
| 512 |
" digit_optind = this_option_optind;\n" |
| 513 |
" printf(\"option %c\\[rs]n\", c);\n" |
| 514 |
" break;\n" |
| 515 |
"\\&\n" |
| 516 |
" case \\[aq]a\\[aq]:\n" |
| 517 |
" printf(\"option a\\[rs]n\");\n" |
| 518 |
" break;\n" |
| 519 |
"\\&\n" |
| 520 |
" case \\[aq]b\\[aq]:\n" |
| 521 |
" printf(\"option b\\[rs]n\");\n" |
| 522 |
" break;\n" |
| 523 |
"\\&\n" |
| 524 |
" case \\[aq]c\\[aq]:\n" |
| 525 |
" printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 526 |
" break;\n" |
| 527 |
"\\&\n" |
| 528 |
" case \\[aq]d\\[aq]:\n" |
| 529 |
" printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 530 |
" break;\n" |
| 531 |
"\\&\n" |
| 532 |
" case \\[aq]?\\[aq]:\n" |
| 533 |
" break;\n" |
| 534 |
"\\&\n" |
| 535 |
" default:\n" |
| 536 |
" printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n" |
| 537 |
" }\n" |
| 538 |
" }\n" |
| 539 |
"\\&\n" |
| 540 |
" if (optind E<lt> argc) {\n" |
| 541 |
" printf(\"non-option ARGV-elements: \");\n" |
| 542 |
" while (optind E<lt> argc)\n" |
| 543 |
" printf(\"%s \", argv[optind++]);\n" |
| 544 |
" printf(\"\\[rs]n\");\n" |
| 545 |
" }\n" |
| 546 |
"\\&\n" |
| 547 |
" exit(EXIT_SUCCESS);\n" |
| 548 |
"}\n" |
| 549 |
|
| 550 |
#. SRC END |
| 551 |
#. type: SH |
| 552 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 553 |
#: opensuse-tumbleweed |
| 554 |
#, no-wrap |
| 555 |
msgid "SEE ALSO" |
| 556 |
msgstr "انظر أيضًا" |
| 557 |
|
| 558 |
#. type: Plain text |
| 559 |
#: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 |
| 560 |
#: opensuse-tumbleweed |
| 561 |
msgid "B<getopt>(1), B<getopt>(3), B<getopt_long_only>(3), B<getsubopt>(3)" |
| 562 |
msgstr "B<getopt>(1)، B<getopt>(3)، B<getopt_long_only>(3)، B<getsubopt>(3)" |
| 563 |
|
| 564 |
#. type: TH |
| 565 |
#: mageia-cauldron |
| 566 |
#, no-wrap |
| 567 |
msgid "2025-12-25" |
| 568 |
msgstr "25 ديسمبر 2025" |
| 569 |
|
| 570 |
#. type: TH |
| 571 |
#: mageia-cauldron |
| 572 |
#, no-wrap |
| 573 |
msgid "Linux man-pages 6.17" |
| 574 |
msgstr "صفحات دليل لينكس 6.17" |
| 575 |
|
| 576 |
#. type: Plain text |
| 577 |
#: mageia-cauldron |
| 578 |
#, no-wrap |
| 579 |
msgid "" |
| 580 |
"#include E<lt>getopt.hE<gt>\n" |
| 581 |
"#include E<lt>stdio.hE<gt>\n" |
| 582 |
"#include E<lt>stdlib.hE<gt>\n" |
| 583 |
"#include E<lt>unistd.hE<gt>\n" |
| 584 |
"\\&\n" |
| 585 |
"int\n" |
| 586 |
"main(int argc, char *argv[])\n" |
| 587 |
"{\n" |
| 588 |
" int c;\n" |
| 589 |
" int digit_optind = 0;\n" |
| 590 |
"\\&\n" |
| 591 |
" while (1) {\n" |
| 592 |
" int this_option_optind = optind ? optind : 1;\n" |
| 593 |
" int option_index = 0;\n" |
| 594 |
" static struct option long_options[] = {\n" |
| 595 |
" {\"add\", required_argument, 0, 0 },\n" |
| 596 |
" {\"append\", no_argument, 0, 0 },\n" |
| 597 |
" {\"delete\", required_argument, 0, 0 },\n" |
| 598 |
" {\"verbose\", no_argument, 0, 0 },\n" |
| 599 |
" {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n" |
| 600 |
" {\"file\", required_argument, 0, 0 },\n" |
| 601 |
" {0, 0, 0, 0 }\n" |
| 602 |
" };\n" |
| 603 |
"\\&\n" |
| 604 |
" c = getopt_long(argc, argv, \"abc:d:012\",\n" |
| 605 |
" long_options, &option_index);\n" |
| 606 |
" if (c == -1)\n" |
| 607 |
" break;\n" |
| 608 |
"\\&\n" |
| 609 |
" switch (c) {\n" |
| 610 |
" case 0:\n" |
| 611 |
" printf(\"option %s\", long_options[option_index].name);\n" |
| 612 |
" if (optarg)\n" |
| 613 |
" printf(\" with arg %s\", optarg);\n" |
| 614 |
" printf(\"\\[rs]n\");\n" |
| 615 |
" break;\n" |
| 616 |
"\\&\n" |
| 617 |
" case \\[aq]0\\[aq]:\n" |
| 618 |
" case \\[aq]1\\[aq]:\n" |
| 619 |
" case \\[aq]2\\[aq]:\n" |
| 620 |
" if (digit_optind != 0 && digit_optind != this_option_optind)\n" |
| 621 |
" printf(\"digits occur in two different argv-elements.\\[rs]n\");\n" |
| 622 |
" digit_optind = this_option_optind;\n" |
| 623 |
" printf(\"option %c\\[rs]n\", c);\n" |
| 624 |
" break;\n" |
| 625 |
"\\&\n" |
| 626 |
" case \\[aq]a\\[aq]:\n" |
| 627 |
" printf(\"option a\\[rs]n\");\n" |
| 628 |
" break;\n" |
| 629 |
"\\&\n" |
| 630 |
" case \\[aq]b\\[aq]:\n" |
| 631 |
" printf(\"option b\\[rs]n\");\n" |
| 632 |
" break;\n" |
| 633 |
"\\&\n" |
| 634 |
" case \\[aq]c\\[aq]:\n" |
| 635 |
" printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 636 |
" break;\n" |
| 637 |
"\\&\n" |
| 638 |
" case \\[aq]d\\[aq]:\n" |
| 639 |
" printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 640 |
" break;\n" |
| 641 |
"\\&\n" |
| 642 |
" case \\[aq]?\\[aq]:\n" |
| 643 |
" break;\n" |
| 644 |
"\\&\n" |
| 645 |
" default:\n" |
| 646 |
" printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n" |
| 647 |
" }\n" |
| 648 |
" }\n" |
| 649 |
"\\&\n" |
| 650 |
" if (optind E<lt> argc) {\n" |
| 651 |
" printf(\"non-option ARGV-elements: \");\n" |
| 652 |
" while (optind E<lt> argc)\n" |
| 653 |
" printf(\"%s \", argv[optind++]);\n" |
| 654 |
" printf(\"\\[rs]n\");\n" |
| 655 |
" }\n" |
| 656 |
"\\&\n" |
| 657 |
" exit(EXIT_SUCCESS);\n" |
| 658 |
"}\n" |
| 659 |
msgstr "" |
| 660 |
"#include E<lt>getopt.hE<gt>\n" |
| 661 |
"#include E<lt>stdio.hE<gt>\n" |
| 662 |
"#include E<lt>stdlib.hE<gt>\n" |
| 663 |
"#include E<lt>unistd.hE<gt>\n" |
| 664 |
"\\&\n" |
| 665 |
"int\n" |
| 666 |
"main(int argc, char *argv[])\n" |
| 667 |
"{\n" |
| 668 |
" int c;\n" |
| 669 |
" int digit_optind = 0;\n" |
| 670 |
"\\&\n" |
| 671 |
" while (1) {\n" |
| 672 |
" int this_option_optind = optind ? optind : 1;\n" |
| 673 |
" int option_index = 0;\n" |
| 674 |
" static struct option long_options[] = {\n" |
| 675 |
" {\"add\", required_argument, 0, 0 },\n" |
| 676 |
" {\"append\", no_argument, 0, 0 },\n" |
| 677 |
" {\"delete\", required_argument, 0, 0 },\n" |
| 678 |
" {\"verbose\", no_argument, 0, 0 },\n" |
| 679 |
" {\"create\", required_argument, 0, \\[aq]c\\[aq]},\n" |
| 680 |
" {\"file\", required_argument, 0, 0 },\n" |
| 681 |
" {0, 0, 0, 0 }\n" |
| 682 |
" };\n" |
| 683 |
"\\&\n" |
| 684 |
" c = getopt_long(argc, argv, \"abc:d:012\",\n" |
| 685 |
" long_options, &option_index);\n" |
| 686 |
" if (c == -1)\n" |
| 687 |
" break;\n" |
| 688 |
"\\&\n" |
| 689 |
" switch (c) {\n" |
| 690 |
" case 0:\n" |
| 691 |
" printf(\"option %s\", long_options[option_index].name);\n" |
| 692 |
" if (optarg)\n" |
| 693 |
" printf(\" with arg %s\", optarg);\n" |
| 694 |
" printf(\"\\[rs]n\");\n" |
| 695 |
" break;\n" |
| 696 |
"\\&\n" |
| 697 |
" case \\[aq]0\\[aq]:\n" |
| 698 |
" case \\[aq]1\\[aq]:\n" |
| 699 |
" case \\[aq]2\\[aq]:\n" |
| 700 |
" if (digit_optind != 0 && digit_optind != this_option_optind)\n" |
| 701 |
" printf(\"digits occur in two different argv-elements.\\[rs]n\");\n" |
| 702 |
" digit_optind = this_option_optind;\n" |
| 703 |
" printf(\"option %c\\[rs]n\", c);\n" |
| 704 |
" break;\n" |
| 705 |
"\\&\n" |
| 706 |
" case \\[aq]a\\[aq]:\n" |
| 707 |
" printf(\"option a\\[rs]n\");\n" |
| 708 |
" break;\n" |
| 709 |
"\\&\n" |
| 710 |
" case \\[aq]b\\[aq]:\n" |
| 711 |
" printf(\"option b\\[rs]n\");\n" |
| 712 |
" break;\n" |
| 713 |
"\\&\n" |
| 714 |
" case \\[aq]c\\[aq]:\n" |
| 715 |
" printf(\"option c with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 716 |
" break;\n" |
| 717 |
"\\&\n" |
| 718 |
" case \\[aq]d\\[aq]:\n" |
| 719 |
" printf(\"option d with value \\[aq]%s\\[aq]\\[rs]n\", optarg);\n" |
| 720 |
" break;\n" |
| 721 |
"\\&\n" |
| 722 |
" case \\[aq]?\\[aq]:\n" |
| 723 |
" break;\n" |
| 724 |
"\\&\n" |
| 725 |
" default:\n" |
| 726 |
" printf(\"?? getopt returned character code 0%o ??\\[rs]n\", c);\n" |
| 727 |
" }\n" |
| 728 |
" }\n" |
| 729 |
"\\&\n" |
| 730 |
" if (optind E<lt> argc) {\n" |
| 731 |
" printf(\"non-option ARGV-elements: \");\n" |
| 732 |
" while (optind E<lt> argc)\n" |
| 733 |
" printf(\"%s \", argv[optind++]);\n" |
| 734 |
" printf(\"\\[rs]n\");\n" |
| 735 |
" }\n" |
| 736 |
"\\&\n" |
| 737 |
" exit(EXIT_SUCCESS);\n" |
| 738 |
"}\n" |
| 739 |
|
| 740 |
#. type: TH |
| 741 |
#: opensuse-leap-16-1 opensuse-tumbleweed |
| 742 |
#, no-wrap |
| 743 |
msgid "Linux man-pages (unreleased)" |
| 744 |
msgstr "صفحات دليل لينكس (لم تصدر بعد)" |