Debian Codegraph @

po/ar/man2/pidfd_send_signal.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:34+0200\n"
9 "PO-Revision-Date: 2026-05-18 17:57+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 "pidfd_send_signal"
25 msgstr "pidfd_send_signal"
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 ""
51 "pidfd_send_signal - send a signal to a process specified by a file descriptor"
52 msgstr "pidfd_send_signal - إرسال إشارة إلى عملية محددة بواصف ملف"
53
54 #. type: SH
55 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
56 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
57 #, no-wrap
58 msgid "LIBRARY"
59 msgstr "المكتبة"
60
61 #. type: Plain text
62 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
63 #: opensuse-leap-16-1 opensuse-tumbleweed
64 msgid "Standard C library (I<libc>,\\ I<-lc>)"
65 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
66
67 #. type: SH
68 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
69 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
70 #, no-wrap
71 msgid "SYNOPSIS"
72 msgstr "موجز"
73
74 #. type: Plain text
75 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
76 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
77 #, no-wrap
78 msgid ""
79 "B<#include E<lt>linux/signal.hE<gt>> /* Definition of B<SIG*> constants */\n"
80 "B<#include E<lt>signal.hE<gt>> /* Definition of B<SI_*> constants */\n"
81 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
82 "B<#include E<lt>unistd.hE<gt>>\n"
83 msgstr ""
84 "B<#include E<lt>linux/signal.hE<gt>> /* Definition of B<SIG*> constants */\n"
85 "B<#include E<lt>signal.hE<gt>> /* Definition of B<SI_*> constants */\n"
86 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
87 "B<#include E<lt>unistd.hE<gt>>\n"
88
89 #. type: Plain text
90 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
91 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
92 #, no-wrap
93 msgid ""
94 "B<int syscall(SYS_pidfd_send_signal, int >I<pidfd>B<, int >I<sig>B<,>\n"
95 "B< siginfo_t *_Nullable >I<info>B<, unsigned int >I<flags>B<);>\n"
96 msgstr ""
97 "B<int syscall(SYS_pidfd_send_signal, int >I<pidfd>B<, int >I<sig>B<,>\n"
98 "B< siginfo_t *_Nullable >I<info>B<, unsigned int >I<flags>B<);>\n"
99
100 #. type: Plain text
101 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
102 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
103 msgid ""
104 "I<Note>: glibc provides no wrapper for B<pidfd_send_signal>(), necessitating "
105 "the use of B<syscall>(2)."
106 msgstr ""
107 "I<ملاحظة>: لا توفر glibc غلافًا لـ B<pidfd_send_signal>()، مما يستلزم استخدام "
108 "B<syscall>(2)."
109
110 #. type: SH
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 #, no-wrap
114 msgid "DESCRIPTION"
115 msgstr "الوصف"
116
117 #. See the very detailed commit message for kernel commit
118 #. 3eb39f47934f9d5a3027fe00d906a45fe3a15fad
119 #. type: Plain text
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 msgid ""
123 "The B<pidfd_send_signal>() system call sends the signal I<sig> to the "
124 "target process referred to by I<pidfd>, a PID file descriptor that refers to "
125 "a process."
126 msgstr ""
127 "ترسل استدعاء النظام B<pidfd_send_signal>() الإشارة I<sig> إلى العملية الهدف "
128 "المشار إليها بـ I<pidfd>، وهو واصف ملف PID يشير إلى عملية."
129
130 #. type: Plain text
131 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
132 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
133 msgid ""
134 "If the I<info> argument points to a I<siginfo_t> buffer, that buffer should "
135 "be populated as described in B<rt_sigqueueinfo>(2)."
136 msgstr ""
137 "إذا أشارت وسيطة I<info> إلى مخزن I<siginfo_t>، فيجب ملء ذلك المخزن كما هو "
138 "موصوف في B<rt_sigqueueinfo>(2)."
139
140 #. type: Plain text
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 msgid ""
144 "If the I<info> argument is a null pointer, this is equivalent to specifying "
145 "a pointer to a I<siginfo_t> buffer whose fields match the values that are "
146 "implicitly supplied when a signal is sent using B<kill>(2):"
147 msgstr ""
148 "إذا كانت وسيطة I<info> مؤشرًا فارغًا، فهذا يعادل تحديد مؤشر إلى مخزن "
149 "I<siginfo_t> تتطابق حقوله مع القيم المقدمة ضمنيًا عند إرسال إشارة باستخدام "
150 "B<kill>(2):"
151
152 #. type: IP
153 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
154 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
155 #, no-wrap
156 msgid "\\[bu]"
157 msgstr "\\[bu]"
158
159 #. type: Plain text
160 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
161 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
162 msgid "I<si_signo> is set to the signal number;"
163 msgstr "يُضبط I<si_signo> على رقم الإشارة؛"
164
165 #. type: Plain text
166 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
167 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
168 msgid "I<si_errno> is set to 0;"
169 msgstr "يُضبط I<si_errno> على 0؛"
170
171 #. type: Plain text
172 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
173 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
174 msgid "I<si_code> is set to B<SI_USER>;"
175 msgstr "يُضبط I<si_code> على B<SI_USER>؛"
176
177 #. type: Plain text
178 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
179 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
180 msgid "I<si_pid> is set to the caller's PID; and"
181 msgstr "يُضبط I<si_pid> على PID للمتصل؛ و"
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 msgid "I<si_uid> is set to the caller's real user ID."
187 msgstr "يُضبط I<si_uid> على معرف المستخدم الحقيقي للمتصل."
188
189 #. type: Plain text
190 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
191 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
192 msgid ""
193 "The calling process must either be in the same PID namespace as the process "
194 "referred to by I<pidfd>, or be in an ancestor of that namespace."
195 msgstr ""
196 "يجب أن تكون العملية المتصلة إما في نفس نطاق PID مثل العملية المشار إليها بـ "
197 "I<pidfd>، أو في سلف لذلك النطاق."
198
199 #. type: Plain text
200 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
201 #: opensuse-tumbleweed
202 msgid ""
203 "The I<flags> argument allows to modify the scope of the signal. By default, "
204 "the scope of the signal will be inferred from the I<pidfd> argument. For "
205 "example, if I<pidfd> refers to a specific thread \\[em]i.e., the I<pidfd> "
206 "was created through B<pidfd_open>(2) using the B<PIDFD_THREAD> flag or "
207 "through B<clone3>(2) using the B<CLONE_PIDFD> flag together with the "
208 "B<CLONE_THREAD> flag\\[em] then passing I<pidfd> to B<pidfd_send_signal>(2) "
209 "and leaving the I<flags> argument as B<0> will cause the signal to be sent "
210 "to the specific thread referenced by the I<pidfd>."
211 msgstr ""
212 "تسمح وسيطة I<flags> بتعديل نطاق الإشارة. مبدئيًا، يُستنتج نطاق الإشارة من "
213 "وسيطة I<pidfd>. على سبيل المثال، إذا كان I<pidfd> يشير إلى خيط محدد "
214 "\\[em]أي، أُنشئ I<pidfd> عبر B<pidfd_open>(2) باستخدام العلم B<PIDFD_THREAD> "
215 "أو عبر B<clone3>(2) باستخدام العلم B<CLONE_PIDFD> مع العلم "
216 "B<CLONE_THREAD>\\[em] فإن تمرير I<pidfd> إلى B<pidfd_send_signal>(2) وترك "
217 "وسيطة I<flags> كـ B<0> سيؤدي إلى إرسال الإشارة إلى الخيط المحدد المشار إليه "
218 "بـ I<pidfd>."
219
220 #. type: TP
221 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
222 #: opensuse-tumbleweed
223 #, no-wrap
224 msgid "B<PIDFD_SIGNAL_THREAD> (since Linux 6.9)"
225 msgstr "B<PIDFD_SIGNAL_THREAD> (منذ Linux 6.9)"
226
227 #. commit e1fb1dc08e73466830612bcf2f9f72180965c9ba
228 #. type: Plain text
229 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
230 #: opensuse-tumbleweed
231 msgid ""
232 "Ensure that the signal is sent to the specific thread referenced by I<pidfd>."
233 msgstr "يضمن إرسال الإشارة إلى الخيط المحدد المشار إليه بـ I<pidfd>."
234
235 #. type: TP
236 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
237 #: opensuse-tumbleweed
238 #, no-wrap
239 msgid "B<PIDFD_SIGNAL_THREAD_GROUP> (since Linux 6.9)"
240 msgstr "B<PIDFD_SIGNAL_THREAD_GROUP> (منذ Linux 6.9)"
241
242 #. commit e1fb1dc08e73466830612bcf2f9f72180965c9ba
243 #. type: Plain text
244 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
245 #: opensuse-tumbleweed
246 msgid ""
247 "If I<pidfd> refers to a thread-group leader, ensure that the signal is sent "
248 "to the thread-group, even if I<pidfd> was created to refer to a specific "
249 "thread."
250 msgstr ""
251 "إذا كان I<pidfd> يشير إلى قائد مجموعة خيوط، يضمن إرسال الإشارة إلى مجموعة "
252 "الخيوط، حتى لو أُنشئ I<pidfd> للإشارة إلى خيط محدد."
253
254 #. type: TP
255 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
256 #: opensuse-tumbleweed
257 #, no-wrap
258 msgid "B<PIDFD_SIGNAL_PROCESS_GROUP> (since Linux 6.9)"
259 msgstr "B<PIDFD_SIGNAL_PROCESS_GROUP> (منذ Linux 6.9)"
260
261 #. commit e1fb1dc08e73466830612bcf2f9f72180965c9ba
262 #. type: Plain text
263 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
264 #: opensuse-tumbleweed
265 msgid ""
266 "If I<pidfd> refers to a process-group leader, ensure that the signal is sent "
267 "to the process-group, even if I<pidfd> was created to refer to a specific "
268 "thread or to a thread-group leader."
269 msgstr ""
270 "إذا كان I<pidfd> يشير إلى قائد مجموعة عمليات، يضمن إرسال الإشارة إلى مجموعة "
271 "العمليات، حتى لو أُنشئ I<pidfd> للإشارة إلى خيط محدد أو إلى قائد مجموعة خيوط."
272
273 #. type: SH
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 #, no-wrap
277 msgid "RETURN VALUE"
278 msgstr "قيمة الإرجاع"
279
280 #. type: Plain text
281 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
282 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
283 msgid ""
284 "On success, B<pidfd_send_signal>() returns 0. On error, -1 is returned and "
285 "I<errno> is set to indicate the error."
286 msgstr ""
287 "عند النجاح، تُرجع B<pidfd_send_signal>() 0. عند الخطأ، تُرجع -1 ويُضبط I<errno> "
288 "للإشارة إلى الخطأ."
289
290 #. type: SH
291 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
292 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
293 #, no-wrap
294 msgid "ERRORS"
295 msgstr "الأخطاء"
296
297 #. type: TP
298 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
299 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
300 #, no-wrap
301 msgid "B<EBADF>"
302 msgstr "B<EBADF>"
303
304 #. type: Plain text
305 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
306 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
307 msgid "I<pidfd> is not a valid PID file descriptor."
308 msgstr "I<pidfd> ليس واصف ملف PID صالحاً."
309
310 #. type: TP
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "B<EINVAL>"
315 msgstr "B<EINVAL>"
316
317 #. type: Plain text
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 msgid "I<sig> is not a valid signal."
321 msgstr "I<sig> ليست إشارة صالحة."
322
323 #. type: Plain text
324 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
325 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
326 msgid ""
327 "The calling process is not in a PID namespace from which it can send a "
328 "signal to the target process."
329 msgstr ""
330 "العملية المتصلة ليست في نطاق PID يمكنها منه إرسال إشارة إلى العملية الهدف."
331
332 #. type: Plain text
333 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
334 #: opensuse-tumbleweed
335 msgid "I<flags> is not valid."
336 msgstr "I<flags> غير صالح."
337
338 #. type: TP
339 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
340 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
341 #, no-wrap
342 msgid "B<EPERM>"
343 msgstr "B<EPERM>"
344
345 #. type: Plain text
346 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
347 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
348 msgid ""
349 "The calling process does not have permission to send the signal to the "
350 "target process."
351 msgstr "لا تملك العملية المتصلة الإذن لإرسال الإشارة إلى العملية الهدف."
352
353 #. type: Plain text
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 msgid ""
357 "I<pidfd> doesn't refer to the calling process, and I<info.si_code> is "
358 "invalid (see B<rt_sigqueueinfo>(2))."
359 msgstr ""
360 "لا يشير I<pidfd> إلى العملية المتصلة، و I<info.si_code> غير صالح (انظر "
361 "B<rt_sigqueueinfo>(2))."
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<ESRCH>"
368 msgstr "B<ESRCH>"
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 ""
374 "The target process does not exist (i.e., it has terminated and been waited "
375 "on)."
376 msgstr "العملية الهدف غير موجودة (أي أنها أُنهيت وانتُظر اكتمالها)."
377
378 #. type: SH
379 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
380 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
381 #, no-wrap
382 msgid "STANDARDS"
383 msgstr "المعايير"
384
385 #. type: Plain text
386 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
387 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
388 msgid "Linux."
389 msgstr "لينكس."
390
391 #. type: SH
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 #, no-wrap
395 msgid "HISTORY"
396 msgstr "التاريخ"
397
398 #. type: Plain text
399 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
400 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
401 msgid "Linux 5.1."
402 msgstr "Linux 5.1."
403
404 #. type: SH
405 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
406 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
407 #, no-wrap
408 msgid "NOTES"
409 msgstr "ملاحظات"
410
411 #. type: SS
412 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
413 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
414 #, no-wrap
415 msgid "PID file descriptors"
416 msgstr "واصفات ملفات PID"
417
418 #. type: Plain text
419 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
420 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
421 msgid ""
422 "The I<pidfd> argument is a PID file descriptor, a file descriptor that "
423 "refers to process. Such a file descriptor can be obtained in any of the "
424 "following ways:"
425 msgstr ""
426 "وسيطة I<pidfd> هي واصف ملف PID، واصف ملف يشير إلى عملية. يمكن الحصول على مثل "
427 "هذا الواصف بأي من الطرق التالية:"
428
429 #. type: Plain text
430 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
431 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
432 msgid "by opening a I</proc/>pid directory;"
433 msgstr "بفتح دليل I</proc/>pid؛"
434
435 #. type: Plain text
436 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
437 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
438 msgid "using B<pidfd_open>(2); or"
439 msgstr "باستخدام B<pidfd_open>(2); أو"
440
441 #. type: Plain text
442 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
443 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
444 msgid ""
445 "via the PID file descriptor that is returned by a call to B<clone>(2) or "
446 "B<clone3>(2) that specifies the B<CLONE_PIDFD> flag."
447 msgstr ""
448 "عبر واصف ملف PID الذي يُرجعه استدعاء B<clone>(2) أو B<clone3>(2) يُحدد العَلَم "
449 "B<CLONE_PIDFD>."
450
451 #. type: Plain text
452 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
453 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
454 msgid ""
455 "The B<pidfd_send_signal>() system call allows the avoidance of race "
456 "conditions that occur when using traditional interfaces (such as "
457 "B<kill>(2)) to signal a process. The problem is that the traditional "
458 "interfaces specify the target process via a process ID (PID), with the "
459 "result that the sender may accidentally send a signal to the wrong process "
460 "if the originally intended target process has terminated and its PID has "
461 "been recycled for another process. By contrast, a PID file descriptor is a "
462 "stable reference to a specific process; if that process terminates, "
463 "B<pidfd_send_signal>() fails with the error B<ESRCH>."
464 msgstr ""
465 "يسمح استدعاء النظام B<pidfd_send_signal>() بتجنب حالات السباق التي تحدث عند "
466 "استخدام الواجهات التقليدية (مثل B<kill>(2)) لإرسال إشارة إلى عملية. المشكلة "
467 "هي أن الواجهات التقليدية تُحدد العملية الهدف عبر معرف العملية (PID)، مما قد "
468 "يؤدي إلى إرسال المُرسِل إشارة إلى العملية الخاطئة عن طريق الخطأ إذا كانت "
469 "العملية المستهدفة أصلاً قد انتهت وأُعيد استخدام PID الخاص بها لعملية أخرى. على "
470 "النقيض، واصف ملف PID هو مرجع مستقر لعملية محددة؛ إذا انتهت تلك العملية، يفشل "
471 "B<pidfd_send_signal>() مع الخطأ B<ESRCH>."
472
473 #. type: SH
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 #, no-wrap
477 msgid "EXAMPLES"
478 msgstr "أمثلة"
479
480 #. type: Plain text
481 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
482 #: opensuse-tumbleweed
483 #, no-wrap
484 msgid ""
485 "#define _GNU_SOURCE\n"
486 "#include E<lt>fcntl.hE<gt>\n"
487 "#include E<lt>limits.hE<gt>\n"
488 "#include E<lt>signal.hE<gt>\n"
489 "#include E<lt>stdio.hE<gt>\n"
490 "#include E<lt>stdlib.hE<gt>\n"
491 "#include E<lt>string.hE<gt>\n"
492 "#include E<lt>sys/syscall.hE<gt>\n"
493 "#include E<lt>unistd.hE<gt>\n"
494 "\\&\n"
495 "static int\n"
496 "pidfd_send_signal(int pidfd, int sig, siginfo_t *info,\n"
497 " unsigned int flags)\n"
498 "{\n"
499 " return syscall(SYS_pidfd_send_signal, pidfd, sig, info, flags);\n"
500 "}\n"
501 "\\&\n"
502 "int\n"
503 "main(int argc, char *argv[])\n"
504 "{\n"
505 " int pidfd, sig;\n"
506 " char path[PATH_MAX];\n"
507 " siginfo_t info;\n"
508 "\\&\n"
509 " if (argc != 3) {\n"
510 " fprintf(stderr, \"Usage: %s E<lt>pidE<gt> E<lt>signalE<gt>\\[rs]n\", argv[0]);\n"
511 " exit(EXIT_FAILURE);\n"
512 " }\n"
513 "\\&\n"
514 " sig = atoi(argv[2]);\n"
515 "\\&\n"
516 " /* Obtain a PID file descriptor by opening the /proc/PID directory\n"
517 " of the target process. */\n"
518 "\\&\n"
519 " snprintf(path, sizeof(path), \"/proc/%s\", argv[1]);\n"
520 "\\&\n"
521 " pidfd = open(path, O_RDONLY);\n"
522 " if (pidfd == -1) {\n"
523 " perror(\"open\");\n"
524 " exit(EXIT_FAILURE);\n"
525 " }\n"
526 "\\&\n"
527 " /* Populate a \\[aq]siginfo_t\\[aq] structure for use with\n"
528 " pidfd_send_signal(). */\n"
529 "\\&\n"
530 " memset(&info, 0, sizeof(info));\n"
531 " info.si_code = SI_QUEUE;\n"
532 " info.si_signo = sig;\n"
533 " info.si_errno = 0;\n"
534 " info.si_uid = getuid();\n"
535 " info.si_pid = getpid();\n"
536 " info.si_value.sival_int = 1234;\n"
537 "\\&\n"
538 " /* Send the signal. */\n"
539 "\\&\n"
540 " if (pidfd_send_signal(pidfd, sig, &info, 0) == -1) {\n"
541 " perror(\"pidfd_send_signal\");\n"
542 " exit(EXIT_FAILURE);\n"
543 " }\n"
544 "\\&\n"
545 " exit(EXIT_SUCCESS);\n"
546 "}\n"
547 msgstr ""
548 "#define _GNU_SOURCE\n"
549 "#include E<lt>fcntl.hE<gt>\n"
550 "#include E<lt>limits.hE<gt>\n"
551 "#include E<lt>signal.hE<gt>\n"
552 "#include E<lt>stdio.hE<gt>\n"
553 "#include E<lt>stdlib.hE<gt>\n"
554 "#include E<lt>string.hE<gt>\n"
555 "#include E<lt>sys/syscall.hE<gt>\n"
556 "#include E<lt>unistd.hE<gt>\n"
557 "\\&\n"
558 "static int\n"
559 "pidfd_send_signal(int pidfd, int sig, siginfo_t *info,\n"
560 " unsigned int flags)\n"
561 "{\n"
562 " return syscall(SYS_pidfd_send_signal, pidfd, sig, info, flags);\n"
563 "}\n"
564 "\\&\n"
565 "int\n"
566 "main(int argc, char *argv[])\n"
567 "{\n"
568 " int pidfd, sig;\n"
569 " char path[PATH_MAX];\n"
570 " siginfo_t info;\n"
571 "\\&\n"
572 " if (argc != 3) {\n"
573 " fprintf(stderr, \"Usage: %s E<lt>pidE<gt> E<lt>signalE<gt>\\[rs]n\", argv[0]);\n"
574 " exit(EXIT_FAILURE);\n"
575 " }\n"
576 "\\&\n"
577 " sig = atoi(argv[2]);\n"
578 "\\&\n"
579 " /* Obtain a PID file descriptor by opening the /proc/PID directory\n"
580 " of the target process. */\n"
581 "\\&\n"
582 " snprintf(path, sizeof(path), \"/proc/%s\", argv[1]);\n"
583 "\\&\n"
584 " pidfd = open(path, O_RDONLY);\n"
585 " if (pidfd == -1) {\n"
586 " perror(\"open\");\n"
587 " exit(EXIT_FAILURE);\n"
588 " }\n"
589 "\\&\n"
590 " /* Populate a \\[aq]siginfo_t\\[aq] structure for use with\n"
591 " pidfd_send_signal(). */\n"
592 "\\&\n"
593 " memset(&info, 0, sizeof(info));\n"
594 " info.si_code = SI_QUEUE;\n"
595 " info.si_signo = sig;\n"
596 " info.si_errno = 0;\n"
597 " info.si_uid = getuid();\n"
598 " info.si_pid = getpid();\n"
599 " info.si_value.sival_int = 1234;\n"
600 "\\&\n"
601 " /* Send the signal. */\n"
602 "\\&\n"
603 " if (pidfd_send_signal(pidfd, sig, &info, 0) == -1) {\n"
604 " perror(\"pidfd_send_signal\");\n"
605 " exit(EXIT_FAILURE);\n"
606 " }\n"
607 "\\&\n"
608 " exit(EXIT_SUCCESS);\n"
609 "}\n"
610
611 #. SRC END
612 #. type: SH
613 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
614 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
615 #, no-wrap
616 msgid "SEE ALSO"
617 msgstr "انظر أيضًا"
618
619 #. type: Plain text
620 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
621 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
622 msgid ""
623 "B<clone>(2), B<kill>(2), B<pidfd_open>(2), B<rt_sigqueueinfo>(2), "
624 "B<sigaction>(2), B<pid_namespaces>(7), B<signal>(7)"
625 msgstr ""
626 "B<clone>(2), B<kill>(2), B<pidfd_open>(2), B<rt_sigqueueinfo>(2), "
627 "B<sigaction>(2), B<pid_namespaces>(7), B<signal>(7)"
628
629 #. type: TH
630 #: debian-trixie
631 #, no-wrap
632 msgid "2024-06-15"
633 msgstr "15 يونيو 2024"
634
635 #. type: TH
636 #: debian-trixie
637 #, no-wrap
638 msgid "Linux man-pages 6.9.1"
639 msgstr "صفحات دليل لينكس 6.9.1"
640
641 #. type: Plain text
642 #: debian-trixie
643 msgid "Standard C library (I<libc>, I<-lc>)"
644 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
645
646 #. type: Plain text
647 #: debian-trixie fedora-44 fedora-rawhide
648 msgid ""
649 "The I<flags> argument is reserved for future use; currently, this argument "
650 "must be specified as 0."
651 msgstr ""
652 "المعامل I<flags> محجوز للاستخدام المستقبلي؛ حاليًا، يجب تحديد هذا المعامل كـ "
653 "0."
654
655 #. type: Plain text
656 #: debian-trixie fedora-44 fedora-rawhide
657 msgid "I<flags> is not 0."
658 msgstr "I<flags> ليست 0."
659
660 #. type: Plain text
661 #: debian-trixie fedora-44 fedora-rawhide
662 #, no-wrap
663 msgid ""
664 "#define _GNU_SOURCE\n"
665 "#include E<lt>fcntl.hE<gt>\n"
666 "#include E<lt>limits.hE<gt>\n"
667 "#include E<lt>signal.hE<gt>\n"
668 "#include E<lt>stdio.hE<gt>\n"
669 "#include E<lt>stdlib.hE<gt>\n"
670 "#include E<lt>string.hE<gt>\n"
671 "#include E<lt>sys/syscall.hE<gt>\n"
672 "#include E<lt>unistd.hE<gt>\n"
673 "\\&\n"
674 "static int\n"
675 "pidfd_send_signal(int pidfd, int sig, siginfo_t *info,\n"
676 " unsigned int flags)\n"
677 "{\n"
678 " return syscall(SYS_pidfd_send_signal, pidfd, sig, info, flags);\n"
679 "}\n"
680 "\\&\n"
681 "int\n"
682 "main(int argc, char *argv[])\n"
683 "{\n"
684 " int pidfd, sig;\n"
685 " char path[PATH_MAX];\n"
686 " siginfo_t info;\n"
687 "\\&\n"
688 " if (argc != 3) {\n"
689 " fprintf(stderr, \"Usage: %s E<lt>pidE<gt> E<lt>signalE<gt>\\[rs]n\", argv[0]);\n"
690 " exit(EXIT_FAILURE);\n"
691 " }\n"
692 "\\&\n"
693 " sig = atoi(argv[2]);\n"
694 "\\&\n"
695 " /* Obtain a PID file descriptor by opening the /proc/PID directory\n"
696 " of the target process. */\n"
697 "\\&\n"
698 " snprintf(path, sizeof(path), \"/proc/%s\", argv[1]);\n"
699 "\\&\n"
700 " pidfd = open(path, O_RDONLY);\n"
701 " if (pidfd == -1) {\n"
702 " perror(\"open\");\n"
703 " exit(EXIT_FAILURE);\n"
704 " }\n"
705 "\\&\n"
706 " /* Populate a \\[aq]siginfo_t\\[aq] structure for use with\n"
707 " pidfd_send_signal(). */\n"
708 "\\&\n"
709 " memset(&info, 0, sizeof(info));\n"
710 " info.si_code = SI_QUEUE;\n"
711 " info.si_signo = sig;\n"
712 " info.si_errno = 0;\n"
713 " info.si_uid = getuid();\n"
714 " info.si_pid = getpid();\n"
715 " info.si_value.sival_int = 1234;\n"
716 "\\&\n"
717 " /* Send the signal. */\n"
718 "\\&\n"
719 " if (pidfd_send_signal(pidfd, sig, &info, 0) == -1) {\n"
720 " perror(\"pidfd_send_signal\");\n"
721 " exit(EXIT_FAILURE);\n"
722 " }\n"
723 "\\&\n"
724 " exit(EXIT_SUCCESS);\n"
725 "}\n"
726 msgstr ""
727 "#define _GNU_SOURCE\n"
728 "#include E<lt>fcntl.hE<gt>\n"
729 "#include E<lt>limits.hE<gt>\n"
730 "#include E<lt>signal.hE<gt>\n"
731 "#include E<lt>stdio.hE<gt>\n"
732 "#include E<lt>stdlib.hE<gt>\n"
733 "#include E<lt>string.hE<gt>\n"
734 "#include E<lt>sys/syscall.hE<gt>\n"
735 "#include E<lt>unistd.hE<gt>\n"
736 "\\&\n"
737 "static int\n"
738 "pidfd_send_signal(int pidfd, int sig, siginfo_t *info,\n"
739 " unsigned int flags)\n"
740 "{\n"
741 " return syscall(SYS_pidfd_send_signal, pidfd, sig, info, flags);\n"
742 "}\n"
743 "\\&\n"
744 "int\n"
745 "main(int argc, char *argv[])\n"
746 "{\n"
747 " int pidfd, sig;\n"
748 " char path[PATH_MAX];\n"
749 " siginfo_t info;\n"
750 "\\&\n"
751 " if (argc != 3) {\n"
752 " fprintf(stderr, \"Usage: %s E<lt>pidE<gt> E<lt>signalE<gt>\\[rs]n\", argv[0]);\n"
753 " exit(EXIT_FAILURE);\n"
754 " }\n"
755 "\\&\n"
756 " sig = atoi(argv[2]);\n"
757 "\\&\n"
758 " /* Obtain a PID file descriptor by opening the /proc/PID directory\n"
759 " of the target process. */\n"
760 "\\&\n"
761 " snprintf(path, sizeof(path), \"/proc/%s\", argv[1]);\n"
762 "\\&\n"
763 " pidfd = open(path, O_RDONLY);\n"
764 " if (pidfd == -1) {\n"
765 " perror(\"open\");\n"
766 " exit(EXIT_FAILURE);\n"
767 " }\n"
768 "\\&\n"
769 " /* Populate a \\[aq]siginfo_t\\[aq] structure for use with\n"
770 " pidfd_send_signal(). */\n"
771 "\\&\n"
772 " memset(&info, 0, sizeof(info));\n"
773 " info.si_code = SI_QUEUE;\n"
774 " info.si_signo = sig;\n"
775 " info.si_errno = 0;\n"
776 " info.si_uid = getuid();\n"
777 " info.si_pid = getpid();\n"
778 " info.si_value.sival_int = 1234;\n"
779 "\\&\n"
780 " /* Send the signal. */\n"
781 "\\&\n"
782 " if (pidfd_send_signal(pidfd, sig, &info, 0) == -1) {\n"
783 " perror(\"pidfd_send_signal\");\n"
784 " exit(EXIT_FAILURE);\n"
785 " }\n"
786 "\\&\n"
787 " exit(EXIT_SUCCESS);\n"
788 "}\n"
789
790 #. type: TH
791 #: fedora-44 fedora-rawhide
792 #, no-wrap
793 msgid "2024-07-23"
794 msgstr "23 يوليو 2024"
795
796 #. type: TH
797 #: fedora-44 fedora-rawhide
798 #, no-wrap
799 msgid "Linux man-pages 6.13"
800 msgstr "صفحات دليل لينكس 6.13"
801
802 #. type: TH
803 #: mageia-cauldron
804 #, no-wrap
805 msgid "Linux man-pages 6.17"
806 msgstr "صفحات دليل لينكس 6.17"
807
808 #. type: TH
809 #: opensuse-leap-16-1 opensuse-tumbleweed
810 #, no-wrap
811 msgid "Linux man-pages (unreleased)"
812 msgstr "صفحات دليل لينكس (لم تصدر بعد)"