Debian Codegraph @

po/ar/man2/getdents.2.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-05-18 17:16+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 "getdents"
25 msgstr "getdents"
26
27 #. type: TH
28 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
29 #, no-wrap
30 msgid "2026-04-08"
31 msgstr "8 أبريل 2026"
32
33 #. type: TH
34 #: archlinux debian-unstable
35 #, no-wrap
36 msgid "Linux man-pages 6.18"
37 msgstr "صفحات دليل لينكس 6.18"
38
39 #. type: SH
40 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
41 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
42 #, no-wrap
43 msgid "NAME"
44 msgstr "الاسم"
45
46 #. type: Plain text
47 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
48 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
49 msgid "getdents, getdents64 - get directory entries"
50 msgstr "getdents, getdents64 - الحصول على مدخلات الدليل"
51
52 #. type: SH
53 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
54 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
55 #, no-wrap
56 msgid "LIBRARY"
57 msgstr "المكتبة"
58
59 #. type: Plain text
60 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
61 #: opensuse-leap-16-1 opensuse-tumbleweed
62 msgid "Standard C library (I<libc>,\\ I<-lc>)"
63 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
64
65 #. type: SH
66 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
67 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
68 #, no-wrap
69 msgid "SYNOPSIS"
70 msgstr "موجز"
71
72 #. type: Plain text
73 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
74 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
75 #, no-wrap
76 msgid ""
77 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
78 "B<#include E<lt>unistd.hE<gt>>\n"
79 msgstr ""
80 "B<#include E<lt>sys/syscall.hE<gt>> /* تعريف ثوابت B<SYS_*> */\n"
81 "B<#include E<lt>unistd.hE<gt>>\n"
82
83 #. type: Plain text
84 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
85 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
86 #, no-wrap
87 msgid ""
88 "B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
89 "B< unsigned int >I<count>B<);>\n"
90 msgstr ""
91 "B<long syscall(SYS_getdents, unsigned int >I<fd>B<, struct linux_dirent *>I<dirp>B<,>\n"
92 "B< unsigned int >I<count>B<);>\n"
93
94 #. type: Plain text
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid ""
99 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
100 "B<#include E<lt>dirent.hE<gt>>\n"
101 msgstr ""
102 "B<#define _GNU_SOURCE> /* See feature_test_macros(7) */\n"
103 "B<#include E<lt>dirent.hE<gt>>\n"
104
105 #. type: Plain text
106 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
107 #: opensuse-tumbleweed
108 #, no-wrap
109 msgid ""
110 "B<ssize_t getdents64(>size_t count;\n"
111 "B< int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>B<);>\n"
112 msgstr ""
113 "B<ssize_t getdents64(>size_t count;\n"
114 "B< int >I<fd>B<, void >I<dirp>B<[>I<count>B<], size_t >I<count>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 "I<Note>: glibc provides no wrapper for B<getdents>(), necessitating the use "
121 "of B<syscall>(2)."
122 msgstr ""
123 "I<ملاحظة>: لا توفر glibc غلافًا لـ B<getdents>()، مما يستلزم استخدام "
124 "B<syscall>(2)."
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 msgid ""
130 "I<Note>: There is no definition of I<struct linux_dirent> in glibc; see "
131 "NOTES."
132 msgstr ""
133 "I<ملاحظة>: لا يوجد تعريف لـ I<struct linux_dirent> في glibc؛ انظر NOTES."
134
135 #. type: SH
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 #, no-wrap
139 msgid "DESCRIPTION"
140 msgstr "الوصف"
141
142 #. type: Plain text
143 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
144 msgid ""
145 "These are not the interfaces you are interested in. Look at B<readdir>(3) "
146 "for the POSIX-conforming C library interface."
147 msgstr ""
148 "هذه ليست الواجهات التي تهمك. انظر إلى B<readdir>(3) لواجهة مكتبة C "
149 "المتوافقة مع POSIX."
150
151 #. type: SS
152 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
153 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
154 #, no-wrap
155 msgid "getdents()"
156 msgstr "getdents()"
157
158 #. type: Plain text
159 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
160 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
161 msgid ""
162 "The system call B<getdents>() reads several I<linux_dirent> structures from "
163 "the directory referred to by the open file descriptor I<fd> into the buffer "
164 "pointed to by I<dirp>. The argument I<count> specifies the size of that "
165 "buffer."
166 msgstr ""
167 "يقرأ استدعاء النظام B<getdents>() عدة بنى I<linux_dirent> من الدليل المشار "
168 "إليه بواصف الملف المفتوح I<fd> إلى المخزن المؤقت المشار إليه بـ I<dirp>. "
169 "تحدد الوسيطة I<count> حجم ذلك المخزن المؤقت."
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid "The I<linux_dirent> structure is declared as follows:"
175 msgstr "يُصرح عن بنية I<linux_dirent> كما يلي:"
176
177 #. type: Plain text
178 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
179 #: opensuse-tumbleweed
180 #, no-wrap
181 msgid ""
182 "struct linux_dirent {\n"
183 " unsigned long d_ino; /* Inode number */\n"
184 " unsigned long d_off; /* Not an offset; see below */\n"
185 " unsigned short d_reclen; /* Length of this \\f[I]linux_dirent\\fR */\n"
186 " char d_name[]; /* Filename (null-terminated) */\n"
187 " /* length is actually (d_reclen - 2 -\n"
188 " offsetof(struct linux_dirent, d_name)) */\n"
189 " /*\n"
190 " char pad; // Zero padding byte\n"
191 " char d_type; // File type (only since Linux\n"
192 " // 2.6.4); offset is (d_reclen - 1)\n"
193 " */\n"
194 "}\n"
195 msgstr ""
196 "struct linux_dirent {\n"
197 " unsigned long d_ino; /* Inode number */\n"
198 " unsigned long d_off; /* Not an offset; see below */\n"
199 " unsigned short d_reclen; /* Length of this \\f[I]linux_dirent\\fR */\n"
200 " char d_name[]; /* Filename (null-terminated) */\n"
201 " /* length is actually (d_reclen - 2 -\n"
202 " offsetof(struct linux_dirent, d_name)) */\n"
203 " /*\n"
204 " char pad; // Zero padding byte\n"
205 " char d_type; // File type (only since Linux\n"
206 " // 2.6.4); offset is (d_reclen - 1)\n"
207 " */\n"
208 "}\n"
209
210 #. type: Plain text
211 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
212 #: opensuse-leap-16-1 opensuse-tumbleweed
213 msgid ""
214 "I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with "
215 "no specific meaning to user space, though on older filesystems it used to be "
216 "the distance from the start of the directory to the start of the next "
217 "I<linux_dirent>; see B<readdir>(3). I<d_reclen> is the size of this entire "
218 "I<linux_dirent>. I<d_name> is a null-terminated filename."
219 msgstr ""
220 "I<d_ino> هو رقم عقدة (inode). I<d_off> هو قيمة خاصة بنظام الملفات ليس لها "
221 "معنى محدد لمساحة المستخدم، رغم أنها كانت في أنظمة الملفات القديمة المسافة من "
222 "بداية الدليل إلى بداية I<linux_dirent> التالي؛ انظر B<readdir>(3). "
223 "I<d_reclen> هو حجم هذا I<linux_dirent> بالكامل. I<d_name> هو اسم ملف منتهي "
224 "بقيمة فارغة."
225
226 #. type: Plain text
227 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
228 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
229 msgid ""
230 "I<d_type> is a byte at the end of the structure that indicates the file "
231 "type. It contains one of the following values (defined in I<E<lt>dirent."
232 "hE<gt>>):"
233 msgstr ""
234 "I<d_type> هو بايت في نهاية البنية يشير إلى نوع الملف. يحتوي على إحدى القيم "
235 "التالية (المعرفة في I<E<lt>dirent.hE<gt>>):"
236
237 #. type: TP
238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
240 #, no-wrap
241 msgid "B<DT_BLK>"
242 msgstr "B<DT_BLK>"
243
244 #. type: Plain text
245 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
246 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
247 msgid "This is a block device."
248 msgstr "هذا جهاز كتلي."
249
250 #. type: TP
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 #, no-wrap
254 msgid "B<DT_CHR>"
255 msgstr "B<DT_CHR>"
256
257 #. type: Plain text
258 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
259 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
260 msgid "This is a character device."
261 msgstr "هذا جهاز محرفي."
262
263 #. type: TP
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 #, no-wrap
267 msgid "B<DT_DIR>"
268 msgstr "B<DT_DIR>"
269
270 #. type: Plain text
271 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
272 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
273 msgid "This is a directory."
274 msgstr "هذا دليل."
275
276 #. type: TP
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 #, no-wrap
280 msgid "B<DT_FIFO>"
281 msgstr "B<DT_FIFO>"
282
283 #. type: Plain text
284 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
285 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
286 msgid "This is a named pipe (FIFO)."
287 msgstr "هذا أنبوب مسمى (FIFO)."
288
289 #. type: TP
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 #, no-wrap
293 msgid "B<DT_LNK>"
294 msgstr "B<DT_LNK>"
295
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 "This is a symbolic link."
300 msgstr "هذا رابط رمزي."
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<DT_REG>"
307 msgstr "B<DT_REG>"
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 "This is a regular file."
313 msgstr "هذا ملف عادي."
314
315 #. type: TP
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 #, no-wrap
319 msgid "B<DT_SOCK>"
320 msgstr "B<DT_SOCK>"
321
322 #. type: Plain text
323 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
324 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
325 msgid "This is a UNIX domain socket."
326 msgstr "هذا مقبس نطاق UNIX."
327
328 #. type: TP
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 #, no-wrap
332 msgid "B<DT_UNKNOWN>"
333 msgstr "B<DT_UNKNOWN>"
334
335 #. type: Plain text
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 msgid "The file type is unknown."
339 msgstr "نوع الملف غير معروف."
340
341 #. type: Plain text
342 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
343 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
344 msgid ""
345 "The I<d_type> field is implemented since Linux 2.6.4. It occupies a space "
346 "that was previously a zero-filled padding byte in the I<linux_dirent> "
347 "structure. Thus, on kernels up to and including Linux 2.6.3, attempting to "
348 "access this field always provides the value 0 (B<DT_UNKNOWN>)."
349 msgstr ""
350 "حقل I<d_type> مطبق منذ Linux 2.6.4. يشغل مساحة كانت سابقًا بايت حشو مملوء "
351 "بصفر في بنية I<linux_dirent>. وبالتالي، على النوى حتى Linux 2.6.3 وما "
352 "يشملها، تؤدي محاولة الوصول إلى هذا الحقل دائمًا إلى القيمة 0 (B<DT_UNKNOWN>)."
353
354 #. kernel 2.6.27
355 #. The same sentence is in readdir.2
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid ""
360 "Currently, only some filesystems (among them: Btrfs, ext2, ext3, and ext4) "
361 "have full support for returning the file type in I<d_type>. All "
362 "applications must properly handle a return of B<DT_UNKNOWN>."
363 msgstr ""
364 "حاليًا، بعض أنظمة الملفات فقط (من بينها: Btrfs، و ext2، و ext3، و ext4) لديها "
365 "دعم كامل لإعادة نوع الملف في I<d_type>. يجب على جميع التطبيقات التعامل بشكل "
366 "صحيح مع عودة B<DT_UNKNOWN>."
367
368 #. type: SS
369 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
370 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
371 #, no-wrap
372 msgid "getdents64()"
373 msgstr "getdents64()"
374
375 #. type: Plain text
376 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
377 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
378 msgid ""
379 "The original Linux B<getdents>() system call did not handle large "
380 "filesystems and large file offsets. Consequently, Linux 2.4 added "
381 "B<getdents64>(), with wider types for the I<d_ino> and I<d_off> fields. In "
382 "addition, B<getdents64>() supports an explicit I<d_type> field."
383 msgstr ""
384 "لم يعالج استدعاء النظام الأصلي B<getdents>() أنظمة الملفات الكبيرة وإزاحات "
385 "الملفات الكبيرة. وبالتالي، أضاف Linux 2.4 B<getdents64>()، بأنواع أوسع "
386 "لحقلي I<d_ino> و I<d_off>. بالإضافة إلى ذلك، يدعم B<getdents64>() حقل "
387 "I<d_type> صريح."
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid ""
393 "The B<getdents64>() system call is like B<getdents>(), except that its "
394 "second argument is a pointer to a buffer containing structures of the "
395 "following type:"
396 msgstr ""
397 "استدعاء النظام B<getdents64>() يشبه B<getdents>()، باستثناء أن وسيطته "
398 "الثانية هي مؤشر إلى مخزن مؤقت يحتوي على بنى من النوع التالي:"
399
400 #. type: Plain text
401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
403 #, no-wrap
404 msgid ""
405 "struct linux_dirent64 {\n"
406 " ino64_t d_ino; /* 64-bit inode number */\n"
407 " off64_t d_off; /* Not an offset; see getdents() */\n"
408 " unsigned short d_reclen; /* Size of this dirent */\n"
409 " unsigned char d_type; /* File type */\n"
410 " char d_name[]; /* Filename (null-terminated) */\n"
411 "};\n"
412 msgstr ""
413 "struct linux_dirent64 {\n"
414 " ino64_t d_ino; /* 64-bit inode number */\n"
415 " off64_t d_off; /* Not an offset; see getdents() */\n"
416 " unsigned short d_reclen; /* Size of this dirent */\n"
417 " unsigned char d_type; /* File type */\n"
418 " char d_name[]; /* Filename (null-terminated) */\n"
419 "};\n"
420
421 #. type: SH
422 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
423 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
424 #, no-wrap
425 msgid "RETURN VALUE"
426 msgstr "قيمة الإرجاع"
427
428 #. type: Plain text
429 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
430 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
431 msgid ""
432 "On success, the number of bytes read is returned. On end of directory, 0 is "
433 "returned. On error, -1 is returned, and I<errno> is set to indicate the "
434 "error."
435 msgstr ""
436 "عند النجاح، يُعاد عدد البايتات المقروءة. عند نهاية الدليل، تُعاد 0. عند "
437 "الخطأ، يُعاد -1، ويُضبط I<errno> للإشارة إلى الخطأ."
438
439 #. type: SH
440 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
441 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
442 #, no-wrap
443 msgid "ERRORS"
444 msgstr "الأخطاء"
445
446 #. type: TP
447 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
448 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
449 #, no-wrap
450 msgid "B<EBADF>"
451 msgstr "B<EBADF>"
452
453 #. type: Plain text
454 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
455 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
456 msgid "Invalid file descriptor I<fd>."
457 msgstr "وصف ملف (file descriptor) غير صالح I<fd>."
458
459 #. type: TP
460 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
461 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
462 #, no-wrap
463 msgid "B<EFAULT>"
464 msgstr "B<EFAULT>"
465
466 #. type: Plain text
467 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
468 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
469 msgid "Argument points outside the calling process's address space."
470 msgstr "تشير المعطيات (arguments) إلى خارج فضاء عناوين العملية المستدعية."
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<EINVAL>"
477 msgstr "B<EINVAL>"
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 "Result buffer is too small."
483 msgstr "مخزن النتائج المؤقت صغير جدًا."
484
485 #. type: TP
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 #, no-wrap
489 msgid "B<ENOENT>"
490 msgstr "B<ENOENT>"
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid "No such directory."
496 msgstr "لا يوجد دليل كهذا."
497
498 #. type: TP
499 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
500 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
501 #, no-wrap
502 msgid "B<ENOTDIR>"
503 msgstr "B<ENOTDIR>"
504
505 #. type: Plain text
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 msgid "File descriptor does not refer to a directory."
509 msgstr "واصف الملف لا يشير إلى مجلد."
510
511 #. type: SH
512 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
513 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
514 #, no-wrap
515 msgid "STANDARDS"
516 msgstr "المعايير"
517
518 #. type: Plain text
519 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
520 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
521 msgid "None."
522 msgstr "لا شيء."
523
524 #. type: SH
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 #, no-wrap
528 msgid "HISTORY"
529 msgstr "التاريخ"
530
531 #. type: TP
532 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
533 #, no-wrap
534 msgid "B<getdents>()"
535 msgstr "B<getdents>()"
536
537 #. SVr4 documents additional ENOLINK, EIO error conditions.
538 #. type: Plain text
539 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
540 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
541 msgid "SVr4."
542 msgstr "SVr4."
543
544 #. type: TP
545 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
546 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
547 #, no-wrap
548 msgid "B<getdents64>()"
549 msgstr "B<getdents64>()"
550
551 #. type: Plain text
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 msgid "glibc 2.30."
555 msgstr "glibc 2.30."
556
557 #. type: SH
558 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
559 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
560 #, no-wrap
561 msgid "NOTES"
562 msgstr "ملاحظات"
563
564 #. type: Plain text
565 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
566 msgid ""
567 "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() "
568 "using B<syscall>(2). In that case you will need to define the "
569 "I<linux_dirent> structure yourself."
570 msgstr ""
571 "لا توفر glibc غلافًا لـ B<getdents>()؛ استدع B<getdents>() باستخدام "
572 "B<syscall>(2). في هذه الحالة، ستحتاج إلى تعريف بنية I<linux_dirent> بنفسك."
573
574 #. type: Plain text
575 #: archlinux debian-unstable opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "The B<getdents64>() system call accepts an B<unsigned int> argument "
578 "I<count> and assumes that I<count> does not exceed B<INT_MAX>. The glibc "
579 "wrapper function sets I<count> to B<INT_MAX> if it exceeds B<INT_MAX>. "
580 "glibc defines a I<dirent64> structure, which is similar to I<linux_dirent64> "
581 "but with a 256-byte I<d_name>."
582 msgstr ""
583 "يقبل استدعاء النظام B<getdents64>() وسيطة B<unsigned int> I<count> ويفترض أن "
584 "I<count> لا يتجاوز B<INT_MAX>. تضبط دالة الغلاف في glibc I<count> إلى "
585 "B<INT_MAX> إذا تجاوز B<INT_MAX>. تعرّف glibc بنية I<dirent64>، والتي تشبه "
586 "I<linux_dirent64> ولكن مع I<d_name> بحجم 256 بايت."
587
588 #. type: Plain text
589 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
590 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
591 msgid "Probably, you want to use B<readdir>(3) instead of these system calls."
592 msgstr "ربما، تريد استخدام B<readdir>(3) بدلاً من استدعاءات النظام هذه."
593
594 #. type: Plain text
595 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
596 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
597 msgid "These calls supersede B<readdir>(2)."
598 msgstr "تحل هذه الاستدعاءات محل B<readdir>(2)."
599
600 #. type: SH
601 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
602 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
603 #, no-wrap
604 msgid "EXAMPLES"
605 msgstr "أمثلة"
606
607 #. FIXME The example program needs to be revised, since it uses the older
608 #. getdents() system call and the structure with smaller field widths.
609 #. type: Plain text
610 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
611 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
612 msgid ""
613 "The program below demonstrates the use of B<getdents>(). The following "
614 "output shows an example of what we see when running this program on an ext2 "
615 "directory:"
616 msgstr ""
617 "يوضح البرنامج أدناه استخدام B<getdents>(). يُظهر الإخراج التالي مثالاً لما "
618 "نراه عند تشغيل هذا البرنامج على دليل ext2:"
619
620 #. type: Plain text
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 #, no-wrap
624 msgid ""
625 "$B< ./a.out /testfs/>\n"
626 "--------------- nread=120 ---------------\n"
627 "inode# file type d_reclen d_off d_name\n"
628 " 2 directory 16 12 .\n"
629 " 2 directory 16 24 ..\n"
630 " 11 directory 24 44 lost+found\n"
631 " 12 regular 16 56 a\n"
632 " 228929 directory 16 68 sub\n"
633 " 16353 directory 16 80 sub2\n"
634 " 130817 directory 16 4096 sub3\n"
635 msgstr ""
636 "$B< ./a.out /testfs/>\n"
637 "--------------- nread=120 ---------------\n"
638 "inode# file type d_reclen d_off d_name\n"
639 " 2 directory 16 12 .\n"
640 " 2 directory 16 24 ..\n"
641 " 11 directory 24 44 lost+found\n"
642 " 12 regular 16 56 a\n"
643 " 228929 directory 16 68 sub\n"
644 " 16353 directory 16 80 sub2\n"
645 " 130817 directory 16 4096 sub3\n"
646
647 #. type: SS
648 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
649 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
650 #, no-wrap
651 msgid "Program source"
652 msgstr "مصدر البرنامج"
653
654 #. type: Plain text
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 #, no-wrap
658 msgid ""
659 "#define _GNU_SOURCE\n"
660 "#include E<lt>dirent.hE<gt> /* Defines DT_* constants */\n"
661 "#include E<lt>err.hE<gt>\n"
662 "#include E<lt>fcntl.hE<gt>\n"
663 "#include E<lt>stdint.hE<gt>\n"
664 "#include E<lt>stdio.hE<gt>\n"
665 "#include E<lt>stdlib.hE<gt>\n"
666 "#include E<lt>sys/syscall.hE<gt>\n"
667 "#include E<lt>sys/types.hE<gt>\n"
668 "#include E<lt>unistd.hE<gt>\n"
669 "\\&\n"
670 "struct linux_dirent {\n"
671 " unsigned long d_ino;\n"
672 " off_t d_off;\n"
673 " unsigned short d_reclen;\n"
674 " char d_name[];\n"
675 "};\n"
676 "\\&\n"
677 "#define BUF_SIZE 1024\n"
678 "\\&\n"
679 "int\n"
680 "main(int argc, char *argv[])\n"
681 "{\n"
682 " int fd;\n"
683 " char d_type;\n"
684 " char buf[BUF_SIZE];\n"
685 " long nread;\n"
686 " struct linux_dirent *d;\n"
687 "\\&\n"
688 " fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n"
689 " if (fd == -1)\n"
690 " err(EXIT_FAILURE, \"open\");\n"
691 "\\&\n"
692 " for (;;) {\n"
693 " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n"
694 " if (nread == -1)\n"
695 " err(EXIT_FAILURE, \"getdents\");\n"
696 "\\&\n"
697 " if (nread == 0)\n"
698 " break;\n"
699 "\\&\n"
700 " printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n"
701 " printf(\"inode# file type d_reclen d_off d_name\\[rs]n\");\n"
702 " for (size_t bpos = 0; bpos E<lt> nread;) {\n"
703 " d = (struct linux_dirent *) (buf + bpos);\n"
704 " printf(\"%8lu \", d-E<gt>d_ino);\n"
705 " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
706 " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
707 " (d_type == DT_DIR) ? \"directory\" :\n"
708 " (d_type == DT_FIFO) ? \"FIFO\" :\n"
709 " (d_type == DT_SOCK) ? \"socket\" :\n"
710 " (d_type == DT_LNK) ? \"symlink\" :\n"
711 " (d_type == DT_BLK) ? \"block dev\" :\n"
712 " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
713 " printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n"
714 " (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n"
715 " bpos += d-E<gt>d_reclen;\n"
716 " }\n"
717 " }\n"
718 "\\&\n"
719 " exit(EXIT_SUCCESS);\n"
720 "}\n"
721 msgstr ""
722 "#define _GNU_SOURCE\n"
723 "#include E<lt>dirent.hE<gt> /* Defines DT_* constants */\n"
724 "#include E<lt>err.hE<gt>\n"
725 "#include E<lt>fcntl.hE<gt>\n"
726 "#include E<lt>stdint.hE<gt>\n"
727 "#include E<lt>stdio.hE<gt>\n"
728 "#include E<lt>stdlib.hE<gt>\n"
729 "#include E<lt>sys/syscall.hE<gt>\n"
730 "#include E<lt>sys/types.hE<gt>\n"
731 "#include E<lt>unistd.hE<gt>\n"
732 "\\&\n"
733 "struct linux_dirent {\n"
734 " unsigned long d_ino;\n"
735 " off_t d_off;\n"
736 " unsigned short d_reclen;\n"
737 " char d_name[];\n"
738 "};\n"
739 "\\&\n"
740 "#define BUF_SIZE 1024\n"
741 "\\&\n"
742 "int\n"
743 "main(int argc, char *argv[])\n"
744 "{\n"
745 " int fd;\n"
746 " char d_type;\n"
747 " char buf[BUF_SIZE];\n"
748 " long nread;\n"
749 " struct linux_dirent *d;\n"
750 "\\&\n"
751 " fd = open(argc E<gt> 1 ? argv[1] : \".\", O_RDONLY | O_DIRECTORY);\n"
752 " if (fd == -1)\n"
753 " err(EXIT_FAILURE, \"open\");\n"
754 "\\&\n"
755 " for (;;) {\n"
756 " nread = syscall(SYS_getdents, fd, buf, BUF_SIZE);\n"
757 " if (nread == -1)\n"
758 " err(EXIT_FAILURE, \"getdents\");\n"
759 "\\&\n"
760 " if (nread == 0)\n"
761 " break;\n"
762 "\\&\n"
763 " printf(\"--------------- nread=%ld ---------------\\[rs]n\", nread);\n"
764 " printf(\"inode# file type d_reclen d_off d_name\\[rs]n\");\n"
765 " for (size_t bpos = 0; bpos E<lt> nread;) {\n"
766 " d = (struct linux_dirent *) (buf + bpos);\n"
767 " printf(\"%8lu \", d-E<gt>d_ino);\n"
768 " d_type = *(buf + bpos + d-E<gt>d_reclen - 1);\n"
769 " printf(\"%-10s \", (d_type == DT_REG) ? \"regular\" :\n"
770 " (d_type == DT_DIR) ? \"directory\" :\n"
771 " (d_type == DT_FIFO) ? \"FIFO\" :\n"
772 " (d_type == DT_SOCK) ? \"socket\" :\n"
773 " (d_type == DT_LNK) ? \"symlink\" :\n"
774 " (d_type == DT_BLK) ? \"block dev\" :\n"
775 " (d_type == DT_CHR) ? \"char dev\" : \"???\");\n"
776 " printf(\"%4d %10jd %s\\[rs]n\", d-E<gt>d_reclen,\n"
777 " (intmax_t) d-E<gt>d_off, d-E<gt>d_name);\n"
778 " bpos += d-E<gt>d_reclen;\n"
779 " }\n"
780 " }\n"
781 "\\&\n"
782 " exit(EXIT_SUCCESS);\n"
783 "}\n"
784
785 #. SRC END
786 #. type: SH
787 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
788 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
789 #, no-wrap
790 msgid "SEE ALSO"
791 msgstr "انظر أيضًا"
792
793 #. type: Plain text
794 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
795 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
796 msgid "B<readdir>(2), B<readdir>(3), B<inode>(7)"
797 msgstr "B<readdir>(2), B<readdir>(3), B<inode>(7)"
798
799 #. type: TH
800 #: debian-trixie
801 #, no-wrap
802 msgid "2024-06-15"
803 msgstr "15 يونيو 2024"
804
805 #. type: TH
806 #: debian-trixie
807 #, no-wrap
808 msgid "Linux man-pages 6.9.1"
809 msgstr "صفحات دليل لينكس 6.9.1"
810
811 #. type: Plain text
812 #: debian-trixie
813 msgid "Standard C library (I<libc>, I<-lc>)"
814 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
815
816 #. type: Plain text
817 #: debian-trixie fedora-44 fedora-rawhide
818 #, no-wrap
819 msgid "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n"
820 msgstr "B<ssize_t getdents64(int >I<fd>B<, void >I<dirp>B<[.>I<count>B<], size_t >I<count>B<);>\n"
821
822 #. type: Plain text
823 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
824 msgid ""
825 "These are not the interfaces you are interested in. Look at B<readdir>(3) "
826 "for the POSIX-conforming C library interface. This page documents the bare "
827 "kernel system call interfaces."
828 msgstr ""
829 "هذه ليست الواجهات التي تهمك. انظر إلى B<readdir>(3) للواجهة المتوافقة مع "
830 "POSIX من مكتبة C. توثق هذه الصفحة واجهات استدعاءات النواة المجردة."
831
832 #. type: Plain text
833 #: debian-trixie fedora-44 fedora-rawhide
834 #, no-wrap
835 msgid ""
836 "struct linux_dirent {\n"
837 " unsigned long d_ino; /* Inode number */\n"
838 " unsigned long d_off; /* Not an offset; see below */\n"
839 " unsigned short d_reclen; /* Length of this I<linux_dirent> */\n"
840 " char d_name[]; /* Filename (null-terminated) */\n"
841 " /* length is actually (d_reclen - 2 -\n"
842 " offsetof(struct linux_dirent, d_name)) */\n"
843 " /*\n"
844 " char pad; // Zero padding byte\n"
845 " char d_type; // File type (only since Linux\n"
846 " // 2.6.4); offset is (d_reclen - 1)\n"
847 " */\n"
848 "}\n"
849 msgstr ""
850 "struct linux_dirent {\n"
851 " unsigned long d_ino; /* Inode number */\n"
852 " unsigned long d_off; /* Not an offset; see below */\n"
853 " unsigned short d_reclen; /* Length of this I<linux_dirent> */\n"
854 " char d_name[]; /* Filename (null-terminated) */\n"
855 " /* length is actually (d_reclen - 2 -\n"
856 " offsetof(struct linux_dirent, d_name)) */\n"
857 " /*\n"
858 " char pad; // Zero padding byte\n"
859 " char d_type; // File type (only since Linux\n"
860 " // 2.6.4); offset is (d_reclen - 1)\n"
861 " */\n"
862 "}\n"
863
864 #. type: Plain text
865 #: debian-trixie
866 msgid ""
867 "I<d_ino> is an inode number. I<d_off> is a filesystem-specific value with "
868 "no specific meaning to user space, though on older filesystems it used to be "
869 "the distance from the start of the directory to the start of the next "
870 "I<linux_dirent>; see B<readdir>(3)B<.> I<d_reclen> is the size of this "
871 "entire I<linux_dirent>. I<d_name> is a null-terminated filename."
872 msgstr ""
873 "I<d_ino> هو رقم inode. I<d_off> هو قيمة خاصة بنظام الملفات ليس لها معنى "
874 "محدد لمساحة المستخدم، رغم أنها في أنظمة الملفات القديمة كانت المسافة من "
875 "بداية الدليل إلى بداية I<linux_dirent> التالي؛ انظر B<readdir>(3)B<.> "
876 "I<d_reclen> هو حجم هذا I<linux_dirent> بالكامل. I<d_name> هو اسم ملف منتهي "
877 "بقيمة فارغة."
878
879 #. type: Plain text
880 #: debian-trixie fedora-44 fedora-rawhide mageia-cauldron
881 msgid ""
882 "glibc does not provide a wrapper for B<getdents>(); call B<getdents>() "
883 "using B<syscall>(2). In that case you will need to define the "
884 "I<linux_dirent> or I<linux_dirent64> structure yourself."
885 msgstr ""
886 "لا توفر glibc غلافًا لـ B<getdents>()؛ استدع B<getdents>() باستخدام "
887 "B<syscall>(2). في هذه الحالة ستحتاج إلى تعريف بنية I<linux_dirent> أو "
888 "I<linux_dirent64> بنفسك."
889
890 #. type: TH
891 #: fedora-44 fedora-rawhide
892 #, no-wrap
893 msgid "2024-11-17"
894 msgstr "17 نوفمبر 2024"
895
896 #. type: TH
897 #: fedora-44 fedora-rawhide
898 #, no-wrap
899 msgid "Linux man-pages 6.13"
900 msgstr "صفحات دليل لينكس 6.13"
901
902 #. type: TH
903 #: mageia-cauldron
904 #, no-wrap
905 msgid "2026-02-08"
906 msgstr "8 فبراير 2026"
907
908 #. type: TH
909 #: mageia-cauldron
910 #, no-wrap
911 msgid "Linux man-pages 6.17"
912 msgstr "صفحات دليل لينكس 6.17"
913
914 #. type: TH
915 #: opensuse-leap-16-1 opensuse-tumbleweed
916 #, no-wrap
917 msgid "Linux man-pages (unreleased)"
918 msgstr "صفحات دليل لينكس (لم تصدر بعد)"