Debian Codegraph @

po/ar/man2/pidfd_open.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:49+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_open"
25 msgstr "pidfd_open"
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-unstable mageia-cauldron opensuse-leap-16-1
49 #: opensuse-tumbleweed
50 msgid "pidfd_open - obtain a file descriptor that refers to a task"
51 msgstr "pidfd_open - الحصول على واصف ملف يشير إلى مهمة"
52
53 #. type: SH
54 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
55 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
56 #, no-wrap
57 msgid "LIBRARY"
58 msgstr "المكتبة"
59
60 #. type: Plain text
61 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
62 #: opensuse-leap-16-1 opensuse-tumbleweed
63 msgid "Standard C library (I<libc>,\\ I<-lc>)"
64 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
65
66 #. type: SH
67 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
68 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
69 #, no-wrap
70 msgid "SYNOPSIS"
71 msgstr "موجز"
72
73 #. type: Plain text
74 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
75 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
76 #, no-wrap
77 msgid ""
78 "B<#include E<lt>sys/syscall.hE<gt>> /* Definition of B<SYS_*> constants */\n"
79 "B<#include E<lt>unistd.hE<gt>>\n"
80 msgstr ""
81 "B<#include E<lt>sys/syscall.hE<gt>> /* تعريف ثوابت B<SYS_*> */\n"
82 "B<#include E<lt>unistd.hE<gt>>\n"
83
84 #. type: Plain text
85 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
86 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
87 #, no-wrap
88 msgid "B<int syscall(SYS_pidfd_open, pid_t >I<pid>B<, unsigned int >I<flags>B<);>\n"
89 msgstr "B<int syscall(SYS_pidfd_open, pid_t >I<pid>B<, unsigned int >I<flags>B<);>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 msgid ""
95 "I<Note>: glibc provides no wrapper for B<pidfd_open>(), necessitating the "
96 "use of B<syscall>(2)."
97 msgstr ""
98 "I<ملاحظة>: لا توفر glibc غلافًا لـ B<pidfd_open>()، مما يستلزم استخدام "
99 "B<syscall>(2)."
100
101 #. type: SH
102 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
103 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
104 #, no-wrap
105 msgid "DESCRIPTION"
106 msgstr "الوصف"
107
108 #. type: Plain text
109 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
110 #: opensuse-tumbleweed
111 msgid ""
112 "The B<pidfd_open>() system call creates a file descriptor that refers to "
113 "the task referenced by I<pid>. The file descriptor is returned as the "
114 "function result; the close-on-exec flag is set on the file descriptor."
115 msgstr ""
116 "استدعاء النظام B<pidfd_open>() ينشئ واصف ملف يشير إلى المهمة المشار إليها "
117 "بواسطة I<pid>. يُعاد واصف الملف كنتيجة للدالة؛ ويتم تعيين علامة الإغلاق عند "
118 "التنفيذ على واصف الملف."
119
120 #. type: Plain text
121 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
122 #: opensuse-tumbleweed
123 msgid ""
124 "The I<flags> argument either has the value 0, or contains the following "
125 "flags:"
126 msgstr "الوسيطة I<flags> إما أن تكون قيمتها 0، أو تحتوي على الأعلام التالية:"
127
128 #. type: TP
129 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
130 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
131 #, no-wrap
132 msgid "B<PIDFD_NONBLOCK> (since Linux 5.10)"
133 msgstr "B<PIDFD_NONBLOCK> (منذ لينكس 5.10)"
134
135 #. commit 4da9af0014b51c8b015ed8c622440ef28912efe6
136 #. type: Plain text
137 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
138 #: opensuse-tumbleweed
139 msgid ""
140 "Return a nonblocking file descriptor. If the task referred to by the file "
141 "descriptor has not yet terminated, then an attempt to wait on the file "
142 "descriptor using B<waitid>(2) will immediately return the error B<EAGAIN> "
143 "rather than blocking."
144 msgstr ""
145 "إرجاع واصف ملف غير محظور. إذا لم تنتهِ المهمة المشار إليها بواسطة واصف الملف "
146 "بعد، فإن محاولة الانتظار على واصف الملف باستخدام B<waitid>(2) ستعيد الخطأ "
147 "B<EAGAIN> فورًا بدلاً من الحظر."
148
149 #. type: TP
150 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
151 #: opensuse-tumbleweed
152 #, no-wrap
153 msgid "B<PIDFD_THREAD> (since Linux 6.9)"
154 msgstr "B<PIDFD_THREAD> (منذ لينكس 6.9)"
155
156 #. commit 64bef697d33b75fc06c5789b3f8108680271529f
157 #. type: Plain text
158 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
159 #: opensuse-tumbleweed
160 msgid ""
161 "Create a file descriptor that refers to a specific thread, rather than a "
162 "process (thread-group leader). If this flag is not set, I<pid> must refer "
163 "to a process."
164 msgstr ""
165 "إنشاء واصف ملف يشير إلى خيط محدد، بدلاً من عملية (قائد مجموعة الخيوط). إذا لم "
166 "يتم تعيين هذا العلم، يجب أن يشير I<pid> إلى عملية."
167
168 #. type: SH
169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
171 #, no-wrap
172 msgid "RETURN VALUE"
173 msgstr "قيمة الإرجاع"
174
175 #. type: Plain text
176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
178 msgid ""
179 "On success, B<pidfd_open>() returns a file descriptor (a nonnegative "
180 "integer). On error, -1 is returned and I<errno> is set to indicate the "
181 "error."
182 msgstr ""
183 "عند النجاح، تُعيد B<pidfd_open>() واصف ملف (عدد صحيح غير سالب). عند الخطأ، "
184 "تُعاد -1 ويتم تعيين I<errno> للإشارة إلى الخطأ."
185
186 #. type: SH
187 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
188 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
189 #, no-wrap
190 msgid "ERRORS"
191 msgstr "الأخطاء"
192
193 #. type: TP
194 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
195 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
196 #, no-wrap
197 msgid "B<EINVAL>"
198 msgstr "B<EINVAL>"
199
200 #. type: Plain text
201 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
202 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
203 msgid "I<flags> is not valid."
204 msgstr "I<flags> غير صالح."
205
206 #. type: Plain text
207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
209 msgid "I<pid> is not valid."
210 msgstr "I<pid> غير صالح."
211
212 #. type: TP
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 #, no-wrap
216 msgid "B<EMFILE>"
217 msgstr "B<EMFILE>"
218
219 #. type: Plain text
220 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
221 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
222 msgid ""
223 "The per-process limit on the number of open file descriptors has been "
224 "reached (see the description of B<RLIMIT_NOFILE> in B<getrlimit>(2))."
225 msgstr ""
226 "وُصل إلى الحد الأقصى لعدد واصفات الملفات المفتوحة لكل عملية (انظر وصف "
227 "B<RLIMIT_NOFILE> في B<getrlimit>(2))."
228
229 #. type: TP
230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
232 #, no-wrap
233 msgid "B<ENFILE>"
234 msgstr "B<ENFILE>"
235
236 #. type: Plain text
237 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
238 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
239 msgid ""
240 "The system-wide limit on the total number of open files has been reached."
241 msgstr "وُصل إلى الحد الأقصى لإجمالي عدد الملفات المفتوحة على مستوى النظام."
242
243 #. type: TP
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 #, no-wrap
247 msgid "B<ENODEV>"
248 msgstr "B<ENODEV>"
249
250 #. type: Plain text
251 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
252 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
253 msgid "The anonymous inode filesystem is not available in this kernel."
254 msgstr "نظام ملفات العقدة المجهول غير متوفر في هذه النواة."
255
256 #. type: TP
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 #, no-wrap
260 msgid "B<ENOMEM>"
261 msgstr "B<ENOMEM>"
262
263 #. type: Plain text
264 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
265 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
266 msgid "Insufficient kernel memory was available."
267 msgstr "ذاكرة النواة المتوفرة غير كافية."
268
269 #. type: TP
270 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
271 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
272 #, no-wrap
273 msgid "B<ESRCH>"
274 msgstr "B<ESRCH>"
275
276 #. type: Plain text
277 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
278 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
279 msgid "The process specified by I<pid> does not exist."
280 msgstr "العملية المحددة بواسطة I<pid> غير موجودة."
281
282 #. type: SH
283 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
284 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
285 #, no-wrap
286 msgid "STANDARDS"
287 msgstr "المعايير"
288
289 #. type: Plain text
290 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
291 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
292 msgid "Linux."
293 msgstr "لينكس."
294
295 #. type: SH
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 #, no-wrap
299 msgid "HISTORY"
300 msgstr "التاريخ"
301
302 #. type: Plain text
303 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
304 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
305 msgid "Linux 5.3."
306 msgstr "لينكس 5.3."
307
308 #. type: SH
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "NOTES"
313 msgstr "ملاحظات"
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "The following code sequence can be used to obtain a file descriptor for the "
320 "child of B<fork>(2):"
321 msgstr "يمكن استخدام تسلسل الكود التالي للحصول على واصف ملف لابن B<fork>(2):"
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 #, no-wrap
327 msgid ""
328 "pid = fork();\n"
329 "if (pid E<gt> 0) { /* If parent */\n"
330 " pidfd = pidfd_open(pid, 0);\n"
331 " ...\n"
332 "}\n"
333 msgstr ""
334 "pid = fork();\n"
335 "if (pid E<gt> 0) { /* If parent */\n"
336 " pidfd = pidfd_open(pid, 0);\n"
337 " ...\n"
338 "}\n"
339
340 #. type: Plain text
341 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
342 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
343 msgid ""
344 "Even if the child has already terminated by the time of the B<pidfd_open>() "
345 "call, its PID will not have been recycled and the returned file descriptor "
346 "will refer to the resulting zombie process. Note, however, that this is "
347 "guaranteed only if the following conditions hold true:"
348 msgstr ""
349 "حتى إذا كان الابن قد انتهى بالفعل بحلول وقت استدعاء B<pidfd_open>()، فلن يتم "
350 "إعادة استخدام PID الخاص به وسيشير واصف الملف المُعاد إلى عملية الزومبي "
351 "الناتجة. لاحظ، مع ذلك، أن هذا مضمون فقط إذا تحققت الشروط التالية:"
352
353 #. type: IP
354 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
355 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
356 #, no-wrap
357 msgid "\\[bu]"
358 msgstr "\\[bu]"
359
360 #. type: Plain text
361 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
362 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
363 msgid ""
364 "the disposition of B<SIGCHLD> has not been explicitly set to B<SIG_IGN> (see "
365 "B<sigaction>(2));"
366 msgstr ""
367 "لم يتم تعيين تصرف B<SIGCHLD> صراحةً إلى B<SIG_IGN> (انظر B<sigaction>(2))؛"
368
369 #. type: Plain text
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 msgid ""
373 "the B<SA_NOCLDWAIT> flag was not specified while establishing a handler for "
374 "B<SIGCHLD> or while setting the disposition of that signal to B<SIG_DFL> "
375 "(see B<sigaction>(2)); and"
376 msgstr ""
377 "لم يتم تحديد العلم B<SA_NOCLDWAIT> أثناء إنشاء معالج لـ B<SIGCHLD> أو أثناء "
378 "تعيين تصرف تلك الإشارة إلى B<SIG_DFL> (انظر B<sigaction>(2))؛ و"
379
380 #. type: Plain text
381 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
382 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
383 msgid ""
384 "the zombie process was not reaped elsewhere in the program (e.g., either by "
385 "an asynchronously executed signal handler or by B<wait>(2) or similar in "
386 "another thread)."
387 msgstr ""
388 "لم يتم حصاد عملية الزومبي في مكان آخر في البرنامج (على سبيل المثال، إما "
389 "بواسطة معالج إشارة يُنفذ بشكل غير متزامن أو بواسطة B<wait>(2) أو ما شابه ذلك "
390 "في خيط آخر)."
391
392 #. type: Plain text
393 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
394 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
395 msgid ""
396 "If any of these conditions does not hold, then the child process (along with "
397 "a PID file descriptor that refers to it) should instead be created using "
398 "B<clone>(2) with the B<CLONE_PIDFD> flag."
399 msgstr ""
400 "إذا لم يتحقق أي من هذه الشروط، فيجب بدلاً من ذلك إنشاء العملية الابن (مع واصف "
401 "ملف PID يشير إليها) باستخدام B<clone>(2) مع العلم B<CLONE_PIDFD>."
402
403 #. type: SS
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 #, no-wrap
407 msgid "Use cases for PID file descriptors"
408 msgstr "حالات استخدام واصفات ملفات PID"
409
410 #. type: Plain text
411 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
412 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
413 msgid ""
414 "A PID file descriptor returned by B<pidfd_open>() (or by B<clone>(2) with "
415 "the B<CLONE_PID> flag) can be used for the following purposes:"
416 msgstr ""
417 "يمكن استخدام واصف ملف PID المُعاد بواسطة B<pidfd_open>() (أو بواسطة "
418 "B<clone>(2) مع العلم B<CLONE_PID>) للأغراض التالية:"
419
420 #. type: Plain text
421 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
422 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
423 msgid ""
424 "The B<pidfd_send_signal>(2) system call can be used to send a signal to the "
425 "process referred to by a PID file descriptor."
426 msgstr ""
427 "يمكن استخدام استدعاء النظام B<pidfd_send_signal>(2) لإرسال إشارة إلى العملية "
428 "المشار إليها بواسطة واصف ملف PID."
429
430 #. type: Plain text
431 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
432 #: opensuse-tumbleweed
433 msgid ""
434 "A PID file descriptor can be monitored using B<poll>(2), B<select>(2), and "
435 "B<epoll>(7)."
436 msgstr ""
437 "يمكن مراقبة واصف ملف PID باستخدام B<poll>(2) وB<select>(2) وB<epoll>(7)."
438
439 #. commit 43f0df54c96f
440 #. type: Plain text
441 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
442 #: opensuse-tumbleweed
443 msgid ""
444 "When the task that it refers to terminates and becomes a zombie, these "
445 "interfaces indicate the file descriptor as readable (B<EPOLLIN>). When the "
446 "task is reaped, these interfaces produce a hangup event (B<EPOLLHUP>)."
447 msgstr ""
448 "عندما تنتهي المهمة التي يشير إليها وتصبح زومبي، تشير هذه الواجهات إلى واصف "
449 "الملف كقابل للقراءة (B<EPOLLIN>). عندما يتم حصاد المهمة، تُنتج هذه الواجهات "
450 "حدث تعليق (B<EPOLLHUP>)."
451
452 #. type: Plain text
453 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
454 #: opensuse-tumbleweed
455 msgid ""
456 "Note, however, that in the current implementation, nothing can be read from "
457 "the file descriptor (B<read>(2) on the file descriptor fails with the error "
458 "B<EINVAL>). The polling behavior depends on whether B<PIDFD_THREAD> flag "
459 "was used when obtaining the file descriptor:"
460 msgstr ""
461 "لاحظ، مع ذلك، أنه في التنفيذ الحالي، لا يمكن قراءة أي شيء من واصف الملف "
462 "(B<read>(2) على واصف الملف يفشل مع الخطأ B<EINVAL>). يعتمد سلوك الاستقصاء "
463 "على ما إذا كان العلم B<PIDFD_THREAD> قد استُخدم عند الحصول على واصف الملف:"
464
465 #. type: Plain text
466 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
467 #: opensuse-tumbleweed
468 msgid ""
469 "With B<PIDFD_THREAD>, the file descriptor becomes readable when the task "
470 "exits and becomes a zombie, even if the thread-group is not empty."
471 msgstr ""
472 "مع B<PIDFD_THREAD>، يصبح واصف الملف قابلاً للقراءة عندما تخرج المهمة وتصبح "
473 "زومبي، حتى لو لم تكن مجموعة الخيوط فارغة."
474
475 #. type: Plain text
476 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
477 #: opensuse-tumbleweed
478 msgid ""
479 "Without B<PIDFD_THREAD>, the file descriptor becomes readable only when the "
480 "last thread in the thread group exits."
481 msgstr ""
482 "بدون B<PIDFD_THREAD>، يصبح واصف الملف قابلاً للقراءة فقط عندما يخرج آخر خيط "
483 "في مجموعة الخيوط."
484
485 #. type: Plain text
486 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
487 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
488 msgid ""
489 "If the PID file descriptor refers to a child of the calling process, then it "
490 "can be waited on using B<waitid>(2)."
491 msgstr ""
492 "إذا كان واصف ملف PID يشير إلى ابن لعملية الاستدعاء، فيمكن الانتظار عليه "
493 "باستخدام B<waitid>(2)."
494
495 #. type: Plain text
496 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
497 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
498 msgid ""
499 "The B<pidfd_getfd>(2) system call can be used to obtain a duplicate of a "
500 "file descriptor of another process referred to by a PID file descriptor."
501 msgstr ""
502 "يمكن استخدام استدعاء النظام B<pidfd_getfd>(2) للحصول على نسخة مكررة من واصف "
503 "ملف لعملية أخرى يُشار إليها بواسطة واصف ملف PID."
504
505 #. type: Plain text
506 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
507 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
508 msgid ""
509 "A PID file descriptor can be used as the argument of B<setns>(2) in order "
510 "to move into one or more of the same namespaces as the process referred to "
511 "by the file descriptor."
512 msgstr ""
513 "يمكن استخدام واصف ملف PID كوسيطة لـ B<setns>(2) للانتقال إلى واحد أو أكثر "
514 "من نفس مساحات الأسماء (namespaces) مثل العملية المشار إليها بواسطة واصف "
515 "الملف."
516
517 #. type: Plain text
518 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
519 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
520 msgid ""
521 "A PID file descriptor can be used as the argument of B<process_madvise>(2) "
522 "in order to provide advice on the memory usage patterns of the process "
523 "referred to by the file descriptor."
524 msgstr ""
525 "يمكن استخدام واصف ملف PID كوسيطة لـ B<process_madvise>(2) لتقديم نصائح حول "
526 "أنماط استخدام الذاكرة للعملية المشار إليها بواسطة واصف الملف."
527
528 #. type: Plain text
529 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
530 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
531 msgid ""
532 "The B<pidfd_open>() system call is the preferred way of obtaining a PID "
533 "file descriptor for an already existing process. The alternative is to "
534 "obtain a file descriptor by opening a I</proc/>pid directory. However, the "
535 "latter technique is possible only if the B<proc>(5) filesystem is mounted; "
536 "furthermore, the file descriptor obtained in this way is I<not> pollable and "
537 "can't be waited on with B<waitid>(2)."
538 msgstr ""
539 "استدعاء النظام B<pidfd_open>() هو الطريقة المفضلة للحصول على واصف ملف PID "
540 "لعملية موجودة بالفعل. البديل هو الحصول على واصف ملف بفتح دليل I</proc/>pid. "
541 "ومع ذلك، فإن التقنية الأخيرة ممكنة فقط إذا كان نظام الملفات B<proc>(5) "
542 "مركبًا (mounted)؛ علاوة على ذلك، واصف الملف الذي يتم الحصول عليه بهذه الطريقة "
543 "I<ليس> قابلًا للاستقصاء (pollable) ولا يمكن الانتظار عليه باستخدام "
544 "B<waitid>(2)."
545
546 #. type: SH
547 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
548 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
549 #, no-wrap
550 msgid "EXAMPLES"
551 msgstr "أمثلة"
552
553 #. type: Plain text
554 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
555 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
556 msgid ""
557 "The program below opens a PID file descriptor for the process whose PID is "
558 "specified as its command-line argument. It then uses B<poll>(2) to monitor "
559 "the file descriptor for process exit, as indicated by an B<EPOLLIN> event."
560 msgstr ""
561 "البرنامج أدناه يفتح واصف ملف PID للعملية التي يتم تحديد PID الخاص بها كوسيطة "
562 "سطر أوامر. ثم يستخدم B<poll>(2) لمراقبة واصف الملف لخروج العملية، كما هو "
563 "موضح بواسطة حدث B<EPOLLIN>."
564
565 #. type: SS
566 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
567 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
568 #, no-wrap
569 msgid "Program source"
570 msgstr "مصدر البرنامج"
571
572 #. type: Plain text
573 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
574 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
575 #, no-wrap
576 msgid ""
577 "#define _GNU_SOURCE\n"
578 "#include E<lt>poll.hE<gt>\n"
579 "#include E<lt>stdio.hE<gt>\n"
580 "#include E<lt>stdlib.hE<gt>\n"
581 "#include E<lt>sys/syscall.hE<gt>\n"
582 "#include E<lt>sys/types.hE<gt>\n"
583 "#include E<lt>unistd.hE<gt>\n"
584 "\\&\n"
585 "static int\n"
586 "pidfd_open(pid_t pid, unsigned int flags)\n"
587 "{\n"
588 " return syscall(SYS_pidfd_open, pid, flags);\n"
589 "}\n"
590 "\\&\n"
591 "int\n"
592 "main(int argc, char *argv[])\n"
593 "{\n"
594 " int pidfd, ready;\n"
595 " struct pollfd pollfd;\n"
596 "\\&\n"
597 " if (argc != 2) {\n"
598 " fprintf(stderr, \"Usage: %s E<lt>pidE<gt>\\[rs]n\", argv[0]);\n"
599 " exit(EXIT_SUCCESS);\n"
600 " }\n"
601 "\\&\n"
602 " pidfd = pidfd_open(atoi(argv[1]), 0);\n"
603 " if (pidfd == -1) {\n"
604 " perror(\"pidfd_open\");\n"
605 " exit(EXIT_FAILURE);\n"
606 " }\n"
607 "\\&\n"
608 " pollfd.fd = pidfd;\n"
609 " pollfd.events = POLLIN;\n"
610 "\\&\n"
611 " ready = poll(&pollfd, 1, -1);\n"
612 " if (ready == -1) {\n"
613 " perror(\"poll\");\n"
614 " exit(EXIT_FAILURE);\n"
615 " }\n"
616 "\\&\n"
617 " printf(\"Events (%#x): POLLIN is %sset\\[rs]n\", pollfd.revents,\n"
618 " (pollfd.revents & POLLIN) ? \"\" : \"not \");\n"
619 "\\&\n"
620 " close(pidfd);\n"
621 " exit(EXIT_SUCCESS);\n"
622 "}\n"
623 msgstr ""
624 "#define _GNU_SOURCE\n"
625 "#include E<lt>poll.hE<gt>\n"
626 "#include E<lt>stdio.hE<gt>\n"
627 "#include E<lt>stdlib.hE<gt>\n"
628 "#include E<lt>sys/syscall.hE<gt>\n"
629 "#include E<lt>sys/types.hE<gt>\n"
630 "#include E<lt>unistd.hE<gt>\n"
631 "\\&\n"
632 "static int\n"
633 "pidfd_open(pid_t pid, unsigned int flags)\n"
634 "{\n"
635 " return syscall(SYS_pidfd_open, pid, flags);\n"
636 "}\n"
637 "\\&\n"
638 "int\n"
639 "main(int argc, char *argv[])\n"
640 "{\n"
641 " int pidfd, ready;\n"
642 " struct pollfd pollfd;\n"
643 "\\&\n"
644 " if (argc != 2) {\n"
645 " fprintf(stderr, \"Usage: %s E<lt>pidE<gt>\\[rs]n\", argv[0]);\n"
646 " exit(EXIT_SUCCESS);\n"
647 " }\n"
648 "\\&\n"
649 " pidfd = pidfd_open(atoi(argv[1]), 0);\n"
650 " if (pidfd == -1) {\n"
651 " perror(\"pidfd_open\");\n"
652 " exit(EXIT_FAILURE);\n"
653 " }\n"
654 "\\&\n"
655 " pollfd.fd = pidfd;\n"
656 " pollfd.events = POLLIN;\n"
657 "\\&\n"
658 " ready = poll(&pollfd, 1, -1);\n"
659 " if (ready == -1) {\n"
660 " perror(\"poll\");\n"
661 " exit(EXIT_FAILURE);\n"
662 " }\n"
663 "\\&\n"
664 " printf(\"Events (%#x): POLLIN is %sset\\[rs]n\", pollfd.revents,\n"
665 " (pollfd.revents & POLLIN) ? \"\" : \"not \");\n"
666 "\\&\n"
667 " close(pidfd);\n"
668 " exit(EXIT_SUCCESS);\n"
669 "}\n"
670
671 #. SRC END
672 #. type: SH
673 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
674 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
675 #, no-wrap
676 msgid "SEE ALSO"
677 msgstr "انظر أيضًا"
678
679 #. type: Plain text
680 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
681 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
682 msgid ""
683 "B<clone>(2), B<kill>(2), B<pidfd_getfd>(2), B<pidfd_send_signal>(2), "
684 "B<poll>(2), B<process_madvise>(2), B<select>(2), B<setns>(2), B<waitid>(2), "
685 "B<epoll>(7)"
686 msgstr ""
687 "B<clone>(2), B<kill>(2), B<pidfd_getfd>(2), B<pidfd_send_signal>(2), "
688 "B<poll>(2), B<process_madvise>(2), B<select>(2), B<setns>(2), B<waitid>(2), "
689 "B<epoll>(7)"
690
691 #. type: TH
692 #: debian-trixie
693 #, no-wrap
694 msgid "2024-06-15"
695 msgstr "15 يونيو 2024"
696
697 #. type: TH
698 #: debian-trixie
699 #, no-wrap
700 msgid "Linux man-pages 6.9.1"
701 msgstr "صفحات دليل لينكس 6.9.1"
702
703 #. type: Plain text
704 #: debian-trixie fedora-44 fedora-rawhide
705 msgid "pidfd_open - obtain a file descriptor that refers to a process"
706 msgstr "pidfd_open - الحصول على واصف ملف يشير إلى عملية"
707
708 #. type: Plain text
709 #: debian-trixie
710 msgid "Standard C library (I<libc>, I<-lc>)"
711 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
712
713 #. type: Plain text
714 #: debian-trixie fedora-44 fedora-rawhide
715 msgid ""
716 "The B<pidfd_open>() system call creates a file descriptor that refers to "
717 "the process whose PID is specified in I<pid>. The file descriptor is "
718 "returned as the function result; the close-on-exec flag is set on the file "
719 "descriptor."
720 msgstr ""
721 "استدعاء النظام B<pidfd_open>() ينشئ واصف ملف يشير إلى العملية التي يتم "
722 "تحديد PID الخاص بها في I<pid>. يتم إرجاع واصف الملف كنتيجة للدالة؛ يتم تعيين "
723 "علامة الإغلاق عند التنفيذ (close-on-exec) على واصف الملف."
724
725 #. type: Plain text
726 #: debian-trixie fedora-44 fedora-rawhide
727 msgid ""
728 "The I<flags> argument either has the value 0, or contains the following flag:"
729 msgstr "وسيطة I<flags> إما أن تكون قيمتها 0، أو تحتوي على العلم التالي:"
730
731 #. commit 4da9af0014b51c8b015ed8c622440ef28912efe6
732 #. type: Plain text
733 #: debian-trixie fedora-44 fedora-rawhide
734 msgid ""
735 "Return a nonblocking file descriptor. If the process referred to by the "
736 "file descriptor has not yet terminated, then an attempt to wait on the file "
737 "descriptor using B<waitid>(2) will immediately return the error B<EAGAIN> "
738 "rather than blocking."
739 msgstr ""
740 "إرجاع واصف ملف غير محظور (nonblocking). إذا لم تكن العملية المشار إليها "
741 "بواسطة واصف الملف قد انتهت بعد، فإن محاولة الانتظار على واصف الملف باستخدام "
742 "B<waitid>(2) ستعيد الخطأ B<EAGAIN> فورًا بدلاً من الحظر."
743
744 #. type: Plain text
745 #: debian-trixie fedora-44 fedora-rawhide
746 msgid ""
747 "A PID file descriptor can be monitored using B<poll>(2), B<select>(2), and "
748 "B<epoll>(7). When the process that it refers to terminates, these "
749 "interfaces indicate the file descriptor as readable. Note, however, that in "
750 "the current implementation, nothing can be read from the file descriptor "
751 "(B<read>(2) on the file descriptor fails with the error B<EINVAL>)."
752 msgstr ""
753 "يمكن مراقبة واصف ملف PID باستخدام B<poll>(2), B<select>(2), و B<epoll>(7). "
754 "عندما تنتهي العملية التي يشير إليها، تشير هذه الواجهات إلى أن واصف الملف "
755 "قابل للقراءة. لاحظ، مع ذلك، أنه في التنفيذ الحالي، لا يمكن قراءة أي شيء من "
756 "واصف الملف (B<read>(2) على واصف الملف يفشل مع الخطأ B<EINVAL>)."
757
758 #. type: TH
759 #: fedora-44 fedora-rawhide
760 #, no-wrap
761 msgid "2024-07-23"
762 msgstr "23 يوليو 2024"
763
764 #. type: TH
765 #: fedora-44 fedora-rawhide
766 #, no-wrap
767 msgid "Linux man-pages 6.13"
768 msgstr "صفحات دليل لينكس 6.13"
769
770 #. type: TH
771 #: mageia-cauldron
772 #, no-wrap
773 msgid "Linux man-pages 6.17"
774 msgstr "صفحات دليل لينكس 6.17"
775
776 #. type: TH
777 #: opensuse-leap-16-1 opensuse-tumbleweed
778 #, no-wrap
779 msgid "Linux man-pages (unreleased)"
780 msgstr "صفحات دليل لينكس (لم تصدر بعد)"