Debian Codegraph @

po/ar/man2/wait.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 #, fuzzy
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: manpages-l10n\n"
9 "POT-Creation-Date: 2026-06-05 06:50+0200\n"
10 "PO-Revision-Date: 2026-06-27 17:53+0200\n"
11 "Last-Translator: Zayed Al-Saidi <[email protected]>\n"
12 "Language-Team: Arabic <[email protected]>\n"
13 "Language: ar\n"
14 "MIME-Version: 1.0\n"
15 "Content-Type: text/plain; charset=UTF-8\n"
16 "Content-Transfer-Encoding: 8bit\n"
17 ".MIME-Version: 1.0\n"
18 "Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
19 "&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
20 "X-Generator: Lokalize 23.08.5\n"
21
22 #. type: TH
23 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
24 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
25 #, no-wrap
26 msgid "wait"
27 msgstr "wait"
28
29 #. type: TH
30 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
31 #: opensuse-tumbleweed
32 #, no-wrap
33 msgid "2026-02-08"
34 msgstr "8 فبراير 2026"
35
36 #. type: TH
37 #: archlinux debian-unstable
38 #, no-wrap
39 msgid "Linux man-pages 6.18"
40 msgstr "صفحات دليل لينكس 6.18"
41
42 #. type: SH
43 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
44 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
45 #, no-wrap
46 msgid "NAME"
47 msgstr "الاسم"
48
49 #. type: Plain text
50 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
51 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
52 msgid "wait, waitpid, waitid - wait for process to change state"
53 msgstr "wait، waitpid، waitid - انتظار تغيير حالة العملية"
54
55 #. type: SH
56 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
57 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
58 #, no-wrap
59 msgid "LIBRARY"
60 msgstr "المكتبة"
61
62 #. type: Plain text
63 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
64 #: opensuse-leap-16-1 opensuse-tumbleweed
65 msgid "Standard C library (I<libc>,\\ I<-lc>)"
66 msgstr "مكتبة سي المعيارية (I<libc>،\\ I<-lc>)"
67
68 #. type: SH
69 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
70 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
71 #, no-wrap
72 msgid "SYNOPSIS"
73 msgstr "موجز"
74
75 #. type: Plain text
76 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
77 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
78 #, no-wrap
79 msgid "B<#include E<lt>sys/wait.hE<gt>>\n"
80 msgstr "B<#include E<lt>sys/wait.hE<gt>>\n"
81
82 #. type: Plain text
83 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
84 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
85 #, no-wrap
86 msgid ""
87 "B<pid_t wait(int *_Nullable >I<wstatus>B<);>\n"
88 "B<pid_t waitpid(pid_t >I<pid>B<, int *_Nullable >I<wstatus>B<, int >I<options>B<);>\n"
89 msgstr ""
90 "B<pid_t wait(int *_Nullable >I<wstatus>B<);>\n"
91 "B<pid_t waitpid(pid_t >I<pid>B<, int *_Nullable >I<wstatus>B<, int >I<options>B<);>\n"
92
93 #. type: Plain text
94 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
95 #: opensuse-tumbleweed
96 #, no-wrap
97 msgid ""
98 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
99 " /* This is the glibc and POSIX interface; see\n"
100 " VERSIONS for information on the raw system call. */\n"
101 msgstr ""
102 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
103 " /* This is the glibc and POSIX interface; see\n"
104 " VERSIONS for information on the raw system call. */\n"
105
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 msgid ""
110 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
111 msgstr ""
112 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
113
114 #. type: Plain text
115 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
116 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
117 msgid "B<waitid>():"
118 msgstr "B<waitid>():"
119
120 #. (_XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED)
121 #. type: Plain text
122 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
123 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
124 #, no-wrap
125 msgid ""
126 " Since glibc 2.26:\n"
127 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
128 " glibc 2.25 and earlier:\n"
129 " _XOPEN_SOURCE\n"
130 " || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
131 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
132 msgstr ""
133 " Since glibc 2.26:\n"
134 " _XOPEN_SOURCE E<gt>= 500 || _POSIX_C_SOURCE E<gt>= 200809L\n"
135 " glibc 2.25 and earlier:\n"
136 " _XOPEN_SOURCE\n"
137 " || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
138 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
139
140 #. type: SH
141 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
142 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
143 #, no-wrap
144 msgid "DESCRIPTION"
145 msgstr "الوصف"
146
147 #. type: Plain text
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 msgid ""
151 "All of these system calls are used to wait for state changes in a child of "
152 "the calling process, and obtain information about the child whose state has "
153 "changed. A state change is considered to be: the child terminated; the "
154 "child was stopped by a signal; or the child was resumed by a signal. In the "
155 "case of a terminated child, performing a wait allows the system to release "
156 "the resources associated with the child; if a wait is not performed, then "
157 "the terminated child remains in a \"zombie\" state (see NOTES below)."
158 msgstr ""
159 "تُستخدم كل استدعاءات النظام هذه لانتظار تغيرات الحالة في عملية تابعة لعملية "
160 "الاستدعاء، والحصول على معلومات حول العملية التابعة التي تغيرت حالتها. يُعتبر "
161 "تغير الحالة: إنهاء العملية التابعة؛ إيقاف العملية التابعة بواسطة إشارة؛ أو "
162 "استئناف العملية التابعة بواسطة إشارة. في حالة عملية تابعة منتهية، يسمح "
163 "إجراء الانتظار للنظام بتحرير الموارد المرتبطة بالعملية التابعة؛ إذا لم يتم "
164 "إجراء الانتظار، فإن العملية التابعة المنتهية تبقى في حالة \"زومبي\" (انظر "
165 "الملاحظات أدناه)."
166
167 #. type: Plain text
168 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
169 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
170 msgid ""
171 "If a child has already changed state, then these calls return immediately. "
172 "Otherwise, they block until either a child changes state or a signal handler "
173 "interrupts the call (assuming that system calls are not automatically "
174 "restarted using the B<SA_RESTART> flag of B<sigaction>(2)). In the "
175 "remainder of this page, a child whose state has changed and which has not "
176 "yet been waited upon by one of these system calls is termed I<waitable>."
177 msgstr ""
178 "إذا كانت عملية تابعة قد غيرت حالتها بالفعل، فإن هذه الاستدعاءات تعود فورًا. "
179 "وإلا، فإنها تمنع التنفيذ حتى تغير عملية تابعة حالتها أو يقاطع معالج إشارة "
180 "الاستدعاء (بافتراض أن استدعاءات النظام لا يُعاد تشغيلها آليًا باستخدام علم "
181 "B<SA_RESTART> الخاص بـ B<sigaction>(2)). في بقية هذه الصفحة، يُطلق على "
182 "العملية التابعة التي تغيرت حالتها ولم يتم انتظارها بعد بواسطة أحد استدعاءات "
183 "النظام هذه مصطلح I<قابلة للانتظار> I<waitable>."
184
185 #. type: SS
186 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
187 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
188 #, no-wrap
189 msgid "wait() and waitpid()"
190 msgstr "wait() و waitpid()"
191
192 #. type: Plain text
193 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
194 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
195 msgid ""
196 "The B<wait>() system call suspends execution of the calling thread until "
197 "one of its children terminates. The call I<wait(&wstatus)> is equivalent to:"
198 msgstr ""
199 "يعلق استدعاء النظام B<wait>() تنفيذ سلسلة التعليمات المستدعية حتى تنتهي إحدى "
200 "عملياتها التابعة. الاستدعاء I<wait(&wstatus)> مكافئ لـ:"
201
202 #. type: Plain text
203 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
204 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
205 #, no-wrap
206 msgid "waitpid(-1, &wstatus, 0);\n"
207 msgstr "waitpid(-1, &wstatus, 0);\n"
208
209 #. type: Plain text
210 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
211 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
212 msgid ""
213 "The B<waitpid>() system call suspends execution of the calling thread until "
214 "a child specified by I<pid> argument has changed state. By default, "
215 "B<waitpid>() waits only for terminated children, but this behavior is "
216 "modifiable via the I<options> argument, as described below."
217 msgstr ""
218 "يعلق استدعاء النظام B<waitpid>() تنفيذ سلسلة التعليمات المستدعية حتى تغير "
219 "عملية تابعة محددة بواسطة وسيطة I<pid> حالتها. بشكل مبدئي، ينتظر "
220 "B<waitpid>() العمليات التابعة المنتهية فقط، ولكن يمكن تعديل هذا السلوك عبر "
221 "وسيطة I<options>، كما هو موضح أدناه."
222
223 #. type: Plain text
224 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
225 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
226 msgid "The value of I<pid> can be:"
227 msgstr "يمكن أن تكون قيمة I<pid>:"
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 "E<lt> B<-1>"
234 msgstr "E<lt> B<-1>"
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 "meaning wait for any child process whose process group ID is equal to the "
241 "absolute value of I<pid>."
242 msgstr ""
243 "بمعنى انتظار أي عملية تابعة يكون معرف مجموعة العمليات الخاص بها مساويًا "
244 "للقيمة المطلقة لـ I<pid>."
245
246 # type: TP
247 #. type: TP
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 #, no-wrap
251 msgid "B<-1>"
252 msgstr "B<-1>"
253
254 #. type: Plain text
255 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
256 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
257 msgid "meaning wait for any child process."
258 msgstr "بمعنى انتظار أي عملية تابعة."
259
260 #. type: TP
261 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
262 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
263 #, no-wrap
264 msgid "B<0>"
265 msgstr "B<0>"
266
267 #. type: Plain text
268 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
269 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
270 msgid ""
271 "meaning wait for any child process whose process group ID is equal to that "
272 "of the calling process at the time of the call to B<waitpid>()."
273 msgstr ""
274 "بمعنى انتظار أي عملية تابعة يكون معرف مجموعة العمليات الخاص بها مساويًا لمعرف "
275 "مجموعة عمليات عملية الاستدعاء في وقت استدعاء B<waitpid>()."
276
277 #. type: TP
278 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
279 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
280 #, no-wrap
281 msgid "E<gt> B<0>"
282 msgstr "E<gt> B<0>"
283
284 #. type: Plain text
285 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
286 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
287 msgid ""
288 "meaning wait for the child whose process ID is equal to the value of I<pid>."
289 msgstr ""
290 "بمعنى انتظار العملية التابعة التي يكون معرف العملية الخاص بها مساويًا لقيمة "
291 "I<pid>."
292
293 #. type: Plain text
294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
296 msgid ""
297 "The value of I<options> is an OR of zero or more of the following constants:"
298 msgstr "قيمة I<options> هي عملية OR لصفر أو أكثر من الثوابت التالية:"
299
300 #. type: TP
301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
303 #, no-wrap
304 msgid "B<WNOHANG>"
305 msgstr "B<WNOHANG>"
306
307 #. type: Plain text
308 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
309 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
310 msgid "return immediately if no child has exited."
311 msgstr "العودة فورًا إذا لم تخرج أي عملية تابعة."
312
313 #. type: TP
314 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
315 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
316 #, no-wrap
317 msgid "B<WUNTRACED>"
318 msgstr "B<WUNTRACED>"
319
320 #. type: Plain text
321 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
322 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
323 msgid ""
324 "also return if a child has stopped (but not traced via B<ptrace>(2)). "
325 "Status for I<traced> children which have stopped is provided even if this "
326 "option is not specified."
327 msgstr ""
328 "العودة أيضًا إذا توقفت عملية تابعة (ولكن لم يتم تتبعها عبر B<ptrace>(2)). "
329 "يتم توفير الحالة للعمليات التابعة I<المتتبعة> التي توقفت حتى إذا لم يتم "
330 "تحديد هذا الخيار."
331
332 #. type: TP
333 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
334 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
335 #, no-wrap
336 msgid "B<WCONTINUED> (since Linux 2.6.10)"
337 msgstr "B<WCONTINUED> (منذ Linux 2.6.10)"
338
339 #. type: Plain text
340 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
341 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
342 msgid ""
343 "also return if a stopped child has been resumed by delivery of B<SIGCONT>."
344 msgstr ""
345 "العودة أيضًا إذا تم استئناف عملية تابعة متوقفة عن طريق تسليم B<SIGCONT>."
346
347 #. type: Plain text
348 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
349 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
350 msgid "(For Linux-only options, see below.)"
351 msgstr "(للخيارات الخاصة بـ Linux فقط، انظر أدناه.)"
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 "If I<wstatus> is not NULL, B<wait>() and B<waitpid>() store status "
358 "information in the I<int> to which it points. This integer can be inspected "
359 "with the following macros (which take the integer itself as an argument, not "
360 "a pointer to it, as is done in B<wait>() and B<waitpid>()!):"
361 msgstr ""
362 "إذا لم يكن I<wstatus> NULL، يقوم B<wait>() و B<waitpid>() بتخزين معلومات "
363 "الحالة في I<int> الذي يشير إليه. يمكن فحص هذا العدد الصحيح باستخدام وحدات "
364 "الماكرو التالية (التي تأخذ العدد الصحيح نفسه كوسيطة، وليس مؤشرًا إليه، كما هو "
365 "الحال في B<wait>() و B<waitpid>()!):"
366
367 #. type: TP
368 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
369 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
370 #, no-wrap
371 msgid "B<WIFEXITED(>I<wstatus>B<)>"
372 msgstr "B<WIFEXITED(>I<wstatus>B<)>"
373
374 #. type: Plain text
375 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
376 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
377 msgid ""
378 "returns true if the child terminated normally, that is, by calling "
379 "B<exit>(3) or B<_exit>(2), or by returning from main()."
380 msgstr ""
381 "يعيد true إذا انتهت العملية التابعة بشكل طبيعي، أي عن طريق استدعاء "
382 "B<exit>(3) أو B<_exit>(2)، أو عن طريق العودة من main()."
383
384 #. type: TP
385 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
386 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
387 #, no-wrap
388 msgid "B<WEXITSTATUS(>I<wstatus>B<)>"
389 msgstr "B<WEXITSTATUS(>I<wstatus>B<)>"
390
391 #. type: Plain text
392 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
393 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
394 msgid ""
395 "returns the exit status of the child. This consists of the least "
396 "significant 8 bits of the I<status> argument that the child specified in a "
397 "call to B<exit>(3) or B<_exit>(2) or as the argument for a return "
398 "statement in main(). This macro should be employed only if B<WIFEXITED> "
399 "returned true."
400 msgstr ""
401 "يعيد حالة الخروج للعملية التابعة. يتكون هذا من أقل 8 بتات دلالة من وسيطة "
402 "I<status> التي حددتها العملية التابعة في استدعاء لـ B<exit>(3) أو "
403 "B<_exit>(2) أو كوسيطة لعبارة return في main(). يجب استخدام وحدة الماكرو هذه "
404 "فقط إذا أعادت B<WIFEXITED> قيمة true."
405
406 #. type: TP
407 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
408 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
409 #, no-wrap
410 msgid "B<WIFSIGNALED(>I<wstatus>B<)>"
411 msgstr "B<WIFSIGNALED(>I<wstatus>B<)>"
412
413 #. type: Plain text
414 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
415 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
416 msgid "returns true if the child process was terminated by a signal."
417 msgstr "ترجع قيمة صحيحة إذا تم إنهاء العملية التابعة بواسطة إشارة."
418
419 #. type: TP
420 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
421 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
422 #, no-wrap
423 msgid "B<WTERMSIG(>I<wstatus>B<)>"
424 msgstr "B<WTERMSIG(>I<wstatus>B<)>"
425
426 #. type: Plain text
427 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
428 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
429 msgid ""
430 "returns the number of the signal that caused the child process to "
431 "terminate. This macro should be employed only if B<WIFSIGNALED> returned "
432 "true."
433 msgstr ""
434 "ترجع رقم الإشارة التي تسببت في إنهاء العملية التابعة. يجب استخدام هذه الكلية "
435 "فقط إذا أعادت B<WIFSIGNALED> قيمة صحيحة."
436
437 #. type: TP
438 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
439 #: opensuse-tumbleweed
440 #, no-wrap
441 msgid "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
442 msgstr "B<WCOREDUMP(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
443
444 #. type: Plain text
445 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
446 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
447 msgid ""
448 "returns true if the child produced a core dump (see B<core>(5)). This macro "
449 "should be employed only if B<WIFSIGNALED> returned true."
450 msgstr ""
451 "ترجع قيمة صحيحة إذا أنتجت العملية التابعة تفريغًا أساسيًا (انظر B<core>(5)). "
452 "يجب استخدام هذه الكلية فقط إذا أعادت B<WIFSIGNALED> قيمة صحيحة."
453
454 #. type: TP
455 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
456 #: opensuse-tumbleweed
457 #, no-wrap
458 msgid "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
459 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>I< >\\f[R]// POSIX.1-2024\\fR"
460
461 #. type: Plain text
462 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
463 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
464 msgid ""
465 "returns true if the child process was stopped by delivery of a signal; this "
466 "is possible only if the call was done using B<WUNTRACED> or when the child "
467 "is being traced (see B<ptrace>(2))."
468 msgstr ""
469 "ترجع قيمة صحيحة إذا تم إيقاف العملية التابعة بواسطة إشارة؛ هذا ممكن فقط إذا "
470 "تم الاستدعاء باستخدام B<WUNTRACED> أو عندما تكون التابعة قيد التتبع (انظر "
471 "B<ptrace>(2))."
472
473 #. type: TP
474 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
475 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
476 #, no-wrap
477 msgid "B<WSTOPSIG(>I<wstatus>B<)>"
478 msgstr "B<WSTOPSIG(>I<wstatus>B<)>"
479
480 #. type: Plain text
481 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
482 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
483 msgid ""
484 "returns the number of the signal which caused the child to stop. This macro "
485 "should be employed only if B<WIFSTOPPED> returned true."
486 msgstr ""
487 "ترجع رقم الإشارة التي تسببت في إيقاف التابعة. يجب استخدام هذه الكلية فقط إذا "
488 "أعادت B<WIFSTOPPED> قيمة صحيحة."
489
490 #. type: TP
491 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
492 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
493 #, no-wrap
494 msgid "B<WIFCONTINUED(>I<wstatus>B<)>"
495 msgstr "B<WIFCONTINUED(>I<wstatus>B<)>"
496
497 #. type: Plain text
498 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
499 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
500 msgid ""
501 "(since Linux 2.6.10) returns true if the child process was resumed by "
502 "delivery of B<SIGCONT>."
503 msgstr ""
504 "(منذ لينكس 2.6.10) ترجع قيمة صحيحة إذا تم استئناف العملية التابعة بواسطة "
505 "إشارة B<SIGCONT>."
506
507 #. type: SS
508 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
509 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
510 #, no-wrap
511 msgid "waitid()"
512 msgstr "waitid()"
513
514 #. type: Plain text
515 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
516 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
517 msgid ""
518 "The B<waitid>() system call (available since Linux 2.6.9) provides more "
519 "precise control over which child state changes to wait for."
520 msgstr ""
521 "توفّر استدعاء النظام B<waitid>() (المتوفر منذ لينكس 2.6.9) تحكمًا أكثر دقة في "
522 "تغييرات حالة التابعة التي تنتظرها."
523
524 #. type: Plain text
525 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
526 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
527 msgid ""
528 "The I<idtype> and I<id> arguments select the child(ren) to wait for, as "
529 "follows:"
530 msgstr ""
531 "تحدد الوسيطتان I<idtype> و I<id> التابعة (أو التوابع) التي تنتظرها، كما يلي:"
532
533 #. type: TP
534 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
535 #: opensuse-tumbleweed
536 #, no-wrap
537 msgid "I<idtype> == \\f[B]P_PID\\fR"
538 msgstr "I<idtype> == \\f[B]P_PID\\fR"
539
540 #. type: Plain text
541 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
542 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
543 msgid "Wait for the child whose process ID matches I<id>."
544 msgstr "انتظر التابعة التي يتطابق معرف عمليتها مع I<id>."
545
546 #. type: TP
547 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
548 #: opensuse-tumbleweed
549 #, no-wrap
550 msgid "I<idtype> == \\f[B]P_PIDFD\\fR (since Linux 5.4)"
551 msgstr "I<idtype> == \\f[B]P_PIDFD\\fR (منذ لينكس 5.4)"
552
553 #. commit 3695eae5fee0605f316fbaad0b9e3de791d7dfaf
554 #. type: Plain text
555 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
556 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
557 msgid ""
558 "Wait for the child referred to by the PID file descriptor specified in "
559 "I<id>. (See B<pidfd_open>(2) for further information on PID file "
560 "descriptors.)"
561 msgstr ""
562 "انتظر التابعة المشار إليها بواصف ملف PID المحدد في I<id>. (انظر "
563 "B<pidfd_open>(2) لمزيد من المعلومات حول واصفات ملفات PID.)"
564
565 #. type: TP
566 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
567 #: opensuse-tumbleweed
568 #, no-wrap
569 msgid "I<idtype> == \\f[B]P_PGID\\fR"
570 msgstr "I<idtype> == \\f[B]P_PGID\\fR"
571
572 #. commit 821cc7b0b205c0df64cce59aacc330af251fa8f7
573 #. type: Plain text
574 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
575 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
576 msgid ""
577 "Wait for any child whose process group ID matches I<id>. Since Linux 5.4, "
578 "if I<id> is zero, then wait for any child that is in the same process group "
579 "as the caller's process group at the time of the call."
580 msgstr ""
581 "انتظر أي تابعة يتطابق معرف مجموعة عمليتها مع I<id>. منذ لينكس 5.4، إذا كان "
582 "I<id> صفرًا، فانتظر أي تابعة في نفس مجموعة العملية كمجموعة عملية المستدعي وقت "
583 "الاستدعاء."
584
585 #. type: TP
586 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
587 #: opensuse-tumbleweed
588 #, no-wrap
589 msgid "I<idtype> == \\f[B]P_ALL\\fR"
590 msgstr "I<idtype> == \\f[B]P_ALL\\fR"
591
592 #. type: Plain text
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 msgid "Wait for any child; I<id> is ignored."
596 msgstr "انتظر أي تابعة؛ يتم تجاهل I<id>."
597
598 #. type: Plain text
599 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
600 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
601 msgid ""
602 "The child state changes to wait for are specified by ORing one or more of "
603 "the following flags in I<options>:"
604 msgstr ""
605 "يتم تحديد تغييرات حالة التابعة التي تنتظرها عن طريق إجراء عملية OR لواحد أو "
606 "أكثر من الأعلام التالية في I<options>:"
607
608 #. type: TP
609 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
610 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
611 #, no-wrap
612 msgid "B<WEXITED>"
613 msgstr "B<WEXITED>"
614
615 #. type: Plain text
616 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
617 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
618 msgid "Wait for children that have terminated."
619 msgstr "انتظر التوابع التي تم إنهاؤها."
620
621 #. type: TP
622 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
623 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
624 #, no-wrap
625 msgid "B<WSTOPPED>"
626 msgstr "B<WSTOPPED>"
627
628 #. type: Plain text
629 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
630 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
631 msgid "Wait for children that have been stopped by delivery of a signal."
632 msgstr "انتظر التوابع التي تم إيقافها بواسطة إشارة."
633
634 #. type: TP
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid "B<WCONTINUED>"
639 msgstr "B<WCONTINUED>"
640
641 #. type: Plain text
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 msgid ""
645 "Wait for (previously stopped) children that have been resumed by delivery of "
646 "B<SIGCONT>."
647 msgstr ""
648 "انتظر التوابع (الموقوفة سابقًا) التي تم استئنافها بواسطة إشارة B<SIGCONT>."
649
650 #. type: Plain text
651 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
652 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
653 msgid "The following flags may additionally be ORed in I<options>:"
654 msgstr "يمكن أيضًا إجراء عملية OR للأعلام التالية في I<options>:"
655
656 #. type: Plain text
657 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
658 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
659 msgid "As for B<waitpid>()."
660 msgstr "كما هو الحال مع B<waitpid>()."
661
662 #. type: TP
663 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
664 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
665 #, no-wrap
666 msgid "B<WNOWAIT>"
667 msgstr "B<WNOWAIT>"
668
669 #. type: Plain text
670 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
671 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
672 msgid ""
673 "Leave the child in a waitable state; a later wait call can be used to again "
674 "retrieve the child status information."
675 msgstr ""
676 "اترك التابعة في حالة قابلة للانتظار؛ يمكن استخدام استدعاء انتظار لاحق "
677 "لاسترجاع معلومات حالة التابعة مرة أخرى."
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 "Upon successful return, B<waitid>() fills in the following fields of the "
684 "I<siginfo_t> structure pointed to by I<infop>:"
685 msgstr ""
686 "عند الإرجاع الناجح، تملأ B<waitid>() الحقول التالية من بنية I<siginfo_t> "
687 "المشار إليها بواسطة I<infop>:"
688
689 #. type: TP
690 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
691 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
692 #, no-wrap
693 msgid "I<si_pid>"
694 msgstr "I<si_pid>"
695
696 #. type: Plain text
697 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
698 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
699 msgid "The process ID of the child."
700 msgstr "معرف العملية (PID) للطفل."
701
702 #. type: TP
703 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
704 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
705 #, no-wrap
706 msgid "I<si_uid>"
707 msgstr "I<si_uid>"
708
709 #. type: Plain text
710 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
711 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
712 msgid ""
713 "The real user ID of the child. (This field is not set on most other "
714 "implementations.)"
715 msgstr ""
716 "معرف المستخدم الحقيقي للطفل. (لا يُضبط هذا الحقل في معظم التطبيقات الأخرى.)"
717
718 #. type: TP
719 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
720 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
721 #, no-wrap
722 msgid "I<si_signo>"
723 msgstr "I<si_signo>"
724
725 #. type: Plain text
726 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
727 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
728 msgid "Always set to B<SIGCHLD>."
729 msgstr "يُضبط دائمًا على B<SIGCHLD>."
730
731 #. type: TP
732 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
733 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
734 #, no-wrap
735 msgid "I<si_status>"
736 msgstr "I<si_status>"
737
738 #. type: Plain text
739 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
740 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
741 msgid ""
742 "Either the exit status of the child, as given to B<_exit>(2) (or "
743 "B<exit>(3)), or the signal that caused the child to terminate, stop, or "
744 "continue. The I<si_code> field can be used to determine how to interpret "
745 "this field."
746 msgstr ""
747 "إما حالة الخروج للطفل، كما أعطيت لـ B<_exit>(2) (أو B<exit>(3))، أو الإشارة "
748 "التي تسببت في إنهاء الطفل أو إيقافه أو استمراره. يمكن استخدام حقل I<si_code> "
749 "لتحديد كيفية تفسير هذا الحقل."
750
751 #. type: TP
752 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
753 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
754 #, no-wrap
755 msgid "I<si_code>"
756 msgstr "I<si_code>"
757
758 #. type: Plain text
759 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
760 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
761 msgid ""
762 "Set to one of: B<CLD_EXITED> (child called B<_exit>(2)); B<CLD_KILLED> "
763 "(child killed by signal); B<CLD_DUMPED> (child killed by signal, and dumped "
764 "core); B<CLD_STOPPED> (child stopped by signal); B<CLD_TRAPPED> (traced "
765 "child has trapped); or B<CLD_CONTINUED> (child continued by B<SIGCONT>)."
766 msgstr ""
767 "يُضبط على واحد من: B<CLD_EXITED> (استدعى الطفل B<_exit>(2))؛ B<CLD_KILLED> "
768 "(قُتل الطفل بإشارة)؛ B<CLD_DUMPED> (قُتل الطفل بإشارة، وأفرغ النواة)؛ "
769 "B<CLD_STOPPED> (أُوقف الطفل بإشارة)؛ B<CLD_TRAPPED> (الطفل المتعقب قد حوصر)؛ "
770 "أو B<CLD_CONTINUED> (استمر الطفل بواسطة B<SIGCONT>)."
771
772 #. type: Plain text
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 msgid ""
776 "If B<WNOHANG> was specified in I<options> and there were no children in a "
777 "waitable state, then B<waitid>() returns 0 immediately and the state of the "
778 "I<siginfo_t> structure pointed to by I<infop> depends on the "
779 "implementation. To (portably) distinguish this case from that where a child "
780 "was in a waitable state, zero out the I<si_pid> field before the call and "
781 "check for a nonzero value in this field after the call returns."
782 msgstr ""
783 "إذا تم تحديد B<WNOHANG> في I<options> ولم يكن هناك أطفال في حالة قابلة "
784 "للانتظار، فإن B<waitid>() تُرجع 0 فورًا وتعتمد حالة بنية I<siginfo_t> المشار "
785 "إليها بواسطة I<infop> على التطبيق. للتمييز (بشكل محمول) بين هذه الحالة "
786 "والحالة التي كان فيها طفل في حالة قابلة للانتظار، امسح حقل I<si_pid> قبل "
787 "الاستدعاء وتحقق من قيمة غير صفرية في هذا الحقل بعد عودة الاستدعاء."
788
789 #. POSIX.1-2001 leaves this possibility unspecified; most
790 #. implementations (including Linux) zero out the structure
791 #. in this case, but at least one implementation (AIX 5.1)
792 #. does not -- MTK Nov 04
793 #. type: Plain text
794 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
795 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
796 msgid ""
797 "POSIX.1-2008 Technical Corrigendum 1 (2013) adds the requirement that when "
798 "B<WNOHANG> is specified in I<options> and there were no children in a "
799 "waitable state, then B<waitid>() should zero out the I<si_pid> and "
800 "I<si_signo> fields of the structure. On Linux and other implementations "
801 "that adhere to this requirement, it is not necessary to zero out the "
802 "I<si_pid> field before calling B<waitid>(). However, not all "
803 "implementations follow the POSIX.1 specification on this point."
804 msgstr ""
805 "يضيف التصحيح الفني POSIX.1-2008 رقم 1 (2013) الشرط أنه عند تحديد B<WNOHANG> "
806 "في I<options> ولم يكن هناك أطفال في حالة قابلة للانتظار، يجب على B<waitid>() "
807 "مسح حقلي I<si_pid> و I<si_signo> من البنية. في لينكس والتطبيقات الأخرى التي "
808 "تلتزم بهذا الشرط، ليس من الضروري مسح حقل I<si_pid> قبل استدعاء B<waitid>(). "
809 "ومع ذلك، لا تتبع جميع التطبيقات مواصفات POSIX.1 في هذه النقطة."
810
811 #. type: SH
812 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
813 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
814 #, no-wrap
815 msgid "RETURN VALUE"
816 msgstr "قيمة الإرجاع"
817
818 #. type: Plain text
819 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
820 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
821 msgid ""
822 "B<wait>(): on success, returns the process ID of the terminated child; on "
823 "failure, -1 is returned."
824 msgstr ""
825 "B<wait>(): عند النجاح، تُرجع معرف العملية للطفل المنتهي؛ عند الفشل، تُرجع -1."
826
827 #. type: Plain text
828 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
829 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
830 msgid ""
831 "B<waitpid>(): on success, returns the process ID of the child whose state "
832 "has changed; if B<WNOHANG> was specified and one or more child(ren) "
833 "specified by I<pid> exist, but have not yet changed state, then 0 is "
834 "returned. On failure, -1 is returned."
835 msgstr ""
836 "B<waitpid>(): عند النجاح، تُرجع معرف العملية للطفل الذي تغيرت حالته؛ إذا تم "
837 "تحديد B<WNOHANG> وكان طفل أو أكثر محدد بواسطة I<pid> موجودًا، لكنه لم يغير "
838 "حالته بعد، فتُرجع 0. عند الفشل، تُرجع -1."
839
840 #. FIXME As reported by Vegard Nossum, if infop is NULL, then waitid()
841 #. returns the PID of the child. Either this is a bug, or it is intended
842 #. behavior that needs to be documented. See my Jan 2009 LKML mail
843 #. "waitid() return value strangeness when infop is NULL".
844 #. type: Plain text
845 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
846 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
847 msgid ""
848 "B<waitid>(): returns 0 on success or if B<WNOHANG> was specified and no "
849 "child(ren) specified by I<id> has yet changed state; on failure, -1 is "
850 "returned."
851 msgstr ""
852 "B<waitid>(): تُرجع 0 عند النجاح أو إذا تم تحديد B<WNOHANG> ولم يغير أي طفل "
853 "محدد بواسطة I<id> حالته بعد؛ عند الفشل، تُرجع -1."
854
855 #. type: Plain text
856 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
857 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
858 msgid "On failure, each of these calls sets I<errno> to indicate the error."
859 msgstr "عند الفشل، يضبط كل من هذه الاستدعاءات I<errno> للإشارة إلى الخطأ."
860
861 #. type: SH
862 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
863 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
864 #, no-wrap
865 msgid "ERRORS"
866 msgstr "الأخطاء"
867
868 #. type: TP
869 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
870 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
871 #, no-wrap
872 msgid "B<EAGAIN>"
873 msgstr "B<EAGAIN>"
874
875 #. type: Plain text
876 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
877 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
878 msgid ""
879 "The PID file descriptor specified in I<id> is nonblocking and the process "
880 "that it refers to has not terminated."
881 msgstr ""
882 "وصف ملف PID المحدد في I<id> غير محظور والعملية التي يشير إليها لم تنته."
883
884 #. type: TP
885 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
886 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
887 #, no-wrap
888 msgid "B<ECHILD>"
889 msgstr "B<ECHILD>"
890
891 #. type: Plain text
892 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
893 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
894 msgid ""
895 "(for B<wait>()) The calling process does not have any unwaited-for children."
896 msgstr "(لـ B<wait>()) لا تحتوي العملية المستدعية على أي أطفال غير منتظرين."
897
898 #. type: Plain text
899 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
900 #: opensuse-tumbleweed
901 msgid ""
902 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
903 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
904 "not a child of the calling process. (This can happen for one's own child if "
905 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux\\ "
906 "Notes> section about threads.)"
907 msgstr ""
908 "(لـ B<waitpid>() أو B<waitid>()) العملية المحددة بواسطة I<pid> "
909 "(B<waitpid>()) أو I<idtype> و I<id> (B<waitid>()) غير موجودة أو ليست ابنة "
910 "للعملية المستدعية. (يمكن أن يحدث هذا لابنة المرء إذا تم تعيين الإجراء لـ "
911 "B<SIGCHLD> إلى B<SIG_IGN>. انظر أيضًا قسم I<ملاحظات\\ لينكس> حول الخيوط.)"
912
913 #. type: TP
914 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
915 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
916 #, no-wrap
917 msgid "B<EINTR>"
918 msgstr "B<EINTR>"
919
920 #. type: Plain text
921 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
922 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
923 msgid ""
924 "B<WNOHANG> was not set and an unblocked signal or a B<SIGCHLD> was caught; "
925 "see B<signal>(7)."
926 msgstr ""
927 "لم يُضبط B<WNOHANG> والتقطت إشارة غير محظورة أو B<SIGCHLD>؛ انظر B<signal>(7)."
928
929 #. type: TP
930 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
931 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
932 #, no-wrap
933 msgid "B<EINVAL>"
934 msgstr "B<EINVAL>"
935
936 #. type: Plain text
937 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
938 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
939 msgid "The I<options> argument was invalid."
940 msgstr "وسيطة I<options> غير صالحة."
941
942 #. type: TP
943 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
944 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
945 #, no-wrap
946 msgid "B<ESRCH>"
947 msgstr "B<ESRCH>"
948
949 #. type: Plain text
950 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
951 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
952 msgid "(for B<wait>() or B<waitpid>()) I<pid> is equal to B<INT_MIN>."
953 msgstr "(لـ B<wait>() أو B<waitpid>()) I<pid> يساوي B<INT_MIN>."
954
955 #. type: SH
956 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
957 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
958 #, no-wrap
959 msgid "VERSIONS"
960 msgstr "الإصدارات"
961
962 #. type: SS
963 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
964 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
965 #, no-wrap
966 msgid "C library/kernel differences"
967 msgstr "الاختلافات بين مكتبة C والنواة"
968
969 #. type: Plain text
970 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
971 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
972 msgid ""
973 "B<wait>() is actually a library function that (in glibc) is implemented as "
974 "a call to B<wait4>(2)."
975 msgstr ""
976 "B<wait>() هي في الواقع دالة مكتبة (في glibc) تُنفذ كاستدعاء لـ B<wait4>(2)."
977
978 #. e.g., i386 has the system call, but not x86-64
979 #. type: Plain text
980 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
981 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
982 msgid ""
983 "On some architectures, there is no B<waitpid>() system call; instead, this "
984 "interface is implemented via a C library wrapper function that calls "
985 "B<wait4>(2)."
986 msgstr ""
987 "في بعض البنى، لا يوجد استدعاء نظام B<waitpid>()؛ بدلاً من ذلك، تُنفذ هذه "
988 "الواجهة عبر دالة غلاف لمكتبة C تستدعي B<wait4>(2)."
989
990 #. type: Plain text
991 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
992 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
993 msgid ""
994 "The raw B<waitid>() system call takes a fifth argument, of type I<struct "
995 "rusage\\ *>. If this argument is non-NULL, then it is used to return "
996 "resource usage information about the child, in the same manner as "
997 "B<wait4>(2). See B<getrusage>(2) for details."
998 msgstr ""
999 "يأخذ استدعاء النظام الخام B<waitid>() وسيطة خامسة، من النوع I<struct "
1000 "rusage\\ *>. إذا كانت هذه الوسيطة غير NULL، فتُستخدم لإرجاع معلومات استخدام "
1001 "الموارد عن الولد، بنفس طريقة B<wait4>(2). انظر B<getrusage>(2) للتفاصيل."
1002
1003 #. type: SH
1004 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1005 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1006 #, no-wrap
1007 msgid "STANDARDS"
1008 msgstr "المعايير"
1009
1010 #. type: Plain text
1011 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
1012 #: opensuse-tumbleweed
1013 msgid "POSIX.1-2024."
1014 msgstr "POSIX.1-2024."
1015
1016 #. type: SH
1017 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1018 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1019 #, no-wrap
1020 msgid "HISTORY"
1021 msgstr "التاريخ"
1022
1023 #. type: Plain text
1024 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1025 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1026 msgid "SVr4, 4.3BSD, POSIX.1-2001."
1027 msgstr "SVr4، 4.3BSD، POSIX.1-2001."
1028
1029 #. type: SH
1030 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1031 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1032 #, no-wrap
1033 msgid "NOTES"
1034 msgstr "ملاحظات"
1035
1036 #. type: Plain text
1037 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1038 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1039 msgid ""
1040 "A child that terminates, but has not been waited for becomes a \"zombie\". "
1041 "The kernel maintains a minimal set of information about the zombie process "
1042 "(PID, termination status, resource usage information) in order to allow the "
1043 "parent to later perform a wait to obtain information about the child. As "
1044 "long as a zombie is not removed from the system via a wait, it will consume "
1045 "a slot in the kernel process table, and if this table fills, it will not be "
1046 "possible to create further processes. If a parent process terminates, then "
1047 "its \"zombie\" children (if any) are adopted by B<init>(1), (or by the "
1048 "nearest \"subreaper\" process as defined through the use of the B<prctl>(2) "
1049 "B<PR_SET_CHILD_SUBREAPER> operation); B<init>(1) automatically performs a "
1050 "wait to remove the zombies."
1051 msgstr ""
1052 "الولد الذي ينتهي، ولكن لم يُنتظر له، يصبح \"زومبي\". تحتفظ النواة بمجموعة "
1053 "دنيا من المعلومات حول عملية الزومبي (PID، حالة الإنهاء، معلومات استخدام "
1054 "الموارد) للسماح للأب لاحقًا بإجراء انتظار للحصول على معلومات عن الولد. طالما "
1055 "لم يُزل الزومبي من النظام عبر انتظار، فسيستهلك خانة في جدول عمليات النواة، "
1056 "وإذا امتلأ هذا الجدول، فلن يكون من الممكن إنشاء عمليات أخرى. إذا انتهت عملية "
1057 "أب، فإن أولادها \"الزومبي\" (إن وجدوا) يُتبنون بواسطة B<init>(1)، (أو بواسطة "
1058 "أقرب عملية \"subreaper\" كما هو محدد باستخدام عملية B<prctl>(2) "
1059 "B<PR_SET_CHILD_SUBREAPER>)؛ ينفذ B<init>(1) آليًا انتظارًا لإزالة الزومبي."
1060
1061 #. type: Plain text
1062 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1063 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1064 msgid ""
1065 "POSIX.1-2001 specifies that if the disposition of B<SIGCHLD> is set to "
1066 "B<SIG_IGN> or the B<SA_NOCLDWAIT> flag is set for B<SIGCHLD> (see "
1067 "B<sigaction>(2)), then children that terminate do not become zombies and a "
1068 "call to B<wait>() or B<waitpid>() will block until all children have "
1069 "terminated, and then fail with I<errno> set to B<ECHILD>. (The original "
1070 "POSIX standard left the behavior of setting B<SIGCHLD> to B<SIG_IGN> "
1071 "unspecified. Note that even though the default disposition of B<SIGCHLD> is "
1072 "\"ignore\", explicitly setting the disposition to B<SIG_IGN> results in "
1073 "different treatment of zombie process children.)"
1074 msgstr ""
1075 "تحدد POSIX.1-2001 أنه إذا ضُبط تصرف B<SIGCHLD> على B<SIG_IGN> أو ضُبط العلم "
1076 "B<SA_NOCLDWAIT> لـ B<SIGCHLD> (انظر B<sigaction>(2))، فإن الأولاد الذين "
1077 "ينتهون لا يصبحون زومبي وسيحظر استدعاء B<wait>() أو B<waitpid>() حتى ينتهي "
1078 "جميع الأولاد، ثم يفشل مع ضبط I<errno> على B<ECHILD>. (ترك معيار POSIX الأصلي "
1079 "سلوك ضبط B<SIGCHLD> على B<SIG_IGN> غير محدد. لاحظ أنه على الرغم من أن التصرف "
1080 "المبدئي لـ B<SIGCHLD> هو \"تجاهل\"، فإن ضبط التصرف صراحةً على B<SIG_IGN> يؤدي "
1081 "إلى معالجة مختلفة لأولاد عملية الزومبي.)"
1082
1083 #. type: Plain text
1084 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1085 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1086 msgid ""
1087 "Linux 2.6 conforms to the POSIX requirements. However, Linux 2.4 (and "
1088 "earlier) does not: if a B<wait>() or B<waitpid>() call is made while "
1089 "B<SIGCHLD> is being ignored, the call behaves just as though B<SIGCHLD> were "
1090 "not being ignored, that is, the call blocks until the next child terminates "
1091 "and then returns the process ID and status of that child."
1092 msgstr ""
1093 "يتوافق لينكس 2.6 مع متطلبات POSIX. ومع ذلك، لا يفعل لينكس 2.4 (والإصدارات "
1094 "الأقدم) ذلك: إذا أُجري استدعاء B<wait>() أو B<waitpid>() أثناء تجاهل "
1095 "B<SIGCHLD>، يتصرف الاستدعاء تمامًا كما لو لم يُتجاهل B<SIGCHLD>، أي أن "
1096 "الاستدعاء يحظر حتى ينتهي الولد التالي ثم يُرجع معرف العملية وحالة ذلك الولد."
1097
1098 #. type: SS
1099 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1100 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1101 #, no-wrap
1102 msgid "Linux notes"
1103 msgstr "ملاحظات لينكس"
1104
1105 #. type: Plain text
1106 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1107 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1108 msgid ""
1109 "In the Linux kernel, a kernel-scheduled thread is not a distinct construct "
1110 "from a process. Instead, a thread is simply a process that is created using "
1111 "the Linux-unique B<clone>(2) system call; other routines such as the "
1112 "portable B<pthread_create>(3) call are implemented using B<clone>(2). "
1113 "Before Linux 2.4, a thread was just a special case of a process, and as a "
1114 "consequence one thread could not wait on the children of another thread, "
1115 "even when the latter belongs to the same thread group. However, POSIX "
1116 "prescribes such functionality, and since Linux 2.4 a thread can, and by "
1117 "default will, wait on children of other threads in the same thread group."
1118 msgstr ""
1119 "في نواة لينكس، الخيط المجدول بواسطة النواة ليس بناءً متميزًا عن العملية. بدلاً "
1120 "من ذلك، الخيط هو ببساطة عملية تُنشأ باستخدام استدعاء النظام الفريد للينكس "
1121 "B<clone>(2)؛ تُنفذ الإجراءات الأخرى مثل الاستدعاء المحمول "
1122 "B<pthread_create>(3) باستخدام B<clone>(2). قبل لينكس 2.4، كان الخيط مجرد "
1123 "حالة خاصة من العملية، وكنتيجة لذلك، لم يستطع خيط واحد الانتظار على أولاد خيط "
1124 "آخر، حتى عندما ينتمي الأخير إلى نفس مجموعة الخيوط. ومع ذلك، يصف POSIX هذه "
1125 "الوظيفة، ومنذ لينكس 2.4 يمكن للخيط، وسينتظر مبدئيًا، على أولاد خيوط أخرى في "
1126 "نفس مجموعة الخيوط."
1127
1128 #. commit 91c4e8ea8f05916df0c8a6f383508ac7c9e10dba
1129 #. type: Plain text
1130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1132 msgid ""
1133 "The following Linux-specific I<options> are for use with children created "
1134 "using B<clone>(2); they can also, since Linux 4.7, be used with B<waitid>():"
1135 msgstr ""
1136 "I<options> التالية الخاصة بلينكس مخصصة للاستخدام مع الأولاد المنشئين "
1137 "باستخدام B<clone>(2)؛ يمكن أيضًا، منذ لينكس 4.7، استخدامها مع B<waitid>():"
1138
1139 #. type: TP
1140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1142 #, no-wrap
1143 msgid "B<__WCLONE>"
1144 msgstr "B<__WCLONE>"
1145
1146 #. since 0.99pl10
1147 #. type: Plain text
1148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1150 msgid ""
1151 "Wait for \"clone\" children only. If omitted, then wait for \"non-clone\" "
1152 "children only. (A \"clone\" child is one which delivers no signal, or a "
1153 "signal other than B<SIGCHLD> to its parent upon termination.) This option "
1154 "is ignored if B<__WALL> is also specified."
1155 msgstr ""
1156 "انتظر أولاد \"clone\" فقط. إذا حُذف، فانتظر أولاد \"non-clone\" فقط. (الولد "
1157 "\"clone\" هو الذي لا يُسلم إشارة، أو إشارة غير B<SIGCHLD> إلى والده عند "
1158 "الإنهاء.) يُتجاهل هذا الخيار إذا حُدد B<__WALL> أيضًا."
1159
1160 #. type: TP
1161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1163 #, no-wrap
1164 msgid "B<__WALL> (since Linux 2.4)"
1165 msgstr "B<__WALL> (منذ لينكس 2.4)"
1166
1167 #. since patch-2.3.48
1168 #. type: Plain text
1169 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1170 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1171 msgid "Wait for all children, regardless of type (\"clone\" or \"non-clone\")."
1172 msgstr ""
1173 "انتظر جميع العمليات الابنة، بغض النظر عن النوع (مستنسخة أو غير مستنسخة)."
1174
1175 #. type: TP
1176 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1177 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1178 #, no-wrap
1179 msgid "B<__WNOTHREAD> (since Linux 2.4)"
1180 msgstr "B<__WNOTHREAD> (منذ لينكس 2.4)"
1181
1182 #. since patch-2.4.0-test8
1183 #. type: Plain text
1184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1186 msgid ""
1187 "Do not wait for children of other threads in the same thread group. This "
1188 "was the default before Linux 2.4."
1189 msgstr ""
1190 "لا تنتظر عمليات ابنة لخيوط أخرى في نفس مجموعة الخيوط. كان هذا هو المبدئي قبل "
1191 "لينكس 2.4."
1192
1193 #. commit bf959931ddb88c4e4366e96dd22e68fa0db9527c
1194 #. prevents cases where an unreapable zombie is created if
1195 #. /sbin/init doesn't use __WALL.
1196 #. type: Plain text
1197 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1198 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1199 msgid ""
1200 "Since Linux 4.7, the B<__WALL> flag is automatically implied if the child is "
1201 "being ptraced."
1202 msgstr ""
1203 "منذ لينكس 4.7، يُفترض آليًا العلم B<__WALL> إذا كانت العملية الابنة قيد التتبع "
1204 "(ptraced)."
1205
1206 #. type: SH
1207 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1208 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1209 #, no-wrap
1210 msgid "BUGS"
1211 msgstr "العلل"
1212
1213 #. type: Plain text
1214 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1215 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1216 msgid ""
1217 "According to POSIX.1-2008, an application calling B<waitid>() must ensure "
1218 "that I<infop> points to a I<siginfo_t> structure (i.e., that it is a non-"
1219 "null pointer). On Linux, if I<infop> is NULL, B<waitid>() succeeds, and "
1220 "returns the process ID of the waited-for child. Applications should avoid "
1221 "relying on this inconsistent, nonstandard, and unnecessary feature."
1222 msgstr ""
1223 "وفقًا لـ POSIX.1-2008، يجب على التطبيق الذي يستدعي B<waitid>() التأكد من أن "
1224 "I<infop> يشير إلى بنية I<siginfo_t> (أي أنه مؤشر غير فارغ). على لينكس، إذا "
1225 "كان I<infop> فارغًا (NULL)، فإن B<waitid>() ينجح ويعيد معرف العملية للعملية "
1226 "الابنة المنتظرة. يجب على التطبيقات تجنب الاعتماد على هذه الميزة غير المتسقة "
1227 "وغير القياسية وغير الضرورية."
1228
1229 #. type: SH
1230 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1231 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1232 #, no-wrap
1233 msgid "EXAMPLES"
1234 msgstr "أمثلة"
1235
1236 #. fork.2 refers to this example program.
1237 #. type: Plain text
1238 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1239 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1240 msgid ""
1241 "The following program demonstrates the use of B<fork>(2) and B<waitpid>(). "
1242 "The program creates a child process. If no command-line argument is "
1243 "supplied to the program, then the child suspends its execution using "
1244 "B<pause>(2), to allow the user to send signals to the child. Otherwise, if "
1245 "a command-line argument is supplied, then the child exits immediately, using "
1246 "the integer supplied on the command line as the exit status. The parent "
1247 "process executes a loop that monitors the child using B<waitpid>(), and uses "
1248 "the W*() macros described above to analyze the wait status value."
1249 msgstr ""
1250 "يوضح البرنامج التالي استخدام B<fork>(2) و B<waitpid>(). ينشئ البرنامج عملية "
1251 "ابنة. إذا لم يُوفر وسيط سطر أوامر للبرنامج، فإن العملية الابنة تعلق تنفيذها "
1252 "باستخدام B<pause>(2)، للسماح للمستخدم بإرسال إشارات إلى الابنة. خلاف ذلك، "
1253 "إذا وُفر وسيط سطر أوامر، فإن العملية الابنة تخرج فورًا، باستخدام العدد الصحيح "
1254 "المقدم في سطر الأوامر كحالة خروج. تنفذ العملية الأم حلقة تراقب الابنة "
1255 "باستخدام B<waitpid>()، وتستخدم وحدات الماكرو W*() الموصوفة أعلاه لتحليل قيمة "
1256 "حالة الانتظار."
1257
1258 #. type: Plain text
1259 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1260 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1261 msgid "The following shell session demonstrates the use of the program:"
1262 msgstr "توضح جلسة الشل التالية استخدام البرنامج:"
1263
1264 #. type: Plain text
1265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1267 #, no-wrap
1268 msgid ""
1269 "$B< ./a.out &>\n"
1270 "Child PID is 32360\n"
1271 "[1] 32359\n"
1272 "$B< kill -STOP 32360>\n"
1273 "stopped by signal 19\n"
1274 "$B< kill -CONT 32360>\n"
1275 "continued\n"
1276 "$B< kill -TERM 32360>\n"
1277 "killed by signal 15\n"
1278 "[1]+ Done ./a.out\n"
1279 "$\n"
1280 msgstr ""
1281 "$B< ./a.out &>\n"
1282 "Child PID is 32360\n"
1283 "[1] 32359\n"
1284 "$B< kill -STOP 32360>\n"
1285 "stopped by signal 19\n"
1286 "$B< kill -CONT 32360>\n"
1287 "continued\n"
1288 "$B< kill -TERM 32360>\n"
1289 "killed by signal 15\n"
1290 "[1]+ Done ./a.out\n"
1291 "$\n"
1292
1293 #. type: SS
1294 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1295 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1296 #, no-wrap
1297 msgid "Program source"
1298 msgstr "مصدر البرنامج"
1299
1300 #. type: Plain text
1301 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1302 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1303 #, no-wrap
1304 msgid ""
1305 "#include E<lt>stdint.hE<gt>\n"
1306 "#include E<lt>stdio.hE<gt>\n"
1307 "#include E<lt>stdlib.hE<gt>\n"
1308 "#include E<lt>sys/types.hE<gt>\n"
1309 "#include E<lt>sys/wait.hE<gt>\n"
1310 "#include E<lt>unistd.hE<gt>\n"
1311 "\\&\n"
1312 "int\n"
1313 "main(int argc, char *argv[])\n"
1314 "{\n"
1315 " int wstatus;\n"
1316 " pid_t cpid, w;\n"
1317 "\\&\n"
1318 " cpid = fork();\n"
1319 " if (cpid == -1) {\n"
1320 " perror(\"fork\");\n"
1321 " exit(EXIT_FAILURE);\n"
1322 " }\n"
1323 "\\&\n"
1324 " if (cpid == 0) { /* Code executed by child */\n"
1325 " printf(\"Child PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
1326 " if (argc == 1)\n"
1327 " pause(); /* Wait for signals */\n"
1328 " _exit(atoi(argv[1]));\n"
1329 "\\&\n"
1330 " } else { /* Code executed by parent */\n"
1331 " do {\n"
1332 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1333 " if (w == -1) {\n"
1334 " perror(\"waitpid\");\n"
1335 " exit(EXIT_FAILURE);\n"
1336 " }\n"
1337 "\\&\n"
1338 " if (WIFEXITED(wstatus)) {\n"
1339 " printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1340 " } else if (WIFSIGNALED(wstatus)) {\n"
1341 " printf(\"killed by signal %d\\[rs]n\", WTERMSIG(wstatus));\n"
1342 " } else if (WIFSTOPPED(wstatus)) {\n"
1343 " printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1344 " } else if (WIFCONTINUED(wstatus)) {\n"
1345 " printf(\"continued\\[rs]n\");\n"
1346 " }\n"
1347 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1348 " exit(EXIT_SUCCESS);\n"
1349 " }\n"
1350 "}\n"
1351 msgstr ""
1352 "#include E<lt>stdint.hE<gt>\n"
1353 "#include E<lt>stdio.hE<gt>\n"
1354 "#include E<lt>stdlib.hE<gt>\n"
1355 "#include E<lt>sys/types.hE<gt>\n"
1356 "#include E<lt>sys/wait.hE<gt>\n"
1357 "#include E<lt>unistd.hE<gt>\n"
1358 "\\&\n"
1359 "int\n"
1360 "main(int argc, char *argv[])\n"
1361 "{\n"
1362 " int wstatus;\n"
1363 " pid_t cpid, w;\n"
1364 "\\&\n"
1365 " cpid = fork();\n"
1366 " if (cpid == -1) {\n"
1367 " perror(\"fork\");\n"
1368 " exit(EXIT_FAILURE);\n"
1369 " }\n"
1370 "\\&\n"
1371 " if (cpid == 0) { /* Code executed by child */\n"
1372 " printf(\"Child PID is %jd\\[rs]n\", (intmax_t) getpid());\n"
1373 " if (argc == 1)\n"
1374 " pause(); /* Wait for signals */\n"
1375 " _exit(atoi(argv[1]));\n"
1376 "\\&\n"
1377 " } else { /* Code executed by parent */\n"
1378 " do {\n"
1379 " w = waitpid(cpid, &wstatus, WUNTRACED | WCONTINUED);\n"
1380 " if (w == -1) {\n"
1381 " perror(\"waitpid\");\n"
1382 " exit(EXIT_FAILURE);\n"
1383 " }\n"
1384 "\\&\n"
1385 " if (WIFEXITED(wstatus)) {\n"
1386 " printf(\"exited, status=%d\\[rs]n\", WEXITSTATUS(wstatus));\n"
1387 " } else if (WIFSIGNALED(wstatus)) {\n"
1388 " printf(\"killed by signal %d\\[rs]n\", WTERMSIG(wstatus));\n"
1389 " } else if (WIFSTOPPED(wstatus)) {\n"
1390 " printf(\"stopped by signal %d\\[rs]n\", WSTOPSIG(wstatus));\n"
1391 " } else if (WIFCONTINUED(wstatus)) {\n"
1392 " printf(\"continued\\[rs]n\");\n"
1393 " }\n"
1394 " } while (!WIFEXITED(wstatus) && !WIFSIGNALED(wstatus));\n"
1395 " exit(EXIT_SUCCESS);\n"
1396 " }\n"
1397 "}\n"
1398
1399 #. SRC END
1400 #. type: SH
1401 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1402 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1403 #, no-wrap
1404 msgid "SEE ALSO"
1405 msgstr "انظر أيضًا"
1406
1407 #. type: Plain text
1408 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
1409 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
1410 msgid ""
1411 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1412 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1413 "B<core>(5), B<credentials>(7), B<signal>(7)"
1414 msgstr ""
1415 "B<_exit>(2), B<clone>(2), B<fork>(2), B<kill>(2), B<ptrace>(2), "
1416 "B<sigaction>(2), B<signal>(2), B<wait4>(2), B<pthread_create>(3), "
1417 "B<core>(5), B<credentials>(7), B<signal>(7)"
1418
1419 #. type: TH
1420 #: debian-trixie
1421 #, no-wrap
1422 msgid "2024-06-15"
1423 msgstr "15 يونيو 2024"
1424
1425 #. type: TH
1426 #: debian-trixie
1427 #, no-wrap
1428 msgid "Linux man-pages 6.9.1"
1429 msgstr "صفحات دليل لينكس 6.9.1"
1430
1431 #. type: Plain text
1432 #: debian-trixie
1433 msgid "Standard C library (I<libc>, I<-lc>)"
1434 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
1435
1436 #. type: Plain text
1437 #: debian-trixie
1438 #, no-wrap
1439 msgid ""
1440 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1441 " /* This is the glibc and POSIX interface; see\n"
1442 " NOTES for information on the raw system call. */\n"
1443 msgstr ""
1444 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1445 " /* هذه هي واجهة glibc و POSIX؛ انظر\n"
1446 " الملاحظات للحصول على معلومات حول استدعاء النظام الخام. */\n"
1447
1448 #. type: TP
1449 #: debian-trixie fedora-44 fedora-rawhide
1450 #, no-wrap
1451 msgid "B<WCOREDUMP(>I<wstatus>B<)>"
1452 msgstr "B<WCOREDUMP(>I<wstatus>B<)>"
1453
1454 #. type: Plain text
1455 #: debian-trixie fedora-44 fedora-rawhide
1456 msgid ""
1457 "This macro is not specified in POSIX.1-2001 and is not available on some "
1458 "UNIX implementations (e.g., AIX, SunOS). Therefore, enclose its use inside "
1459 "I<#ifdef WCOREDUMP ... #endif>."
1460 msgstr ""
1461 "لم تُحدد وحدة الماكرو هذه في POSIX.1-2001 وهي غير متوفرة في بعض تطبيقات UNIX "
1462 "(مثل AIX، SunOS). لذلك، ضمّن استخدامها داخل I<#ifdef WCOREDUMP ... #endif>."
1463
1464 #. type: TP
1465 #: debian-trixie fedora-44 fedora-rawhide
1466 #, no-wrap
1467 msgid "B<WIFSTOPPED(>I<wstatus>B<)>"
1468 msgstr "B<WIFSTOPPED(>I<wstatus>B<)>"
1469
1470 #. type: TP
1471 #: debian-trixie fedora-44 fedora-rawhide
1472 #, no-wrap
1473 msgid "I<idtype> == B<P_PID>"
1474 msgstr "I<idtype> == B<P_PID>"
1475
1476 #. type: TP
1477 #: debian-trixie fedora-44 fedora-rawhide
1478 #, no-wrap
1479 msgid "I<idtype> == B<P_PIDFD> (since Linux 5.4)"
1480 msgstr "I<idtype> == B<P_PIDFD> (منذ لينكس 5.4)"
1481
1482 #. type: TP
1483 #: debian-trixie fedora-44 fedora-rawhide
1484 #, no-wrap
1485 msgid "I<idtype> == B<P_PGID>"
1486 msgstr "I<idtype> == B<P_PGID>"
1487
1488 #. type: TP
1489 #: debian-trixie fedora-44 fedora-rawhide
1490 #, no-wrap
1491 msgid "I<idtype> == B<P_ALL>"
1492 msgstr "I<idtype> == B<P_ALL>"
1493
1494 #. type: Plain text
1495 #: debian-trixie fedora-44 fedora-rawhide
1496 msgid ""
1497 "(for B<waitpid>() or B<waitid>()) The process specified by I<pid> "
1498 "(B<waitpid>()) or I<idtype> and I<id> (B<waitid>()) does not exist or is "
1499 "not a child of the calling process. (This can happen for one's own child if "
1500 "the action for B<SIGCHLD> is set to B<SIG_IGN>. See also the I<Linux Notes> "
1501 "section about threads.)"
1502 msgstr ""
1503 "(لـ B<waitpid>() أو B<waitid>()) العملية المحددة بواسطة I<pid> "
1504 "(B<waitpid>()) أو I<idtype> و I<id> (B<waitid>()) غير موجودة أو ليست ابنة "
1505 "للعملية المستدعية. (يمكن أن يحدث هذا لابنة المرء إذا عُين الإجراء لـ "
1506 "B<SIGCHLD> إلى B<SIG_IGN>. انظر أيضًا قسم I<ملاحظات لينكس> حول الخيوط.)"
1507
1508 #. type: Plain text
1509 #: debian-trixie fedora-44 fedora-rawhide
1510 msgid "POSIX.1-2008."
1511 msgstr "POSIX.1-2008."
1512
1513 #. type: TH
1514 #: fedora-44 fedora-rawhide
1515 #, no-wrap
1516 msgid "2024-07-23"
1517 msgstr "23 يوليو 2024"
1518
1519 #. type: TH
1520 #: fedora-44 fedora-rawhide
1521 #, no-wrap
1522 msgid "Linux man-pages 6.13"
1523 msgstr "صفحات دليل لينكس 6.13"
1524
1525 #. type: Plain text
1526 #: fedora-44 fedora-rawhide
1527 #, no-wrap
1528 msgid ""
1529 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1530 " /* This is the glibc and POSIX interface; see\n"
1531 " VERSIONS for information on the raw system call. */\n"
1532 msgstr ""
1533 "B<int waitid(idtype_t >I<idtype>B<, id_t >I<id>B<, siginfo_t *>I<infop>B<, int >I<options>B<);>\n"
1534 " /* هذه هي واجهة glibc و POSIX؛ انظر\n"
1535 " VERSIONS للحصول على معلومات حول استدعاء النظام الخام. */\n"
1536
1537 #. type: TH
1538 #: mageia-cauldron
1539 #, no-wrap
1540 msgid "Linux man-pages 6.17"
1541 msgstr "صفحات دليل لينكس 6.17"
1542
1543 #. type: TH
1544 #: opensuse-leap-16-1 opensuse-tumbleweed
1545 #, no-wrap
1546 msgid "Linux man-pages (unreleased)"
1547 msgstr "صفحات دليل لينكس (لم تصدر بعد)"