Debian Codegraph @

po/ar/man3/setjmp.3.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:42+0200\n"
9 "PO-Revision-Date: 2026-06-03 19:30+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 "setjmp"
25 msgstr "setjmp"
26
27 #. type: TH
28 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
29 #: opensuse-tumbleweed
30 #, no-wrap
31 msgid "2026-02-08"
32 msgstr "8 فبراير 2026"
33
34 #. type: TH
35 #: archlinux debian-unstable
36 #, no-wrap
37 msgid "Linux man-pages 6.18"
38 msgstr "صفحات دليل لينكس 6.18"
39
40 #. type: SH
41 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
42 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
43 #, no-wrap
44 msgid "NAME"
45 msgstr "الاسم"
46
47 #. type: Plain text
48 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
49 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
50 msgid "setjmp, sigsetjmp, longjmp, siglongjmp - performing a nonlocal goto"
51 msgstr "setjmp, sigsetjmp, longjmp, siglongjmp - تنفيذ قفزة غير محلية"
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 "B<#include E<lt>setjmp.hE<gt>>\n"
78 msgstr "B<#include E<lt>setjmp.hE<gt>>\n"
79
80 #. type: Plain text
81 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
82 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
83 #, no-wrap
84 msgid ""
85 "B<int setjmp(jmp_buf >I<env>B<);>\n"
86 "B<int sigsetjmp(sigjmp_buf >I<env>B<, int >I<savesigs>B<);>\n"
87 msgstr ""
88 "B<int setjmp(jmp_buf >I<env>B<);>\n"
89 "B<int sigsetjmp(sigjmp_buf >I<env>B<, int >I<savesigs>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 #, no-wrap
95 msgid ""
96 "B<[[noreturn]] void longjmp(jmp_buf >I<env>B<, int >I<val>B<);>\n"
97 "B<[[noreturn]] void siglongjmp(sigjmp_buf >I<env>B<, int >I<val>B<);>\n"
98 msgstr ""
99 "B<[[noreturn]] void longjmp(jmp_buf >I<env>B<, int >I<val>B<);>\n"
100 "B<[[noreturn]] void siglongjmp(sigjmp_buf >I<env>B<, int >I<val>B<);>\n"
101
102 #. type: Plain text
103 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
104 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
105 msgid ""
106 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
107 msgstr ""
108 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
109
110 #. type: Plain text
111 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
112 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
113 msgid "B<setjmp>(): see HISTORY."
114 msgstr "B<setjmp>(): انظر التاريخ."
115
116 #. type: Plain text
117 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
118 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
119 msgid "B<sigsetjmp>():"
120 msgstr "B<sigsetjmp>():"
121
122 #. type: Plain text
123 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
124 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
125 #, no-wrap
126 msgid " _POSIX_C_SOURCE\n"
127 msgstr " _POSIX_C_SOURCE\n"
128
129 #. type: SH
130 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
131 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
132 #, no-wrap
133 msgid "DESCRIPTION"
134 msgstr "الوصف"
135
136 #. type: Plain text
137 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
138 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
139 msgid ""
140 "The functions described on this page are used for performing \"nonlocal "
141 "gotos\": transferring execution from one function to a predetermined "
142 "location in another function. The B<setjmp>() function dynamically "
143 "establishes the target to which control will later be transferred, and "
144 "B<longjmp>() performs the transfer of execution."
145 msgstr ""
146 "تُستخدم الدوال الموصوفة في هذه الصفحة لتنفيذ \"قفزات غير محلية\": نقل التنفيذ "
147 "من دالة إلى موقع محدد مسبقًا في دالة أخرى. تنشئ الدالة B<setjmp>() ديناميكيًا "
148 "الهدف الذي سيُنقل إليه التحكم لاحقًا، وتنفذ الدالة B<longjmp>() نقل التنفيذ."
149
150 #. type: Plain text
151 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
152 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
153 msgid ""
154 "The B<setjmp>() function saves various information about the calling "
155 "environment (typically, the stack pointer, the instruction pointer, possibly "
156 "the values of other registers and the signal mask) in the buffer I<env> for "
157 "later use by B<longjmp>(). In this case, B<setjmp>() returns 0."
158 msgstr ""
159 "تحفظ الدالة B<setjmp>() معلومات متنوعة عن بيئة الاستدعاء (عادةً، مؤشر المكدس، "
160 "مؤشر التعليمات، وربما قيم سجلات أخرى وقناع الإشارة) في المخزن المؤقت I<env> "
161 "لاستخدامها لاحقًا بواسطة B<longjmp>(). في هذه الحالة، تُرجع B<setjmp>() 0."
162
163 #. type: Plain text
164 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
165 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
166 msgid ""
167 "The B<longjmp>() function uses the information saved in I<env> to transfer "
168 "control back to the point where B<setjmp>() was called and to restore "
169 "(\"rewind\") the stack to its state at the time of the B<setjmp>() call. "
170 "In addition, and depending on the implementation (see NOTES and HISTORY), "
171 "the values of some other registers and the process signal mask may be "
172 "restored to their state at the time of the B<setjmp>() call."
173 msgstr ""
174 "تستخدم الدالة B<longjmp>() المعلومات المحفوظة في I<env> لإعادة التحكم إلى "
175 "النقطة التي استُدعيت فيها B<setjmp>() واستعادة (\"إرجاع\") المكدس إلى حالته "
176 "وقت استدعاء B<setjmp>(). بالإضافة إلى ذلك، واعتمادًا على التنفيذ (انظر "
177 "الملاحظات والتاريخ)، قد تُستعاد قيم بعض السجلات الأخرى وقناع إشارة العملية "
178 "إلى حالتها وقت استدعاء B<setjmp>()."
179
180 #. type: Plain text
181 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
182 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
183 msgid ""
184 "Following a successful B<longjmp>(), execution continues as if B<setjmp>() "
185 "had returned for a second time. This \"fake\" return can be distinguished "
186 "from a true B<setjmp>() call because the \"fake\" return returns the value "
187 "provided in I<val>. If the programmer mistakenly passes the value 0 in "
188 "I<val>, the \"fake\" return will instead return 1."
189 msgstr ""
190 "بعد B<longjmp>() ناجحة، يستمر التنفيذ كما لو أن B<setjmp>() قد عادت مرة "
191 "ثانية. يمكن تمييز هذا الإرجاع \"المزيف\" عن استدعاء B<setjmp>() حقيقي لأن "
192 "الإرجاع \"المزيف\" يُرجع القيمة المقدمة في I<val>. إذا مرر المبرمج القيمة 0 "
193 "في I<val> عن طريق الخطأ، فسيرجع الإرجاع \"المزيف\" 1 بدلاً من ذلك."
194
195 #. type: SS
196 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
197 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
198 #, no-wrap
199 msgid "sigsetjmp() and siglongjmp()"
200 msgstr "sigsetjmp() و siglongjmp()"
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 msgid ""
206 "B<sigsetjmp>() and B<siglongjmp>() also perform nonlocal gotos, but "
207 "provide predictable handling of the process signal mask."
208 msgstr ""
209 "تنفذ B<sigsetjmp>() و B<siglongjmp>() أيضًا قفزات غير محلية، لكنها توفر "
210 "معالجة متوقعة لقناع إشارة العملية."
211
212 #. type: Plain text
213 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
214 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
215 msgid ""
216 "If, and only if, the I<savesigs> argument provided to B<sigsetjmp>() is "
217 "nonzero, the process's current signal mask is saved in I<env> and will be "
218 "restored if a B<siglongjmp>() is later performed with this I<env>."
219 msgstr ""
220 "إذا وفقط إذا كانت قيمة المعامل I<savesigs> المقدم إلى B<sigsetjmp>() غير "
221 "صفرية، يُحفظ قناع الإشارة الحالي للعملية في I<env> وسيُستعاد إذا نُفذت "
222 "B<siglongjmp>() لاحقًا باستخدام هذا I<env>."
223
224 #. type: SH
225 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
226 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
227 #, no-wrap
228 msgid "RETURN VALUE"
229 msgstr "قيمة الإرجاع"
230
231 #. type: Plain text
232 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
233 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
234 msgid ""
235 "B<setjmp>() and B<sigsetjmp>() return 0 when called directly; on the "
236 "\"fake\" return that occurs after B<longjmp>() or B<siglongjmp>(), the "
237 "nonzero value specified in I<val> is returned."
238 msgstr ""
239 "تُرجع B<setjmp>() و B<sigsetjmp>() 0 عند استدعائهما مباشرة؛ عند الإرجاع "
240 "\"المزيف\" الذي يحدث بعد B<longjmp>() أو B<siglongjmp>()، تُرجع القيمة غير "
241 "الصفرية المحددة في I<val>."
242
243 #. type: Plain text
244 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
245 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
246 msgid "The B<longjmp>() or B<siglongjmp>() functions do not return."
247 msgstr "لا تُرجع الدالتان B<longjmp>() أو B<siglongjmp>() أي قيمة."
248
249 #. type: SH
250 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
251 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
252 #, no-wrap
253 msgid "ATTRIBUTES"
254 msgstr "السمات"
255
256 #. type: Plain text
257 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
258 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
259 msgid ""
260 "For an explanation of the terms used in this section, see B<attributes>(7)."
261 msgstr ""
262 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
263
264 #. type: tbl table
265 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
266 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
267 #, no-wrap
268 msgid "Interface"
269 msgstr "الواجهة"
270
271 #. type: tbl table
272 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
273 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
274 #, no-wrap
275 msgid "Attribute"
276 msgstr "السمة"
277
278 #. type: tbl table
279 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
280 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
281 #, no-wrap
282 msgid "Value"
283 msgstr "القيمة"
284
285 #. type: tbl table
286 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
287 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
288 #, no-wrap
289 msgid ".na\n"
290 msgstr ".na\n"
291
292 #. type: tbl table
293 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
294 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
295 #, no-wrap
296 msgid ".nh\n"
297 msgstr ".nh\n"
298
299 #. type: tbl table
300 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
301 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
302 #, no-wrap
303 msgid ""
304 "B<setjmp>(),\n"
305 "B<sigsetjmp>()"
306 msgstr ""
307 "B<setjmp>()،\n"
308 "B<sigsetjmp>()"
309
310 #. type: tbl table
311 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
312 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
313 #, no-wrap
314 msgid "Thread safety"
315 msgstr "سلامة الخيوط"
316
317 #. type: tbl table
318 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
319 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
320 #, no-wrap
321 msgid "MT-Safe"
322 msgstr "MT-Safe"
323
324 #. type: tbl table
325 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
326 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
327 #, no-wrap
328 msgid ""
329 "B<longjmp>(),\n"
330 "B<siglongjmp>()"
331 msgstr ""
332 "B<longjmp>()،\n"
333 "B<siglongjmp>()"
334
335 #. type: SH
336 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
337 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
338 #, no-wrap
339 msgid "STANDARDS"
340 msgstr "المعايير"
341
342 #. type: TP
343 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
344 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
345 #, no-wrap
346 msgid "B<setjmp>()"
347 msgstr "B<setjmp>()"
348
349 #. type: TQ
350 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
351 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
352 #, no-wrap
353 msgid "B<longjmp>()"
354 msgstr "B<longjmp>()"
355
356 #. type: Plain text
357 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
358 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
359 msgid "C11, POSIX.1-2008."
360 msgstr "C11, POSIX.1-2008."
361
362 #. type: TP
363 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
364 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
365 #, no-wrap
366 msgid "B<sigsetjmp>()"
367 msgstr "B<sigsetjmp>()"
368
369 #. type: TQ
370 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
371 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
372 #, no-wrap
373 msgid "B<siglongjmp>()"
374 msgstr "B<siglongjmp>()"
375
376 #. type: Plain text
377 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
378 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
379 msgid "POSIX.1-2008."
380 msgstr "POSIX.1-2008."
381
382 #. type: SH
383 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
384 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
385 #, no-wrap
386 msgid "HISTORY"
387 msgstr "التاريخ"
388
389 #. type: Plain text
390 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
391 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
392 msgid "POSIX.1-2001, C89."
393 msgstr "POSIX.1-2001، C89."
394
395 #. type: Plain text
396 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
397 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
398 msgid "POSIX.1-2001."
399 msgstr "POSIX.1-2001."
400
401 #. so that _FAVOR_BSD is triggered
402 #. .BR _XOPEN_SOURCE_EXTENDED ,
403 #. type: Plain text
404 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
405 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
406 msgid ""
407 "POSIX does not specify whether B<setjmp>() will save the signal mask (to be "
408 "later restored during B<longjmp>()). In System V it will not. In 4.3BSD it "
409 "will, and there is a function B<_setjmp>() that will not. The behavior "
410 "under Linux depends on the glibc version and the setting of feature test "
411 "macros. Before glibc 2.19, B<setjmp>() follows the System V behavior by "
412 "default, but the BSD behavior is provided if the B<_BSD_SOURCE> feature test "
413 "macro is explicitly defined and none of B<_POSIX_SOURCE>, "
414 "B<_POSIX_C_SOURCE>, B<_XOPEN_SOURCE>, B<_GNU_SOURCE>, or B<_SVID_SOURCE> is "
415 "defined. Since glibc 2.19, I<E<lt>setjmp.hE<gt>> exposes only the System V "
416 "version of B<setjmp>(). Programs that need the BSD semantics should replace "
417 "calls to B<setjmp>() with calls to B<sigsetjmp>() with a nonzero "
418 "I<savesigs> argument."
419 msgstr ""
420 "لا يُحدد POSIX ما إذا كانت B<setjmp>() ستحفظ قناع الإشارة (لاستعادته لاحقًا "
421 "أثناء B<longjmp>()). في System V لن تفعل. في 4.3BSD ستفعل، وهناك دالة "
422 "B<_setjmp>() لن تفعل. يعتمد السلوك تحت Linux على إصدار glibc وإعداد وحدات "
423 "اختبار الميزات. قبل glibc 2.19، تتبع B<setjmp>() سلوك System V مبدئيًا، "
424 "ولكن يُوفر سلوك BSD إذا تم تعريف وحدة اختبار الميزات B<_BSD_SOURCE> صراحةً ولم "
425 "يتم تعريف أي من B<_POSIX_SOURCE> أو B<_POSIX_C_SOURCE> أو B<_XOPEN_SOURCE> "
426 "أو B<_GNU_SOURCE> أو B<_SVID_SOURCE>. منذ glibc 2.19، يُظهر I<E<lt>setjmp."
427 "hE<gt>> فقط إصدار System V من B<setjmp>(). يجب على البرامج التي تحتاج "
428 "دلالات BSD استبدال استدعاءات B<setjmp>() باستدعاءات B<sigsetjmp>() مع "
429 "معامل I<savesigs> غير صفري."
430
431 #. type: SH
432 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
433 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
434 #, no-wrap
435 msgid "NOTES"
436 msgstr "ملاحظات"
437
438 #. type: Plain text
439 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
440 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
441 msgid ""
442 "B<setjmp>() and B<longjmp>() can be useful for dealing with errors inside "
443 "deeply nested function calls or to allow a signal handler to pass control to "
444 "a specific point in the program, rather than returning to the point where "
445 "the handler interrupted the main program. In the latter case, if you want "
446 "to portably save and restore signal masks, use B<sigsetjmp>() and "
447 "B<siglongjmp>(). See also the discussion of program readability below."
448 msgstr ""
449 "يمكن أن تكون B<setjmp>() و B<longjmp>() مفيدة للتعامل مع الأخطاء داخل "
450 "استدعاءات دوال متداخلة بعمق أو للسماح لمعالج إشارة بتمرير التحكم إلى نقطة "
451 "محددة في البرنامج، بدلاً من العودة إلى النقطة التي قاطع فيها المعالج البرنامج "
452 "الرئيس. في الحالة الأخيرة، إذا أردت حفظ واستعادة أقنعة الإشارة بشكل محمول، "
453 "استخدم B<sigsetjmp>() و B<siglongjmp>(). انظر أيضًا مناقشة قابلية قراءة "
454 "البرنامج أدناه."
455
456 #. type: SH
457 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
458 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
459 #, no-wrap
460 msgid "CAVEATS"
461 msgstr "تحذيرات"
462
463 #. type: Plain text
464 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
465 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
466 msgid ""
467 "The compiler may optimize variables into registers, and B<longjmp>() may "
468 "restore the values of other registers in addition to the stack pointer and "
469 "program counter. Consequently, the values of automatic variables are "
470 "unspecified after a call to B<longjmp>() if they meet all the following "
471 "criteria:"
472 msgstr ""
473 "قد يُحسّن المترجم المتغيرات إلى سجلات، وقد تستعيد B<longjmp>() قيم سجلات أخرى "
474 "بالإضافة إلى مؤشر المكدس وعداد البرنامج. وبالتالي، تكون قيم المتغيرات "
475 "التلقائية غير محددة بعد استدعاء B<longjmp>() إذا استوفت جميع المعايير "
476 "التالية:"
477
478 #. type: IP
479 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
480 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
481 #, no-wrap
482 msgid "\\[bu]"
483 msgstr "\\[bu]"
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 "they are local to the function that made the corresponding B<setjmp>() call;"
490 msgstr "هي محلية للدالة التي أجرت استدعاء B<setjmp>() المقابل؛"
491
492 #. type: Plain text
493 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
494 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
495 msgid ""
496 "their values are changed between the calls to B<setjmp>() and B<longjmp>(); "
497 "and"
498 msgstr "تتغير قيمها بين استدعاءات B<setjmp>() و B<longjmp>()؛ و"
499
500 #. type: Plain text
501 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
502 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
503 msgid "they are not declared as I<volatile>."
504 msgstr "لم تُصرّح على أنها I<volatile>."
505
506 #. type: Plain text
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 msgid "Analogous remarks apply for B<siglongjmp>()."
510 msgstr "تنطبق ملاحظات مماثلة على B<siglongjmp>()."
511
512 #. type: SS
513 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
514 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
515 #, no-wrap
516 msgid "Nonlocal gotos and program readability"
517 msgstr "القفزات غير المحلية وقابلية قراءة البرنامج"
518
519 #. type: Plain text
520 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
521 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
522 msgid ""
523 "While it can be abused, the traditional C \"goto\" statement at least has "
524 "the benefit that lexical cues (the goto statement and the target label) "
525 "allow the programmer to easily perceive the flow of control. Nonlocal gotos "
526 "provide no such cues: multiple B<setjmp>() calls might employ the same "
527 "I<jmp_buf> variable so that the content of the variable may change over the "
528 "lifetime of the application. Consequently, the programmer may be forced to "
529 "perform detailed reading of the code to determine the dynamic target of a "
530 "particular B<longjmp>() call. (To make the programmer's life easier, each "
531 "B<setjmp>() call should employ a unique I<jmp_buf> variable.)"
532 msgstr ""
533 "بينما يمكن إساءة استخدامها، فإن عبارة C التقليدية \"goto\" لها على الأقل "
534 "فائدة أن الإشارات المعجمية (عبارة goto والعلامة الهدف) تسمح للمبرمج بإدراك "
535 "تدفق التحكم بسهولة. لا توفر القفزات غير المحلية مثل هذه الإشارات: قد تستخدم "
536 "استدعاءات B<setjmp>() المتعددة نفس متغير I<jmp_buf> بحيث قد يتغير محتوى "
537 "المتغير على مدى عمر التطبيق. وبالتالي، قد يُجبر المبرمج على قراءة مفصلة "
538 "للكود لتحديد الهدف الديناميكي لاستدعاء B<longjmp>() معين. (لتسهيل حياة "
539 "المبرمج، يجب أن يستخدم كل استدعاء B<setjmp>() متغير I<jmp_buf> فريدًا.)"
540
541 #. type: Plain text
542 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
543 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
544 msgid ""
545 "Adding further difficulty, the B<setjmp>() and B<longjmp>() calls may not "
546 "even be in the same source code module."
547 msgstr ""
548 "مما يزيد الصعوبة، قد لا تكون استدعاءات B<setjmp>() و B<longjmp>() حتى في "
549 "نفس وحدة الكود المصدري."
550
551 #. type: Plain text
552 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
553 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
554 msgid ""
555 "In summary, nonlocal gotos can make programs harder to understand and "
556 "maintain, and an alternative should be used if possible."
557 msgstr ""
558 "باختصار، يمكن للقفزات غير المحلية أن تجعل البرامج أصعب في الفهم والصيانة، "
559 "ويجب استخدام بديل إذا أمكن."
560
561 #. type: SS
562 #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron
563 #: opensuse-leap-16-1 opensuse-tumbleweed
564 #, no-wrap
565 msgid "Undefined behavior"
566 msgstr "سلوك غير محدد"
567
568 #. type: Plain text
569 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
570 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
571 msgid ""
572 "If the function which called B<setjmp>() returns before B<longjmp>() is "
573 "called, the behavior is undefined. Some kind of subtle or unsubtle chaos is "
574 "sure to result."
575 msgstr ""
576 "إذا عادت الدالة التي استدعت B<setjmp>() قبل استدعاء B<longjmp>()، يكون "
577 "السلوك غير محدد. من المؤكد أن ينتج نوع من الفوضى الخفية أو الواضحة."
578
579 #. The following statement appeared in versions up to POSIX.1-2008 TC1,
580 #. but is set to be removed in POSIX.1-2008 TC2:
581 #. According to POSIX.1, if a
582 #. .BR longjmp ()
583 #. call is performed from a nested signal handler
584 #. (i.e., from a handler that was invoked in response to a signal that was
585 #. generated while another signal was already in the process of being
586 #. handled), the behavior is undefined.
587 #. type: Plain text
588 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
589 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
590 msgid ""
591 "If, in a multithreaded program, a B<longjmp>() call employs an I<env> "
592 "buffer that was initialized by a call to B<setjmp>() in a different thread, "
593 "the behavior is undefined."
594 msgstr ""
595 "إذا، في برنامج متعدد الخيوط، استخدم استدعاء B<longjmp>() مخزن I<env> مؤقتًا "
596 "تمت تهيئته بواسطة استدعاء B<setjmp>() في خيط مختلف، يكون السلوك غير محدد."
597
598 #. http://austingroupbugs.net/view.php?id=516#c1195
599 #. type: Plain text
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 msgid ""
603 "POSIX.1-2008 Technical Corrigendum 2 adds B<longjmp>() and B<siglongjmp>() "
604 "to the list of async-signal-safe functions. However, the standard "
605 "recommends avoiding the use of these functions from signal handlers and goes "
606 "on to point out that if these functions are called from a signal handler "
607 "that interrupted a call to a non-async-signal-safe function (or some "
608 "equivalent, such as the steps equivalent to B<exit>(3) that occur upon a "
609 "return from the initial call to I<main>()), the behavior is undefined if the "
610 "program subsequently makes a call to a non-async-signal-safe function. The "
611 "only way of avoiding undefined behavior is to ensure one of the following:"
612 msgstr ""
613 "يضيف التصحيح التقني POSIX.1-2008 رقم 2 B<longjmp>() و B<siglongjmp>() إلى "
614 "قائمة الدوال الآمنة للإشارات غير المتزامنة. ومع ذلك، يوصي المعيار بتجنب "
615 "استخدام هذه الدوال من معالجات الإشارات ويستمر في الإشارة إلى أنه إذا تم "
616 "استدعاء هذه الدوال من معالج إشارة قاطع استدعاءًا لدالة غير آمنة للإشارات غير "
617 "المتزامنة (أو ما يعادله، مثل الخطوات المكافئة لـ B<exit>(3) التي تحدث عند "
618 "العودة من الاستدعاء الأولي لـ I<main>())، يكون السلوك غير محدد إذا أجرى "
619 "البرنامج لاحقًا استدعاءًا لدالة غير آمنة للإشارات غير المتزامنة. الطريقة "
620 "الوحيدة لتجنب السلوك غير المحدد هي ضمان أحد ما يلي:"
621
622 #. type: Plain text
623 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
624 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
625 msgid ""
626 "After long jumping from the signal handler, the program does not call any "
627 "non-async-signal-safe functions and does not return from the initial call to "
628 "I<main>()."
629 msgstr ""
630 "بعد القفز الطويل من معالج الإشارة، لا يستدعي البرنامج أي دوال غير آمنة "
631 "للإشارات غير المتزامنة ولا يعود من الاستدعاء الأولي لـ I<main>()."
632
633 #. type: Plain text
634 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
635 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
636 msgid ""
637 "Any signal whose handler performs a long jump must be blocked during "
638 "I<every> call to a non-async-signal-safe function and no non-async-signal-"
639 "safe functions are called after returning from the initial call to I<main>()."
640 msgstr ""
641 "يجب حظر أي إشارة يقوم معالجها بقفزة طويلة أثناء I<كل> استدعاء لدالة غير آمنة "
642 "للإشارات غير المتزامنة ولا تُستدعى دوال غير آمنة للإشارات غير المتزامنة بعد "
643 "العودة من الاستدعاء الأولي لـ I<main>()."
644
645 #. type: SH
646 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
647 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
648 #, no-wrap
649 msgid "SEE ALSO"
650 msgstr "انظر أيضًا"
651
652 #. type: Plain text
653 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
654 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
655 msgid "B<signal>(7), B<signal-safety>(7)"
656 msgstr "B<signal>(7), B<signal-safety>(7)"
657
658 #. type: TH
659 #: debian-trixie
660 #, no-wrap
661 msgid "2024-06-16"
662 msgstr "16 يونيو 2024"
663
664 #. type: TH
665 #: debian-trixie
666 #, no-wrap
667 msgid "Linux man-pages 6.9.1"
668 msgstr "صفحات دليل لينكس 6.9.1"
669
670 #. type: Plain text
671 #: debian-trixie
672 msgid "Standard C library (I<libc>, I<-lc>)"
673 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
674
675 #. type: SS
676 #: debian-trixie
677 #, no-wrap
678 msgid "Undefined Behavior"
679 msgstr "سلوك غير محدد"
680
681 #. type: TH
682 #: fedora-44 fedora-rawhide
683 #, no-wrap
684 msgid "2024-11-17"
685 msgstr "17 نوفمبر 2024"
686
687 #. type: TH
688 #: fedora-44 fedora-rawhide
689 #, no-wrap
690 msgid "Linux man-pages 6.13"
691 msgstr "صفحات دليل لينكس 6.13"
692
693 #. type: TH
694 #: mageia-cauldron
695 #, no-wrap
696 msgid "Linux man-pages 6.17"
697 msgstr "صفحات دليل لينكس 6.17"
698
699 #. type: TH
700 #: opensuse-leap-16-1 opensuse-tumbleweed
701 #, no-wrap
702 msgid "Linux man-pages (unreleased)"
703 msgstr "صفحات دليل لينكس (لم تصدر بعد)"