# 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:57+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_send_signal" msgstr "pidfd_send_signal" #. 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 "" "pidfd_send_signal - send a signal to a process specified by a file descriptor" msgstr "pidfd_send_signal - إرسال إشارة إلى عملية محددة بواصف ملف" #. 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 Elinux/signal.hE> /* Definition of B constants */\n" "B<#include Esignal.hE> /* Definition of B constants */\n" "B<#include Esys/syscall.hE> /* Definition of B constants */\n" "B<#include Eunistd.hE>\n" msgstr "" "B<#include Elinux/signal.hE> /* Definition of B constants */\n" "B<#include Esignal.hE> /* Definition of B constants */\n" "B<#include Esys/syscall.hE> /* Definition of B constants */\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<, int >IB<,>\n" "B< siginfo_t *_Nullable >IB<, unsigned int >IB<);>\n" msgstr "" "BIB<, int >IB<,>\n" "B< siginfo_t *_Nullable >IB<, 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 "الوصف" #. See the very detailed commit message for kernel commit #. 3eb39f47934f9d5a3027fe00d906a45fe3a15fad #. 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 sends the signal I to the " "target process referred to by I, a PID file descriptor that refers to " "a process." msgstr "" "ترسل استدعاء النظام B() الإشارة I إلى العملية الهدف " "المشار إليها بـ I، وهو واصف ملف PID يشير إلى عملية." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the I argument points to a I buffer, that buffer should " "be populated as described in B(2)." msgstr "" "إذا أشارت وسيطة I إلى مخزن I، فيجب ملء ذلك المخزن كما هو " "موصوف في B(2)." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "If the I argument is a null pointer, this is equivalent to specifying " "a pointer to a I buffer whose fields match the values that are " "implicitly supplied when a signal is sent using B(2):" msgstr "" "إذا كانت وسيطة I مؤشرًا فارغًا، فهذا يعادل تحديد مؤشر إلى مخزن " "I تتطابق حقوله مع القيم المقدمة ضمنيًا عند إرسال إشارة باستخدام " "B(2):" #. 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 "I is set to the signal number;" 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 set to 0;" msgstr "يُضبط I على 0؛" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is set to B;" msgstr "يُضبط I على B؛" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is set to the caller's PID; and" msgstr "يُضبط I على PID للمتصل؛ و" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "I is set to the caller's real user ID." msgstr "يُضبط I على معرف المستخدم الحقيقي للمتصل." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The calling process must either be in the same PID namespace as the process " "referred to by I, or be in an ancestor of that namespace." msgstr "" "يجب أن تكون العملية المتصلة إما في نفس نطاق PID مثل العملية المشار إليها بـ " "I، أو في سلف لذلك النطاق." #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "The I argument allows to modify the scope of the signal. By default, " "the scope of the signal will be inferred from the I argument. For " "example, if I refers to a specific thread \\[em]i.e., the I " "was created through B(2) using the B flag or " "through B(2) using the B flag together with the " "B flag\\[em] then passing I to B(2) " "and leaving the I argument as B<0> will cause the signal to be sent " "to the specific thread referenced by the I." msgstr "" "تسمح وسيطة I بتعديل نطاق الإشارة. مبدئيًا، يُستنتج نطاق الإشارة من " "وسيطة I. على سبيل المثال، إذا كان I يشير إلى خيط محدد " "\\[em]أي، أُنشئ I عبر B(2) باستخدام العلم B " "أو عبر B(2) باستخدام العلم B مع العلم " "B\\[em] فإن تمرير I إلى B(2) وترك " "وسيطة I كـ B<0> سيؤدي إلى إرسال الإشارة إلى الخيط المحدد المشار إليه " "بـ I." #. type: TP #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.9)" msgstr "B (منذ Linux 6.9)" #. commit e1fb1dc08e73466830612bcf2f9f72180965c9ba #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "Ensure that the signal is sent to the specific thread referenced by I." msgstr "يضمن إرسال الإشارة إلى الخيط المحدد المشار إليه بـ I." #. type: TP #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.9)" msgstr "B (منذ Linux 6.9)" #. commit e1fb1dc08e73466830612bcf2f9f72180965c9ba #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If I refers to a thread-group leader, ensure that the signal is sent " "to the thread-group, even if I was created to refer to a specific " "thread." msgstr "" "إذا كان I يشير إلى قائد مجموعة خيوط، يضمن إرسال الإشارة إلى مجموعة " "الخيوط، حتى لو أُنشئ I للإشارة إلى خيط محدد." #. type: TP #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "B (since Linux 6.9)" msgstr "B (منذ Linux 6.9)" #. commit e1fb1dc08e73466830612bcf2f9f72180965c9ba #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed msgid "" "If I refers to a process-group leader, ensure that the signal is sent " "to the process-group, even if I was created to refer to a specific " "thread or to a thread-group leader." msgstr "" "إذا كان I يشير إلى قائد مجموعة عمليات، يضمن إرسال الإشارة إلى مجموعة " "العمليات، حتى لو أُنشئ 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 0. On error, -1 is returned and " "I is set to indicate the error." msgstr "" "عند النجاح، تُرجع B() 0. عند الخطأ، تُرجع -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 a valid PID file descriptor." msgstr "I ليس واصف ملف PID صالحاً." #. 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 a valid signal." msgstr "I ليست إشارة صالحة." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The calling process is not in a PID namespace from which it can send a " "signal to the target process." msgstr "" "العملية المتصلة ليست في نطاق PID يمكنها منه إرسال إشارة إلى العملية الهدف." #. type: Plain text #: archlinux debian-unstable 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 calling process does not have permission to send the signal to the " "target process." msgstr "لا تملك العملية المتصلة الإذن لإرسال الإشارة إلى العملية الهدف." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "I doesn't refer to the calling process, and I is " "invalid (see B(2))." msgstr "" "لا يشير I إلى العملية المتصلة، و I غير صالح (انظر " "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 target process does not exist (i.e., it has terminated and been waited " "on)." msgstr "العملية الهدف غير موجودة (أي أنها أُنهيت وانتُظر اكتمالها)." #. 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.1." msgstr "Linux 5.1." #. 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: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "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 "" "The I argument is a PID file descriptor, a file descriptor that " "refers to process. Such a file descriptor can be obtained in any of the " "following ways:" msgstr "" "وسيطة I هي واصف ملف PID، واصف ملف يشير إلى عملية. يمكن الحصول على مثل " "هذا الواصف بأي من الطرق التالية:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "by opening a Ipid directory;" msgstr "بفتح دليل Ipid؛" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "using B(2); or" msgstr "باستخدام B(2); أو" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "via the PID file descriptor that is returned by a call to B(2) or " "B(2) that specifies the B flag." msgstr "" "عبر واصف ملف PID الذي يُرجعه استدعاء B(2) أو 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() system call allows the avoidance of race " "conditions that occur when using traditional interfaces (such as " "B(2)) to signal a process. The problem is that the traditional " "interfaces specify the target process via a process ID (PID), with the " "result that the sender may accidentally send a signal to the wrong process " "if the originally intended target process has terminated and its PID has " "been recycled for another process. By contrast, a PID file descriptor is a " "stable reference to a specific process; if that process terminates, " "B() fails with the error B." msgstr "" "يسمح استدعاء النظام B() بتجنب حالات السباق التي تحدث عند " "استخدام الواجهات التقليدية (مثل B(2)) لإرسال إشارة إلى عملية. المشكلة " "هي أن الواجهات التقليدية تُحدد العملية الهدف عبر معرف العملية (PID)، مما قد " "يؤدي إلى إرسال المُرسِل إشارة إلى العملية الخاطئة عن طريق الخطأ إذا كانت " "العملية المستهدفة أصلاً قد انتهت وأُعيد استخدام PID الخاص بها لعملية أخرى. على " "النقيض، واصف ملف PID هو مرجع مستقر لعملية محددة؛ إذا انتهت تلك العملية، يفشل " "B() مع الخطأ B." #. 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-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Efcntl.hE\n" "#include Elimits.hE\n" "#include Esignal.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/syscall.hE\n" "#include Eunistd.hE\n" "\\&\n" "static int\n" "pidfd_send_signal(int pidfd, int sig, siginfo_t *info,\n" " unsigned int flags)\n" "{\n" " return syscall(SYS_pidfd_send_signal, pidfd, sig, info, flags);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int pidfd, sig;\n" " char path[PATH_MAX];\n" " siginfo_t info;\n" "\\&\n" " if (argc != 3) {\n" " fprintf(stderr, \"Usage: %s EpidE EsignalE\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " sig = atoi(argv[2]);\n" "\\&\n" " /* Obtain a PID file descriptor by opening the /proc/PID directory\n" " of the target process. */\n" "\\&\n" " snprintf(path, sizeof(path), \"/proc/%s\", argv[1]);\n" "\\&\n" " pidfd = open(path, O_RDONLY);\n" " if (pidfd == -1) {\n" " perror(\"open\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Populate a \\[aq]siginfo_t\\[aq] structure for use with\n" " pidfd_send_signal(). */\n" "\\&\n" " memset(&info, 0, sizeof(info));\n" " info.si_code = SI_QUEUE;\n" " info.si_signo = sig;\n" " info.si_errno = 0;\n" " info.si_uid = getuid();\n" " info.si_pid = getpid();\n" " info.si_value.sival_int = 1234;\n" "\\&\n" " /* Send the signal. */\n" "\\&\n" " if (pidfd_send_signal(pidfd, sig, &info, 0) == -1) {\n" " perror(\"pidfd_send_signal\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Efcntl.hE\n" "#include Elimits.hE\n" "#include Esignal.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/syscall.hE\n" "#include Eunistd.hE\n" "\\&\n" "static int\n" "pidfd_send_signal(int pidfd, int sig, siginfo_t *info,\n" " unsigned int flags)\n" "{\n" " return syscall(SYS_pidfd_send_signal, pidfd, sig, info, flags);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int pidfd, sig;\n" " char path[PATH_MAX];\n" " siginfo_t info;\n" "\\&\n" " if (argc != 3) {\n" " fprintf(stderr, \"Usage: %s EpidE EsignalE\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " sig = atoi(argv[2]);\n" "\\&\n" " /* Obtain a PID file descriptor by opening the /proc/PID directory\n" " of the target process. */\n" "\\&\n" " snprintf(path, sizeof(path), \"/proc/%s\", argv[1]);\n" "\\&\n" " pidfd = open(path, O_RDONLY);\n" " if (pidfd == -1) {\n" " perror(\"open\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Populate a \\[aq]siginfo_t\\[aq] structure for use with\n" " pidfd_send_signal(). */\n" "\\&\n" " memset(&info, 0, sizeof(info));\n" " info.si_code = SI_QUEUE;\n" " info.si_signo = sig;\n" " info.si_errno = 0;\n" " info.si_uid = getuid();\n" " info.si_pid = getpid();\n" " info.si_value.sival_int = 1234;\n" "\\&\n" " /* Send the signal. */\n" "\\&\n" " if (pidfd_send_signal(pidfd, sig, &info, 0) == -1) {\n" " perror(\"pidfd_send_signal\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\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(7), B(7)" msgstr "" "B(2), B(2), B(2), B(2), " "B(2), 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 fedora-44 fedora-rawhide msgid "" "The I argument is reserved for future use; currently, this argument " "must be specified as 0." msgstr "" "المعامل I محجوز للاستخدام المستقبلي؛ حاليًا، يجب تحديد هذا المعامل كـ " "0." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide msgid "I is not 0." msgstr "I ليست 0." #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#define _GNU_SOURCE\n" "#include Efcntl.hE\n" "#include Elimits.hE\n" "#include Esignal.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/syscall.hE\n" "#include Eunistd.hE\n" "\\&\n" "static int\n" "pidfd_send_signal(int pidfd, int sig, siginfo_t *info,\n" " unsigned int flags)\n" "{\n" " return syscall(SYS_pidfd_send_signal, pidfd, sig, info, flags);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int pidfd, sig;\n" " char path[PATH_MAX];\n" " siginfo_t info;\n" "\\&\n" " if (argc != 3) {\n" " fprintf(stderr, \"Usage: %s EpidE EsignalE\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " sig = atoi(argv[2]);\n" "\\&\n" " /* Obtain a PID file descriptor by opening the /proc/PID directory\n" " of the target process. */\n" "\\&\n" " snprintf(path, sizeof(path), \"/proc/%s\", argv[1]);\n" "\\&\n" " pidfd = open(path, O_RDONLY);\n" " if (pidfd == -1) {\n" " perror(\"open\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Populate a \\[aq]siginfo_t\\[aq] structure for use with\n" " pidfd_send_signal(). */\n" "\\&\n" " memset(&info, 0, sizeof(info));\n" " info.si_code = SI_QUEUE;\n" " info.si_signo = sig;\n" " info.si_errno = 0;\n" " info.si_uid = getuid();\n" " info.si_pid = getpid();\n" " info.si_value.sival_int = 1234;\n" "\\&\n" " /* Send the signal. */\n" "\\&\n" " if (pidfd_send_signal(pidfd, sig, &info, 0) == -1) {\n" " perror(\"pidfd_send_signal\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#define _GNU_SOURCE\n" "#include Efcntl.hE\n" "#include Elimits.hE\n" "#include Esignal.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Estring.hE\n" "#include Esys/syscall.hE\n" "#include Eunistd.hE\n" "\\&\n" "static int\n" "pidfd_send_signal(int pidfd, int sig, siginfo_t *info,\n" " unsigned int flags)\n" "{\n" " return syscall(SYS_pidfd_send_signal, pidfd, sig, info, flags);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " int pidfd, sig;\n" " char path[PATH_MAX];\n" " siginfo_t info;\n" "\\&\n" " if (argc != 3) {\n" " fprintf(stderr, \"Usage: %s EpidE EsignalE\\[rs]n\", argv[0]);\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " sig = atoi(argv[2]);\n" "\\&\n" " /* Obtain a PID file descriptor by opening the /proc/PID directory\n" " of the target process. */\n" "\\&\n" " snprintf(path, sizeof(path), \"/proc/%s\", argv[1]);\n" "\\&\n" " pidfd = open(path, O_RDONLY);\n" " if (pidfd == -1) {\n" " perror(\"open\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " /* Populate a \\[aq]siginfo_t\\[aq] structure for use with\n" " pidfd_send_signal(). */\n" "\\&\n" " memset(&info, 0, sizeof(info));\n" " info.si_code = SI_QUEUE;\n" " info.si_signo = sig;\n" " info.si_errno = 0;\n" " info.si_uid = getuid();\n" " info.si_pid = getpid();\n" " info.si_value.sival_int = 1234;\n" "\\&\n" " /* Send the signal. */\n" "\\&\n" " if (pidfd_send_signal(pidfd, sig, &info, 0) == -1) {\n" " perror(\"pidfd_send_signal\");\n" " exit(EXIT_FAILURE);\n" " }\n" "\\&\n" " exit(EXIT_SUCCESS);\n" "}\n" #. 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 "صفحات دليل لينكس (لم تصدر بعد)"