Debian Codegraph @

po/ar/man2/readlink.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:39+0200\n"
9 "PO-Revision-Date: 2026-05-18 18:03+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 "readlink"
25 msgstr "readlink"
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 "readlink, readlinkat - read value of a symbolic link"
51 msgstr "readlink, readlinkat - قراءة قيمة رابط رمزي"
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>unistd.hE<gt>>\n"
78 msgstr "B<#include E<lt>unistd.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
82 #: opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<ssize_t readlink(>size_t bufsiz;\n"
86 "B< const char *restrict >I<path>B<,>\n"
87 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
88 msgstr ""
89 "B<ssize_t readlink(>size_t bufsiz;\n"
90 "B< const char *restrict >I<path>B<,>\n"
91 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
92
93 #. type: Plain text
94 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
95 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
96 #, no-wrap
97 msgid ""
98 "B<#include E<lt>fcntl.hE<gt> >/* Definition of B<AT_*> constants */\n"
99 "B<#include E<lt>unistd.hE<gt>>\n"
100 msgstr ""
101 "B<#include E<lt>fcntl.hE<gt> >/* تعريف ثوابت B<AT_*> */\n"
102 "B<#include E<lt>unistd.hE<gt>>\n"
103
104 #. type: Plain text
105 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
106 #: opensuse-tumbleweed
107 #, no-wrap
108 msgid ""
109 "B<ssize_t readlinkat(>size_t bufsiz;\n"
110 "B< int >I<dirfd>B<, const char *restrict >I<path>B<,>\n"
111 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
112 msgstr ""
113 "B<ssize_t readlinkat(>size_t bufsiz;\n"
114 "B< int >I<dirfd>B<, const char *restrict >I<path>B<,>\n"
115 "B< char >I<buf>B<[restrict >I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
116
117 #. type: Plain text
118 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
119 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
120 msgid ""
121 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
122 msgstr ""
123 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
124
125 #. type: Plain text
126 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
127 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
128 msgid "B<readlink>():"
129 msgstr "B<readlink>():"
130
131 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
132 #. type: Plain text
133 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
134 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
135 #, no-wrap
136 msgid ""
137 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
138 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
139 msgstr ""
140 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200112L\n"
141 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
142
143 #. type: Plain text
144 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
145 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
146 msgid "B<readlinkat>():"
147 msgstr "B<readlinkat>():"
148
149 #. type: Plain text
150 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
151 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
152 #, no-wrap
153 msgid ""
154 " Since glibc 2.10:\n"
155 " _POSIX_C_SOURCE E<gt>= 200809L\n"
156 " Before glibc 2.10:\n"
157 " _ATFILE_SOURCE\n"
158 msgstr ""
159 " منذ glibc 2.10:\n"
160 " _POSIX_C_SOURCE E<gt>= 200809L\n"
161 " قبل glibc 2.10:\n"
162 " _ATFILE_SOURCE\n"
163
164 #. type: SH
165 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
166 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
167 #, no-wrap
168 msgid "DESCRIPTION"
169 msgstr "الوصف"
170
171 #. type: Plain text
172 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
173 #: opensuse-tumbleweed
174 msgid ""
175 "B<readlink>() places the contents of the symbolic link I<path> in the "
176 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
177 "terminating null byte to I<buf>. It will (silently) truncate the contents "
178 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
179 "hold all of the contents."
180 msgstr ""
181 "تضع B<readlink>() محتويات الرابط الرمزي I<path> في المخزن المؤقت I<buf>، "
182 "الذي حجمه I<bufsiz>. لا تُلحق B<readlink>() بايت فارغ ختامي بـ I<buf>. ستقطع "
183 "(بصمت) المحتويات (إلى طول I<bufsiz> حرفًا)، إذا كان المخزن المؤقت صغيرًا جدًا "
184 "لاستيعاب كل المحتويات."
185
186 #. type: SS
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "readlinkat()"
191 msgstr "readlinkat()"
192
193 #. type: Plain text
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 msgid ""
197 "The B<readlinkat>() system call operates in exactly the same way as "
198 "B<readlink>(), except for the differences described here."
199 msgstr ""
200 "تعمل استدعاء النظام B<readlinkat>() بنفس طريقة B<readlink>() تمامًا، باستثناء "
201 "الاختلافات الموصوفة هنا."
202
203 #. type: Plain text
204 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
205 #: opensuse-tumbleweed
206 msgid ""
207 "If I<path> is relative, then it is interpreted relative to the directory "
208 "referred to by the file descriptor I<dirfd> (rather than relative to the "
209 "current working directory of the calling process, as is done by "
210 "B<readlink>() for a relative pathname)."
211 msgstr ""
212 "إذا كان I<path> نسبيًا، فيُفسر بالنسبة للدليل المشار إليه بواصف الملف I<dirfd> "
213 "(بدلاً من دليل العمل الحالي للعملية المستدعية، كما تفعل B<readlink>() لاسم "
214 "مسار نسبي)."
215
216 #. type: Plain text
217 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
218 #: opensuse-tumbleweed
219 msgid ""
220 "If I<path> is relative and I<dirfd> is the special value B<AT_FDCWD>, then "
221 "I<path> is interpreted relative to the current working directory of the "
222 "calling process (like B<readlink>())."
223 msgstr ""
224 "إذا كان I<path> نسبيًا و I<dirfd> هو القيمة الخاصة B<AT_FDCWD>، فيُفسر I<path> "
225 "بالنسبة لدليل العمل الحالي للعملية المستدعية (مثل B<readlink>())."
226
227 #. type: Plain text
228 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
229 #: opensuse-tumbleweed
230 msgid "If I<path> is absolute, then I<dirfd> is ignored."
231 msgstr "إذا كان المسار I<path> مطلقاً، فُيتجاهل I<dirfd>."
232
233 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
234 #. type: Plain text
235 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
236 #: opensuse-tumbleweed
237 msgid ""
238 "Since Linux 2.6.39, I<path> can be an empty string, in which case the call "
239 "operates on the symbolic link referred to by I<dirfd> (which should have "
240 "been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> flags)."
241 msgstr ""
242 "منذ Linux 2.6.39، يمكن أن يكون I<path> سلسلة فارغة، وفي هذه الحالة يعمل "
243 "الاستدعاء على الرابط الرمزي المشار إليه بـ I<dirfd> (والذي يجب الحصول عليه "
244 "باستخدام B<open>(2) مع العلمين B<O_PATH> و B<O_NOFOLLOW>)."
245
246 #. type: Plain text
247 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
248 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
249 msgid "See B<openat>(2) for an explanation of the need for B<readlinkat>()."
250 msgstr "انظر B<openat>(2) لشرح الحاجة إلى B<readlinkat>()."
251
252 #. type: SH
253 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
254 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
255 #, no-wrap
256 msgid "RETURN VALUE"
257 msgstr "قيمة الإرجاع"
258
259 #. type: Plain text
260 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
261 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
262 msgid ""
263 "On success, these calls return the number of bytes placed in I<buf>. (If "
264 "the returned value equals I<bufsiz>, then truncation may have occurred.) On "
265 "error, -1 is returned and I<errno> is set to indicate the error."
266 msgstr ""
267 "عند النجاح، تُرجع هذه الاستدعاءات عدد البايتات الموضوعة في I<buf>. (إذا كانت "
268 "القيمة المُرجعة تساوي I<bufsiz>، فقد حدث اقتطاع.) عند الخطأ، يُرجع -1 ويُضبط "
269 "I<errno> للإشارة إلى الخطأ."
270
271 #. type: SH
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "ERRORS"
276 msgstr "الأخطاء"
277
278 #. type: TP
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid "B<EACCES>"
283 msgstr "B<EACCES>"
284
285 #. type: Plain text
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 msgid ""
289 "Search permission is denied for a component of the path prefix. (See also "
290 "B<path_resolution>(7).)"
291 msgstr ""
292 "تم رفض إذن البحث لمكون من بادئة المسار. (انظر أيضًا B<path_resolution>(7).)"
293
294 #. type: TP
295 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
296 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
297 #, no-wrap
298 msgid "B<EBADF>"
299 msgstr "B<EBADF>"
300
301 #. type: Plain text
302 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
303 #: opensuse-tumbleweed
304 msgid ""
305 "(B<readlinkat>()) I<path> is relative but I<dirfd> is neither B<AT_FDCWD> "
306 "nor a valid file descriptor."
307 msgstr ""
308 "(B<readlinkat>()) I<path> نسبي لكن I<dirfd> ليس B<AT_FDCWD> ولا واصف ملف "
309 "صالح."
310
311 #. type: TP
312 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
313 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
314 #, no-wrap
315 msgid "B<EFAULT>"
316 msgstr "B<EFAULT>"
317
318 #. type: Plain text
319 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
320 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
321 msgid "I<buf> extends outside the process's allocated address space."
322 msgstr "يمتد I<buf> خارج مساحة العنوان المخصصة للعملية."
323
324 #. type: TP
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid "B<EINVAL>"
329 msgstr "B<EINVAL>"
330
331 #. At the glibc level, bufsiz is unsigned, so this error can only occur
332 #. if bufsiz==0. However, the in the kernel syscall, bufsiz is signed,
333 #. and this error can also occur if bufsiz < 0.
334 #. See: http://thread.gmane.org/gmane.linux.man/380
335 #. Subject: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" syscall?
336 #. type: Plain text
337 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
338 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
339 msgid "I<bufsiz> is not positive."
340 msgstr "I<bufsiz> ليس موجبًا."
341
342 #. type: Plain text
343 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
344 #: opensuse-tumbleweed
345 msgid ""
346 "The named file (i.e., the final filename component of I<path>) is not a "
347 "symbolic link."
348 msgstr "الملف المُسمى (أي مكون اسم الملف النهائي لـ I<path>) ليس رابطًا رمزيًا."
349
350 #. type: TP
351 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
352 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
353 #, no-wrap
354 msgid "B<EIO>"
355 msgstr "B<EIO>"
356
357 #. type: Plain text
358 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
359 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
360 msgid "An I/O error occurred while reading from the filesystem."
361 msgstr "حدث خطأ إدخال/إخراج أثناء القراءة من نظام الملفات."
362
363 #. type: TP
364 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
365 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
366 #, no-wrap
367 msgid "B<ELOOP>"
368 msgstr "B<ELOOP>"
369
370 #. type: Plain text
371 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
372 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
373 msgid "Too many symbolic links were encountered in translating the pathname."
374 msgstr "صودفت روابط رمزية كثيرة جدًا عند ترجمة اسم المسار."
375
376 #. type: TP
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 #, no-wrap
380 msgid "B<ENAMETOOLONG>"
381 msgstr "B<ENAMETOOLONG>"
382
383 #. type: Plain text
384 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
385 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
386 msgid "A pathname, or a component of a pathname, was too long."
387 msgstr "اسم مسار، أو مكون من اسم مسار، طويل جدًا."
388
389 #. type: TP
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 #, no-wrap
393 msgid "B<ENOENT>"
394 msgstr "B<ENOENT>"
395
396 #. type: Plain text
397 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
398 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
399 msgid "The named file does not exist."
400 msgstr "الملف المسمى غير موجود."
401
402 #. type: TP
403 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
404 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
405 #, no-wrap
406 msgid "B<ENOMEM>"
407 msgstr "B<ENOMEM>"
408
409 #. type: Plain text
410 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
411 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
412 msgid "Insufficient kernel memory was available."
413 msgstr "ذاكرة النواة المتوفرة غير كافية."
414
415 #. type: TP
416 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
417 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
418 #, no-wrap
419 msgid "B<ENOTDIR>"
420 msgstr "B<ENOTDIR>"
421
422 #. type: Plain text
423 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
424 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
425 msgid "A component of the path prefix is not a directory."
426 msgstr "أحد مكونات بادئة المسار ليس دليلاً."
427
428 #. type: Plain text
429 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
430 #: opensuse-tumbleweed
431 msgid ""
432 "(B<readlinkat>()) I<path> is relative and I<dirfd> is a file descriptor "
433 "referring to a file other than a directory."
434 msgstr ""
435 "(B<readlinkat>()) I<path> نسبي و I<dirfd> هو واصف ملف يشير إلى ملف غير دليل."
436
437 #. type: SH
438 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
439 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
440 #, no-wrap
441 msgid "STANDARDS"
442 msgstr "المعايير"
443
444 #. type: Plain text
445 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
446 #: opensuse-tumbleweed
447 msgid "POSIX.1-2024."
448 msgstr "POSIX.1-2024."
449
450 #. type: SH
451 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
452 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
453 #, no-wrap
454 msgid "HISTORY"
455 msgstr "التاريخ"
456
457 #. type: TP
458 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
459 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
460 #, no-wrap
461 msgid "B<readlink>()"
462 msgstr "B<readlink>()"
463
464 #. type: Plain text
465 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
466 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
467 msgid "4.4BSD (first appeared in 4.2BSD), POSIX.1-2001, POSIX.1-2008."
468 msgstr "4.4BSD (ظهر لأول مرة في 4.2BSD)، POSIX.1-2001، POSIX.1-2008."
469
470 #. type: TP
471 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
472 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
473 #, no-wrap
474 msgid "B<readlinkat>()"
475 msgstr "B<readlinkat>()"
476
477 #. type: Plain text
478 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
479 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
480 msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4."
481 msgstr "POSIX.1-2008. لينكس 2.6.16،‏ glibc 2.4."
482
483 #. type: Plain text
484 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
485 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
486 msgid ""
487 "Up to and including glibc 2.4, the return type of B<readlink>() was "
488 "declared as I<int>. Nowadays, the return type is declared as I<ssize_t>, as "
489 "(newly) required in POSIX.1-2001."
490 msgstr ""
491 "حتى glibc 2.4 وما تضمنته، كان نوع الإرجاع لـ B<readlink>() مُصرحًا به كـ "
492 "I<int>. حاليًا، يُصرح بنوع الإرجاع كـ I<ssize_t>، كما هو مطلوب (حديثًا) في "
493 "POSIX.1-2001."
494
495 #. type: SS
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 #, no-wrap
499 msgid "glibc"
500 msgstr "glibc"
501
502 #. type: Plain text
503 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
504 #: opensuse-tumbleweed
505 msgid ""
506 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
507 "function falls back to the use of B<readlink>(). When I<path> is relative, "
508 "glibc constructs a pathname based on the symbolic link in I</proc/self/fd> "
509 "that corresponds to the I<dirfd> argument."
510 msgstr ""
511 "على النوى الأقدم حيث B<readlinkat>() غير متوفرة، ترجع دالة الغلاف glibc إلى "
512 "استخدام B<readlink>(). عندما يكون I<path> نسبيًا، تبني glibc اسم مسار بناءً "
513 "على الرابط الرمزي في I</proc/self/fd> الذي يتوافق مع وسيطة I<dirfd>."
514
515 #. type: SH
516 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
517 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
518 #, no-wrap
519 msgid "NOTES"
520 msgstr "ملاحظات"
521
522 #. type: Plain text
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 msgid ""
526 "Using a statically sized buffer might not provide enough room for the "
527 "symbolic link contents. The required size for the buffer can be obtained "
528 "from the I<stat.st_size> value returned by a call to B<lstat>(2) on the "
529 "link. However, the number of bytes written by B<readlink>() and "
530 "B<readlinkat>() should be checked to make sure that the size of the "
531 "symbolic link did not increase between the calls. Dynamically allocating "
532 "the buffer for B<readlink>() and B<readlinkat>() also addresses a common "
533 "portability problem when using B<PATH_MAX> for the buffer size, as this "
534 "constant is not guaranteed to be defined per POSIX if the system does not "
535 "have such limit."
536 msgstr ""
537 "قد لا يوفر استخدام مخزن مؤقت بحجم ثابت مساحة كافية لمحتويات الرابط الرمزي. "
538 "يمكن الحصول على الحجم المطلوب للمخزن المؤقت من قيمة I<stat.st_size> المُرجعة "
539 "باستدعاء B<lstat>(2) على الرابط. ومع ذلك، يجب التحقق من عدد البايتات التي "
540 "كتبتها B<readlink>() و B<readlinkat>() للتأكد من أن حجم الرابط الرمزي لم يزد "
541 "بين الاستدعاءات. يعالج التخصيص الديناميكي للمخزن المؤقت لـ B<readlink>() و "
542 "B<readlinkat>() أيضًا مشكلة قابلية النقل الشائعة عند استخدام B<PATH_MAX> لحجم "
543 "المخزن المؤقت، حيث أن هذا الثابت غير مضمون التعريف وفقًا لـ POSIX إذا لم يكن "
544 "لدى النظام مثل هذا الحد."
545
546 #. type: SH
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 #, no-wrap
550 msgid "EXAMPLES"
551 msgstr "أمثلة"
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 "The following program allocates the buffer needed by B<readlink>() "
558 "dynamically from the information provided by B<lstat>(2), falling back to a "
559 "buffer of size B<PATH_MAX> in cases where B<lstat>(2) reports a size of "
560 "zero."
561 msgstr ""
562 "يخصص البرنامج التالي المخزن المؤقت المطلوب بواسطة B<readlink>() ديناميكيًا من "
563 "المعلومات المقدمة بواسطة B<lstat>(2)، مع الرجوع إلى مخزن مؤقت بحجم "
564 "B<PATH_MAX> في الحالات التي يُبلغ فيها B<lstat>(2) عن حجم صفري."
565
566 #. type: Plain text
567 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
568 #: opensuse-tumbleweed
569 #, no-wrap
570 msgid ""
571 "#include E<lt>limits.hE<gt>\n"
572 "#include E<lt>stdio.hE<gt>\n"
573 "#include E<lt>stdlib.hE<gt>\n"
574 "#include E<lt>sys/stat.hE<gt>\n"
575 "#include E<lt>sys/types.hE<gt>\n"
576 "#include E<lt>unistd.hE<gt>\n"
577 "\\&\n"
578 "int\n"
579 "main(int argc, char *argv[])\n"
580 "{\n"
581 " char *buf;\n"
582 " ssize_t nbytes, bufsiz;\n"
583 " struct stat sb;\n"
584 "\\&\n"
585 " if (argc != 2) {\n"
586 " fprintf(stderr, \"Usage: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n"
587 " exit(EXIT_FAILURE);\n"
588 " }\n"
589 "\\&\n"
590 " if (lstat(argv[1], &sb) == -1) {\n"
591 " perror(\"lstat\");\n"
592 " exit(EXIT_FAILURE);\n"
593 " }\n"
594 "\\&\n"
595 " /* Add one to the link size, so that we can determine whether\n"
596 " the buffer returned by readlink() was truncated. */\n"
597 "\\&\n"
598 " bufsiz = sb.st_size + 1;\n"
599 "\\&\n"
600 " /* Some magic symlinks under (for example) /proc and /sys\n"
601 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
602 " a \"good enough\" estimate. */\n"
603 "\\&\n"
604 " if (sb.st_size == 0)\n"
605 " bufsiz = PATH_MAX;\n"
606 "\\&\n"
607 " buf = malloc(bufsiz);\n"
608 " if (buf == NULL) {\n"
609 " perror(\"malloc\");\n"
610 " exit(EXIT_FAILURE);\n"
611 " }\n"
612 "\\&\n"
613 " nbytes = readlink(argv[1], buf, bufsiz);\n"
614 " if (nbytes == -1) {\n"
615 " perror(\"readlink\");\n"
616 " exit(EXIT_FAILURE);\n"
617 " }\n"
618 "\\&\n"
619 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
620 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
621 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
622 "\\&\n"
623 " /* If the return value was equal to the buffer size, then\n"
624 " the link target was larger than expected (perhaps because the\n"
625 " target was changed between the call to lstat() and the call to\n"
626 " readlink()). Warn the user that the returned target may have\n"
627 " been truncated. */\n"
628 "\\&\n"
629 " if (nbytes == bufsiz)\n"
630 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
631 "\\&\n"
632 " free(buf);\n"
633 " exit(EXIT_SUCCESS);\n"
634 "}\n"
635 msgstr ""
636 "#include E<lt>limits.hE<gt>\n"
637 "#include E<lt>stdio.hE<gt>\n"
638 "#include E<lt>stdlib.hE<gt>\n"
639 "#include E<lt>sys/stat.hE<gt>\n"
640 "#include E<lt>sys/types.hE<gt>\n"
641 "#include E<lt>unistd.hE<gt>\n"
642 "\\&\n"
643 "int\n"
644 "main(int argc, char *argv[])\n"
645 "{\n"
646 " char *buf;\n"
647 " ssize_t nbytes, bufsiz;\n"
648 " struct stat sb;\n"
649 "\\&\n"
650 " if (argc != 2) {\n"
651 " fprintf(stderr, \"Usage: %s E<lt>pathE<gt>\\[rs]n\", argv[0]);\n"
652 " exit(EXIT_FAILURE);\n"
653 " }\n"
654 "\\&\n"
655 " if (lstat(argv[1], &sb) == -1) {\n"
656 " perror(\"lstat\");\n"
657 " exit(EXIT_FAILURE);\n"
658 " }\n"
659 "\\&\n"
660 " /* Add one to the link size, so that we can determine whether\n"
661 " the buffer returned by readlink() was truncated. */\n"
662 "\\&\n"
663 " bufsiz = sb.st_size + 1;\n"
664 "\\&\n"
665 " /* Some magic symlinks under (for example) /proc and /sys\n"
666 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
667 " a \"good enough\" estimate. */\n"
668 "\\&\n"
669 " if (sb.st_size == 0)\n"
670 " bufsiz = PATH_MAX;\n"
671 "\\&\n"
672 " buf = malloc(bufsiz);\n"
673 " if (buf == NULL) {\n"
674 " perror(\"malloc\");\n"
675 " exit(EXIT_FAILURE);\n"
676 " }\n"
677 "\\&\n"
678 " nbytes = readlink(argv[1], buf, bufsiz);\n"
679 " if (nbytes == -1) {\n"
680 " perror(\"readlink\");\n"
681 " exit(EXIT_FAILURE);\n"
682 " }\n"
683 "\\&\n"
684 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
685 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
686 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
687 "\\&\n"
688 " /* If the return value was equal to the buffer size, then\n"
689 " the link target was larger than expected (perhaps because the\n"
690 " target was changed between the call to lstat() and the call to\n"
691 " readlink()). Warn the user that the returned target may have\n"
692 " been truncated. */\n"
693 "\\&\n"
694 " if (nbytes == bufsiz)\n"
695 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
696 "\\&\n"
697 " free(buf);\n"
698 " exit(EXIT_SUCCESS);\n"
699 "}\n"
700
701 #. SRC END
702 #. type: SH
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 #, no-wrap
706 msgid "SEE ALSO"
707 msgstr "انظر أيضًا"
708
709 #. type: Plain text
710 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
711 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
712 msgid ""
713 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
714 "B<path_resolution>(7), B<symlink>(7)"
715 msgstr ""
716 "B<readlink>(1), B<lstat>(2), B<stat>(2), B<symlink>(2), B<realpath>(3), "
717 "B<path_resolution>(7), B<symlink>(7)"
718
719 #. type: TH
720 #: debian-trixie
721 #, no-wrap
722 msgid "2024-06-15"
723 msgstr "15 يونيو 2024"
724
725 #. type: TH
726 #: debian-trixie
727 #, no-wrap
728 msgid "Linux man-pages 6.9.1"
729 msgstr "صفحات دليل لينكس 6.9.1"
730
731 #. type: Plain text
732 #: debian-trixie
733 msgid "Standard C library (I<libc>, I<-lc>)"
734 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
735
736 #. type: Plain text
737 #: debian-trixie
738 #, no-wrap
739 msgid ""
740 "B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n"
741 "B< size_t >I<bufsiz>B<);>\n"
742 msgstr ""
743 "B<ssize_t readlink(const char *restrict >I<pathname>B<, char *restrict >I<buf>B<,>\n"
744 "B< size_t >I<bufsiz>B<);>\n"
745
746 #. type: Plain text
747 #: debian-trixie
748 #, no-wrap
749 msgid ""
750 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
751 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
752 msgstr ""
753 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
754 "B< char *restrict >I<buf>B<, size_t >I<bufsiz>B<);>\n"
755
756 #. type: Plain text
757 #: debian-trixie fedora-44 fedora-rawhide
758 msgid ""
759 "B<readlink>() places the contents of the symbolic link I<pathname> in the "
760 "buffer I<buf>, which has size I<bufsiz>. B<readlink>() does not append a "
761 "terminating null byte to I<buf>. It will (silently) truncate the contents "
762 "(to a length of I<bufsiz> characters), in case the buffer is too small to "
763 "hold all of the contents."
764 msgstr ""
765 "تضع B<readlink>() محتويات الرابط الرمزي I<pathname> في المخزن المؤقت "
766 "I<buf>، الذي حجمه I<bufsiz>. لا تُلحق B<readlink>() بايتة خالية ختامية بـ "
767 "I<buf>. ستقتطع (بصمت) المحتويات (إلى طول I<bufsiz> حرفًا)، في حال كان المخزن "
768 "المؤقت صغيرًا جدًا لاستيعاب كل المحتويات."
769
770 #. type: Plain text
771 #: debian-trixie fedora-44 fedora-rawhide
772 msgid ""
773 "If the pathname given in I<pathname> is relative, then it is interpreted "
774 "relative to the directory referred to by the file descriptor I<dirfd> "
775 "(rather than relative to the current working directory of the calling "
776 "process, as is done by B<readlink>() for a relative pathname)."
777 msgstr ""
778 "إذا كان اسم المسار المُعطى في I<pathname> نسبيًا، فسيُفسر بالنسبة إلى الدليل "
779 "المُشار إليه بواصف الملف I<dirfd> (بدلاً من نسبته إلى دليل العمل الحالي "
780 "للعملية المستدعية، كما تفعل B<readlink>() لاسم مسار نسبي)."
781
782 #. type: Plain text
783 #: debian-trixie fedora-44 fedora-rawhide
784 msgid ""
785 "If I<pathname> is relative and I<dirfd> is the special value B<AT_FDCWD>, "
786 "then I<pathname> is interpreted relative to the current working directory of "
787 "the calling process (like B<readlink>())."
788 msgstr ""
789 "إذا كان I<pathname> نسبيًا وكان I<dirfd> هو القيمة الخاصة B<AT_FDCWD>، فسيُفسر "
790 "I<pathname> بالنسبة إلى دليل العمل الحالي للعملية المستدعية (مثل "
791 "B<readlink>())."
792
793 #. type: Plain text
794 #: debian-trixie fedora-44 fedora-rawhide
795 msgid "If I<pathname> is absolute, then I<dirfd> is ignored."
796 msgstr "إذا كان اسم المسار I<pathname> مطلقاً، فُيتجاهل I<dirfd>."
797
798 #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d
799 #. type: Plain text
800 #: debian-trixie fedora-44 fedora-rawhide
801 msgid ""
802 "Since Linux 2.6.39, I<pathname> can be an empty string, in which case the "
803 "call operates on the symbolic link referred to by I<dirfd> (which should "
804 "have been obtained using B<open>(2) with the B<O_PATH> and B<O_NOFOLLOW> "
805 "flags)."
806 msgstr ""
807 "منذ لينكس 2.6.39، يمكن أن يكون I<pathname> سلسلة فارغة، وفي هذه الحالة يعمل "
808 "الاستدعاء على الرابط الرمزي المُشار إليه بـ I<dirfd> (والذي ينبغي الحصول عليه "
809 "باستخدام B<open>(2) مع العلمين B<O_PATH> و B<O_NOFOLLOW>)."
810
811 #. type: Plain text
812 #: debian-trixie fedora-44 fedora-rawhide
813 msgid ""
814 "(B<readlinkat>()) I<pathname> is relative but I<dirfd> is neither "
815 "B<AT_FDCWD> nor a valid file descriptor."
816 msgstr ""
817 "(B<readlinkat>()) I<pathname> نسبي لكن I<dirfd> ليس B<AT_FDCWD> ولا واصف "
818 "ملف صالحًا."
819
820 #. type: Plain text
821 #: debian-trixie fedora-44 fedora-rawhide
822 msgid ""
823 "The named file (i.e., the final filename component of I<pathname>) is not a "
824 "symbolic link."
825 msgstr ""
826 "الملف المُسمى (أي مكون اسم الملف النهائي لـ I<pathname>) ليس رابطًا رمزيًا."
827
828 #. type: Plain text
829 #: debian-trixie fedora-44 fedora-rawhide
830 msgid ""
831 "(B<readlinkat>()) I<pathname> is relative and I<dirfd> is a file descriptor "
832 "referring to a file other than a directory."
833 msgstr ""
834 "(B<readlinkat>()) I<pathname> نسبي و I<dirfd> هو واصف ملف يُشير إلى ملف غير "
835 "دليل."
836
837 #. type: Plain text
838 #: debian-trixie fedora-44 fedora-rawhide
839 msgid "POSIX.1-2008."
840 msgstr "POSIX.1-2008."
841
842 #. type: Plain text
843 #: debian-trixie fedora-44 fedora-rawhide
844 msgid ""
845 "On older kernels where B<readlinkat>() is unavailable, the glibc wrapper "
846 "function falls back to the use of B<readlink>(). When I<pathname> is a "
847 "relative pathname, glibc constructs a pathname based on the symbolic link in "
848 "I</proc/self/fd> that corresponds to the I<dirfd> argument."
849 msgstr ""
850 "على الأنوية القديمة حيث B<readlinkat>() غير متوفرة، تتراجع دالة الغلاف "
851 "glibc لاستخدام B<readlink>(). عندما يكون I<pathname> اسم مسار نسبي، تُنشئ "
852 "glibc اسم مسار بناءً على الرابط الرمزي في I</proc/self/fd> الذي يُطابق وسيطة "
853 "I<dirfd>."
854
855 #. type: Plain text
856 #: debian-trixie fedora-44 fedora-rawhide
857 #, no-wrap
858 msgid ""
859 "#include E<lt>limits.hE<gt>\n"
860 "#include E<lt>stdio.hE<gt>\n"
861 "#include E<lt>stdlib.hE<gt>\n"
862 "#include E<lt>sys/stat.hE<gt>\n"
863 "#include E<lt>sys/types.hE<gt>\n"
864 "#include E<lt>unistd.hE<gt>\n"
865 "\\&\n"
866 "int\n"
867 "main(int argc, char *argv[])\n"
868 "{\n"
869 " char *buf;\n"
870 " ssize_t nbytes, bufsiz;\n"
871 " struct stat sb;\n"
872 "\\&\n"
873 " if (argc != 2) {\n"
874 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
875 " exit(EXIT_FAILURE);\n"
876 " }\n"
877 "\\&\n"
878 " if (lstat(argv[1], &sb) == -1) {\n"
879 " perror(\"lstat\");\n"
880 " exit(EXIT_FAILURE);\n"
881 " }\n"
882 "\\&\n"
883 " /* Add one to the link size, so that we can determine whether\n"
884 " the buffer returned by readlink() was truncated. */\n"
885 "\\&\n"
886 " bufsiz = sb.st_size + 1;\n"
887 "\\&\n"
888 " /* Some magic symlinks under (for example) /proc and /sys\n"
889 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
890 " a \"good enough\" estimate. */\n"
891 "\\&\n"
892 " if (sb.st_size == 0)\n"
893 " bufsiz = PATH_MAX;\n"
894 "\\&\n"
895 " buf = malloc(bufsiz);\n"
896 " if (buf == NULL) {\n"
897 " perror(\"malloc\");\n"
898 " exit(EXIT_FAILURE);\n"
899 " }\n"
900 "\\&\n"
901 " nbytes = readlink(argv[1], buf, bufsiz);\n"
902 " if (nbytes == -1) {\n"
903 " perror(\"readlink\");\n"
904 " exit(EXIT_FAILURE);\n"
905 " }\n"
906 "\\&\n"
907 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
908 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
909 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
910 "\\&\n"
911 " /* If the return value was equal to the buffer size, then\n"
912 " the link target was larger than expected (perhaps because the\n"
913 " target was changed between the call to lstat() and the call to\n"
914 " readlink()). Warn the user that the returned target may have\n"
915 " been truncated. */\n"
916 "\\&\n"
917 " if (nbytes == bufsiz)\n"
918 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
919 "\\&\n"
920 " free(buf);\n"
921 " exit(EXIT_SUCCESS);\n"
922 "}\n"
923 msgstr ""
924 "#include E<lt>limits.hE<gt>\n"
925 "#include E<lt>stdio.hE<gt>\n"
926 "#include E<lt>stdlib.hE<gt>\n"
927 "#include E<lt>sys/stat.hE<gt>\n"
928 "#include E<lt>sys/types.hE<gt>\n"
929 "#include E<lt>unistd.hE<gt>\n"
930 "\\&\n"
931 "int\n"
932 "main(int argc, char *argv[])\n"
933 "{\n"
934 " char *buf;\n"
935 " ssize_t nbytes, bufsiz;\n"
936 " struct stat sb;\n"
937 "\\&\n"
938 " if (argc != 2) {\n"
939 " fprintf(stderr, \"Usage: %s E<lt>pathnameE<gt>\\[rs]n\", argv[0]);\n"
940 " exit(EXIT_FAILURE);\n"
941 " }\n"
942 "\\&\n"
943 " if (lstat(argv[1], &sb) == -1) {\n"
944 " perror(\"lstat\");\n"
945 " exit(EXIT_FAILURE);\n"
946 " }\n"
947 "\\&\n"
948 " /* Add one to the link size, so that we can determine whether\n"
949 " the buffer returned by readlink() was truncated. */\n"
950 "\\&\n"
951 " bufsiz = sb.st_size + 1;\n"
952 "\\&\n"
953 " /* Some magic symlinks under (for example) /proc and /sys\n"
954 " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n"
955 " a \"good enough\" estimate. */\n"
956 "\\&\n"
957 " if (sb.st_size == 0)\n"
958 " bufsiz = PATH_MAX;\n"
959 "\\&\n"
960 " buf = malloc(bufsiz);\n"
961 " if (buf == NULL) {\n"
962 " perror(\"malloc\");\n"
963 " exit(EXIT_FAILURE);\n"
964 " }\n"
965 "\\&\n"
966 " nbytes = readlink(argv[1], buf, bufsiz);\n"
967 " if (nbytes == -1) {\n"
968 " perror(\"readlink\");\n"
969 " exit(EXIT_FAILURE);\n"
970 " }\n"
971 "\\&\n"
972 " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n"
973 " null byte (\\[aq]\\[rs]0\\[aq]). */\n"
974 " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n"
975 "\\&\n"
976 " /* If the return value was equal to the buffer size, then\n"
977 " the link target was larger than expected (perhaps because the\n"
978 " target was changed between the call to lstat() and the call to\n"
979 " readlink()). Warn the user that the returned target may have\n"
980 " been truncated. */\n"
981 "\\&\n"
982 " if (nbytes == bufsiz)\n"
983 " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n"
984 "\\&\n"
985 " free(buf);\n"
986 " exit(EXIT_SUCCESS);\n"
987 "}\n"
988
989 #. type: TH
990 #: fedora-44 fedora-rawhide
991 #, no-wrap
992 msgid "2024-11-28"
993 msgstr "28 نوفمبر 2024"
994
995 #. type: TH
996 #: fedora-44 fedora-rawhide
997 #, no-wrap
998 msgid "Linux man-pages 6.13"
999 msgstr "صفحات دليل لينكس 6.13"
1000
1001 #. type: Plain text
1002 #: fedora-44 fedora-rawhide
1003 #, no-wrap
1004 msgid ""
1005 "B<ssize_t readlink(const char *restrict >I<pathname>B<,>\n"
1006 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1007 msgstr ""
1008 "B<ssize_t readlink(const char *restrict >I<pathname>B<,>\n"
1009 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1010
1011 #. type: Plain text
1012 #: fedora-44 fedora-rawhide
1013 #, no-wrap
1014 msgid ""
1015 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
1016 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1017 msgstr ""
1018 "B<ssize_t readlinkat(int >I<dirfd>B<, const char *restrict >I<pathname>B<,>\n"
1019 "B< char >I<buf>B<[restrict .>I<bufsiz>B<], size_t >I<bufsiz>B<);>\n"
1020
1021 #. type: TH
1022 #: mageia-cauldron
1023 #, no-wrap
1024 msgid "Linux man-pages 6.17"
1025 msgstr "صفحات دليل لينكس 6.17"
1026
1027 #. type: TH
1028 #: opensuse-leap-16-1 opensuse-tumbleweed
1029 #, no-wrap
1030 msgid "Linux man-pages (unreleased)"
1031 msgstr "صفحات دليل لينكس (لم تصدر بعد)"