Debian Codegraph @

po/ar/man2/listxattr.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\n"
8 "POT-Creation-Date: 2026-06-05 06:29+0200\n"
9 "PO-Revision-Date: 2026-06-03 04:49+0400\n"
10 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
11 "Language-Team: Arabic <[email protected]>\n"
12 "Language: ar\n"
13 "MIME-Version: 1.0\n"
14 "Content-Type: text/plain; charset=UTF-8\n"
15 "Content-Transfer-Encoding: 8bit\n"
16 ".MIME-Version: 1.0\n"
17 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
18 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
19 "X-Generator: Lokalize 23.08.5\n"
20
21 #. type: TH
22 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
23 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
24 #, no-wrap
25 msgid "listxattr"
26 msgstr "listxattr"
27
28 #. type: TH
29 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
30 #: opensuse-tumbleweed
31 #, no-wrap
32 msgid "2026-02-08"
33 msgstr "8 فبراير 2026"
34
35 #. type: TH
36 #: archlinux debian-unstable
37 #, no-wrap
38 msgid "Linux man-pages 6.18"
39 msgstr "صفحات دليل لينكس 6.18"
40
41 #. type: SH
42 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
43 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
44 #, no-wrap
45 msgid "NAME"
46 msgstr "الاسم"
47
48 #. type: Plain text
49 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
50 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
51 msgid "listxattr, llistxattr, flistxattr - list extended attribute names"
52 msgstr "listxattr, llistxattr, flistxattr - سرد أسماء السمات الموسعة"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "المكتبة"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "موجز"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid "B<#include E<lt>sys/xattr.hE<gt>>\n"
79 msgstr "B<#include E<lt>sys/xattr.hE<gt>>\n"
80
81 #. type: Plain text
82 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
83 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
84 #, no-wrap
85 msgid ""
86 "B<ssize_t listxattr(const char *>I<path>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
87 "B<ssize_t llistxattr(const char *>I<path>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
88 "B<ssize_t flistxattr(int >I<fd>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
89 msgstr ""
90 "B<ssize_t listxattr(const char *>I<path>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
91 "B<ssize_t llistxattr(const char *>I<path>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
92 "B<ssize_t flistxattr(int >I<fd>B<, char *_Nullable >I<list>B<, size_t >I<size>B<);>\n"
93
94 #. type: SH
95 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
96 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
97 #, no-wrap
98 msgid "DESCRIPTION"
99 msgstr "الوصف"
100
101 #. type: Plain text
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 msgid ""
105 "Extended attributes are I<name>:I<value> pairs associated with inodes "
106 "(files, directories, symbolic links, etc.). They are extensions to the "
107 "normal attributes which are associated with all inodes in the system (i.e., "
108 "the B<stat>(2) data). A complete overview of extended attributes concepts "
109 "can be found in B<xattr>(7)."
110 msgstr ""
111 "السمات الممتدة هي أزواج I<الاسم>:I<القيمة> المرتبطة بالفهارس (الملفات، "
112 "المجلدات، الروابط الرمزية، إلخ). وهي امتدادات للسمات العادية المرتبطة بكافة "
113 "الفهارس في النظام (أي بيانات B<stat>(2)). يمكن العثور على نظرة شاملة لمفاهيم "
114 "السمات الممتدة في B<xattr>(7)."
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 "B<listxattr>() retrieves the list of extended attribute names associated "
121 "with the given I<path> in the filesystem. The retrieved list is placed in "
122 "I<list>, a caller-allocated buffer whose size (in bytes) is specified in the "
123 "argument I<size>. The list is the set of (null-terminated) names, one after "
124 "the other. Names of extended attributes to which the calling process does "
125 "not have access may be omitted from the list. The length of the attribute "
126 "name I<list> is returned."
127 msgstr ""
128 "تسترد الدالة B<listxattr>() قائمة أسماء السمات الموسعة المرتبطة بالمسار "
129 "I<path> المعطى في نظام الملفات. توضع القائمة المستردة في I<list>، وهي مخزن "
130 "مؤقت مخصص من قبل المستدعي ويُحدد حجمه (بالبايت) في الوسيط I<size>. القائمة هي "
131 "مجموعة من الأسماء (منتهية بقيمة خالية) واحدة تلو الأخرى. قد تُحذف من القائمة "
132 "أسماء السمات الموسعة التي لا تملك العملية المستدعية صلاحية الوصول إليها. "
133 "يُعاد طول قائمة أسماء السمات I<list>."
134
135 #. type: Plain text
136 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
137 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
138 msgid ""
139 "B<llistxattr>() is identical to B<listxattr>(), except in the case of a "
140 "symbolic link, where the list of names of extended attributes associated "
141 "with the link itself is retrieved, not the file that it refers to."
142 msgstr ""
143 "تطابق B<llistxattr>() الدالة B<listxattr>()، باستثناء حالة الارتباط الرمزي، "
144 "حيث تُسترجع قائمة أسماء السمات الموسعة المرتبطة بالارتباط نفسه، وليس الملف "
145 "الذي يشير إليه."
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 ""
151 "B<flistxattr>() is identical to B<listxattr>(), only the open file referred "
152 "to by I<fd> (as returned by B<open>(2)) is interrogated in place of I<path>."
153 msgstr ""
154 "تطابق B<flistxattr>() الدالة B<listxattr>()، لكن يُستجوب الملف المفتوح المشار "
155 "إليه بواسطة I<fd> (كما تُعيده B<open>(2)) بدلاً من I<path>."
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 "A single extended attribute I<name> is a null-terminated string. The name "
162 "includes a namespace prefix; there may be several, disjoint namespaces "
163 "associated with an individual inode."
164 msgstr ""
165 "السمة الموسعة المفردة I<name> هي سلسلة منتهية بقيمة خالية. يتضمن الاسم بادئة "
166 "نطاق أسماء؛ قد توجد عدة نطاقات أسماء منفصلة مرتبطة بعقدة فهرسة فردية."
167
168 #. type: Plain text
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 msgid ""
172 "If I<size> is specified as zero, these calls return the current size of the "
173 "list of extended attribute names (and leave I<list> unchanged). This can be "
174 "used to determine the size of the buffer that should be supplied in a "
175 "subsequent call. (But, bear in mind that there is a possibility that the "
176 "set of extended attributes may change between the two calls, so that it is "
177 "still necessary to check the return status from the second call.)"
178 msgstr ""
179 "إذا حُدد I<size> بقيمة صفر، تُعيد هذه الاستدعاءات الحجم الحالي لقائمة أسماء "
180 "السمات الموسعة (وتترك I<list> دون تغيير). يمكن استخدام هذا لتحديد حجم المخزن "
181 "المؤقت الذي ينبغي توفيره في استدعاء لاحق. (لكن، ضع في اعتبارك أن هناك "
182 "احتمالاً أن تتغير مجموعة السمات الموسعة بين الاستدعاءين، لذا لا يزال من "
183 "الضروري التحقق من حالة الإرجاع من الاستدعاء الثاني.)"
184
185 #. type: SS
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "Example"
190 msgstr "مثال"
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<list> of names is returned as an unordered array of null-terminated "
197 "character strings (attribute names are separated by null bytes "
198 "(\\[aq]\\[rs]0\\[aq])), like this:"
199 msgstr ""
200 "تُعاد I<قائمة> الأسماء على شكل مصفوفة غير مرتبة من سلاسل الأحرف المنتهية بـ "
201 "null (يُفصل بين أسماء السمات بايتات null (\\[aq]\\[rs]0\\[aq]))، على النحو "
202 "التالي:"
203
204 #. type: Plain text
205 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
206 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
207 #, no-wrap
208 msgid "user.name1\\[rs]0system.name1\\[rs]0user.name2\\[rs]0\n"
209 msgstr "user.name1\\[rs]0system.name1\\[rs]0user.name2\\[rs]0\n"
210
211 #. type: Plain text
212 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
213 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
214 msgid ""
215 "Filesystems that implement POSIX ACLs using extended attributes might return "
216 "a I<list> like this:"
217 msgstr ""
218 "أنظمة الملفات التي تنفذ قوائم التحكم بالوصول POSIX باستخدام السمات الموسعة "
219 "قد تُعيد قائمة I<list> هكذا:"
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 #, no-wrap
225 msgid "system.posix_acl_access\\[rs]0system.posix_acl_default\\[rs]0\n"
226 msgstr "system.posix_acl_access\\[rs]0system.posix_acl_default\\[rs]0\n"
227
228 #. type: SH
229 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
230 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
231 #, no-wrap
232 msgid "RETURN VALUE"
233 msgstr "قيمة الإرجاع"
234
235 #. type: Plain text
236 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
237 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
238 msgid ""
239 "On success, a nonnegative number is returned indicating the size of the "
240 "extended attribute name list. On failure, -1 is returned and I<errno> is "
241 "set to indicate the error."
242 msgstr ""
243 "عند النجاح، يُعاد رقم غير سالب يشير إلى حجم قائمة أسماء السمات الموسعة. عند "
244 "الفشل، يُعاد -1 ويُضبط I<errno> للإشارة إلى الخطأ."
245
246 #. type: SH
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 #, no-wrap
250 msgid "ERRORS"
251 msgstr "الأخطاء"
252
253 #. type: TP
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "B<E2BIG>"
258 msgstr "B<E2BIG>"
259
260 #. type: Plain text
261 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
262 #: opensuse-tumbleweed
263 msgid ""
264 "The size of the list of extended attribute names is larger than the maximum "
265 "size allowed; the list cannot be retrieved. This can happen on filesystems "
266 "that support an unlimited number of extended attributes per file, such as "
267 "XFS, for example. See BUGS."
268 msgstr ""
269 "حجم قائمة أسماء السمات الموسعة أكبر من الحجم الأقصى المسموح به؛ لا يمكن "
270 "استرجاع القائمة. قد يحدث هذا في أنظمة الملفات التي تدعم عدداً غير محدود من "
271 "السمات الموسعة لكل ملف، مثل XFS على سبيل المثال. انظر الأخطاء."
272
273 #. type: TP
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "B<ENOTSUP>"
278 msgstr "B<ENOTSUP>"
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "Extended attributes are not supported by the filesystem, or are disabled."
285 msgstr "السمات الموسعة غير مدعومة من قبل نظام الملفات، أو أنها معطلة."
286
287 #. type: TP
288 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
289 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
290 #, no-wrap
291 msgid "B<ERANGE>"
292 msgstr "B<ERANGE>"
293
294 #. type: Plain text
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 msgid "The I<size> of the I<list> buffer is too small to hold the result."
298 msgstr "حجم I<size> للمخزن المؤقت I<list> صغير جداً لاستيعاب النتيجة."
299
300 #. type: Plain text
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 msgid "In addition, the errors documented in B<stat>(2) can also occur."
304 msgstr "بالإضافة إلى ذلك، يمكن أن تحدث أيضًا الأخطاء الموثقة في B<stat>(2)."
305
306 #. type: SH
307 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
308 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
309 #, no-wrap
310 msgid "STANDARDS"
311 msgstr "المعايير"
312
313 #. type: Plain text
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 msgid "Linux."
317 msgstr "لينكس."
318
319 #. type: SH
320 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
321 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
322 #, no-wrap
323 msgid "HISTORY"
324 msgstr "التاريخ"
325
326 #. .SH AUTHORS
327 #. Andreas Gruenbacher,
328 #. .RI < [email protected] >
329 #. and the SGI XFS development team,
330 #. .RI < [email protected] >.
331 #. Please send any bug reports or comments to these addresses.
332 #. type: Plain text
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 msgid "Linux 2.4, glibc 2.3."
336 msgstr "لينكس 2.4، glibc 2.3."
337
338 #. type: SH
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "BUGS"
343 msgstr "العلل"
344
345 #. The xattr(7) page refers to this text:
346 #. type: Plain text
347 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
348 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
349 msgid ""
350 "As noted in B<xattr>(7), the VFS imposes a limit of 64\\ kB on the size of "
351 "the extended attribute name list returned by B<listxattr>(). If the total "
352 "size of attribute names attached to a file exceeds this limit, it is no "
353 "longer possible to retrieve the list of attribute names."
354 msgstr ""
355 "كما هو مذكور في B<xattr>(7)، يفرض نظام VFS حدًا أقصى قدره 64 كيلوبايت لحجم "
356 "قائمة أسماء السمات الموسعة التي تُرجعها الدالة B<listxattr>(). وإذا تجاوز "
357 "الحجم الإجمالي لأسماء السمات المرتبطة بملف ما هذا الحد، فلن يكون من الممكن "
358 "بعد ذلك استرداد قائمة أسماء السمات."
359
360 #. type: SH
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 #, no-wrap
364 msgid "EXAMPLES"
365 msgstr "أمثلة"
366
367 #. type: Plain text
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 msgid ""
371 "The following program demonstrates the usage of B<listxattr>() and "
372 "B<getxattr>(2). For the file whose pathname is provided as a command-line "
373 "argument, it lists all extended file attributes and their values."
374 msgstr ""
375 "يوضح البرنامج التالي استخدام B<listxattr>() و B<getxattr>(2). بالنسبة للملف "
376 "الذي يُقدم اسم مساره كوسيط سطر أوامر، يسرد جميع سمات الملف الموسعة وقيمها."
377
378 #. type: Plain text
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 msgid ""
382 "To keep the code simple, the program assumes that attribute keys and values "
383 "are constant during the execution of the program. A production program "
384 "should expect and handle changes during execution of the program. For "
385 "example, the number of bytes required for attribute keys might increase "
386 "between the two calls to B<listxattr>(). An application could handle this "
387 "possibility using a loop that retries the call (perhaps up to a "
388 "predetermined maximum number of attempts) with a larger buffer each time it "
389 "fails with the error B<ERANGE>. Calls to B<getxattr>(2) could be handled "
390 "similarly."
391 msgstr ""
392 "لإبقاء الكود بسيطاً، يفترض البرنامج أن مفاتيح وقيم السمات ثابتة أثناء تنفيذ "
393 "البرنامج. يجب أن يتوقع برنامج الإنتاج التغييرات أثناء تنفيذ البرنامج ويتعامل "
394 "معها. على سبيل المثال، قد يزيد عدد البايتات المطلوبة لمفاتيح السمات بين "
395 "الاستدعاءين لـ B<listxattr>(). يمكن للتطبيق التعامل مع هذا الاحتمال باستخدام "
396 "حلقة تعيد محاولة الاستدعاء (ربما حتى عدد أقصى محدد مسبقاً من المحاولات) مع "
397 "مخزن مؤقت أكبر في كل مرة يفشل فيها مع الخطأ B<ERANGE>. يمكن التعامل مع "
398 "استدعاءات B<getxattr>(2) بطريقة مماثلة."
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 msgid ""
404 "The following output was recorded by first creating a file, setting some "
405 "extended file attributes, and then listing the attributes with the example "
406 "program."
407 msgstr ""
408 "سُجل المخرج التالي بإنشاء ملف أولاً، وتعيين بعض سمات الملف الموسعة، ثم سرد "
409 "السمات باستخدام البرنامج المثال."
410
411 #. type: SS
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 #, no-wrap
415 msgid "Example output"
416 msgstr "مثال على الخرج"
417
418 #. type: Plain text
419 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
420 #: opensuse-tumbleweed
421 #, no-wrap
422 msgid ""
423 "$B< touch /tmp/foo>;\n"
424 "$B< setfattr -n user.fred -v chocolate /tmp/foo>;\n"
425 "$B< setfattr -n user.frieda -v bar /tmp/foo>;\n"
426 "$B< setfattr -n user.empty /tmp/foo>;\n"
427 "$B< ./listxattr /tmp/foo>;\n"
428 "user.fred: chocolate\n"
429 "user.frieda: bar\n"
430 "user.empty: E<lt>no valueE<gt>\n"
431 msgstr ""
432 "$B< touch /tmp/foo>;\n"
433 "$B< setfattr -n user.fred -v chocolate /tmp/foo>;\n"
434 "$B< setfattr -n user.frieda -v bar /tmp/foo>;\n"
435 "$B< setfattr -n user.empty /tmp/foo>;\n"
436 "$B< ./listxattr /tmp/foo>;\n"
437 "user.fred: chocolate\n"
438 "user.frieda: bar\n"
439 "user.empty: E<lt>no valueE<gt>\n"
440
441 #. type: SS
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 #, no-wrap
445 msgid "Program source (listxattr.c)"
446 msgstr "مصدر البرنامج (listxattr.c)"
447
448 #. type: Plain text
449 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
450 #: opensuse-tumbleweed
451 #, no-wrap
452 msgid ""
453 "#include E<lt>stdio.hE<gt>\n"
454 "#include E<lt>stdlib.hE<gt>\n"
455 "#include E<lt>string.hE<gt>\n"
456 "#include E<lt>sys/xattr.hE<gt>\n"
457 "\\&\n"
458 "int\n"
459 "main(int argc, char *argv[])\n"
460 "{\n"
461 " char *buf, *key, *val;\n"
462 " ssize_t buflen, keylen, vallen;\n"
463 "\\&\n"
464 " if (argc != 2) {\n"
465 " fprintf(stderr, \"Usage: %s path\\[rs]n\", argv[0]);\n"
466 " exit(EXIT_FAILURE);\n"
467 " }\n"
468 "\\&\n"
469 " /*\n"
470 " * Determine the length of the buffer needed.\n"
471 " */\n"
472 " buflen = listxattr(argv[1], NULL, 0);\n"
473 " if (buflen == -1) {\n"
474 " perror(\"listxattr\");\n"
475 " exit(EXIT_FAILURE);\n"
476 " }\n"
477 " if (buflen == 0) {\n"
478 " printf(\"%s has no attributes.\\[rs]n\", argv[1]);\n"
479 " exit(EXIT_SUCCESS);\n"
480 " }\n"
481 "\\&\n"
482 " /*\n"
483 " * Allocate the buffer.\n"
484 " */\n"
485 " buf = malloc(buflen);\n"
486 " if (buf == NULL) {\n"
487 " perror(\"malloc\");\n"
488 " exit(EXIT_FAILURE);\n"
489 " }\n"
490 "\\&\n"
491 " /*\n"
492 " * Copy the list of attribute keys to the buffer.\n"
493 " */\n"
494 " buflen = listxattr(argv[1], buf, buflen);\n"
495 " if (buflen == -1) {\n"
496 " perror(\"listxattr\");\n"
497 " exit(EXIT_FAILURE);\n"
498 " }\n"
499 "\\&\n"
500 " /*\n"
501 " * Loop over the list of zero terminated strings with the\n"
502 " * attribute keys. Use the remaining buffer length to determine\n"
503 " * the end of the list.\n"
504 " */\n"
505 " key = buf;\n"
506 " while (buflen E<gt> 0) {\n"
507 "\\&\n"
508 " /*\n"
509 " * Output attribute key.\n"
510 " */\n"
511 " printf(\"%s: \", key);\n"
512 "\\&\n"
513 " /*\n"
514 " * Determine length of the value.\n"
515 " */\n"
516 " vallen = getxattr(argv[1], key, NULL, 0);\n"
517 " if (vallen == -1)\n"
518 " perror(\"getxattr\");\n"
519 "\\&\n"
520 " if (vallen E<gt> 0) {\n"
521 "\\&\n"
522 " /*\n"
523 " * Allocate value buffer.\n"
524 " * One extra byte is needed to append 0x00.\n"
525 " */\n"
526 " val = malloc(vallen + 1);\n"
527 " if (val == NULL) {\n"
528 " perror(\"malloc\");\n"
529 " exit(EXIT_FAILURE);\n"
530 " }\n"
531 "\\&\n"
532 " /*\n"
533 " * Copy value to buffer.\n"
534 " */\n"
535 " vallen = getxattr(argv[1], key, val, vallen);\n"
536 " if (vallen == -1) {\n"
537 " perror(\"getxattr\");\n"
538 " } else {\n"
539 " /*\n"
540 " * Output attribute value.\n"
541 " */\n"
542 " val[vallen] = 0;\n"
543 " printf(\"%s\", val);\n"
544 " }\n"
545 "\\&\n"
546 " free(val);\n"
547 " } else if (vallen == 0) {\n"
548 " printf(\"E<lt>no valueE<gt>\");\n"
549 " }\n"
550 "\\&\n"
551 " printf(\"\\[rs]n\");\n"
552 "\\&\n"
553 " /*\n"
554 " * Forward to next attribute key.\n"
555 " */\n"
556 " keylen = strlen(key) + 1;\n"
557 " buflen -= keylen;\n"
558 " key += keylen;\n"
559 " }\n"
560 "\\&\n"
561 " free(buf);\n"
562 " exit(EXIT_SUCCESS);\n"
563 "}\n"
564 msgstr ""
565 "#include E<lt>stdio.hE<gt>\n"
566 "#include E<lt>stdlib.hE<gt>\n"
567 "#include E<lt>string.hE<gt>\n"
568 "#include E<lt>sys/xattr.hE<gt>\n"
569 "\\&\n"
570 "int\n"
571 "main(int argc, char *argv[])\n"
572 "{\n"
573 " char *buf, *key, *val;\n"
574 " ssize_t buflen, keylen, vallen;\n"
575 "\\&\n"
576 " if (argc != 2) {\n"
577 " fprintf(stderr, \"Usage: %s path\\[rs]n\", argv[0]);\n"
578 " exit(EXIT_FAILURE);\n"
579 " }\n"
580 "\\&\n"
581 " /*\n"
582 " * Determine the length of the buffer needed.\n"
583 " */\n"
584 " buflen = listxattr(argv[1], NULL, 0);\n"
585 " if (buflen == -1) {\n"
586 " perror(\"listxattr\");\n"
587 " exit(EXIT_FAILURE);\n"
588 " }\n"
589 " if (buflen == 0) {\n"
590 " printf(\"%s has no attributes.\\[rs]n\", argv[1]);\n"
591 " exit(EXIT_SUCCESS);\n"
592 " }\n"
593 "\\&\n"
594 " /*\n"
595 " * Allocate the buffer.\n"
596 " */\n"
597 " buf = malloc(buflen);\n"
598 " if (buf == NULL) {\n"
599 " perror(\"malloc\");\n"
600 " exit(EXIT_FAILURE);\n"
601 " }\n"
602 "\\&\n"
603 " /*\n"
604 " * Copy the list of attribute keys to the buffer.\n"
605 " */\n"
606 " buflen = listxattr(argv[1], buf, buflen);\n"
607 " if (buflen == -1) {\n"
608 " perror(\"listxattr\");\n"
609 " exit(EXIT_FAILURE);\n"
610 " }\n"
611 "\\&\n"
612 " /*\n"
613 " * Loop over the list of zero terminated strings with the\n"
614 " * attribute keys. Use the remaining buffer length to determine\n"
615 " * the end of the list.\n"
616 " */\n"
617 " key = buf;\n"
618 " while (buflen E<gt> 0) {\n"
619 "\\&\n"
620 " /*\n"
621 " * Output attribute key.\n"
622 " */\n"
623 " printf(\"%s: \", key);\n"
624 "\\&\n"
625 " /*\n"
626 " * Determine length of the value.\n"
627 " */\n"
628 " vallen = getxattr(argv[1], key, NULL, 0);\n"
629 " if (vallen == -1)\n"
630 " perror(\"getxattr\");\n"
631 "\\&\n"
632 " if (vallen E<gt> 0) {\n"
633 "\\&\n"
634 " /*\n"
635 " * Allocate value buffer.\n"
636 " * One extra byte is needed to append 0x00.\n"
637 " */\n"
638 " val = malloc(vallen + 1);\n"
639 " if (val == NULL) {\n"
640 " perror(\"malloc\");\n"
641 " exit(EXIT_FAILURE);\n"
642 " }\n"
643 "\\&\n"
644 " /*\n"
645 " * Copy value to buffer.\n"
646 " */\n"
647 " vallen = getxattr(argv[1], key, val, vallen);\n"
648 " if (vallen == -1) {\n"
649 " perror(\"getxattr\");\n"
650 " } else {\n"
651 " /*\n"
652 " * Output attribute value.\n"
653 " */\n"
654 " val[vallen] = 0;\n"
655 " printf(\"%s\", val);\n"
656 " }\n"
657 "\\&\n"
658 " free(val);\n"
659 " } else if (vallen == 0) {\n"
660 " printf(\"E<lt>no valueE<gt>\");\n"
661 " }\n"
662 "\\&\n"
663 " printf(\"\\[rs]n\");\n"
664 "\\&\n"
665 " /*\n"
666 " * Forward to next attribute key.\n"
667 " */\n"
668 " keylen = strlen(key) + 1;\n"
669 " buflen -= keylen;\n"
670 " key += keylen;\n"
671 " }\n"
672 "\\&\n"
673 " free(buf);\n"
674 " exit(EXIT_SUCCESS);\n"
675 "}\n"
676
677 #. SRC END
678 #. type: SH
679 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
680 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
681 #, no-wrap
682 msgid "SEE ALSO"
683 msgstr "انظر أيضًا"
684
685 #. type: Plain text
686 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
687 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
688 msgid ""
689 "B<getfattr>(1), B<setfattr>(1), B<getxattr>(2), B<open>(2), "
690 "B<removexattr>(2), B<setxattr>(2), B<stat>(2), B<symlink>(7), B<xattr>(7)"
691 msgstr ""
692 "B<getfattr>(1), B<setfattr>(1), B<getxattr>(2), B<open>(2), "
693 "B<removexattr>(2), B<setxattr>(2), B<stat>(2), B<symlink>(7), B<xattr>(7)"
694
695 #. type: TH
696 #: debian-trixie
697 #, no-wrap
698 msgid "2024-06-15"
699 msgstr "15 يونيو 2024"
700
701 #. type: TH
702 #: debian-trixie
703 #, no-wrap
704 msgid "Linux man-pages 6.9.1"
705 msgstr "صفحات دليل لينكس 6.9.1"
706
707 #. type: Plain text
708 #: debian-trixie
709 msgid "Standard C library (I<libc>, I<-lc>)"
710 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
711
712 #. type: Plain text
713 #: debian-trixie fedora-44 fedora-rawhide
714 msgid ""
715 "The size of the list of extended attribute names is larger than the maximum "
716 "size allowed; the list cannot be retrieved. This can happen on filesystems "
717 "that support an unlimited number of extended attributes per file such as "
718 "XFS, for example. See BUGS."
719 msgstr ""
720 "حجم قائمة أسماء السمات الموسعة أكبر من الحجم الأقصى المسموح به؛ لا يمكن "
721 "استرجاع القائمة. قد يحدث هذا في أنظمة الملفات التي تدعم عدداً غير محدود من "
722 "السمات الموسعة لكل ملف، مثل XFS على سبيل المثال. انظر الأخطاء."
723
724 #. type: Plain text
725 #: debian-trixie fedora-44 fedora-rawhide
726 #, no-wrap
727 msgid ""
728 "$ B<touch /tmp/foo>\n"
729 "$ B<setfattr -n user.fred -v chocolate /tmp/foo>\n"
730 "$ B<setfattr -n user.frieda -v bar /tmp/foo>\n"
731 "$ B<setfattr -n user.empty /tmp/foo>\n"
732 "$ B<./listxattr /tmp/foo>\n"
733 "user.fred: chocolate\n"
734 "user.frieda: bar\n"
735 "user.empty: E<lt>no valueE<gt>\n"
736 msgstr ""
737 "$ B<touch /tmp/foo>\n"
738 "$ B<setfattr -n user.fred -v chocolate /tmp/foo>\n"
739 "$ B<setfattr -n user.frieda -v bar /tmp/foo>\n"
740 "$ B<setfattr -n user.empty /tmp/foo>\n"
741 "$ B<./listxattr /tmp/foo>\n"
742 "user.fred: chocolate\n"
743 "user.frieda: bar\n"
744 "user.empty: E<lt>no valueE<gt>\n"
745
746 #. type: Plain text
747 #: debian-trixie fedora-44 fedora-rawhide
748 #, no-wrap
749 msgid ""
750 "#include E<lt>stdio.hE<gt>\n"
751 "#include E<lt>stdlib.hE<gt>\n"
752 "#include E<lt>string.hE<gt>\n"
753 "#include E<lt>sys/xattr.hE<gt>\n"
754 "\\&\n"
755 "int\n"
756 "main(int argc, char *argv[])\n"
757 "{\n"
758 " char *buf, *key, *val;\n"
759 " ssize_t buflen, keylen, vallen;\n"
760 "\\&\n"
761 " if (argc != 2) {\n"
762 " fprintf(stderr, \"Usage: %s path\\[rs]n\", argv[0]);\n"
763 " exit(EXIT_FAILURE);\n"
764 " }\n"
765 "\\&\n"
766 " /*\n"
767 " * Determine the length of the buffer needed.\n"
768 " */\n"
769 " buflen = listxattr(argv[1], NULL, 0);\n"
770 " if (buflen == -1) {\n"
771 " perror(\"listxattr\");\n"
772 " exit(EXIT_FAILURE);\n"
773 " }\n"
774 " if (buflen == 0) {\n"
775 " printf(\"%s has no attributes.\\[rs]n\", argv[1]);\n"
776 " exit(EXIT_SUCCESS);\n"
777 " }\n"
778 "\\&\n"
779 " /*\n"
780 " * Allocate the buffer.\n"
781 " */\n"
782 " buf = malloc(buflen);\n"
783 " if (buf == NULL) {\n"
784 " perror(\"malloc\");\n"
785 " exit(EXIT_FAILURE);\n"
786 " }\n"
787 "\\&\n"
788 " /*\n"
789 " * Copy the list of attribute keys to the buffer.\n"
790 " */\n"
791 " buflen = listxattr(argv[1], buf, buflen);\n"
792 " if (buflen == -1) {\n"
793 " perror(\"listxattr\");\n"
794 " exit(EXIT_FAILURE);\n"
795 " }\n"
796 "\\&\n"
797 " /*\n"
798 " * Loop over the list of zero terminated strings with the\n"
799 " * attribute keys. Use the remaining buffer length to determine\n"
800 " * the end of the list.\n"
801 " */\n"
802 " key = buf;\n"
803 " while (buflen E<gt> 0) {\n"
804 "\\&\n"
805 " /*\n"
806 " * Output attribute key.\n"
807 " */\n"
808 " printf(\"%s: \", key);\n"
809 "\\&\n"
810 " /*\n"
811 " * Determine length of the value.\n"
812 " */\n"
813 " vallen = getxattr(argv[1], key, NULL, 0);\n"
814 " if (vallen == -1)\n"
815 " perror(\"getxattr\");\n"
816 "\\&\n"
817 " if (vallen E<gt> 0) {\n"
818 "\\&\n"
819 " /*\n"
820 " * Allocate value buffer.\n"
821 " * One extra byte is needed to append 0x00.\n"
822 " */\n"
823 " val = malloc(vallen + 1);\n"
824 " if (val == NULL) {\n"
825 " perror(\"malloc\");\n"
826 " exit(EXIT_FAILURE);\n"
827 " }\n"
828 "\\&\n"
829 " /*\n"
830 " * Copy value to buffer.\n"
831 " */\n"
832 " vallen = getxattr(argv[1], key, val, vallen);\n"
833 " if (vallen == -1) {\n"
834 " perror(\"getxattr\");\n"
835 " } else {\n"
836 " /*\n"
837 " * Output attribute value.\n"
838 " */\n"
839 " val[vallen] = 0;\n"
840 " printf(\"%s\", val);\n"
841 " }\n"
842 "\\&\n"
843 " free(val);\n"
844 " } else if (vallen == 0) {\n"
845 " printf(\"E<lt>no valueE<gt>\");\n"
846 " }\n"
847 "\\&\n"
848 " printf(\"\\[rs]n\");\n"
849 "\\&\n"
850 " /*\n"
851 " * Forward to next attribute key.\n"
852 " */\n"
853 " keylen = strlen(key) + 1;\n"
854 " buflen -= keylen;\n"
855 " key += keylen;\n"
856 " }\n"
857 "\\&\n"
858 " free(buf);\n"
859 " exit(EXIT_SUCCESS);\n"
860 "}\n"
861 msgstr ""
862 "#include E<lt>stdio.hE<gt>\n"
863 "#include E<lt>stdlib.hE<gt>\n"
864 "#include E<lt>string.hE<gt>\n"
865 "#include E<lt>sys/xattr.hE<gt>\n"
866 "\\&\n"
867 "int\n"
868 "main(int argc, char *argv[])\n"
869 "{\n"
870 " char *buf, *key, *val;\n"
871 " ssize_t buflen, keylen, vallen;\n"
872 "\\&\n"
873 " if (argc != 2) {\n"
874 " fprintf(stderr, \"Usage: %s path\\[rs]n\", argv[0]);\n"
875 " exit(EXIT_FAILURE);\n"
876 " }\n"
877 "\\&\n"
878 " /*\n"
879 " * Determine the length of the buffer needed.\n"
880 " */\n"
881 " buflen = listxattr(argv[1], NULL, 0);\n"
882 " if (buflen == -1) {\n"
883 " perror(\"listxattr\");\n"
884 " exit(EXIT_FAILURE);\n"
885 " }\n"
886 " if (buflen == 0) {\n"
887 " printf(\"%s has no attributes.\\[rs]n\", argv[1]);\n"
888 " exit(EXIT_SUCCESS);\n"
889 " }\n"
890 "\\&\n"
891 " /*\n"
892 " * Allocate the buffer.\n"
893 " */\n"
894 " buf = malloc(buflen);\n"
895 " if (buf == NULL) {\n"
896 " perror(\"malloc\");\n"
897 " exit(EXIT_FAILURE);\n"
898 " }\n"
899 "\\&\n"
900 " /*\n"
901 " * Copy the list of attribute keys to the buffer.\n"
902 " */\n"
903 " buflen = listxattr(argv[1], buf, buflen);\n"
904 " if (buflen == -1) {\n"
905 " perror(\"listxattr\");\n"
906 " exit(EXIT_FAILURE);\n"
907 " }\n"
908 "\\&\n"
909 " /*\n"
910 " * Loop over the list of zero terminated strings with the\n"
911 " * attribute keys. Use the remaining buffer length to determine\n"
912 " * the end of the list.\n"
913 " */\n"
914 " key = buf;\n"
915 " while (buflen E<gt> 0) {\n"
916 "\\&\n"
917 " /*\n"
918 " * Output attribute key.\n"
919 " */\n"
920 " printf(\"%s: \", key);\n"
921 "\\&\n"
922 " /*\n"
923 " * Determine length of the value.\n"
924 " */\n"
925 " vallen = getxattr(argv[1], key, NULL, 0);\n"
926 " if (vallen == -1)\n"
927 " perror(\"getxattr\");\n"
928 "\\&\n"
929 " if (vallen E<gt> 0) {\n"
930 "\\&\n"
931 " /*\n"
932 " * Allocate value buffer.\n"
933 " * One extra byte is needed to append 0x00.\n"
934 " */\n"
935 " val = malloc(vallen + 1);\n"
936 " if (val == NULL) {\n"
937 " perror(\"malloc\");\n"
938 " exit(EXIT_FAILURE);\n"
939 " }\n"
940 "\\&\n"
941 " /*\n"
942 " * Copy value to buffer.\n"
943 " */\n"
944 " vallen = getxattr(argv[1], key, val, vallen);\n"
945 " if (vallen == -1) {\n"
946 " perror(\"getxattr\");\n"
947 " } else {\n"
948 " /*\n"
949 " * Output attribute value.\n"
950 " */\n"
951 " val[vallen] = 0;\n"
952 " printf(\"%s\", val);\n"
953 " }\n"
954 "\\&\n"
955 " free(val);\n"
956 " } else if (vallen == 0) {\n"
957 " printf(\"E<lt>no valueE<gt>\");\n"
958 " }\n"
959 "\\&\n"
960 " printf(\"\\[rs]n\");\n"
961 "\\&\n"
962 " /*\n"
963 " * Forward to next attribute key.\n"
964 " */\n"
965 " keylen = strlen(key) + 1;\n"
966 " buflen -= keylen;\n"
967 " key += keylen;\n"
968 " }\n"
969 "\\&\n"
970 " free(buf);\n"
971 " exit(EXIT_SUCCESS);\n"
972 "}\n"
973
974 #. type: TH
975 #: fedora-44 fedora-rawhide
976 #, no-wrap
977 msgid "2024-07-23"
978 msgstr "23 يوليو 2024"
979
980 #. type: TH
981 #: fedora-44 fedora-rawhide
982 #, no-wrap
983 msgid "Linux man-pages 6.13"
984 msgstr "صفحات دليل لينكس 6.13"
985
986 #. type: TH
987 #: mageia-cauldron
988 #, no-wrap
989 msgid "Linux man-pages 6.17"
990 msgstr "صفحات دليل لينكس 6.17"
991
992 #. type: TH
993 #: opensuse-leap-16-1 opensuse-tumbleweed
994 #, no-wrap
995 msgid "Linux man-pages (unreleased)"
996 msgstr "صفحات دليل لينكس (لم تصدر بعد)"