Debian Codegraph @

po/ar/man3/ftw.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:25+0200\n"
9 "PO-Revision-Date: 2026-06-01 18:06+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 "ftw"
25 msgstr "ftw"
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 "ftw, nftw - file tree walk"
51 msgstr "ftw, nftw - التجوال في شجرة الملفات"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "المكتبة"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "موجز"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid "B<#include E<lt>ftw.hE<gt>>\n"
78 msgstr "B<#include E<lt>ftw.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
82 #: opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<int nftw(const char *>I<dirpath>B<,>\n"
86 "B< typeof(int (const char *>I<fpath>B<, const struct stat *>I<sb,>\n"
87 "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<))>\n"
88 "B< *>I<fn,>\n"
89 "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
90 msgstr ""
91 "B<int nftw(const char *>I<dirpath>B<,>\n"
92 "B< typeof(int (const char *>I<fpath>B<, const struct stat *>I<sb,>\n"
93 "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<))>\n"
94 "B< *>I<fn,>\n"
95 "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
96
97 #. type: Plain text
98 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
99 #: opensuse-leap-16-1 opensuse-tumbleweed
100 #, no-wrap
101 msgid ""
102 "B<[[deprecated]]>\n"
103 "B<int ftw(const char *>I<dirpath>B<,>\n"
104 "B< typeof(int (const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
105 "B< int >I<typeflag>B<))>\n"
106 "B< *>I<fn,>\n"
107 "B< int >I<nopenfd>B<);>\n"
108 msgstr ""
109 "B<[[deprecated]]>\n"
110 "B<int ftw(const char *>I<dirpath>B<,>\n"
111 "B< typeof(int (const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
112 "B< int >I<typeflag>B<))>\n"
113 "B< *>I<fn,>\n"
114 "B< int >I<nopenfd>B<);>\n"
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid ""
120 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
121 msgstr ""
122 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
123
124 #. type: Plain text
125 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
126 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
127 msgid "B<nftw>():"
128 msgstr "B<nftw>():"
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 #, no-wrap
134 msgid " _XOPEN_SOURCE E<gt>= 500\n"
135 msgstr " _XOPEN_SOURCE E<gt>= 500\n"
136
137 #. type: SH
138 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
139 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
140 #, no-wrap
141 msgid "DESCRIPTION"
142 msgstr "الوصف"
143
144 #. type: Plain text
145 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
146 #: opensuse-tumbleweed
147 msgid ""
148 "B<nftw>() walks through the directory tree that is located under the "
149 "directory I<dirpath>, and calls I<fn>() once for each entry in the tree. "
150 "By default, directories are handled before the files and subdirectories they "
151 "contain (preorder traversal)."
152 msgstr ""
153 "B<nftw>() يتجول في شجرة الدليل الموجودة تحت الدليل I<dirpath>، ويستدعي "
154 "I<fn>() مرة واحدة لكل مدخل في الشجرة. مبدئيًا، تُعالج الدلائل قبل الملفات "
155 "والدلائل الفرعية التي تحتويها (اجتياز بالترتيب المسبق)."
156
157 #. type: Plain text
158 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
159 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
160 msgid ""
161 "To avoid using up all of the calling process's file descriptors, I<nopenfd> "
162 "specifies the maximum number of directories that B<nftw>() will hold open "
163 "simultaneously. When the search depth exceeds this, B<nftw>() will become "
164 "slower because directories have to be closed and reopened. B<nftw>() uses "
165 "at most one file descriptor for each level in the directory tree."
166 msgstr ""
167 "لتجنب استهلاك كل واصفات الملفات لعملية الاستدعاء، يُحدد I<nopenfd> الحد "
168 "الأقصى لعدد الدلائل التي سيبقيها B<nftw>() مفتوحة في وقت واحد. عندما "
169 "يتجاوز عمق البحث هذا، يصبح B<nftw>() أبطأ لأنه يجب إغلاق الدلائل وإعادة "
170 "فتحها. يستخدم B<nftw>() واصف ملف واحد على الأكثر لكل مستوى في شجرة الدليل."
171
172 #. type: Plain text
173 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
174 #: opensuse-tumbleweed
175 msgid ""
176 "For each entry found in the tree, B<nftw>() calls I<fn>() with four "
177 "arguments: I<fpath>, I<sb>, I<typeflag>, and I<ftwbuf>. I<fpath> is the "
178 "pathname of the entry, and is expressed either as a pathname relative to the "
179 "calling process's current working directory at the time of the call to "
180 "B<nftw>(), if I<dirpath> was expressed as a relative pathname, or as an "
181 "absolute pathname, if I<dirpath> was expressed as an absolute pathname. "
182 "I<sb> is a pointer to the I<stat> structure returned by a call to "
183 "B<stat>(2) for I<fpath>."
184 msgstr ""
185 "لكل مدخل يُوجد في الشجرة، يستدعي B<nftw>() I<fn>() بأربع وسائط: I<fpath> و "
186 "I<sb> و I<typeflag> و I<ftwbuf>. I<fpath> هو اسم مسار المدخل، ويُعبر عنه إما "
187 "كاسم مسار نسبي لدليل العمل الحالي لعملية الاستدعاء وقت استدعاء B<nftw>()، "
188 "إذا عُبر عن I<dirpath> كاسم مسار نسبي، أو كاسم مسار مطلق، إذا عُبر عن "
189 "I<dirpath> كاسم مسار مطلق. I<sb> هو مؤشر لبنية I<stat> التي أرجعها استدعاء "
190 "B<stat>(2) لـ I<fpath>."
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "The I<typeflag> argument passed to I<fn>() is an integer that has one of "
197 "the following values:"
198 msgstr ""
199 "الوسيطة I<typeflag> الممررة إلى I<fn>() هي عدد صحيح له إحدى القيم التالية:"
200
201 #. type: TP
202 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
203 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
204 #, no-wrap
205 msgid "B<FTW_F>"
206 msgstr "B<FTW_F>"
207
208 #. type: Plain text
209 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
210 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
211 msgid "I<fpath> is a regular file."
212 msgstr "I<fpath> هو ملف عادي."
213
214 #. type: TP
215 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
216 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
217 #, no-wrap
218 msgid "B<FTW_D>"
219 msgstr "B<FTW_D>"
220
221 #. type: Plain text
222 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
223 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
224 msgid "I<fpath> is a directory."
225 msgstr "I<fpath> هو دليل."
226
227 #. type: TP
228 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
229 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
230 #, no-wrap
231 msgid "B<FTW_DNR>"
232 msgstr "B<FTW_DNR>"
233
234 #. type: Plain text
235 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
236 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
237 msgid "I<fpath> is a directory which can't be read."
238 msgstr "I<fpath> هو دليل لا يمكن قراءته."
239
240 #. type: TP
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid "B<FTW_DP>"
245 msgstr "B<FTW_DP>"
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid ""
251 "I<fpath> is a directory, and B<FTW_DEPTH> was specified in I<flags>. (If "
252 "B<FTW_DEPTH> was not specified in I<flags>, then directories will always be "
253 "visited with I<typeflag> set to B<FTW_D>.) All of the files and "
254 "subdirectories within I<fpath> have been processed."
255 msgstr ""
256 "I<fpath> هو دليل، وحدد B<FTW_DEPTH> في I<flags>. (إذا لم يُحدد B<FTW_DEPTH> "
257 "في I<flags>، فستُزار الدلائل دائمًا مع تعيين I<typeflag> إلى B<FTW_D>.) عُولجت "
258 "جميع الملفات والدلائل الفرعية داخل I<fpath>."
259
260 #. type: TP
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "B<FTW_NS>"
265 msgstr "B<FTW_NS>"
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "The B<stat>(2) call failed on I<fpath>, which is not a symbolic link. The "
272 "probable cause for this is that the caller had read permission on the parent "
273 "directory, so that the filename I<fpath> could be seen, but did not have "
274 "execute permission, so that the file could not be reached for B<stat>(2). "
275 "The contents of the buffer pointed to by I<sb> are undefined."
276 msgstr ""
277 "فشل استدعاء B<stat>(2) على I<fpath>، وهو ليس رابطًا رمزيًا. السبب المحتمل "
278 "لذلك هو أن المستدعي كان لديه إذن قراءة على الدليل الأب، بحيث يمكن رؤية اسم "
279 "الملف I<fpath>، ولكن لم يكن لديه إذن تنفيذ، بحيث لا يمكن الوصول إلى الملف لـ "
280 "B<stat>(2). محتويات المخزن المؤقت المشار إليه بواسطة I<sb> غير محددة."
281
282 #. type: TP
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "B<FTW_SL>"
287 msgstr "B<FTW_SL>"
288
289 #. To obtain the definition of this constant from
290 #. .IR <ftw.h> ,
291 #. either
292 #. .B _BSD_SOURCE
293 #. must be defined, or
294 #. .BR _XOPEN_SOURCE
295 #. must be defined with a value of 500 or more.
296 #. type: Plain text
297 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
298 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
299 msgid "I<fpath> is a symbolic link, and B<FTW_PHYS> was set in I<flags>."
300 msgstr "I<fpath> هو رابط رمزي، ووُضع B<FTW_PHYS> في I<flags>."
301
302 #. type: TP
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 #, no-wrap
306 msgid "B<FTW_SLN>"
307 msgstr "B<FTW_SLN>"
308
309 #. type: Plain text
310 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
311 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
312 msgid ""
313 "I<fpath> is a symbolic link pointing to a nonexistent file. (This occurs "
314 "only if B<FTW_PHYS> is not set.) In this case the I<sb> argument passed to "
315 "I<fn>() contains information returned by performing B<lstat>(2) on the "
316 "\"dangling\" symbolic link. (But see BUGS.)"
317 msgstr ""
318 "I<fpath> هو رابط رمزي يشير إلى ملف غير موجود. (يحدث هذا فقط إذا لم يُضبط "
319 "B<FTW_PHYS>.) في هذه الحالة، تحتوي الوسيطة I<sb> الممررة إلى I<fn>() على "
320 "معلومات أُعيدت بتنفيذ B<lstat>(2) على الرابط الرمزي \"المتدلي\". (لكن انظر "
321 "BUGS.)"
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "The fourth argument (I<ftwbuf>) that B<nftw>() supplies when calling "
328 "I<fn>() is a pointer to a structure of type I<FTW>:"
329 msgstr ""
330 "الوسيطة الرابعة (I<ftwbuf>) التي يوفرها B<nftw>() عند استدعاء I<fn>() هي "
331 "مؤشر لبنية من النوع I<FTW>:"
332
333 #. type: Plain text
334 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
335 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
336 #, no-wrap
337 msgid ""
338 "struct FTW {\n"
339 " int base;\n"
340 " int level;\n"
341 "};\n"
342 msgstr ""
343 "struct FTW {\n"
344 " int base;\n"
345 " int level;\n"
346 "};\n"
347
348 #. type: Plain text
349 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
350 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
351 msgid ""
352 "I<base> is the offset of the filename (i.e., basename component) in the "
353 "pathname given in I<fpath>. I<level> is the depth of I<fpath> in the "
354 "directory tree, relative to the root of the tree (I<dirpath>, which has "
355 "depth 0)."
356 msgstr ""
357 "I<base> هو إزاحة اسم الملف (أي مكون الاسم الأساسي) في اسم المسار المعطى في "
358 "I<fpath>. I<level> هو عمق I<fpath> في شجرة الدليل، نسبة إلى جذر الشجرة "
359 "(I<dirpath>، الذي له عمق 0)."
360
361 #. type: Plain text
362 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
363 #: opensuse-tumbleweed
364 msgid ""
365 "To stop the tree walk, I<fn>() returns a nonzero value; this value will "
366 "become the return value of B<nftw>(). As long as I<fn>() returns 0, "
367 "B<nftw>() will continue either until it has traversed the entire tree, in "
368 "which case it will return zero, or until it encounters an error (such as a "
369 "B<malloc>(3) failure), in which case it will return -1."
370 msgstr ""
371 "لإيقاف التجوال في الشجرة، تُرجع I<fn>() قيمة غير صفرية؛ ستصبح هذه القيمة "
372 "القيمة المُعادة من B<nftw>(). طالما تُرجع I<fn>() 0، سيستمر B<nftw>() إما حتى "
373 "يجتاز الشجرة بأكملها، وفي هذه الحالة سيعيد صفرًا، أو حتى يواجه خطأ (مثل فشل "
374 "B<malloc>(3))، وفي هذه الحالة سيعيد -1."
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid ""
380 "Because B<nftw>() uses dynamic data structures, the only safe way to exit "
381 "out of a tree walk is to return a nonzero value from I<fn>(). To allow a "
382 "signal to terminate the walk without causing a memory leak, have the handler "
383 "set a global flag that is checked by I<fn>(). I<Don't> use B<longjmp>(3) "
384 "unless the program is going to terminate."
385 msgstr ""
386 "لأن B<nftw>() يستخدم بنى بيانات ديناميكية، الطريقة الآمنة الوحيدة للخروج من "
387 "تجوال الشجرة هي إعادة قيمة غير صفرية من I<fn>(). للسماح لإشارة بإنهاء "
388 "التجوال دون التسبب بتسرب ذاكرة، اجعل المعالج يضبط علمًا عامًا يُفحص بواسطة "
389 "I<fn>(). I<لا> تستخدم B<longjmp>(3) ما لم يكن البرنامج على وشك الإنهاء."
390
391 #. type: Plain text
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ""
395 "The I<flags> argument of B<nftw>() is formed by ORing zero or more of the "
396 "following flags:"
397 msgstr ""
398 "تُشكل الوسيطة I<flags> الخاصة بـ B<nftw>() بعملية OR على صفر أو أكثر من "
399 "الأعلام التالية:"
400
401 #. type: TP
402 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
403 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
404 #, no-wrap
405 msgid "B<FTW_ACTIONRETVAL> (since glibc 2.3.3)"
406 msgstr "B<FTW_ACTIONRETVAL> (منذ glibc 2.3.3)"
407
408 #. type: Plain text
409 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
410 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
411 msgid ""
412 "If this glibc-specific flag is set, then B<nftw>() handles the return value "
413 "from I<fn>() differently. I<fn>() should return one of the following "
414 "values:"
415 msgstr ""
416 "إذا ضُبط هذا العلم الخاص بـ glibc، فإن B<nftw>() يعالج القيمة المُعادة من "
417 "I<fn>() بشكل مختلف. يجب أن تُرجع I<fn>() إحدى القيم التالية:"
418
419 #. type: TP
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "B<FTW_CONTINUE>"
424 msgstr "B<FTW_CONTINUE>"
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid "Instructs B<nftw>() to continue normally."
430 msgstr "يأمر B<nftw>() بالاستمرار بشكل طبيعي."
431
432 #. type: TP
433 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
434 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
435 #, no-wrap
436 msgid "B<FTW_SKIP_SIBLINGS>"
437 msgstr "B<FTW_SKIP_SIBLINGS>"
438
439 #. If \f[B]FTW_DEPTH\f[]
440 #. is set, the entry's parent directory is processed next (with
441 #. \f[I]flag\f[] set to \f[B]FTW_DP\f[]).
442 #. type: Plain text
443 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
444 #: opensuse-tumbleweed
445 msgid ""
446 "If I<fn>() returns this value, then siblings of the current entry will be "
447 "skipped, and processing continues in the parent."
448 msgstr ""
449 "إذا أعادت I<fn>() هذه القيمة، فسيُتجاوز عن أشقاء المدخل الحالي، ويستمر "
450 "المعالجة في الدليل الأب."
451
452 #. type: TP
453 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
454 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
455 #, no-wrap
456 msgid "B<FTW_SKIP_SUBTREE>"
457 msgstr "B<FTW_SKIP_SUBTREE>"
458
459 #. type: Plain text
460 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
461 #: opensuse-tumbleweed
462 msgid ""
463 "If I<fn>() is called with an entry that is a directory (I<typeflag> is "
464 "B<FTW_D>), this return value will prevent objects within that directory from "
465 "being passed as arguments to I<fn>(). B<nftw>() continues processing with "
466 "the next sibling of the directory."
467 msgstr ""
468 "إذا استُدعيت I<fn>() بمدخل هو دليل (I<typeflag> هو B<FTW_D>)، ستمنع قيمة "
469 "الإرجاع هذه تمرير الكائنات داخل ذلك الدليل كوسيطات إلى I<fn>(). يستمر "
470 "B<nftw>() في المعالجة مع الشقيق التالي للدليل."
471
472 #. type: TP
473 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
474 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
475 #, no-wrap
476 msgid "B<FTW_STOP>"
477 msgstr "B<FTW_STOP>"
478
479 #. type: Plain text
480 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
481 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
482 msgid ""
483 "Causes B<nftw>() to return immediately with the return value B<FTW_STOP>."
484 msgstr "يسبب إرجاع B<nftw>() فورًا بقيمة الإرجاع B<FTW_STOP>."
485
486 #. type: Plain text
487 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
488 #: opensuse-tumbleweed
489 msgid ""
490 "Other return values could be associated with new actions in the future; "
491 "I<fn>() should not return values other than those listed above."
492 msgstr ""
493 "قد تُربط قيم إرجاع أخرى بإجراءات جديدة في المستقبل؛ يجب ألا تُرجع I<fn>() قيمًا "
494 "غير تلك المذكورة أعلاه."
495
496 #. type: Plain text
497 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
498 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
499 msgid ""
500 "The feature test macro B<_GNU_SOURCE> must be defined (before including "
501 "I<any> header files) in order to obtain the definition of "
502 "B<FTW_ACTIONRETVAL> from I<E<lt>ftw.hE<gt>>."
503 msgstr ""
504 "يجب تعريف كلية اختبار الميزة B<_GNU_SOURCE> (قبل تضمين I<أي> ملفات رأس) "
505 "للحصول على تعريف B<FTW_ACTIONRETVAL> من I<E<lt>ftw.hE<gt>>."
506
507 #. type: TP
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, no-wrap
511 msgid "B<FTW_CHDIR>"
512 msgstr "B<FTW_CHDIR>"
513
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid ""
518 "If set, do a B<chdir>(2) to each directory before handling its contents. "
519 "This is useful if the program needs to perform some action in the directory "
520 "in which I<fpath> resides. (Specifying this flag has no effect on the "
521 "pathname that is passed in the I<fpath> argument of I<fn>.)"
522 msgstr ""
523 "إذا ضُبط، يُنفذ B<chdir>(2) إلى كل دليل قبل معالجة محتوياته. هذا مفيد إذا "
524 "احتاج البرنامج لأداء إجراء في الدليل الذي يوجد فيه I<fpath>. (تحديد هذه "
525 "العلامة لا يؤثر على اسم المسار المُمرر في وسيط I<fpath> للدالة I<fn>.)"
526
527 #. type: TP
528 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
529 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
530 #, no-wrap
531 msgid "B<FTW_DEPTH>"
532 msgstr "B<FTW_DEPTH>"
533
534 #. type: Plain text
535 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
536 #: opensuse-tumbleweed
537 msgid ""
538 "If set, do a post-order traversal, that is, call I<fn>() for the directory "
539 "itself I<after> handling the contents of the directory and its "
540 "subdirectories. (By default, each directory is handled I<before> its "
541 "contents.)"
542 msgstr ""
543 "إذا ضُبط، يُنفذ اجتياز بعدي، أي تُستدعى I<fn>() للدليل نفسه I<بعد> معالجة "
544 "محتويات الدليل وأدلته الفرعية. (مبدئيًا، يُعالج كل دليل I<قبل> محتوياته.)"
545
546 #. type: TP
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 #, no-wrap
550 msgid "B<FTW_MOUNT>"
551 msgstr "B<FTW_MOUNT>"
552
553 #. type: Plain text
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 msgid ""
557 "If set, stay within the same filesystem (i.e., do not cross mount points)."
558 msgstr "إذا ضُبط، يبقى داخل نفس نظام الملفات (أي لا يعبر نقاط الوصل)."
559
560 #. type: TP
561 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
562 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
563 #, no-wrap
564 msgid "B<FTW_PHYS>"
565 msgstr "B<FTW_PHYS>"
566
567 #. type: Plain text
568 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
569 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
570 msgid ""
571 "If set, do not follow symbolic links. (This is what you want.) If not set, "
572 "symbolic links are followed, but no file is reported twice."
573 msgstr ""
574 "إذا ضُبط، لا يتبع الروابط الرمزية. (هذا ما تريده.) إذا لم يُضبط، تُتبع الروابط "
575 "الرمزية، لكن لا يُبلغ عن أي ملف مرتين."
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid ""
581 "If B<FTW_PHYS> is not set, but B<FTW_DEPTH> is set, then the function "
582 "I<fn>() is never called for a directory that would be a descendant of "
583 "itself."
584 msgstr ""
585 "إذا لم يُضبط B<FTW_PHYS>، لكن ضُبط B<FTW_DEPTH>، فلا تُستدعى الدالة I<fn>() "
586 "أبدًا لدليل سيكون سليلًا لنفسه."
587
588 #. type: SS
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 #, no-wrap
592 msgid "ftw()"
593 msgstr "ftw()"
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 "B<ftw>() is an older function that offers a subset of the functionality of "
600 "B<nftw>(). The notable differences are as follows:"
601 msgstr ""
602 "B<ftw>() دالة أقدم تقدم مجموعة فرعية من وظائف B<nftw>(). الاختلافات البارزة "
603 "كما يلي:"
604
605 #. type: IP
606 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
607 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
608 #, no-wrap
609 msgid "\\[bu]"
610 msgstr "\\[bu]"
611
612 #. type: Plain text
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 msgid ""
616 "B<ftw>() has no I<flags> argument. It behaves the same as when B<nftw>() "
617 "is called with I<flags> specified as zero."
618 msgstr ""
619 "B<ftw>() ليس لها وسيط I<flags>. تتصرف بنفس الطريقة عندما تُستدعى B<nftw>() مع "
620 "تحديد I<flags> كصفر."
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid "The callback function, I<fn>(), is not supplied with a fourth argument."
626 msgstr "دالة الاستدعاء، I<fn>()، لا تُزود بوسيط رابع."
627
628 #. type: Plain text
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 msgid ""
632 "The range of values that is passed via the I<typeflag> argument supplied to "
633 "I<fn>() is smaller: just B<FTW_F>, B<FTW_D>, B<FTW_DNR>, B<FTW_NS>, and "
634 "(possibly) B<FTW_SL>."
635 msgstr ""
636 "نطاق القيم المُمررة عبر وسيط I<typeflag> المُزود لـ I<fn>() أصغر: فقط "
637 "B<FTW_F>، B<FTW_D>، B<FTW_DNR>، B<FTW_NS>، و (ربما) B<FTW_SL>."
638
639 #. type: SH
640 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
641 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
642 #, no-wrap
643 msgid "RETURN VALUE"
644 msgstr "قيمة الإرجاع"
645
646 #. type: Plain text
647 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
648 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
649 msgid "These functions return 0 on success, and -1 if an error occurs."
650 msgstr "ترجع هذه الدوال 0 عند النجاح، و -1 إذا حدث خطأ."
651
652 #. type: Plain text
653 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
654 #: opensuse-tumbleweed
655 msgid ""
656 "If I<fn>() returns nonzero, then the tree walk is terminated and the value "
657 "returned by I<fn>() is returned as the result of B<ftw>() or B<nftw>()."
658 msgstr ""
659 "إذا أرجع I<fn>() قيمة غير صفرية، يُنهى اجتياز الشجرة وتُرجع القيمة التي أرجعها "
660 "I<fn>() كنتيجة لـ B<ftw>() أو B<nftw>()."
661
662 #. type: Plain text
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 msgid ""
666 "If B<nftw>() is called with the B<FTW_ACTIONRETVAL> flag, then the only "
667 "nonzero value that should be used by I<fn>() to terminate the tree walk is "
668 "B<FTW_STOP>, and that value is returned as the result of B<nftw>()."
669 msgstr ""
670 "إذا استُدعيت B<nftw>() مع علامة B<FTW_ACTIONRETVAL>، فإن القيمة غير الصفرية "
671 "الوحيدة التي يجب أن تستخدمها I<fn>() لإنهاء اجتياز الشجرة هي B<FTW_STOP>، "
672 "وتُرجع تلك القيمة كنتيجة لـ B<nftw>()."
673
674 #. type: SH
675 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
676 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
677 #, no-wrap
678 msgid "ATTRIBUTES"
679 msgstr "السمات"
680
681 #. type: Plain text
682 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
683 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
684 msgid ""
685 "For an explanation of the terms used in this section, see B<attributes>(7)."
686 msgstr ""
687 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
688
689 #. type: tbl table
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 #, no-wrap
693 msgid "Interface"
694 msgstr "الواجهة"
695
696 #. type: tbl table
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 #, no-wrap
700 msgid "Attribute"
701 msgstr "السمة"
702
703 #. type: tbl table
704 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
705 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
706 #, no-wrap
707 msgid "Value"
708 msgstr "القيمة"
709
710 #. type: tbl table
711 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
712 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
713 #, no-wrap
714 msgid ".na\n"
715 msgstr ".na\n"
716
717 #. type: tbl table
718 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
719 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
720 #, no-wrap
721 msgid ".nh\n"
722 msgstr ".nh\n"
723
724 #. type: TP
725 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
726 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
727 #, no-wrap
728 msgid "B<nftw>()"
729 msgstr "B<nftw>()"
730
731 #. type: tbl table
732 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
733 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
734 #, no-wrap
735 msgid "Thread safety"
736 msgstr "سلامة الخيوط"
737
738 #. type: tbl table
739 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
740 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
741 #, no-wrap
742 msgid "MT-Safe cwd"
743 msgstr "MT-Safe cwd"
744
745 #. type: TP
746 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
747 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
748 #, no-wrap
749 msgid "B<ftw>()"
750 msgstr "B<ftw>()"
751
752 #. type: tbl table
753 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
754 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
755 #, no-wrap
756 msgid "MT-Safe"
757 msgstr "MT-Safe"
758
759 #. type: SH
760 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
761 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
762 #, no-wrap
763 msgid "VERSIONS"
764 msgstr "الإصدارات"
765
766 #. type: Plain text
767 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
768 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
769 msgid ""
770 "In some implementations (e.g., glibc), B<ftw>() will never use B<FTW_SL>; "
771 "on other systems B<FTW_SL> occurs only for symbolic links that do not point "
772 "to an existing file; and again on other systems B<ftw>() will use B<FTW_SL> "
773 "for each symbolic link. If I<fpath> is a symbolic link and B<stat>(2) "
774 "failed, POSIX.1-2008 states that it is undefined whether B<FTW_NS> or "
775 "B<FTW_SL> is passed in I<typeflag>. For predictable results, use B<nftw>()."
776 msgstr ""
777 "في بعض التطبيقات (مثل glibc)، لن تستخدم B<ftw>() أبدًا B<FTW_SL>؛ في أنظمة "
778 "أخرى، يحدث B<FTW_SL> فقط للروابط الرمزية التي لا تشير إلى ملف موجود؛ وفي "
779 "أنظمة أخرى، ستستخدم B<ftw>() B<FTW_SL> لكل رابط رمزي. إذا كان I<fpath> رابطًا "
780 "رمزيًا وفشل B<stat>(2)، ينص POSIX.1-2008 على أنه غير محدد ما إذا كان "
781 "B<FTW_NS> أو B<FTW_SL> يُمرر في I<typeflag>. للحصول على نتائج قابلة للتنبؤ، "
782 "استخدم B<nftw>()."
783
784 #. type: SH
785 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
786 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
787 #, no-wrap
788 msgid "STANDARDS"
789 msgstr "المعايير"
790
791 #. type: Plain text
792 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
793 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
794 msgid "POSIX.1-2008."
795 msgstr "POSIX.1-2008."
796
797 #. type: SH
798 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
799 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
800 #, no-wrap
801 msgid "HISTORY"
802 msgstr "التاريخ"
803
804 #. type: Plain text
805 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
806 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
807 msgid "POSIX.1-2001, SVr4, SUSv1. POSIX.1-2008 marks it as obsolete."
808 msgstr ""
809 "POSIX.1-2001, SVr4, SUSv1. يُصنف POSIX.1-2008 هذه الدالة على أنها مهملة."
810
811 #. type: Plain text
812 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
813 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
814 msgid "glibc 2.1. POSIX.1-2001, SUSv1."
815 msgstr "glibc 2.1. POSIX.1-2001, SUSv1."
816
817 #. type: Plain text
818 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
819 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
820 msgid "POSIX.1-2001, SUSv1."
821 msgstr "POSIX.1-2001, SUSv1."
822
823 #. type: SH
824 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
825 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
826 #, no-wrap
827 msgid "NOTES"
828 msgstr "ملاحظات"
829
830 #. type: Plain text
831 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
832 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
833 msgid ""
834 "POSIX.1-2008 notes that the results are unspecified if I<fn> does not "
835 "preserve the current working directory."
836 msgstr ""
837 "يلاحظ POSIX.1-2008 أن النتائج غير محددة إذا لم يحافظ I<fn> على دليل العمل "
838 "الحالي."
839
840 #. type: SH
841 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
842 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
843 #, no-wrap
844 msgid "BUGS"
845 msgstr "العلل"
846
847 #. https://bugzilla.redhat.com/show_bug.cgi?id=1422736
848 #. http://austingroupbugs.net/view.php?id=1121
849 #. glibc commit 6ba205b2c35e3e024c8c12d2ee1b73363e84da87
850 #. https://sourceware.org/bugzilla/show_bug.cgi?id=23501
851 #. type: Plain text
852 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
853 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
854 msgid ""
855 "According to POSIX.1-2008, when the I<typeflag> argument passed to I<fn>() "
856 "contains B<FTW_SLN>, the buffer pointed to by I<sb> should contain "
857 "information about the dangling symbolic link (obtained by calling "
858 "B<lstat>(2) on the link). Early glibc versions correctly followed the "
859 "POSIX specification on this point. However, as a result of a regression "
860 "introduced in glibc 2.4, the contents of the buffer pointed to by I<sb> were "
861 "undefined when B<FTW_SLN> is passed in I<typeflag>. (More precisely, the "
862 "contents of the buffer were left unchanged in this case.) This regression "
863 "was eventually fixed in glibc 2.30, so that the glibc implementation (once "
864 "more) follows the POSIX specification."
865 msgstr ""
866 "وفقًا لـ POSIX.1-2008، عندما يحتوي معامل I<typeflag> الممرر إلى I<fn>() على "
867 "B<FTW_SLN>، يجب أن تحتوي الخبيئة المشار إليها بواسطة I<sb> على معلومات حول "
868 "الرابط الرمزي المعلق (التي حُصل عليها باستدعاء B<lstat>(2) على الرابط). اتبعت "
869 "إصدارات glibc المبكرة مواصفات POSIX بشكل صحيح في هذه النقطة. ومع ذلك، نتيجة "
870 "لانحدار أُدخل في glibc 2.4، كانت محتويات الخبيئة المشار إليها بواسطة I<sb> "
871 "غير محددة عندما يُمرر B<FTW_SLN> في I<typeflag>. (بشكل أكثر دقة، تُركت محتويات "
872 "الخبيئة دون تغيير في هذه الحالة.) أُصلح هذا الانحدار في النهاية في glibc "
873 "2.30، بحيث يتبع تطبيق glibc (مرة أخرى) مواصفات POSIX."
874
875 #. type: SH
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 #, no-wrap
879 msgid "EXAMPLES"
880 msgstr "أمثلة"
881
882 #. type: Plain text
883 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
884 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
885 msgid ""
886 "The following program traverses the directory tree under the path named in "
887 "its first command-line argument, or under the current directory if no "
888 "argument is supplied. It displays various information about each file. The "
889 "second command-line argument can be used to specify characters that control "
890 "the value assigned to the I<flags> argument when calling B<nftw>()."
891 msgstr ""
892 "يجتاز البرنامج التالي شجرة الدليل تحت المسار المسمى في وسيط سطر الأوامر "
893 "الأول، أو تحت الدليل الحالي إذا لم يُقدم وسيط. يعرض معلومات متنوعة عن كل ملف. "
894 "يمكن استخدام وسيط سطر الأوامر الثاني لتحديد محارف تتحكم في القيمة المسندة "
895 "إلى وسيط I<flags> عند استدعاء B<nftw>()."
896
897 #. type: SS
898 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
899 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
900 #, no-wrap
901 msgid "Program source"
902 msgstr "مصدر البرنامج"
903
904 #. type: Plain text
905 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
906 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
907 #, no-wrap
908 msgid ""
909 "#define _XOPEN_SOURCE 500\n"
910 "#include E<lt>ftw.hE<gt>\n"
911 "#include E<lt>stdint.hE<gt>\n"
912 "#include E<lt>stdio.hE<gt>\n"
913 "#include E<lt>stdlib.hE<gt>\n"
914 "#include E<lt>string.hE<gt>\n"
915 "\\&\n"
916 "static int\n"
917 "display_info(const char *fpath, const struct stat *sb,\n"
918 " int tflag, struct FTW *ftwbuf)\n"
919 "{\n"
920 " printf(\"%-3s %2d \",\n"
921 " (tflag == FTW_D) ? \"d\" : (tflag == FTW_DNR) ? \"dnr\" :\n"
922 " (tflag == FTW_DP) ? \"dp\" : (tflag == FTW_F) ? \"f\" :\n"
923 " (tflag == FTW_NS) ? \"ns\" : (tflag == FTW_SL) ? \"sl\" :\n"
924 " (tflag == FTW_SLN) ? \"sln\" : \"???\",\n"
925 " ftwbuf-E<gt>level);\n"
926 "\\&\n"
927 " if (tflag == FTW_NS)\n"
928 " printf(\"-------\");\n"
929 " else\n"
930 " printf(\"%7jd\", (intmax_t) sb-E<gt>st_size);\n"
931 "\\&\n"
932 " printf(\" %-40s %d %s\\[rs]n\",\n"
933 " fpath, ftwbuf-E<gt>base, fpath + ftwbuf-E<gt>base);\n"
934 "\\&\n"
935 " return 0; /* To tell nftw() to continue */\n"
936 "}\n"
937 "\\&\n"
938 "int\n"
939 "main(int argc, char *argv[])\n"
940 "{\n"
941 " int flags = 0;\n"
942 "\\&\n"
943 " if (argc E<gt> 2 && strchr(argv[2], \\[aq]d\\[aq]) != NULL)\n"
944 " flags |= FTW_DEPTH;\n"
945 " if (argc E<gt> 2 && strchr(argv[2], \\[aq]p\\[aq]) != NULL)\n"
946 " flags |= FTW_PHYS;\n"
947 "\\&\n"
948 " if (nftw((argc E<lt> 2) ? \".\" : argv[1], display_info, 20, flags)\n"
949 " == -1)\n"
950 " {\n"
951 " perror(\"nftw\");\n"
952 " exit(EXIT_FAILURE);\n"
953 " }\n"
954 "\\&\n"
955 " exit(EXIT_SUCCESS);\n"
956 "}\n"
957 msgstr ""
958 "#define _XOPEN_SOURCE 500\n"
959 "#include E<lt>ftw.hE<gt>\n"
960 "#include E<lt>stdint.hE<gt>\n"
961 "#include E<lt>stdio.hE<gt>\n"
962 "#include E<lt>stdlib.hE<gt>\n"
963 "#include E<lt>string.hE<gt>\n"
964 "\\&\n"
965 "static int\n"
966 "display_info(const char *fpath, const struct stat *sb,\n"
967 " int tflag, struct FTW *ftwbuf)\n"
968 "{\n"
969 " printf(\"%-3s %2d \",\n"
970 " (tflag == FTW_D) ? \"d\" : (tflag == FTW_DNR) ? \"dnr\" :\n"
971 " (tflag == FTW_DP) ? \"dp\" : (tflag == FTW_F) ? \"f\" :\n"
972 " (tflag == FTW_NS) ? \"ns\" : (tflag == FTW_SL) ? \"sl\" :\n"
973 " (tflag == FTW_SLN) ? \"sln\" : \"???\",\n"
974 " ftwbuf-E<gt>level);\n"
975 "\\&\n"
976 " if (tflag == FTW_NS)\n"
977 " printf(\"-------\");\n"
978 " else\n"
979 " printf(\"%7jd\", (intmax_t) sb-E<gt>st_size);\n"
980 "\\&\n"
981 " printf(\" %-40s %d %s\\[rs]n\",\n"
982 " fpath, ftwbuf-E<gt>base, fpath + ftwbuf-E<gt>base);\n"
983 "\\&\n"
984 " return 0; /* لإخبار nftw() بالاستمرار */\n"
985 "}\n"
986 "\\&\n"
987 "int\n"
988 "main(int argc, char *argv[])\n"
989 "{\n"
990 " int flags = 0;\n"
991 "\\&\n"
992 " if (argc E<gt> 2 && strchr(argv[2], \\[aq]d\\[aq]) != NULL)\n"
993 " flags |= FTW_DEPTH;\n"
994 " if (argc E<gt> 2 && strchr(argv[2], \\[aq]p\\[aq]) != NULL)\n"
995 " flags |= FTW_PHYS;\n"
996 "\\&\n"
997 " if (nftw((argc E<lt> 2) ? \".\" : argv[1], display_info, 20, flags)\n"
998 " == -1)\n"
999 " {\n"
1000 " perror(\"nftw\");\n"
1001 " exit(EXIT_FAILURE);\n"
1002 " }\n"
1003 "\\&\n"
1004 " exit(EXIT_SUCCESS);\n"
1005 "}\n"
1006
1007 #. SRC END
1008 #. type: SH
1009 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1010 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1011 #, no-wrap
1012 msgid "SEE ALSO"
1013 msgstr "انظر أيضًا"
1014
1015 #. type: Plain text
1016 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1017 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1018 msgid "B<stat>(2), B<fts>(3), B<readdir>(3)"
1019 msgstr "B<stat>(2), B<fts>(3), B<readdir>(3)"
1020
1021 #. type: TH
1022 #: debian-trixie
1023 #, no-wrap
1024 msgid "2024-06-15"
1025 msgstr "15 يونيو 2024"
1026
1027 #. type: TH
1028 #: debian-trixie
1029 #, no-wrap
1030 msgid "Linux man-pages 6.9.1"
1031 msgstr "صفحات دليل لينكس 6.9.1"
1032
1033 #. type: Plain text
1034 #: debian-trixie
1035 msgid "Standard C library (I<libc>, I<-lc>)"
1036 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
1037
1038 #. type: Plain text
1039 #: debian-trixie
1040 #, no-wrap
1041 msgid ""
1042 "B<int nftw(const char *>I<dirpath>B<,>\n"
1043 "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
1044 "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<),>\n"
1045 "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
1046 msgstr ""
1047 "B<int nftw(const char *>I<dirpath>B<,>\n"
1048 "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
1049 "B< int >I<typeflag>B<, struct FTW *>I<ftwbuf>B<),>\n"
1050 "B< int >I<nopenfd>B<, int >I<flags>B<);>\n"
1051
1052 #. type: Plain text
1053 #: debian-trixie
1054 #, no-wrap
1055 msgid ""
1056 "B<[[deprecated]]>\n"
1057 "B<int ftw(const char *>I<dirpath>B<,>\n"
1058 "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
1059 "B< int >I<typeflag>B<),>\n"
1060 "B< int >I<nopenfd>B<);>\n"
1061 msgstr ""
1062 "B<[[deprecated]]>\n"
1063 "B<int ftw(const char *>I<dirpath>B<,>\n"
1064 "B< int (*>I<fn>B<)(const char *>I<fpath>B<, const struct stat *>I<sb>B<,>\n"
1065 "B< int >I<typeflag>B<),>\n"
1066 "B< int >I<nopenfd>B<);>\n"
1067
1068 #. type: Plain text
1069 #: debian-trixie fedora-44 fedora-rawhide
1070 msgid ""
1071 "B<nftw>() walks through the directory tree that is located under the "
1072 "directory I<dirpath>, and calls I<fn>() once for each entry in the tree. By "
1073 "default, directories are handled before the files and subdirectories they "
1074 "contain (preorder traversal)."
1075 msgstr ""
1076 "تجتاز B<nftw>() شجرة الدليل الموجودة تحت الدليل I<dirpath>، وتستدعي I<fn>() "
1077 "مرة لكل مدخل في الشجرة. افتراضيًا، تُعالج الدلائل قبل الملفات والدلائل الفرعية "
1078 "التي تحتويها (اجتياز بالترتيب المسبق)."
1079
1080 #. type: Plain text
1081 #: debian-trixie fedora-44 fedora-rawhide
1082 msgid ""
1083 "For each entry found in the tree, B<nftw>() calls I<fn>() with four "
1084 "arguments: I<fpath>, I<sb>, I<typeflag>, and I<ftwbuf>. I<fpath> is the "
1085 "pathname of the entry, and is expressed either as a pathname relative to the "
1086 "calling process's current working directory at the time of the call to "
1087 "B<nftw>(), if I<dirpath> was expressed as a relative pathname, or as an "
1088 "absolute pathname, if I<dirpath> was expressed as an absolute pathname. "
1089 "I<sb> is a pointer to the I<stat> structure returned by a call to "
1090 "B<stat>(2) for I<fpath>."
1091 msgstr ""
1092 "لكل مدخل يُوجد في الشجرة، تستدعي B<nftw>() I<fn>() بأربع وسائط: I<fpath> و "
1093 "I<sb> و I<typeflag> و I<ftwbuf>. I<fpath> هو اسم مسار المدخل، ويُعبر عنه إما "
1094 "كاسم مسار نسبي لدليل العمل الحالي للعملية المستدعية وقت استدعاء B<nftw>()، "
1095 "إذا عُبر عن I<dirpath> كاسم مسار نسبي، أو كاسم مسار مطلق، إذا عُبر عن "
1096 "I<dirpath> كاسم مسار مطلق. I<sb> هو مؤشر لبنية I<stat> التي أرجعها استدعاء "
1097 "B<stat>(2) لـ I<fpath>."
1098
1099 #. type: Plain text
1100 #: debian-trixie fedora-44 fedora-rawhide
1101 msgid ""
1102 "To stop the tree walk, I<fn>() returns a nonzero value; this value will "
1103 "become the return value of B<nftw>(). As long as I<fn>() returns 0, "
1104 "B<nftw>() will continue either until it has traversed the entire tree, in "
1105 "which case it will return zero, or until it encounters an error (such as a "
1106 "B<malloc>(3) failure), in which case it will return -1."
1107 msgstr ""
1108 "لإيقاف اجتياز الشجرة، تُرجع I<fn>() قيمة غير صفرية؛ ستصبح هذه القيمة القيمة "
1109 "المُرجعة لـ B<nftw>(). طالما تُرجع I<fn>() 0، ستستمر B<nftw>() إما حتى تجتاز "
1110 "الشجرة بأكملها، وفي هذه الحالة سترجع صفرًا، أو حتى تواجه خطأ (مثل فشل "
1111 "B<malloc>(3))، وفي هذه الحالة سترجع -1."
1112
1113 #. If \fBFTW_DEPTH\fP
1114 #. is set, the entry's parent directory is processed next (with
1115 #. \fIflag\fP set to \fBFTW_DP\fP).
1116 #. type: Plain text
1117 #: debian-trixie fedora-44 fedora-rawhide
1118 msgid ""
1119 "If I<fn>() returns this value, then siblings of the current entry will be "
1120 "skipped, and processing continues in the parent."
1121 msgstr ""
1122 "إذا أرجع I<fn>() هذه القيمة، فسيُتجاوز عن أشقاء المدخل الحالي، ويستمر "
1123 "المعالجة في الدليل الأب."
1124
1125 #. type: Plain text
1126 #: debian-trixie fedora-44 fedora-rawhide
1127 msgid ""
1128 "If I<fn>() is called with an entry that is a directory (I<typeflag> is "
1129 "B<FTW_D>), this return value will prevent objects within that directory from "
1130 "being passed as arguments to I<fn>(). B<nftw>() continues processing with "
1131 "the next sibling of the directory."
1132 msgstr ""
1133 "إذا استُدعي I<fn>() بمدخل هو دليل (I<typeflag> هو B<FTW_D>)، ستمنع قيمة "
1134 "الإرجاع هذه تمرير الكائنات داخل ذلك الدليل كوسائط إلى I<fn>(). تواصل "
1135 "B<nftw>() المعالجة مع الشقيق التالي للدليل."
1136
1137 #. type: Plain text
1138 #: debian-trixie fedora-44 fedora-rawhide
1139 msgid ""
1140 "Other return values could be associated with new actions in the future; "
1141 "I<fn>() should not return values other than those listed above."
1142 msgstr ""
1143 "قد تُربط قيم إرجاع أخرى بإجراءات جديدة في المستقبل؛ لا ينبغي لـ I<fn>() إرجاع "
1144 "قيم غير تلك المذكورة أعلاه."
1145
1146 #. type: Plain text
1147 #: debian-trixie fedora-44 fedora-rawhide
1148 msgid ""
1149 "If set, do a post-order traversal, that is, call I<fn>() for the directory "
1150 "itself I<after> handling the contents of the directory and its "
1151 "subdirectories. (By default, each directory is handled I<before> its "
1152 "contents.)"
1153 msgstr ""
1154 "إذا ضُبط، قم باجتياز بالترتيب اللاحق، أي استدعاء I<fn>() للدليل نفسه I<بعد> "
1155 "معالجة محتويات الدليل والدلائل الفرعية الخاصة به. (افتراضيًا، يُعالج كل دليل "
1156 "I<قبل> محتوياته.)"
1157
1158 #. type: Plain text
1159 #: debian-trixie fedora-44 fedora-rawhide
1160 msgid ""
1161 "If I<fn>() returns nonzero, then the tree walk is terminated and the value "
1162 "returned by I<fn>() is returned as the result of B<ftw>() or B<nftw>()."
1163 msgstr ""
1164 "إذا أرجع I<fn>() قيمة غير صفرية، فسيُنهى اجتياز الشجرة وتُعاد القيمة التي "
1165 "أرجعها I<fn>() كنتيجة لـ B<ftw>() أو B<nftw>()."
1166
1167 #. type: TH
1168 #: fedora-44 fedora-rawhide
1169 #, no-wrap
1170 msgid "2024-12-13"
1171 msgstr "13 ديسمبر 2024"
1172
1173 #. type: TH
1174 #: fedora-44 fedora-rawhide
1175 #, no-wrap
1176 msgid "Linux man-pages 6.13"
1177 msgstr "صفحات دليل لينكس 6.13"
1178
1179 #. type: TH
1180 #: mageia-cauldron
1181 #, no-wrap
1182 msgid "Linux man-pages 6.17"
1183 msgstr "صفحات دليل لينكس 6.17"
1184
1185 #. type: TH
1186 #: opensuse-leap-16-1 opensuse-tumbleweed
1187 #, no-wrap
1188 msgid "Linux man-pages (unreleased)"
1189 msgstr "صفحات دليل لينكس (لم تصدر بعد)"