Debian Codegraph @

po/ar/man3/scandir.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:42+0200\n"
9 "PO-Revision-Date: 2026-06-03 19:31+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 "scandir"
25 msgstr "scandir"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 فبراير 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-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "الاسم"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid ""
51 "scandir, scandirat, alphasort, versionsort - scan a directory for matching "
52 "entries"
53 msgstr ""
54 "scandir, scandirat, alphasort, versionsort - مسح دليل للبحث عن مدخلات مطابقة"
55
56 #. type: SH
57 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
58 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
59 #, no-wrap
60 msgid "LIBRARY"
61 msgstr "المكتبة"
62
63 #. type: Plain text
64 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
65 #: opensuse-leap-16-1 opensuse-tumbleweed
66 msgid "Standard C library (I<libc>,\\ I<-lc>)"
67 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
68
69 #. type: SH
70 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
71 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
72 #, no-wrap
73 msgid "SYNOPSIS"
74 msgstr "موجز"
75
76 #. type: Plain text
77 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
78 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
79 #, no-wrap
80 msgid "B<#include E<lt>dirent.hE<gt>>\n"
81 msgstr "B<#include E<lt>dirent.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
85 #: opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<int scandir(const char *restrict >I<dirp>B<,>\n"
89 "B< struct dirent ***restrict >I<namelist>B<,>\n"
90 "B< typeof(int (const struct dirent *)) *>I<filter>B<,>\n"
91 "B<typeof(int (const struct dirent **, const struct dirent **))>\n"
92 "B< *>I<compar>B<);>\n"
93 msgstr ""
94 "B<int scandir(const char *restrict >I<dirp>B<,>\n"
95 "B< struct dirent ***restrict >I<namelist>B<,>\n"
96 "B< typeof(int (const struct dirent *)) *>I<filter>B<,>\n"
97 "B<typeof(int (const struct dirent **, const struct dirent **))>\n"
98 "B< *>I<compar>B<);>\n"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 #, no-wrap
104 msgid ""
105 "B<int alphasort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n"
106 "B<int versionsort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n"
107 msgstr ""
108 "B<int alphasort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n"
109 "B<int versionsort(const struct dirent **>I<a>B<, const struct dirent **>I<b>B<);>\n"
110
111 #. type: Plain text
112 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
113 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
114 #, no-wrap
115 msgid ""
116 "B<#include E<lt>fcntl.hE<gt>> /* Definition of AT_* constants */\n"
117 "B<#include E<lt>dirent.hE<gt>>\n"
118 msgstr ""
119 "B<#include E<lt>fcntl.hE<gt>> /* تعريف ثوابت AT_* */\n"
120 "B<#include E<lt>dirent.hE<gt>>\n"
121
122 #. type: Plain text
123 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
124 #: opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid ""
127 "B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n"
128 "B< struct dirent ***restrict >I<namelist>B<,>\n"
129 "B< typeof(int (const struct dirent *)) *>I<filter>B<,>\n"
130 "B<typeof(int (const struct dirent **, const struct dirent **))>\n"
131 "B< *>I<compar>B<);>\n"
132 msgstr ""
133 "B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n"
134 "B< struct dirent ***restrict >I<namelist>B<,>\n"
135 "B< typeof(int (const struct dirent *)) *>I<filter>B<,>\n"
136 "B<typeof(int (const struct dirent **, const struct dirent **))>\n"
137 "B< *>I<compar>B<);>\n"
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
144 msgstr ""
145 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 msgid "B<scandir>(), B<alphasort>():"
151 msgstr "B<scandir>(), B<alphasort>():"
152
153 #. type: Plain text
154 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
155 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
156 #, no-wrap
157 msgid ""
158 " /* Since glibc 2.10: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
159 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
160 msgstr ""
161 " /* منذ glibc 2.10: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
162 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE || _SVID_SOURCE\n"
163
164 #. type: Plain text
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 msgid "B<versionsort>():"
168 msgstr "B<versionsort>():"
169
170 #. type: Plain text
171 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
172 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
173 #, no-wrap
174 msgid " _GNU_SOURCE\n"
175 msgstr " _GNU_SOURCE\n"
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 msgid "B<scandirat>():"
181 msgstr "B<scandirat>():"
182
183 #. type: SH
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 #, no-wrap
187 msgid "DESCRIPTION"
188 msgstr "الوصف"
189
190 #. type: Plain text
191 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
192 #: opensuse-tumbleweed
193 msgid ""
194 "The B<scandir>() function scans the directory I<dirp>, calling I<filter>() "
195 "on each directory entry. Entries for which I<filter>() returns nonzero are "
196 "stored in strings allocated via B<malloc>(3), sorted using B<qsort>(3) with "
197 "the comparison function I<compar>(), and collected in array I<namelist> "
198 "which is allocated via B<malloc>(3). If I<filter> is NULL, all entries are "
199 "selected."
200 msgstr ""
201 "تفحص الدالة B<scandir>() الدليل I<dirp>، وتستدعي I<filter>() على كل مدخل "
202 "دليل. تُخزَّن المدخلات التي تُرجع I<filter>() قيمة غير صفرية في سلاسل محارف "
203 "مخصصة عبر B<malloc>(3)، وتُرتَّب باستخدام B<qsort>(3) مع دالة المقارنة "
204 "I<compar>()، وتُجمَع في مصفوفة I<namelist> المخصصة عبر B<malloc>(3). إذا كان "
205 "I<filter> NULL، تُحدد جميع المدخلات."
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid ""
211 "The B<alphasort>() and B<versionsort>() functions can be used as the "
212 "comparison function I<compar>(). The former sorts directory entries using "
213 "B<strcoll>(3), the latter using B<strverscmp>(3) on the strings I<(*a)-"
214 "E<gt>d_name> and I<(*b)-E<gt>d_name>."
215 msgstr ""
216 "يمكن استخدام الدالتين B<alphasort>() و B<versionsort>() كدالة مقارنة "
217 "I<compar>(). ترتب الأولى مدخلات الدليل باستخدام B<strcoll>(3)، والثانية "
218 "باستخدام B<strverscmp>(3) على السلاسل I<(*a)-E<gt>d_name> و I<(*b)-"
219 "E<gt>d_name>."
220
221 #. type: SS
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 #, no-wrap
225 msgid "scandirat()"
226 msgstr "scandirat()"
227
228 #. type: Plain text
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 msgid ""
232 "The B<scandirat>() function operates in exactly the same way as "
233 "B<scandir>(), except for the differences described here."
234 msgstr ""
235 "تعمل الدالة B<scandirat>() بنفس طريقة B<scandir>() تمامًا، باستثناء "
236 "الاختلافات الموصوفة هنا."
237
238 #. type: Plain text
239 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
240 #: opensuse-tumbleweed
241 msgid ""
242 "If I<dirp> is relative, then it is interpreted relative to the directory "
243 "referred to by the file descriptor I<dirfd> (rather than relative to the "
244 "current working directory of the calling process, as is done by "
245 "B<scandir>() for a relative pathname)."
246 msgstr ""
247 "إذا كان I<dirp> نسبيًا، فسيُفسَّر بالنسبة إلى الدليل المشار إليه بواصف الملف "
248 "I<dirfd> (بدلاً من دليل العمل الحالي للعملية المستدعية، كما تفعل "
249 "B<scandir>() لمسار نسبي)."
250
251 #. type: Plain text
252 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
253 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
254 msgid ""
255 "If I<dirp> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
256 "I<dirp> is interpreted relative to the current working directory of the "
257 "calling process (like B<scandir>())."
258 msgstr ""
259 "إذا كان I<dirp> نسبيًا و I<dirfd> هو القيمة الخاصة B<AT_FDCWD>، فسيُفسَّر "
260 "I<dirp> بالنسبة إلى دليل العمل الحالي للعملية المستدعية (مثل B<scandir>())."
261
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 msgid "If I<dirp> is absolute, then I<dirfd> is ignored."
266 msgstr "إذا كان I<dirp> مطلقًا، فسيُتجاهل I<dirfd>."
267
268 #. type: Plain text
269 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
270 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
271 msgid "See B<openat>(2) for an explanation of the need for B<scandirat>()."
272 msgstr "انظر B<openat>(2) لشرح الحاجة إلى B<scandirat>()."
273
274 #. type: SH
275 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
276 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
277 #, no-wrap
278 msgid "RETURN VALUE"
279 msgstr "قيمة الإرجاع"
280
281 #. type: Plain text
282 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
283 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
284 msgid ""
285 "The B<scandir>() function returns the number of directory entries "
286 "selected. On error, -1 is returned, with I<errno> set to indicate the error."
287 msgstr ""
288 "تُرجع الدالة B<scandir>() عدد مدخلات الدليل المحددة. عند حدوث خطأ، تُرجع -1، "
289 "مع تعيين I<errno> للإشارة إلى الخطأ."
290
291 #. type: Plain text
292 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
293 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
294 msgid ""
295 "The B<alphasort>() and B<versionsort>() functions return an integer less "
296 "than, equal to, or greater than zero if the first argument is considered to "
297 "be respectively less than, equal to, or greater than the second."
298 msgstr ""
299 "تُرجع الدالتان B<alphasort>() و B<versionsort>() عددًا صحيحًا أقل من، أو "
300 "يساوي، أو أكبر من الصفر إذا كانت الوسيطة الأولى تُعتبر على التوالي أقل من، أو "
301 "تساوي، أو أكبر من الثانية."
302
303 #. type: SH
304 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
305 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
306 #, no-wrap
307 msgid "ERRORS"
308 msgstr "الأخطاء"
309
310 #. type: TP
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "B<EBADF>"
315 msgstr "B<EBADF>"
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid ""
321 "(B<scandirat>()) I<dirp> is relative but I<dirfd> is neither B<AT_FDCWD> "
322 "nor a valid file descriptor."
323 msgstr ""
324 "(B<scandirat>()) I<dirp> نسبي ولكن I<dirfd> ليس B<AT_FDCWD> ولا واصف ملف "
325 "صالح."
326
327 #. type: TP
328 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
329 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
330 #, no-wrap
331 msgid "B<ENOENT>"
332 msgstr "B<ENOENT>"
333
334 #. type: Plain text
335 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
336 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
337 msgid "The path in I<dirp> does not exist."
338 msgstr "المسار في I<dirp> غير موجود."
339
340 #. type: TP
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 #, no-wrap
344 msgid "B<ENOMEM>"
345 msgstr "B<ENOMEM>"
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid "Insufficient memory to complete the operation."
351 msgstr "الذاكرة غير كافية لإكمال العملية."
352
353 #. type: TP
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "B<ENOTDIR>"
358 msgstr "B<ENOTDIR>"
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid "The path in I<dirp> is not a directory."
364 msgstr "المسار في I<dirp> ليس دليلاً."
365
366 #. type: Plain text
367 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
368 #: opensuse-tumbleweed
369 msgid ""
370 "(B<scandirat>()) I<dirp> is relative and I<dirfd> is a file descriptor "
371 "referring to a file other than a directory."
372 msgstr ""
373 "(B<scandirat>()) I<dirp> نسبي و I<dirfd> هو واصف ملف يشير إلى ملف غير دليل."
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 "ATTRIBUTES"
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 "For an explanation of the terms used in this section, see B<attributes>(7)."
387 msgstr ""
388 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
389
390 #. type: tbl table
391 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
392 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
393 #, no-wrap
394 msgid "Interface"
395 msgstr "الواجهة"
396
397 #. type: tbl table
398 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
399 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
400 #, no-wrap
401 msgid "Attribute"
402 msgstr "السمة"
403
404 #. type: tbl table
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "Value"
409 msgstr "القيمة"
410
411 #. type: tbl table
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 #, no-wrap
415 msgid ".na\n"
416 msgstr ".na\n"
417
418 #. type: tbl table
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 #, no-wrap
422 msgid ".nh\n"
423 msgstr ".nh\n"
424
425 #. type: tbl table
426 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
427 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
428 #, no-wrap
429 msgid ""
430 "B<scandir>(),\n"
431 "B<scandirat>()"
432 msgstr ""
433 "B<scandir>()،\n"
434 "B<scandirat>()"
435
436 #. type: tbl table
437 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
438 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
439 #, no-wrap
440 msgid "Thread safety"
441 msgstr "سلامة الخيوط"
442
443 #. type: tbl table
444 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
445 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
446 #, no-wrap
447 msgid "MT-Safe"
448 msgstr "MT-Safe"
449
450 #. type: tbl table
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid ""
455 "B<alphasort>(),\n"
456 "B<versionsort>()"
457 msgstr ""
458 "B<alphasort>()،\n"
459 "B<versionsort>()"
460
461 #. type: tbl table
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 #, no-wrap
465 msgid "MT-Safe locale"
466 msgstr "المنطقة (locale) آمنة لتعدد المسالك (MT-Safe)"
467
468 #. type: SH
469 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
470 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
471 #, no-wrap
472 msgid "STANDARDS"
473 msgstr "المعايير"
474
475 #. type: TP
476 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
477 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
478 #, no-wrap
479 msgid "B<alphasort>()"
480 msgstr "B<alphasort>()"
481
482 #. type: TQ
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "B<scandir>()"
487 msgstr "B<scandir>()"
488
489 #. type: Plain text
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 msgid "POSIX.1-2008."
493 msgstr "POSIX.1-2008."
494
495 #. type: TP
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 #, no-wrap
499 msgid "B<versionsort>()"
500 msgstr "B<versionsort>()"
501
502 #. type: TP
503 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
504 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
505 #, no-wrap
506 msgid "B<scandirat>()"
507 msgstr "B<scandirat>()"
508
509 #. type: Plain text
510 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
511 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
512 msgid "GNU."
513 msgstr "GNU."
514
515 #. type: SH
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "HISTORY"
520 msgstr "التاريخ"
521
522 #. type: Plain text
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 msgid "4.3BSD, POSIX.1-2008."
526 msgstr "4.3BSD، POSIX.1-2008."
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid "glibc 2.1."
532 msgstr "glibc 2.1."
533
534 #. .P
535 #. The functions
536 #. .BR scandir ()
537 #. and
538 #. .BR alphasort ()
539 #. are from 4.3BSD, and have been available under Linux since libc4.
540 #. Libc4 and libc5 use the more precise prototype
541 #. .sp
542 #. .nf
543 #. int alphasort(const struct dirent ** a,
544 #. const struct dirent **b);
545 #. .fi
546 #. .sp
547 #. but glibc 2.0 returns to the imprecise BSD prototype.
548 #. type: Plain text
549 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
550 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
551 msgid "glibc 2.15."
552 msgstr "glibc 2.15."
553
554 #. type: SH
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 #, no-wrap
558 msgid "NOTES"
559 msgstr "ملاحظات"
560
561 #. type: Plain text
562 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
563 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
564 msgid ""
565 "Since glibc 2.1, B<alphasort>() calls B<strcoll>(3); earlier it used "
566 "B<strcmp>(3)."
567 msgstr ""
568 "منذ glibc 2.1، تستدعي B<alphasort>() الدالة B<strcoll>(3)؛ سابقًا كانت "
569 "تستخدم B<strcmp>(3)."
570
571 #. type: Plain text
572 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
573 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
574 msgid ""
575 "Before glibc 2.10, the two arguments of B<alphasort>() and "
576 "B<versionsort>() were typed as I<const void\\ *>. When B<alphasort>() was "
577 "standardized in POSIX.1-2008, the argument type was specified as the type-"
578 "safe I<const struct dirent\\ **>, and glibc 2.10 changed the definition of "
579 "B<alphasort>() (and the nonstandard B<versionsort>()) to match the "
580 "standard."
581 msgstr ""
582 "قبل glibc 2.10، كانت الوسيطتان للدالتين B<alphasort>() و B<versionsort>() "
583 "مكتوبتين كـ I<const void\\ *>. عندما تم توحيد B<alphasort>() في "
584 "POSIX.1-2008، تم تحديد نوع الوسيطة كـ I<const struct dirent\\ **> الآمن من "
585 "حيث النوع، وغيّر glibc 2.10 تعريف B<alphasort>() (و B<versionsort>() غير "
586 "القياسية) لمطابقة المعيار."
587
588 #. type: SH
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 #, no-wrap
592 msgid "EXAMPLES"
593 msgstr "أمثلة"
594
595 #. type: Plain text
596 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
597 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
598 msgid ""
599 "The program below prints a list of the files in the current directory in "
600 "reverse order."
601 msgstr "يطبع البرنامج أدناه قائمة بالملفات في الدليل الحالي بترتيب عكسي."
602
603 #. type: SS
604 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
605 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
606 #, no-wrap
607 msgid "Program source"
608 msgstr "مصدر البرنامج"
609
610 #. type: Plain text
611 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
612 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
613 #, no-wrap
614 msgid ""
615 "#define _DEFAULT_SOURCE\n"
616 "#include E<lt>dirent.hE<gt>\n"
617 "#include E<lt>stdio.hE<gt>\n"
618 "#include E<lt>stdlib.hE<gt>\n"
619 "\\&\n"
620 "int\n"
621 "main(void)\n"
622 "{\n"
623 " struct dirent **namelist;\n"
624 " int n;\n"
625 "\\&\n"
626 " n = scandir(\".\", &namelist, NULL, alphasort);\n"
627 " if (n == -1) {\n"
628 " perror(\"scandir\");\n"
629 " exit(EXIT_FAILURE);\n"
630 " }\n"
631 "\\&\n"
632 " while (n--) {\n"
633 " printf(\"%s\\[rs]n\", namelist[n]-E<gt>d_name);\n"
634 " free(namelist[n]);\n"
635 " }\n"
636 " free(namelist);\n"
637 "\\&\n"
638 " exit(EXIT_SUCCESS);\n"
639 "}\n"
640 msgstr ""
641 "#define _DEFAULT_SOURCE\n"
642 "#include E<lt>dirent.hE<gt>\n"
643 "#include E<lt>stdio.hE<gt>\n"
644 "#include E<lt>stdlib.hE<gt>\n"
645 "\\&\n"
646 "int\n"
647 "main(void)\n"
648 "{\n"
649 " struct dirent **namelist;\n"
650 " int n;\n"
651 "\\&\n"
652 " n = scandir(\".\", &namelist, NULL, alphasort);\n"
653 " if (n == -1) {\n"
654 " perror(\"scandir\");\n"
655 " exit(EXIT_FAILURE);\n"
656 " }\n"
657 "\\&\n"
658 " while (n--) {\n"
659 " printf(\"%s\\[rs]n\", namelist[n]-E<gt>d_name);\n"
660 " free(namelist[n]);\n"
661 " }\n"
662 " free(namelist);\n"
663 "\\&\n"
664 " exit(EXIT_SUCCESS);\n"
665 "}\n"
666
667 #. SRC END
668 #. type: SH
669 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
670 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
671 #, no-wrap
672 msgid "SEE ALSO"
673 msgstr "انظر أيضًا"
674
675 #. type: Plain text
676 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
677 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
678 msgid ""
679 "B<closedir>(3), B<fnmatch>(3), B<opendir>(3), B<readdir>(3), "
680 "B<rewinddir>(3), B<seekdir>(3), B<strcmp>(3), B<strcoll>(3), "
681 "B<strverscmp>(3), B<telldir>(3)"
682 msgstr ""
683 "B<closedir>(3)، B<fnmatch>(3)، B<opendir>(3)، B<readdir>(3)، "
684 "B<rewinddir>(3)، B<seekdir>(3)، B<strcmp>(3)، B<strcoll>(3)، "
685 "B<strverscmp>(3)، B<telldir>(3)"
686
687 #. type: TH
688 #: debian-trixie
689 #, no-wrap
690 msgid "2024-06-15"
691 msgstr "15 يونيو 2024"
692
693 #. type: TH
694 #: debian-trixie
695 #, no-wrap
696 msgid "Linux man-pages 6.9.1"
697 msgstr "صفحات دليل لينكس 6.9.1"
698
699 #. type: Plain text
700 #: debian-trixie
701 msgid "Standard C library (I<libc>, I<-lc>)"
702 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
703
704 #. type: Plain text
705 #: debian-trixie
706 #, no-wrap
707 msgid ""
708 "B<int scandir(const char *restrict >I<dirp>B<,>\n"
709 "B< struct dirent ***restrict >I<namelist>B<,>\n"
710 "B< int (*>I<filter>B<)(const struct dirent *),>\n"
711 "B< int (*>I<compar>B<)(const struct dirent **,>\n"
712 "B<const struct dirent **));>\n"
713 msgstr ""
714 "B<int scandir(const char *restrict >I<dirp>B<,>\n"
715 "B< struct dirent ***restrict >I<namelist>B<,>\n"
716 "B< int (*>I<filter>B<)(const struct dirent *),>\n"
717 "B< int (*>I<compar>B<)(const struct dirent **,>\n"
718 "B<const struct dirent **));>\n"
719
720 #. type: Plain text
721 #: debian-trixie
722 #, no-wrap
723 msgid ""
724 "B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n"
725 "B< struct dirent ***restrict >I<namelist>B<,>\n"
726 "B< int (*>I<filter>B<)(const struct dirent *),>\n"
727 "B< int (*>I<compar>B<)(const struct dirent **,>\n"
728 "B<const struct dirent **));>\n"
729 msgstr ""
730 "B<int scandirat(int >I<dirfd>B<, const char *restrict >I<dirp>B<,>\n"
731 "B< struct dirent ***restrict >I<namelist>B<,>\n"
732 "B< int (*>I<filter>B<)(const struct dirent *),>\n"
733 "B< int (*>I<compar>B<)(const struct dirent **,>\n"
734 "B<const struct dirent **));>\n"
735
736 #. type: Plain text
737 #: debian-trixie fedora-44 fedora-rawhide
738 msgid ""
739 "The B<scandir>() function scans the directory I<dirp>, calling I<filter>() "
740 "on each directory entry. Entries for which I<filter>() returns nonzero are "
741 "stored in strings allocated via B<malloc>(3), sorted using B<qsort>(3) with "
742 "the comparison function I<compar>(), and collected in array I<namelist> "
743 "which is allocated via B<malloc>(3). If I<filter> is NULL, all entries are "
744 "selected."
745 msgstr ""
746 "تفحص الدالة B<scandir>() الدليل I<dirp>، وتستدعي I<filter>() على كل مدخل "
747 "دليل. تُخزَّن المدخلات التي تُرجع I<filter>() قيمة غير صفرية في سلاسل محارف "
748 "مخصصة عبر B<malloc>(3)، وتُرتَّب باستخدام B<qsort>(3) مع دالة المقارنة "
749 "I<compar>()، وتُجمَع في مصفوفة I<namelist> المخصصة عبر B<malloc>(3). إذا كان "
750 "I<filter> NULL، تُحدَّد جميع المدخلات."
751
752 #. type: Plain text
753 #: debian-trixie fedora-44 fedora-rawhide
754 msgid ""
755 "If the pathname given in I<dirp> is relative, then it is interpreted "
756 "relative to the directory referred to by the file descriptor I<dirfd> "
757 "(rather than relative to the current working directory of the calling "
758 "process, as is done by B<scandir>() for a relative pathname)."
759 msgstr ""
760 "إذا كان اسم المسار المُعطى في I<dirp> نسبيًا، فسيُفسَّر بالنسبة إلى الدليل المشار "
761 "إليه بواسطة واصف الملف I<dirfd> (بدلاً من نسبته إلى دليل العمل الحالي للعملية "
762 "المستدعية، كما تفعل B<scandir>() لاسم مسار نسبي)."
763
764 #. type: Plain text
765 #: debian-trixie fedora-44 fedora-rawhide
766 msgid ""
767 "(B<scandirat>()) I<dirp> is a relative pathname and I<dirfd> is a file "
768 "descriptor referring to a file other than a directory."
769 msgstr ""
770 "(B<scandirat>()) I<dirp> هو اسم مسار نسبي و I<dirfd> هو واصف ملف يشير إلى "
771 "ملف غير دليل."
772
773 #. type: TH
774 #: fedora-44 fedora-rawhide
775 #, no-wrap
776 msgid "2024-12-13"
777 msgstr "13 ديسمبر 2024"
778
779 #. type: TH
780 #: fedora-44 fedora-rawhide
781 #, no-wrap
782 msgid "Linux man-pages 6.13"
783 msgstr "صفحات دليل لينكس 6.13"
784
785 #. type: TH
786 #: mageia-cauldron
787 #, no-wrap
788 msgid "Linux man-pages 6.17"
789 msgstr "صفحات دليل لينكس 6.17"
790
791 #. type: TH
792 #: opensuse-leap-16-1 opensuse-tumbleweed
793 #, no-wrap
794 msgid "Linux man-pages (unreleased)"
795 msgstr "صفحات دليل لينكس (لم تصدر بعد)"