# 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:34+0200\n" "PO-Revision-Date: 2026-05-18 17:49+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 "pidfd_open" msgstr "pidfd_open" #. 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-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "pidfd_open - obtain a file descriptor that refers to a task" msgstr "pidfd_open - الحصول على واصف ملف يشير إلى مهمة" #. 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 Esys/syscall.hE> /* Definition of B constants */\n" "B<#include Eunistd.hE>\n" msgstr "" "B<#include Esys/syscall.hE> /* تعريف ثوابت B */\n" "B<#include Eunistd.hE>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "BIB<, unsigned int >IB<);>\n" msgstr "BIB<, unsigned int >IB<);>\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I: glibc provides no wrapper for B(), necessitating the " "use of B(2)." msgstr "" "I<ملاحظة>: لا توفر glibc غلافًا لـ B()، مما يستلزم استخدام " "B(2)." #. 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 "" "The B() system call creates a file descriptor that refers to " "the task referenced by I. The file descriptor is returned as the " "function result; the close-on-exec flag is set on the file descriptor." msgstr "" "استدعاء النظام B() ينشئ واصف ملف يشير إلى المهمة المشار إليها " "بواسطة I. يُعاد واصف الملف كنتيجة للدالة؛ ويتم تعيين علامة الإغلاق عند " "التنفيذ على واصف الملف." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The I argument either has the value 0, or contains the following " "flags:" msgstr "الوسيطة I إما أن تكون قيمتها 0، أو تحتوي على الأعلام التالية:" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B (since Linux 5.10)" msgstr "B (منذ لينكس 5.10)" #. commit 4da9af0014b51c8b015ed8c622440ef28912efe6 #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Return a nonblocking file descriptor. If the task referred to by the file " "descriptor has not yet terminated, then an attempt to wait on the file " "descriptor using B(2) will immediately return the error B " "rather than blocking." msgstr "" "إرجاع واصف ملف غير محظور. إذا لم تنتهِ المهمة المشار إليها بواسطة واصف الملف " "بعد، فإن محاولة الانتظار على واصف الملف باستخدام B(2) ستعيد الخطأ " "B فورًا بدلاً من الحظر." #. type: TP #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.9)" msgstr "B (منذ لينكس 6.9)" #. commit 64bef697d33b75fc06c5789b3f8108680271529f #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Create a file descriptor that refers to a specific thread, rather than a " "process (thread-group leader). If this flag is not set, I must refer " "to a process." msgstr "" "إنشاء واصف ملف يشير إلى خيط محدد، بدلاً من عملية (قائد مجموعة الخيوط). إذا لم " "يتم تعيين هذا العلم، يجب أن يشير I إلى عملية." #. 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, B() returns a file descriptor (a nonnegative " "integer). On error, -1 is returned and I is set to indicate the " "error." msgstr "" "عند النجاح، تُعيد B() واصف ملف (عدد صحيح غير سالب). عند الخطأ، " "تُعاد -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 "I is not valid." msgstr "I غير صالح." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is not valid." 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 "" "The per-process limit on the number of open file descriptors has been " "reached (see the description of B in B(2))." msgstr "" "وُصل إلى الحد الأقصى لعدد واصفات الملفات المفتوحة لكل عملية (انظر وصف " "B في B(2))." #. 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 system-wide limit on the total number of open files has been reached." 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 anonymous inode filesystem is not available in this kernel." 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 "The process specified by I does not exist." msgstr "العملية المحددة بواسطة 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-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux." msgstr "لينكس." #. 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: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Linux 5.3." msgstr "لينكس 5.3." #. 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 "" "The following code sequence can be used to obtain a file descriptor for the " "child of B(2):" msgstr "يمكن استخدام تسلسل الكود التالي للحصول على واصف ملف لابن B(2):" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "pid = fork();\n" "if (pid E 0) { /* If parent */\n" " pidfd = pidfd_open(pid, 0);\n" " ...\n" "}\n" msgstr "" "pid = fork();\n" "if (pid E 0) { /* If parent */\n" " pidfd = pidfd_open(pid, 0);\n" " ...\n" "}\n" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "Even if the child has already terminated by the time of the B() " "call, its PID will not have been recycled and the returned file descriptor " "will refer to the resulting zombie process. Note, however, that this is " "guaranteed only if the following conditions hold true:" msgstr "" "حتى إذا كان الابن قد انتهى بالفعل بحلول وقت استدعاء B()، فلن يتم " "إعادة استخدام PID الخاص به وسيشير واصف الملف المُعاد إلى عملية الزومبي " "الناتجة. لاحظ، مع ذلك، أن هذا مضمون فقط إذا تحققت الشروط التالية:" #. type: IP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "\\[bu]" msgstr "\\[bu]" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "the disposition of B has not been explicitly set to B (see " "B(2));" msgstr "" "لم يتم تعيين تصرف B صراحةً إلى B (انظر B(2))؛" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "the B flag was not specified while establishing a handler for " "B or while setting the disposition of that signal to B " "(see B(2)); and" msgstr "" "لم يتم تحديد العلم B أثناء إنشاء معالج لـ B أو أثناء " "تعيين تصرف تلك الإشارة إلى B (انظر B(2))؛ و" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "the zombie process was not reaped elsewhere in the program (e.g., either by " "an asynchronously executed signal handler or by B(2) or similar in " "another thread)." msgstr "" "لم يتم حصاد عملية الزومبي في مكان آخر في البرنامج (على سبيل المثال، إما " "بواسطة معالج إشارة يُنفذ بشكل غير متزامن أو بواسطة B(2) أو ما شابه ذلك " "في خيط آخر)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If any of these conditions does not hold, then the child process (along with " "a PID file descriptor that refers to it) should instead be created using " "B(2) with the B flag." msgstr "" "إذا لم يتحقق أي من هذه الشروط، فيجب بدلاً من ذلك إنشاء العملية الابن (مع واصف " "ملف PID يشير إليها) باستخدام B(2) مع العلم B." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Use cases for PID file descriptors" msgstr "حالات استخدام واصفات ملفات PID" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A PID file descriptor returned by B() (or by B(2) with " "the B flag) can be used for the following purposes:" msgstr "" "يمكن استخدام واصف ملف PID المُعاد بواسطة B() (أو بواسطة " "B(2) مع العلم B) للأغراض التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B(2) system call can be used to send a signal to the " "process referred to by a PID file descriptor." msgstr "" "يمكن استخدام استدعاء النظام B(2) لإرسال إشارة إلى العملية " "المشار إليها بواسطة واصف ملف PID." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "A PID file descriptor can be monitored using B(2), B(2) وB(7)." #. commit 43f0df54c96f #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "When the task that it refers to terminates and becomes a zombie, these " "interfaces indicate the file descriptor as readable (B). When the " "task is reaped, these interfaces produce a hangup event (B)." msgstr "" "عندما تنتهي المهمة التي يشير إليها وتصبح زومبي، تشير هذه الواجهات إلى واصف " "الملف كقابل للقراءة (B). عندما يتم حصاد المهمة، تُنتج هذه الواجهات " "حدث تعليق (B)." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Note, however, that in the current implementation, nothing can be read from " "the file descriptor (B(2) on the file descriptor fails with the error " "B). The polling behavior depends on whether B flag " "was used when obtaining the file descriptor:" msgstr "" "لاحظ، مع ذلك، أنه في التنفيذ الحالي، لا يمكن قراءة أي شيء من واصف الملف " "(B(2) على واصف الملف يفشل مع الخطأ B). يعتمد سلوك الاستقصاء " "على ما إذا كان العلم B قد استُخدم عند الحصول على واصف الملف:" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "With B, the file descriptor becomes readable when the task " "exits and becomes a zombie, even if the thread-group is not empty." msgstr "" "مع B، يصبح واصف الملف قابلاً للقراءة عندما تخرج المهمة وتصبح " "زومبي، حتى لو لم تكن مجموعة الخيوط فارغة." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Without B, the file descriptor becomes readable only when the " "last thread in the thread group exits." msgstr "" "بدون B، يصبح واصف الملف قابلاً للقراءة فقط عندما يخرج آخر خيط " "في مجموعة الخيوط." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the PID file descriptor refers to a child of the calling process, then it " "can be waited on using B(2)." msgstr "" "إذا كان واصف ملف PID يشير إلى ابن لعملية الاستدعاء، فيمكن الانتظار عليه " "باستخدام B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B(2) system call can be used to obtain a duplicate of a " "file descriptor of another process referred to by a PID file descriptor." msgstr "" "يمكن استخدام استدعاء النظام B(2) للحصول على نسخة مكررة من واصف " "ملف لعملية أخرى يُشار إليها بواسطة واصف ملف PID." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A PID file descriptor can be used as the argument of B(2) in order " "to move into one or more of the same namespaces as the process referred to " "by the file descriptor." msgstr "" "يمكن استخدام واصف ملف PID كوسيطة لـ B(2) للانتقال إلى واحد أو أكثر " "من نفس مساحات الأسماء (namespaces) مثل العملية المشار إليها بواسطة واصف " "الملف." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "A PID file descriptor can be used as the argument of B(2) " "in order to provide advice on the memory usage patterns of the process " "referred to by the file descriptor." msgstr "" "يمكن استخدام واصف ملف PID كوسيطة لـ B(2) لتقديم نصائح حول " "أنماط استخدام الذاكرة للعملية المشار إليها بواسطة واصف الملف." #. 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 is the preferred way of obtaining a PID " "file descriptor for an already existing process. The alternative is to " "obtain a file descriptor by opening a Ipid directory. However, the " "latter technique is possible only if the B(5) filesystem is mounted; " "furthermore, the file descriptor obtained in this way is I pollable and " "can't be waited on with B(2)." msgstr "" "استدعاء النظام B() هو الطريقة المفضلة للحصول على واصف ملف PID " "لعملية موجودة بالفعل. البديل هو الحصول على واصف ملف بفتح دليل Ipid. " "ومع ذلك، فإن التقنية الأخيرة ممكنة فقط إذا كان نظام الملفات B(5) " "مركبًا (mounted)؛ علاوة على ذلك، واصف الملف الذي يتم الحصول عليه بهذه الطريقة " "I<ليس> قابلًا للاستقصاء (pollable) ولا يمكن الانتظار عليه باستخدام " "B(2)." #. 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 program below opens a PID file descriptor for the process whose PID is " "specified as its command-line argument. It then uses B(2) to monitor " "the file descriptor for process exit, as indicated by an B event." msgstr "" "البرنامج أدناه يفتح واصف ملف PID للعملية التي يتم تحديد PID الخاص بها كوسيطة " "سطر أوامر. ثم يستخدم B(2) لمراقبة واصف الملف لخروج العملية، كما هو " "موضح بواسطة حدث B." #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "مصدر البرنامج" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Epoll.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/syscall.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "static int\n" "pidfd_open(pid_t pid, unsigned int flags)\n" "{\n" " return syscall(SYS_pidfd_open, pid, flags);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int pidfd, ready;\n" " struct pollfd pollfd;\n" "\\&\n" " if (argc != 2) {\n" " fprintf(stderr, \"Usage: %s EpidE\\[rs]n\", argv[0]);\n" " exit(EXIT_SUCCESS);\n" " }\n" "\\&\n" " pidfd = pidfd_open(atoi(argv[1]), 0);\n" " if (pidfd == -1) {\n" " perror(\"pidfd_open\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " pollfd.fd = pidfd;\n" " pollfd.events = POLLIN;\n" "\\&\n" " ready = poll(&pollfd, 1, -1);\n" " if (ready == -1) {\n" " perror(\"poll\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"Events (%#x): POLLIN is %sset\\[rs]n\", pollfd.revents,\n" " (pollfd.revents & POLLIN) ? \"\" : \"not \");\n" "\\&\n" " close(pidfd);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Epoll.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Esys/syscall.hE\n" "#include Esys/types.hE\n" "#include Eunistd.hE\n" "\\&\n" "static int\n" "pidfd_open(pid_t pid, unsigned int flags)\n" "{\n" " return syscall(SYS_pidfd_open, pid, flags);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int pidfd, ready;\n" " struct pollfd pollfd;\n" "\\&\n" " if (argc != 2) {\n" " fprintf(stderr, \"Usage: %s EpidE\\[rs]n\", argv[0]);\n" " exit(EXIT_SUCCESS);\n" " }\n" "\\&\n" " pidfd = pidfd_open(atoi(argv[1]), 0);\n" " if (pidfd == -1) {\n" " perror(\"pidfd_open\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " pollfd.fd = pidfd;\n" " pollfd.events = POLLIN;\n" "\\&\n" " ready = poll(&pollfd, 1, -1);\n" " if (ready == -1) {\n" " perror(\"poll\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " printf(\"Events (%#x): POLLIN is %sset\\[rs]n\", pollfd.revents,\n" " (pollfd.revents & POLLIN) ? \"\" : \"not \");\n" "\\&\n" " close(pidfd);\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(2), B(2), B(2), B(2), " "B(2), B(2), B(2), B(2), B(2), " "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 fedora-44 fedora-rawhide msgid "pidfd_open - obtain a file descriptor that refers to a process" msgstr "pidfd_open - الحصول على واصف ملف يشير إلى عملية" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "مكتبة سي المعيارية (I، I<-lc>)" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The B() system call creates a file descriptor that refers to " "the process whose PID is specified in I. The file descriptor is " "returned as the function result; the close-on-exec flag is set on the file " "descriptor." msgstr "" "استدعاء النظام B() ينشئ واصف ملف يشير إلى العملية التي يتم " "تحديد PID الخاص بها في I. يتم إرجاع واصف الملف كنتيجة للدالة؛ يتم تعيين " "علامة الإغلاق عند التنفيذ (close-on-exec) على واصف الملف." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "The I argument either has the value 0, or contains the following flag:" msgstr "وسيطة I إما أن تكون قيمتها 0، أو تحتوي على العلم التالي:" #. commit 4da9af0014b51c8b015ed8c622440ef28912efe6 #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "Return a nonblocking file descriptor. If the process referred to by the " "file descriptor has not yet terminated, then an attempt to wait on the file " "descriptor using B(2) will immediately return the error B " "rather than blocking." msgstr "" "إرجاع واصف ملف غير محظور (nonblocking). إذا لم تكن العملية المشار إليها " "بواسطة واصف الملف قد انتهت بعد، فإن محاولة الانتظار على واصف الملف باستخدام " "B(2) ستعيد الخطأ B فورًا بدلاً من الحظر." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "" "A PID file descriptor can be monitored using B(2), B(2), و B(7). " "عندما تنتهي العملية التي يشير إليها، تشير هذه الواجهات إلى أن واصف الملف " "قابل للقراءة. لاحظ، مع ذلك، أنه في التنفيذ الحالي، لا يمكن قراءة أي شيء من " "واصف الملف (B(2) على واصف الملف يفشل مع الخطأ B)." #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-07-23" msgstr "23 يوليو 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "صفحات دليل لينكس 6.13" #. 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 "صفحات دليل لينكس (لم تصدر بعد)"