# Arabic translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # زايد السعيدي , 2026. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.30.2\n" "POT-Creation-Date: 2026-06-05 06:39+0200\n" "PO-Revision-Date: 2026-05-18 18:03+0400\n" "Last-Translator: Zayed Al-Saidi \n" "Language-Team: Arabic \n" "Language: ar\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 " "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n" "X-Generator: Lokalize 23.08.5\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "readlink" msgstr "readlink" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 فبراير 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "صفحات دليل لينكس 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "الاسم" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "readlink, readlinkat - read value of a symbolic link" msgstr "readlink, readlinkat - قراءة قيمة رابط رمزي" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "المكتبة" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "مكتبة سي المعيارية (I،\\ I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "موجز" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Eunistd.hE>\n" msgstr "B<#include Eunistd.hE>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "Bsize_t bufsiz;\n" "B< const char *restrict >IB<,>\n" "B< char >IB<[restrict >IB<], size_t >IB<);>\n" msgstr "" "Bsize_t bufsiz;\n" "B< const char *restrict >IB<,>\n" "B< char >IB<[restrict >IB<], size_t >IB<);>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "B<#include Efcntl.hE >/* Definition of B constants */\n" "B<#include Eunistd.hE>\n" msgstr "" "B<#include Efcntl.hE >/* تعريف ثوابت B */\n" "B<#include Eunistd.hE>\n" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "Bsize_t bufsiz;\n" "B< int >IB<, const char *restrict >IB<,>\n" "B< char >IB<[restrict >IB<], size_t >IB<);>\n" msgstr "" "Bsize_t bufsiz;\n" "B< int >IB<, const char *restrict >IB<,>\n" "B< char >IB<[restrict >IB<], size_t >IB<);>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Feature Test Macro Requirements for glibc (see B(7)):" msgstr "" "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B(7)):" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B():" msgstr "B():" #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " _XOPEN_SOURCE E= 500 || _POSIX_C_SOURCE E= 200112L\n" " || /* glibc E= 2.19: */ _BSD_SOURCE\n" msgstr "" " _XOPEN_SOURCE E= 500 || _POSIX_C_SOURCE E= 200112L\n" " || /* glibc E= 2.19: */ _BSD_SOURCE\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "B():" msgstr "B():" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" " Since glibc 2.10:\n" " _POSIX_C_SOURCE E= 200809L\n" " Before glibc 2.10:\n" " _ATFILE_SOURCE\n" msgstr "" " منذ glibc 2.10:\n" " _POSIX_C_SOURCE E= 200809L\n" " قبل glibc 2.10:\n" " _ATFILE_SOURCE\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "الوصف" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "B() places the contents of the symbolic link I in the " "buffer I, which has size I. B() does not append a " "terminating null byte to I. It will (silently) truncate the contents " "(to a length of I characters), in case the buffer is too small to " "hold all of the contents." msgstr "" "تضع B() محتويات الرابط الرمزي I في المخزن المؤقت I، " "الذي حجمه I. لا تُلحق B() بايت فارغ ختامي بـ I. ستقطع " "(بصمت) المحتويات (إلى طول I حرفًا)، إذا كان المخزن المؤقت صغيرًا جدًا " "لاستيعاب كل المحتويات." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "readlinkat()" msgstr "readlinkat()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() system call operates in exactly the same way as " "B(), except for the differences described here." msgstr "" "تعمل استدعاء النظام B() بنفس طريقة B() تمامًا، باستثناء " "الاختلافات الموصوفة هنا." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If I is relative, then it is interpreted relative to the directory " "referred to by the file descriptor I (rather than relative to the " "current working directory of the calling process, as is done by " "B() for a relative pathname)." msgstr "" "إذا كان I نسبيًا، فيُفسر بالنسبة للدليل المشار إليه بواصف الملف I " "(بدلاً من دليل العمل الحالي للعملية المستدعية، كما تفعل B() لاسم " "مسار نسبي)." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If I is relative and I is the special value B, then " "I is interpreted relative to the current working directory of the " "calling process (like B())." msgstr "" "إذا كان I نسبيًا و I هو القيمة الخاصة B، فيُفسر I " "بالنسبة لدليل العمل الحالي للعملية المستدعية (مثل B())." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "If I is absolute, then I is ignored." msgstr "إذا كان المسار I مطلقاً، فُيتجاهل I." #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Since Linux 2.6.39, I can be an empty string, in which case the call " "operates on the symbolic link referred to by I (which should have " "been obtained using B(2) with the B and B flags)." msgstr "" "منذ Linux 2.6.39، يمكن أن يكون I سلسلة فارغة، وفي هذه الحالة يعمل " "الاستدعاء على الرابط الرمزي المشار إليه بـ I (والذي يجب الحصول عليه " "باستخدام B(2) مع العلمين B و B)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "See B(2) for an explanation of the need for B()." msgstr "انظر B(2) لشرح الحاجة إلى B()." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "قيمة الإرجاع" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On success, these calls return the number of bytes placed in I. (If " "the returned value equals I, then truncation may have occurred.) On " "error, -1 is returned and I is set to indicate the error." msgstr "" "عند النجاح، تُرجع هذه الاستدعاءات عدد البايتات الموضوعة في I. (إذا كانت " "القيمة المُرجعة تساوي I، فقد حدث اقتطاع.) عند الخطأ، يُرجع -1 ويُضبط " "I للإشارة إلى الخطأ." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "الأخطاء" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Search permission is denied for a component of the path prefix. (See also " "B(7).)" msgstr "" "تم رفض إذن البحث لمكون من بادئة المسار. (انظر أيضًا B(7).)" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "(B()) I is relative but I is neither B " "nor a valid file descriptor." msgstr "" "(B()) I نسبي لكن I ليس B ولا واصف ملف " "صالح." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I extends outside the process's allocated address space." msgstr "يمتد I خارج مساحة العنوان المخصصة للعملية." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. At the glibc level, bufsiz is unsigned, so this error can only occur #. if bufsiz==0. However, the in the kernel syscall, bufsiz is signed, #. and this error can also occur if bufsiz < 0. #. See: http://thread.gmane.org/gmane.linux.man/380 #. Subject: [patch 0/3] [RFC] kernel/glibc mismatch of "readlink" syscall? #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is not positive." msgstr "I ليس موجبًا." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The named file (i.e., the final filename component of I) is not a " "symbolic link." msgstr "الملف المُسمى (أي مكون اسم الملف النهائي لـ I) ليس رابطًا رمزيًا." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "An I/O error occurred while reading from the filesystem." msgstr "حدث خطأ إدخال/إخراج أثناء القراءة من نظام الملفات." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Too many symbolic links were encountered in translating the pathname." msgstr "صودفت روابط رمزية كثيرة جدًا عند ترجمة اسم المسار." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "A pathname, or a component of a pathname, was too long." msgstr "اسم مسار، أو مكون من اسم مسار، طويل جدًا." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "The named file does not exist." msgstr "الملف المسمى غير موجود." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Insufficient kernel memory was available." msgstr "ذاكرة النواة المتوفرة غير كافية." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "A component of the path prefix is not a directory." msgstr "أحد مكونات بادئة المسار ليس دليلاً." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "(B()) I is relative and I is a file descriptor " "referring to a file other than a directory." msgstr "" "(B()) I نسبي و I هو واصف ملف يشير إلى ملف غير دليل." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "المعايير" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "POSIX.1-2024." msgstr "POSIX.1-2024." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "التاريخ" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "4.4BSD (first appeared in 4.2BSD), POSIX.1-2001, POSIX.1-2008." msgstr "4.4BSD (ظهر لأول مرة في 4.2BSD)، POSIX.1-2001، POSIX.1-2008." #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "POSIX.1-2008. Linux 2.6.16, glibc 2.4." msgstr "POSIX.1-2008. لينكس 2.6.16،‏ glibc 2.4." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Up to and including glibc 2.4, the return type of B() was " "declared as I. Nowadays, the return type is declared as I, as " "(newly) required in POSIX.1-2001." msgstr "" "حتى glibc 2.4 وما تضمنته، كان نوع الإرجاع لـ B() مُصرحًا به كـ " "I. حاليًا، يُصرح بنوع الإرجاع كـ I، كما هو مطلوب (حديثًا) في " "POSIX.1-2001." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "glibc" msgstr "glibc" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "On older kernels where B() is unavailable, the glibc wrapper " "function falls back to the use of B(). When I is relative, " "glibc constructs a pathname based on the symbolic link in I " "that corresponds to the I argument." msgstr "" "على النوى الأقدم حيث B() غير متوفرة، ترجع دالة الغلاف glibc إلى " "استخدام B(). عندما يكون I نسبيًا، تبني glibc اسم مسار بناءً " "على الرابط الرمزي في I الذي يتوافق مع وسيطة I." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "ملاحظات" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Using a statically sized buffer might not provide enough room for the " "symbolic link contents. The required size for the buffer can be obtained " "from the I value returned by a call to B(2) on the " "link. However, the number of bytes written by B() and " "B() should be checked to make sure that the size of the " "symbolic link did not increase between the calls. Dynamically allocating " "the buffer for B() and B() also addresses a common " "portability problem when using B for the buffer size, as this " "constant is not guaranteed to be defined per POSIX if the system does not " "have such limit." msgstr "" "قد لا يوفر استخدام مخزن مؤقت بحجم ثابت مساحة كافية لمحتويات الرابط الرمزي. " "يمكن الحصول على الحجم المطلوب للمخزن المؤقت من قيمة I المُرجعة " "باستدعاء B(2) على الرابط. ومع ذلك، يجب التحقق من عدد البايتات التي " "كتبتها B() و B() للتأكد من أن حجم الرابط الرمزي لم يزد " "بين الاستدعاءات. يعالج التخصيص الديناميكي للمخزن المؤقت لـ B() و " "B() أيضًا مشكلة قابلية النقل الشائعة عند استخدام B لحجم " "المخزن المؤقت، حيث أن هذا الثابت غير مضمون التعريف وفقًا لـ POSIX إذا لم يكن " "لدى النظام مثل هذا الحد." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "أمثلة" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The following program allocates the buffer needed by B() " "dynamically from the information provided by B(2), falling back to a " "buffer of size B in cases where B(2) reports a size of " "zero." msgstr "" "يخصص البرنامج التالي المخزن المؤقت المطلوب بواسطة B() ديناميكيًا من " "المعلومات المقدمة بواسطة B(2)، مع الرجوع إلى مخزن مؤقت بحجم " "B في الحالات التي يُبلغ فيها B(2) عن حجم صفري." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#include Elimits.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/stat.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char *buf;\n" " ssize_t nbytes, bufsiz;\n" " struct stat sb;\n" "\\&\n" " if (argc != 2) {\n" " fprintf(stderr, \"Usage: %s EpathE\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (lstat(argv[1], &sb) == -1) {\n" " perror(\"lstat\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Add one to the link size, so that we can determine whether\n" " the buffer returned by readlink() was truncated. */\n" "\\&\n" " bufsiz = sb.st_size + 1;\n" "\\&\n" " /* Some magic symlinks under (for example) /proc and /sys\n" " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n" " a \"good enough\" estimate. */\n" "\\&\n" " if (sb.st_size == 0)\n" " bufsiz = PATH_MAX;\n" "\\&\n" " buf = malloc(bufsiz);\n" " if (buf == NULL) {\n" " perror(\"malloc\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " nbytes = readlink(argv[1], buf, bufsiz);\n" " if (nbytes == -1) {\n" " perror(\"readlink\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n" " null byte (\\[aq]\\[rs]0\\[aq]). */\n" " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n" "\\&\n" " /* If the return value was equal to the buffer size, then\n" " the link target was larger than expected (perhaps because the\n" " target was changed between the call to lstat() and the call to\n" " readlink()). Warn the user that the returned target may have\n" " been truncated. */\n" "\\&\n" " if (nbytes == bufsiz)\n" " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n" "\\&\n" " free(buf);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Elimits.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/stat.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char *buf;\n" " ssize_t nbytes, bufsiz;\n" " struct stat sb;\n" "\\&\n" " if (argc != 2) {\n" " fprintf(stderr, \"Usage: %s EpathE\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (lstat(argv[1], &sb) == -1) {\n" " perror(\"lstat\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Add one to the link size, so that we can determine whether\n" " the buffer returned by readlink() was truncated. */\n" "\\&\n" " bufsiz = sb.st_size + 1;\n" "\\&\n" " /* Some magic symlinks under (for example) /proc and /sys\n" " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n" " a \"good enough\" estimate. */\n" "\\&\n" " if (sb.st_size == 0)\n" " bufsiz = PATH_MAX;\n" "\\&\n" " buf = malloc(bufsiz);\n" " if (buf == NULL) {\n" " perror(\"malloc\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " nbytes = readlink(argv[1], buf, bufsiz);\n" " if (nbytes == -1) {\n" " perror(\"readlink\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n" " null byte (\\[aq]\\[rs]0\\[aq]). */\n" " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n" "\\&\n" " /* If the return value was equal to the buffer size, then\n" " the link target was larger than expected (perhaps because the\n" " target was changed between the call to lstat() and the call to\n" " readlink()). Warn the user that the returned target may have\n" " been truncated. */\n" "\\&\n" " if (nbytes == bufsiz)\n" " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n" "\\&\n" " free(buf);\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "انظر أيضًا" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(1), B(2), B(2), B(2), B(3), " "B(7), B(7)" msgstr "" "B(1), B(2), B(2), B(2), B(3), " "B(7), B(7)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 يونيو 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "صفحات دليل لينكس 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "مكتبة سي المعيارية (I، I<-lc>)" #. type: Plain text #: debian-trixie #, no-wrap msgid "" "BIB<, char *restrict >IB<,>\n" "B< size_t >IB<);>\n" msgstr "" "BIB<, char *restrict >IB<,>\n" "B< size_t >IB<);>\n" #. type: Plain text #: debian-trixie #, no-wrap msgid "" "BIB<, const char *restrict >IB<,>\n" "B< char *restrict >IB<, size_t >IB<);>\n" msgstr "" "BIB<, const char *restrict >IB<,>\n" "B< char *restrict >IB<, size_t >IB<);>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "B() places the contents of the symbolic link I in the " "buffer I, which has size I. B() does not append a " "terminating null byte to I. It will (silently) truncate the contents " "(to a length of I characters), in case the buffer is too small to " "hold all of the contents." msgstr "" "تضع B() محتويات الرابط الرمزي I في المخزن المؤقت " "I، الذي حجمه I. لا تُلحق B() بايتة خالية ختامية بـ " "I. ستقتطع (بصمت) المحتويات (إلى طول I حرفًا)، في حال كان المخزن " "المؤقت صغيرًا جدًا لاستيعاب كل المحتويات." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "If the pathname given in I is relative, then it is interpreted " "relative to the directory referred to by the file descriptor I " "(rather than relative to the current working directory of the calling " "process, as is done by B() for a relative pathname)." msgstr "" "إذا كان اسم المسار المُعطى في I نسبيًا، فسيُفسر بالنسبة إلى الدليل " "المُشار إليه بواصف الملف I (بدلاً من نسبته إلى دليل العمل الحالي " "للعملية المستدعية، كما تفعل B() لاسم مسار نسبي)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "If I is relative and I is the special value B, " "then I is interpreted relative to the current working directory of " "the calling process (like B())." msgstr "" "إذا كان I نسبيًا وكان I هو القيمة الخاصة B، فسيُفسر " "I بالنسبة إلى دليل العمل الحالي للعملية المستدعية (مثل " "B())." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "If I is absolute, then I is ignored." msgstr "إذا كان اسم المسار I مطلقاً، فُيتجاهل I." #. commit 65cfc6722361570bfe255698d9cd4dccaf47570d #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "Since Linux 2.6.39, I can be an empty string, in which case the " "call operates on the symbolic link referred to by I (which should " "have been obtained using B(2) with the B and B " "flags)." msgstr "" "منذ لينكس 2.6.39، يمكن أن يكون I سلسلة فارغة، وفي هذه الحالة يعمل " "الاستدعاء على الرابط الرمزي المُشار إليه بـ I (والذي ينبغي الحصول عليه " "باستخدام B(2) مع العلمين B و B)." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "(B()) I is relative but I is neither " "B nor a valid file descriptor." msgstr "" "(B()) I نسبي لكن I ليس B ولا واصف " "ملف صالحًا." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The named file (i.e., the final filename component of I) is not a " "symbolic link." msgstr "" "الملف المُسمى (أي مكون اسم الملف النهائي لـ I) ليس رابطًا رمزيًا." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "(B()) I is relative and I is a file descriptor " "referring to a file other than a directory." msgstr "" "(B()) I نسبي و I هو واصف ملف يُشير إلى ملف غير " "دليل." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "POSIX.1-2008." msgstr "POSIX.1-2008." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "On older kernels where B() is unavailable, the glibc wrapper " "function falls back to the use of B(). When I is a " "relative pathname, glibc constructs a pathname based on the symbolic link in " "I that corresponds to the I argument." msgstr "" "على الأنوية القديمة حيث B() غير متوفرة، تتراجع دالة الغلاف " "glibc لاستخدام B(). عندما يكون I اسم مسار نسبي، تُنشئ " "glibc اسم مسار بناءً على الرابط الرمزي في I الذي يُطابق وسيطة " "I." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Elimits.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/stat.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char *buf;\n" " ssize_t nbytes, bufsiz;\n" " struct stat sb;\n" "\\&\n" " if (argc != 2) {\n" " fprintf(stderr, \"Usage: %s EpathnameE\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (lstat(argv[1], &sb) == -1) {\n" " perror(\"lstat\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Add one to the link size, so that we can determine whether\n" " the buffer returned by readlink() was truncated. */\n" "\\&\n" " bufsiz = sb.st_size + 1;\n" "\\&\n" " /* Some magic symlinks under (for example) /proc and /sys\n" " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n" " a \"good enough\" estimate. */\n" "\\&\n" " if (sb.st_size == 0)\n" " bufsiz = PATH_MAX;\n" "\\&\n" " buf = malloc(bufsiz);\n" " if (buf == NULL) {\n" " perror(\"malloc\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " nbytes = readlink(argv[1], buf, bufsiz);\n" " if (nbytes == -1) {\n" " perror(\"readlink\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n" " null byte (\\[aq]\\[rs]0\\[aq]). */\n" " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n" "\\&\n" " /* If the return value was equal to the buffer size, then\n" " the link target was larger than expected (perhaps because the\n" " target was changed between the call to lstat() and the call to\n" " readlink()). Warn the user that the returned target may have\n" " been truncated. */\n" "\\&\n" " if (nbytes == bufsiz)\n" " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n" "\\&\n" " free(buf);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Elimits.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/stat.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char *buf;\n" " ssize_t nbytes, bufsiz;\n" " struct stat sb;\n" "\\&\n" " if (argc != 2) {\n" " fprintf(stderr, \"Usage: %s EpathnameE\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " if (lstat(argv[1], &sb) == -1) {\n" " perror(\"lstat\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Add one to the link size, so that we can determine whether\n" " the buffer returned by readlink() was truncated. */\n" "\\&\n" " bufsiz = sb.st_size + 1;\n" "\\&\n" " /* Some magic symlinks under (for example) /proc and /sys\n" " report \\[aq]st_size\\[aq] as zero. In that case, take PATH_MAX as\n" " a \"good enough\" estimate. */\n" "\\&\n" " if (sb.st_size == 0)\n" " bufsiz = PATH_MAX;\n" "\\&\n" " buf = malloc(bufsiz);\n" " if (buf == NULL) {\n" " perror(\"malloc\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " nbytes = readlink(argv[1], buf, bufsiz);\n" " if (nbytes == -1) {\n" " perror(\"readlink\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Print only \\[aq]nbytes\\[aq] of \\[aq]buf\\[aq], as it doesn't contain a terminating\n" " null byte (\\[aq]\\[rs]0\\[aq]). */\n" " printf(\"\\[aq]%s\\[aq] points to \\[aq]%.*s\\[aq]\\[rs]n\", argv[1], (int) nbytes, buf);\n" "\\&\n" " /* If the return value was equal to the buffer size, then\n" " the link target was larger than expected (perhaps because the\n" " target was changed between the call to lstat() and the call to\n" " readlink()). Warn the user that the returned target may have\n" " been truncated. */\n" "\\&\n" " if (nbytes == bufsiz)\n" " printf(\"(Returned buffer may have been truncated)\\[rs]n\");\n" "\\&\n" " free(buf);\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-11-28" msgstr "28 نوفمبر 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. type: Plain text #: fedora-44 fedora-rawhide #, no-wrap msgid "" "BIB<,>\n" "B< char >IB<[restrict .>IB<], size_t >IB<);>\n" msgstr "" "BIB<,>\n" "B< char >IB<[restrict .>IB<], size_t >IB<);>\n" #. type: Plain text #: fedora-44 fedora-rawhide #, no-wrap msgid "" "BIB<, const char *restrict >IB<,>\n" "B< char >IB<[restrict .>IB<], size_t >IB<);>\n" msgstr "" "BIB<, const char *restrict >IB<,>\n" "B< char >IB<[restrict .>IB<], size_t >IB<);>\n" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "صفحات دليل لينكس 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "صفحات دليل لينكس (لم تصدر بعد)"