Debian Codegraph @

po/ar/man2/sigaltstack.2.po

raw
1 # Arabic translation of manpages
2 # This file is distributed under the same license as the manpages-l10n package.
3 # Copyright © of this file:
4 # زايد السعيدي <[email protected]>, 2026.
5 msgid ""
6 msgstr ""
7 "Project-Id-Version: manpages-l10n 4.30.2\n"
8 "POT-Creation-Date: 2026-06-05 06:43+0200\n"
9 "PO-Revision-Date: 2026-05-18 17:52+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 "sigaltstack"
25 msgstr "sigaltstack"
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 "sigaltstack - set and/or get signal stack context"
51 msgstr "sigaltstack - ضبط و/أو الحصول على سياق كومة الإشارة"
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>signal.hE<gt>>\n"
78 msgstr "B<#include E<lt>signal.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 sigaltstack(const stack_t *_Nullable restrict >I<ss>B<,>\n"
86 "B< stack_t *_Nullable restrict >I<old_ss>B<);>\n"
87 msgstr ""
88 "B<int sigaltstack(const stack_t *_Nullable restrict >I<ss>B<,>\n"
89 "B< stack_t *_Nullable restrict >I<old_ss>B<);>\n"
90
91 #. type: Plain text
92 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
93 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
94 msgid ""
95 "Feature Test Macro Requirements for glibc (see B<feature_test_macros>(7)):"
96 msgstr ""
97 "متطلبات ماكروات اختبار الميزات لـ glibc (انظر B<feature_test_macros>(7)):"
98
99 #. type: Plain text
100 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
101 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
102 msgid "B<sigaltstack>():"
103 msgstr "B<sigaltstack>():"
104
105 #. || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
106 #. type: Plain text
107 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
108 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
109 #, no-wrap
110 msgid ""
111 " _XOPEN_SOURCE E<gt>= 500\n"
112 " || /* Since glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
113 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
114 msgstr ""
115 " _XOPEN_SOURCE E<gt>= 500\n"
116 " || /* منذ glibc 2.12: */ _POSIX_C_SOURCE E<gt>= 200809L\n"
117 " || /* glibc E<lt>= 2.19: */ _BSD_SOURCE\n"
118
119 #. type: SH
120 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
121 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
122 #, no-wrap
123 msgid "DESCRIPTION"
124 msgstr "الوصف"
125
126 #. type: Plain text
127 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
128 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
129 msgid ""
130 "B<sigaltstack>() allows a thread to define a new alternate signal stack and/"
131 "or retrieve the state of an existing alternate signal stack. An alternate "
132 "signal stack is used during the execution of a signal handler if the "
133 "establishment of that handler (see B<sigaction>(2)) requested it."
134 msgstr ""
135 "تسمح B<sigaltstack>() لسلسلة تنفيذ بتعريف كومة إشارة بديلة جديدة و/أو "
136 "استرداد حالة كومة إشارة بديلة موجودة. تُستخدم كومة الإشارة البديلة أثناء "
137 "تنفيذ معالج إشارة إذا طلب إنشاء ذلك المعالج (انظر B<sigaction>(2)) ذلك."
138
139 #. type: Plain text
140 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
141 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
142 msgid ""
143 "The normal sequence of events for using an alternate signal stack is the "
144 "following:"
145 msgstr "التسلسل الطبيعي للأحداث لاستخدام كومة إشارة بديلة هو التالي:"
146
147 #. type: TP
148 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
149 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
150 #, no-wrap
151 msgid "1."
152 msgstr "1."
153
154 #. type: Plain text
155 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
156 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
157 msgid "Allocate an area of memory to be used for the alternate signal stack."
158 msgstr "تخصيص منطقة ذاكرة لاستخدامها ككومة إشارة بديلة."
159
160 #. type: TP
161 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
162 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
163 #, no-wrap
164 msgid "2."
165 msgstr "2."
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 "Use B<sigaltstack>() to inform the system of the existence and location of "
172 "the alternate signal stack."
173 msgstr ""
174 "استخدام B<sigaltstack>() لإعلام النظام بوجود وموقع كومة الإشارة البديلة."
175
176 #. type: TP
177 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
178 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
179 #, no-wrap
180 msgid "3."
181 msgstr "3."
182
183 #. type: Plain text
184 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
185 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
186 msgid ""
187 "When establishing a signal handler using B<sigaction>(2), inform the system "
188 "that the signal handler should be executed on the alternate signal stack by "
189 "specifying the B<SA_ONSTACK> flag."
190 msgstr ""
191 "عند إنشاء معالج إشارة باستخدام B<sigaction>(2)، إعلام النظام بأنه يجب تنفيذ "
192 "معالج الإشارة على كومة الإشارة البديلة بتحديد العلم B<SA_ONSTACK>."
193
194 #. type: Plain text
195 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
196 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
197 msgid ""
198 "The I<ss> argument is used to specify a new alternate signal stack, while "
199 "the I<old_ss> argument is used to retrieve information about the currently "
200 "established signal stack. If we are interested in performing just one of "
201 "these tasks, then the other argument can be specified as NULL."
202 msgstr ""
203 "تُستخدم الوسيطة I<ss> لتحديد كومة إشارة بديلة جديدة، بينما تُستخدم الوسيطة "
204 "I<old_ss> لاسترداد معلومات حول كومة الإشارة المنشأة حاليًا. إذا كنا مهتمين "
205 "بأداء مهمة واحدة فقط من هذه المهام، فيمكن تحديد الوسيطة الأخرى كـ NULL."
206
207 #. type: Plain text
208 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
209 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
210 msgid ""
211 "The I<stack_t> type used to type the arguments of this function is defined "
212 "as follows:"
213 msgstr "النوع I<stack_t> المستخدم لكتابة وسائط هذه الدالة يُعرف كما يلي:"
214
215 #. type: Plain text
216 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
217 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
218 #, no-wrap
219 msgid ""
220 "typedef struct {\n"
221 " void *ss_sp; /* Base address of stack */\n"
222 " int ss_flags; /* Flags */\n"
223 " size_t ss_size; /* Number of bytes in stack */\n"
224 "} stack_t;\n"
225 msgstr ""
226 "typedef struct {\n"
227 " void *ss_sp; /* Base address of stack */\n"
228 " int ss_flags; /* Flags */\n"
229 " size_t ss_size; /* Number of bytes in stack */\n"
230 "} stack_t;\n"
231
232 #. type: Plain text
233 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
234 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
235 msgid ""
236 "To establish a new alternate signal stack, the fields of this structure are "
237 "set as follows:"
238 msgstr "لإنشاء كومة إشارة بديلة جديدة، تُضبط حقول هذه البنية كما يلي:"
239
240 #. type: TP
241 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
242 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
243 #, no-wrap
244 msgid "I<ss.ss_flags>"
245 msgstr "I<ss.ss_flags>"
246
247 #. type: Plain text
248 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
249 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
250 msgid "This field contains either 0, or the following flag:"
251 msgstr "يحتوي هذا الحقل إما على 0، أو العلم التالي:"
252
253 #. type: TP
254 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
255 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
256 #, no-wrap
257 msgid "B<SS_AUTODISARM> (since Linux 4.7)"
258 msgstr "B<SS_AUTODISARM> (منذ Linux 4.7)"
259
260 #. commit 2a74213838104a41588d86fd5e8d344972891ace
261 #. See tools/testing/selftests/sigaltstack/sas.c in kernel sources
262 #. type: Plain text
263 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
264 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
265 msgid ""
266 "Clear the alternate signal stack settings on entry to the signal handler. "
267 "When the signal handler returns, the previous alternate signal stack "
268 "settings are restored."
269 msgstr ""
270 "مسح إعدادات كومة الإشارة البديلة عند الدخول إلى معالج الإشارة. عند عودة "
271 "معالج الإشارة، تُستعاد إعدادات كومة الإشارة البديلة السابقة."
272
273 #. type: Plain text
274 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
275 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
276 msgid ""
277 "This flag was added in order to make it safe to switch away from the signal "
278 "handler with B<swapcontext>(3). Without this flag, a subsequently handled "
279 "signal will corrupt the state of the switched-away signal handler. On "
280 "kernels where this flag is not supported, B<sigaltstack>() fails with the "
281 "error B<EINVAL> when this flag is supplied."
282 msgstr ""
283 "أُضيف هذا العلم لجعل التبديل بعيدًا عن معالج الإشارة باستخدام "
284 "B<swapcontext>(3) آمنًا. بدون هذا العلم، ستُفسد إشارة تُعالج لاحقًا حالة معالج "
285 "الإشارة المُبدّل بعيدًا. على النوى التي لا يُدعم فيها هذا العلم، تفشل "
286 "B<sigaltstack>() مع الخطأ B<EINVAL> عند توفير هذا العلم."
287
288 #. type: TP
289 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
290 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
291 #, no-wrap
292 msgid "I<ss.ss_sp>"
293 msgstr "I<ss.ss_sp>"
294
295 #. type: Plain text
296 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
297 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
298 msgid ""
299 "This field specifies the starting address of the stack. When a signal "
300 "handler is invoked on the alternate stack, the kernel automatically aligns "
301 "the address given in I<ss.ss_sp> to a suitable address boundary for the "
302 "underlying hardware architecture."
303 msgstr ""
304 "يحدد هذا الحقل عنوان بداية الكومة. عند استدعاء معالج إشارة على الكومة "
305 "البديلة، يقوم النواة آليًا بمحاذاة العنوان المعطى في I<ss.ss_sp> إلى حد عنوان "
306 "مناسب لبنية العتاد الأساسية."
307
308 #. type: TP
309 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
310 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
311 #, no-wrap
312 msgid "I<ss.ss_size>"
313 msgstr "I<ss.ss_size>"
314
315 #. type: Plain text
316 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
317 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
318 msgid ""
319 "This field specifies the size of the stack. The constant B<SIGSTKSZ> is "
320 "defined to be large enough to cover the usual size requirements for an "
321 "alternate signal stack, and the constant B<MINSIGSTKSZ> defines the minimum "
322 "size required to execute a signal handler."
323 msgstr ""
324 "يحدد هذا الحجم حجم الكومة. يُعرف الثابت B<SIGSTKSZ> ليكون كبيرًا بما يكفي "
325 "لتغطية متطلبات الحجم المعتادة لكومة إشارة بديلة، ويُعرف الثابت B<MINSIGSTKSZ> "
326 "الحد الأدنى للحجم المطلوب لتنفيذ معالج إشارة."
327
328 #. type: Plain text
329 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
330 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
331 msgid ""
332 "To disable an existing stack, specify I<ss.ss_flags> as B<SS_DISABLE>. In "
333 "this case, the kernel ignores any other flags in I<ss.ss_flags> and the "
334 "remaining fields in I<ss>."
335 msgstr ""
336 "لتعطيل كومة موجودة، حدد I<ss.ss_flags> كـ B<SS_DISABLE>. في هذه الحالة، "
337 "تتجاهل النواة أي أعلام أخرى في I<ss.ss_flags> والحقول المتبقية في I<ss>."
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 "If I<old_ss> is not NULL, then it is used to return information about the "
344 "alternate signal stack which was in effect prior to the call to "
345 "B<sigaltstack>(). The I<old_ss.ss_sp> and I<old_ss.ss_size> fields return "
346 "the starting address and size of that stack. The I<old_ss.ss_flags> may "
347 "return either of the following values:"
348 msgstr ""
349 "إذا لم يكن I<old_ss> NULL، فإنه يُستخدم لإرجاع معلومات حول كومة الإشارة "
350 "البديلة التي كانت سارية قبل استدعاء B<sigaltstack>(). يُرجع الحقلان I<old_ss."
351 "ss_sp> و I<old_ss.ss_size> عنوان البداية وحجم تلك الكومة. قد يُرجع I<old_ss."
352 "ss_flags> إحدى القيم التالية:"
353
354 #. type: TP
355 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
356 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
357 #, no-wrap
358 msgid "B<SS_ONSTACK>"
359 msgstr "B<SS_ONSTACK>"
360
361 #. type: Plain text
362 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
363 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
364 msgid ""
365 "The thread is currently executing on the alternate signal stack. (Note that "
366 "it is not possible to change the alternate signal stack if the thread is "
367 "currently executing on it.)"
368 msgstr ""
369 "تنفذ سلسلة التنفيذ حاليًا على كومة الإشارة البديلة. (لاحظ أنه لا يمكن تغيير "
370 "كومة الإشارة البديلة إذا كانت سلسلة التنفيذ تنفذ عليها حاليًا.)"
371
372 #. type: TP
373 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
374 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
375 #, no-wrap
376 msgid "B<SS_DISABLE>"
377 msgstr "B<SS_DISABLE>"
378
379 #. type: Plain text
380 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
381 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
382 msgid "The alternate signal stack is currently disabled."
383 msgstr "كومة الإشارة البديلة معطلة حاليًا."
384
385 #. #-#-#-#-# archlinux: sigaltstack.2.pot (PACKAGE VERSION) #-#-#-#-#
386 #. FIXME Was it intended that one can set up a different alternative
387 #. signal stack in this scenario? (In passing, if one does this, the
388 #. sigaltstack(NULL, &old_ss) now returns old_ss.ss_flags==SS_AUTODISARM
389 #. rather than old_ss.ss_flags==SS_DISABLE. The API design here seems
390 #. confusing...
391 #. type: Plain text
392 #. #-#-#-#-# debian-trixie: sigaltstack.2.pot (PACKAGE VERSION) #-#-#-#-#
393 #. FIXME Was it intended that one can set up a different alternative
394 #. signal stack in this scenario? (In passing, if one does this, the
395 #. sigaltstack(NULL, &old_ss) now returns old_ss.ss_flags==SS_AUTODISARM
396 #. rather than old_ss.ss_flags==SS_DISABLE. The API design here seems
397 #. confusing...
398 #. type: Plain text
399 #. #-#-#-#-# debian-unstable: sigaltstack.2.pot (PACKAGE VERSION) #-#-#-#-#
400 #. FIXME Was it intended that one can set up a different alternative
401 #. signal stack in this scenario? (In passing, if one does this, the
402 #. sigaltstack(NULL, &old_ss) now returns old_ss.ss_flags==SS_AUTODISARM
403 #. rather than old_ss.ss_flags==SS_DISABLE. The API design here seems
404 #. confusing...
405 #. type: Plain text
406 #. #-#-#-#-# fedora-44: sigaltstack.2.pot (PACKAGE VERSION) #-#-#-#-#
407 #. FIXME Was it intended that one can set up a different alternative
408 #. signal stack in this scenario? (In passing, if one does this, the
409 #. sigaltstack(NULL, &old_ss) now returns old_ss.ss_flags==SS_AUTODISARM
410 #. rather than old_ss.ss_flags==SS_DISABLE. The API design here seems
411 #. confusing...
412 #. type: Plain text
413 #. #-#-#-#-# fedora-rawhide: sigaltstack.2.pot (PACKAGE VERSION) #-#-#-#-#
414 #. FIXME Was it intended that one can set up a different alternative
415 #. signal stack in this scenario? (In passing, if one does this, the
416 #. sigaltstack(NULL, &old_ss) now returns old_ss.ss_flags==SS_AUTODISARM
417 #. rather than old_ss.ss_flags==SS_DISABLE. The API design here seems
418 #. confusing...
419 #. type: Plain text
420 #. #-#-#-#-# mageia-cauldron: sigaltstack.2.pot (PACKAGE VERSION) #-#-#-#-#
421 #. FIXME Was it intended that one can set up a different alternative
422 #. signal stack in this scenario? (In passing, if one does this, the
423 #. sigaltstack(NULL, &old_ss) now returns old_ss.ss_flags==SS_AUTODISARM
424 #. rather than old_ss.ss_flags==SS_DISABLE. The API design here seems
425 #. confusing...
426 #. type: Plain text
427 #. #-#-#-#-# opensuse-leap-16-1: sigaltstack.2.pot (PACKAGE VERSION) #-#-#-#-#
428 #. FIXME Was it intended that one can set up a different alternative
429 #. signal stack in this scenario? (In passing, if one does this, the
430 #. sigaltstack(NULL, &old_ss) now returns old_ss.ss_flags==SS_AUTODISARM
431 #. rather than old_ss.ss_flags==SS_DISABLE. The API design here seems
432 #. confusing...
433 #. type: Plain text
434 #. #-#-#-#-# opensuse-tumbleweed: sigaltstack.2.pot (PACKAGE VERSION) #-#-#-#-#
435 #. FIXME Was it intended that one can set up a different alternative
436 #. signal stack in this scenario? (In passing, if one does this, the
437 #. sigaltstack(NULL, &old_ss) now returns old_ss.ss_flags==SS_AUTODISARM
438 #. rather than old_ss.ss_flags==SS_DISABLE. The API design here seems
439 #. confusing...
440 #. type: Plain text
441 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
442 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
443 msgid ""
444 "Alternatively, this value is returned if the thread is currently executing "
445 "on an alternate signal stack that was established using the B<SS_AUTODISARM> "
446 "flag. In this case, it is safe to switch away from the signal handler with "
447 "B<swapcontext>(3). It is also possible to set up a different alternative "
448 "signal stack using a further call to B<sigaltstack>()."
449 msgstr ""
450 "بدلاً من ذلك، تُرجع هذه القيمة إذا كانت سلسلة التنفيذ تنفذ حاليًا على كومة "
451 "إشارة بديلة أُنشئت باستخدام العلم B<SS_AUTODISARM>. في هذه الحالة، من الآمن "
452 "التبديل بعيدًا عن معالج الإشارة باستخدام B<swapcontext>(3). من الممكن أيضًا "
453 "إعداد كومة إشارة بديلة مختلفة باستخدام استدعاء إضافي لـ B<sigaltstack>()."
454
455 #. type: TP
456 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
457 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
458 #, no-wrap
459 msgid "B<SS_AUTODISARM>"
460 msgstr "B<SS_AUTODISARM>"
461
462 #. type: Plain text
463 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
464 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
465 msgid ""
466 "The alternate signal stack has been marked to be autodisarmed as described "
467 "above."
468 msgstr ""
469 "تم وضع علامة على مكدس الإشارة البديل ليتم نزع سلاحه آليًا كما هو موصوف أعلاه."
470
471 #. type: Plain text
472 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
473 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
474 msgid ""
475 "By specifying I<ss> as NULL, and I<old_ss> as a non-NULL value, one can "
476 "obtain the current settings for the alternate signal stack without changing "
477 "them."
478 msgstr ""
479 "بتحديد I<ss> كقيمة NULL، و I<old_ss> كقيمة غير NULL، يمكن للمرء الحصول على "
480 "الإعدادات الحالية لمكدس الإشارة البديل دون تغييرها."
481
482 #. type: SH
483 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
484 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
485 #, no-wrap
486 msgid "RETURN VALUE"
487 msgstr "قيمة الإرجاع"
488
489 #. type: Plain text
490 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
491 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
492 msgid ""
493 "B<sigaltstack>() returns 0 on success, or -1 on failure with I<errno> set "
494 "to indicate the error."
495 msgstr ""
496 "تُرجع B<sigaltstack>() 0 عند النجاح، أو -1 عند الفشل مع تعيين I<errno> "
497 "للإشارة إلى الخطأ."
498
499 #. type: SH
500 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
501 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
502 #, no-wrap
503 msgid "ERRORS"
504 msgstr "الأخطاء"
505
506 #. type: TP
507 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
508 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
509 #, no-wrap
510 msgid "B<EFAULT>"
511 msgstr "B<EFAULT>"
512
513 #. type: Plain text
514 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
515 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
516 msgid ""
517 "Either I<ss> or I<old_ss> is not NULL and points to an area outside of the "
518 "process's address space."
519 msgstr ""
520 "إما I<ss> أو I<old_ss> ليس NULL ويشير إلى منطقة خارج نطاق عنوان العملية."
521
522 #. type: TP
523 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
524 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
525 #, no-wrap
526 msgid "B<EINVAL>"
527 msgstr "B<EINVAL>"
528
529 #. type: Plain text
530 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
531 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
532 msgid "I<ss> is not NULL and the I<ss_flags> field contains an invalid flag."
533 msgstr "I<ss> ليس NULL ويحتوي حقل I<ss_flags> على علامة غير صالحة."
534
535 #. type: TP
536 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
537 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
538 #, no-wrap
539 msgid "B<ENOMEM>"
540 msgstr "B<ENOMEM>"
541
542 #. type: Plain text
543 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
544 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
545 msgid ""
546 "The specified size of the new alternate signal stack I<ss.ss_size> was less "
547 "than B<MINSIGSTKSZ>."
548 msgstr ""
549 "الحجم المحدد لمكدس الإشارة البديل الجديد I<ss.ss_size> كان أقل من "
550 "B<MINSIGSTKSZ>."
551
552 #. type: TP
553 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
554 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
555 #, no-wrap
556 msgid "B<EPERM>"
557 msgstr "B<EPERM>"
558
559 #. type: Plain text
560 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
561 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
562 msgid ""
563 "An attempt was made to change the alternate signal stack while it was active "
564 "(i.e., the thread was already executing on the current alternate signal "
565 "stack)."
566 msgstr ""
567 "تمت محاولة تغيير مكدس الإشارة البديل بينما كان نشطًا (أي، كان الخيط ينفذ "
568 "بالفعل على مكدس الإشارة البديل الحالي)."
569
570 #. type: SH
571 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
572 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
573 #, no-wrap
574 msgid "ATTRIBUTES"
575 msgstr "السمات"
576
577 #. type: Plain text
578 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
579 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
580 msgid ""
581 "For an explanation of the terms used in this section, see B<attributes>(7)."
582 msgstr ""
583 "للاطلاع على شرح للمصطلحات المستخدمة في هذا القسم، انظر B<attributes>(7)."
584
585 #. type: tbl table
586 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
587 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
588 #, no-wrap
589 msgid "Interface"
590 msgstr "الواجهة"
591
592 #. type: tbl table
593 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
594 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
595 #, no-wrap
596 msgid "Attribute"
597 msgstr "السمة"
598
599 #. type: tbl table
600 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
601 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
602 #, no-wrap
603 msgid "Value"
604 msgstr "القيمة"
605
606 #. type: tbl table
607 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
608 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
609 #, no-wrap
610 msgid ".na\n"
611 msgstr ".na\n"
612
613 #. type: tbl table
614 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
615 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
616 #, no-wrap
617 msgid ".nh\n"
618 msgstr ".nh\n"
619
620 #. type: tbl table
621 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
622 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
623 #, no-wrap
624 msgid "B<sigaltstack>()"
625 msgstr "B<sigaltstack>()"
626
627 #. type: tbl table
628 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
629 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
630 #, no-wrap
631 msgid "Thread safety"
632 msgstr "سلامة الخيوط"
633
634 #. type: tbl table
635 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
636 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
637 #, no-wrap
638 msgid "MT-Safe"
639 msgstr "MT-Safe"
640
641 #. type: SH
642 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
643 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
644 #, no-wrap
645 msgid "STANDARDS"
646 msgstr "المعايير"
647
648 #. type: Plain text
649 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
650 #: opensuse-tumbleweed
651 msgid "POSIX.1-2024."
652 msgstr "POSIX.1-2024."
653
654 #. type: Plain text
655 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
656 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
657 msgid "B<SS_AUTODISARM> is a Linux extension."
658 msgstr "B<SS_AUTODISARM> هو امتداد لنظام لينكس."
659
660 #. type: SH
661 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
662 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
663 #, no-wrap
664 msgid "HISTORY"
665 msgstr "التاريخ"
666
667 #. type: Plain text
668 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
669 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
670 msgid "POSIX.1-2001, SUSv2, SVr4."
671 msgstr "POSIX.1-2001, SUSv2, SVr4."
672
673 #. type: SH
674 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
675 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
676 #, no-wrap
677 msgid "NOTES"
678 msgstr "ملاحظات"
679
680 #. type: Plain text
681 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
682 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
683 msgid ""
684 "The most common usage of an alternate signal stack is to handle the "
685 "B<SIGSEGV> signal that is generated if the space available for the standard "
686 "stack is exhausted: in this case, a signal handler for B<SIGSEGV> cannot be "
687 "invoked on the standard stack; if we wish to handle it, we must use an "
688 "alternate signal stack."
689 msgstr ""
690 "الاستخدام الأكثر شيوعًا لمكدس الإشارة البديل هو معالجة إشارة B<SIGSEGV> التي "
691 "تُنشأ إذا استُنفدت المساحة المتاحة للمكدس القياسي: في هذه الحالة، لا يمكن "
692 "استدعاء معالج إشارة لـ B<SIGSEGV> على المكدس القياسي؛ إذا أردنا معالجتها، "
693 "يجب استخدام مكدس إشارة بديل."
694
695 #. type: Plain text
696 #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1
697 #: opensuse-tumbleweed
698 msgid ""
699 "Establishing an alternate signal stack is useful if a thread expects that it "
700 "may exhaust its standard stack. This may occur, for example, because the "
701 "stack grows so large that it encounters the upwardly growing heap, or it "
702 "reaches a limit established by a call to I<\\%setrlimit(RLIMIT_STACK,\\ "
703 "&rlim)>. If the standard stack is exhausted, the kernel sends the thread a "
704 "B<SIGSEGV> signal. In these circumstances the only way to catch this signal "
705 "is on an alternate signal stack."
706 msgstr ""
707 "إنشاء مكدس إشارة بديل مفيد إذا توقع خيط أنه قد يستنفد مكدسه القياسي. قد يحدث "
708 "هذا، على سبيل المثال، لأن المكدس ينمو بشكل كبير لدرجة أنه يصطدم بالكومة "
709 "المتنامية لأعلى، أو يصل إلى حد محدد بواسطة استدعاء I<\\"
710 "%setrlimit(RLIMIT_STACK, &rlim)>. إذا استُنفد المكدس القياسي، ترسل النواة "
711 "إشارة B<SIGSEGV> إلى الخيط. في هذه الظروف، الطريقة الوحيدة لالتقاط هذه "
712 "الإشارة هي على مكدس إشارة بديل."
713
714 #. type: Plain text
715 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
716 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
717 msgid ""
718 "On most hardware architectures supported by Linux, stacks grow downward. "
719 "B<sigaltstack>() automatically takes account of the direction of stack "
720 "growth."
721 msgstr ""
722 "في معظم بنى العتاد التي يدعمها لينكس، تنمو المكدسات لأسفل. تراعي "
723 "B<sigaltstack>() آليًا اتجاه نمو المكدس."
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 ""
729 "Functions called from a signal handler executing on an alternate signal "
730 "stack will also use the alternate signal stack. (This also applies to any "
731 "handlers invoked for other signals while the thread is executing on the "
732 "alternate signal stack.) Unlike the standard stack, the system does not "
733 "automatically extend the alternate signal stack. Exceeding the allocated "
734 "size of the alternate signal stack will lead to unpredictable results."
735 msgstr ""
736 "ستستخدم الدوال المُستدعاة من معالج إشارة ينفذ على مكدس إشارة بديل أيضًا مكدس "
737 "الإشارة البديل. (ينطبق هذا أيضًا على أي معالجات تُستدعى لإشارات أخرى بينما "
738 "ينفذ الخيط على مكدس الإشارة البديل.) على عكس المكدس القياسي، لا يقوم النظام "
739 "بتمديد مكدس الإشارة البديل آليًا. تجاوز الحجم المخصص لمكدس الإشارة البديل "
740 "سيؤدي إلى نتائج غير متوقعة."
741
742 #. type: Plain text
743 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
744 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
745 msgid ""
746 "A successful call to B<execve>(2) removes any existing alternate signal "
747 "stack. A child process created via B<fork>(2) inherits a copy of its "
748 "parent's alternate signal stack settings. The same is also true for a child "
749 "process created using B<clone>(2), unless the clone flags include "
750 "B<CLONE_VM> and do not include B<CLONE_VFORK>, in which case any alternate "
751 "signal stack that was established in the parent is disabled in the child "
752 "process."
753 msgstr ""
754 "يزيل استدعاء ناجح لـ B<execve>(2) أي مكدس إشارة بديل موجود. ترث عملية فرعية "
755 "مُنشأة عبر B<fork>(2) نسخة من إعدادات مكدس الإشارة البديل لأبويها. وينطبق "
756 "الشيء نفسه على عملية فرعية مُنشأة باستخدام B<clone>(2)، ما لم تتضمن أعلام "
757 "clone B<CLONE_VM> ولا تتضمن B<CLONE_VFORK>، وفي هذه الحالة يتم تعطيل أي مكدس "
758 "إشارة بديل تم إنشاؤه في العملية الأم في العملية الفرعية."
759
760 #. type: Plain text
761 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
762 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
763 msgid ""
764 "B<sigaltstack>() supersedes the older B<sigstack>() call. For backward "
765 "compatibility, glibc also provides B<sigstack>(). All new applications "
766 "should be written using B<sigaltstack>()."
767 msgstr ""
768 "تحل B<sigaltstack>() محل الاستدعاء الأقدم B<sigstack>(). للتوافق مع "
769 "الإصدارات السابقة، توفر glibc أيضًا B<sigstack>(). يجب كتابة جميع التطبيقات "
770 "الجديدة باستخدام B<sigaltstack>()."
771
772 #. type: SS
773 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
774 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
775 #, no-wrap
776 msgid "History"
777 msgstr "السجل"
778
779 #. type: Plain text
780 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
781 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
782 msgid ""
783 "4.2BSD had a B<sigstack>() system call. It used a slightly different "
784 "struct, and had the major disadvantage that the caller had to know the "
785 "direction of stack growth."
786 msgstr ""
787 "كان لدى 4.2BSD استدعاء نظام B<sigstack>(). استخدم هيكلًا مختلفًا قليلاً، وكان "
788 "له عيب رئيسي وهو أن المُستدعي كان عليه معرفة اتجاه نمو المكدس."
789
790 #. type: SH
791 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
792 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
793 #, no-wrap
794 msgid "BUGS"
795 msgstr "العلل"
796
797 #. Linux 2.3.40
798 #. After quite a bit of web and mail archive searching,
799 #. I could not find the patch on any mailing list, and I
800 #. could find no place where the rationale for this change
801 #. explained -- mtk
802 #. See the source code of Illumos and FreeBSD, for example.
803 #. type: Plain text
804 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
805 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
806 msgid ""
807 "In Linux 2.2 and earlier, the only flag that could be specified in I<ss."
808 "sa_flags> was B<SS_DISABLE>. In the lead up to the release of the Linux 2.4 "
809 "kernel, a change was made to allow B<sigaltstack>() to allow I<ss."
810 "ss_flags==SS_ONSTACK> with the same meaning as I<ss.ss_flags==0> (i.e., the "
811 "inclusion of B<SS_ONSTACK> in I<ss.ss_flags> is a no-op). On other "
812 "implementations, and according to POSIX.1, B<SS_ONSTACK> appears only as a "
813 "reported flag in I<old_ss.ss_flags>. On Linux, there is no need ever to "
814 "specify B<SS_ONSTACK> in I<ss.ss_flags>, and indeed doing so should be "
815 "avoided on portability grounds: various other systems give an error if "
816 "B<SS_ONSTACK> is specified in I<ss.ss_flags>."
817 msgstr ""
818 "في لينكس 2.2 والإصدارات الأقدم، كانت العلامة الوحيدة التي يمكن تحديدها في "
819 "I<ss.sa_flags> هي B<SS_DISABLE>. في الفترة التي سبقت إصدار نواة لينكس 2.4، "
820 "تم إجراء تغيير للسماح لـ B<sigaltstack>() بالسماح بـ I<ss."
821 "ss_flags==SS_ONSTACK> بنفس معنى I<ss.ss_flags==0> (أي، إدراج B<SS_ONSTACK> "
822 "في I<ss.ss_flags> هو عملية لا تأثير لها). في التطبيقات الأخرى، ووفقًا لـ "
823 "POSIX.1، يظهر B<SS_ONSTACK> فقط كعلامة مُبلغ عنها في I<old_ss.ss_flags>. في "
824 "لينكس، ليست هناك حاجة أبدًا لتحديد B<SS_ONSTACK> في I<ss.ss_flags>، وفي "
825 "الواقع يجب تجنب ذلك لأسباب تتعلق بقابلية النقل: تعطي العديد من الأنظمة "
826 "الأخرى خطأً إذا تم تحديد B<SS_ONSTACK> في I<ss.ss_flags>."
827
828 #. type: SH
829 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
830 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
831 #, no-wrap
832 msgid "EXAMPLES"
833 msgstr "أمثلة"
834
835 #. type: Plain text
836 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
837 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
838 msgid ""
839 "The following code segment demonstrates the use of B<sigaltstack>() (and "
840 "B<sigaction>(2)) to install an alternate signal stack that is employed by a "
841 "handler for the B<SIGSEGV> signal:"
842 msgstr ""
843 "يوضح مقطع الكود التالي استخدام B<sigaltstack>() (و B<sigaction>(2)) لتثبيت "
844 "مكدس إشارة بديل يستخدمه معالج إشارة B<SIGSEGV>:"
845
846 #. type: Plain text
847 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
848 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
849 #, no-wrap
850 msgid ""
851 "stack_t ss;\n"
852 "\\&\n"
853 "ss.ss_sp = malloc(SIGSTKSZ);\n"
854 "if (ss.ss_sp == NULL) {\n"
855 " perror(\"malloc\");\n"
856 " exit(EXIT_FAILURE);\n"
857 "}\n"
858 "\\&\n"
859 "ss.ss_size = SIGSTKSZ;\n"
860 "ss.ss_flags = 0;\n"
861 "if (sigaltstack(&ss, NULL) == -1) {\n"
862 " perror(\"sigaltstack\");\n"
863 " exit(EXIT_FAILURE);\n"
864 "}\n"
865 "\\&\n"
866 "sa.sa_flags = SA_ONSTACK;\n"
867 "sa.sa_handler = handler(); /* Address of a signal handler */\n"
868 "sigemptyset(&sa.sa_mask);\n"
869 "if (sigaction(SIGSEGV, &sa, NULL) == -1) {\n"
870 " perror(\"sigaction\");\n"
871 " exit(EXIT_FAILURE);\n"
872 "}\n"
873 msgstr ""
874 "stack_t ss;\n"
875 "\\&\n"
876 "ss.ss_sp = malloc(SIGSTKSZ);\n"
877 "if (ss.ss_sp == NULL) {\n"
878 " perror(\"malloc\");\n"
879 " exit(EXIT_FAILURE);\n"
880 "}\n"
881 "\\&\n"
882 "ss.ss_size = SIGSTKSZ;\n"
883 "ss.ss_flags = 0;\n"
884 "if (sigaltstack(&ss, NULL) == -1) {\n"
885 " perror(\"sigaltstack\");\n"
886 " exit(EXIT_FAILURE);\n"
887 "}\n"
888 "\\&\n"
889 "sa.sa_flags = SA_ONSTACK;\n"
890 "sa.sa_handler = handler(); /* Address of a signal handler */\n"
891 "sigemptyset(&sa.sa_mask);\n"
892 "if (sigaction(SIGSEGV, &sa, NULL) == -1) {\n"
893 " perror(\"sigaction\");\n"
894 " exit(EXIT_FAILURE);\n"
895 "}\n"
896
897 #. type: SH
898 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
899 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
900 #, no-wrap
901 msgid "SEE ALSO"
902 msgstr "انظر أيضًا"
903
904 #. type: Plain text
905 #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide
906 #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed
907 msgid ""
908 "B<execve>(2), B<setrlimit>(2), B<sigaction>(2), B<siglongjmp>(3), "
909 "B<sigsetjmp>(3), B<signal>(7)"
910 msgstr ""
911 "B<execve>(2), B<setrlimit>(2), B<sigaction>(2), B<siglongjmp>(3), "
912 "B<sigsetjmp>(3), B<signal>(7)"
913
914 #. type: TH
915 #: debian-trixie
916 #, no-wrap
917 msgid "2024-05-02"
918 msgstr "2 مايو 2024"
919
920 #. type: TH
921 #: debian-trixie
922 #, no-wrap
923 msgid "Linux man-pages 6.9.1"
924 msgstr "صفحات دليل لينكس 6.9.1"
925
926 #. type: Plain text
927 #: debian-trixie
928 msgid "Standard C library (I<libc>, I<-lc>)"
929 msgstr "مكتبة سي المعيارية (I<libc>، I<-lc>)"
930
931 #. type: Plain text
932 #: debian-trixie fedora-44 fedora-rawhide
933 msgid "POSIX.1-2008."
934 msgstr "POSIX.1-2008."
935
936 #. type: Plain text
937 #: debian-trixie fedora-44 fedora-rawhide
938 msgid ""
939 "Establishing an alternate signal stack is useful if a thread expects that it "
940 "may exhaust its standard stack. This may occur, for example, because the "
941 "stack grows so large that it encounters the upwardly growing heap, or it "
942 "reaches a limit established by a call to B<\\%setrlimit(RLIMIT_STACK, "
943 "&rlim)>. If the standard stack is exhausted, the kernel sends the thread a "
944 "B<SIGSEGV> signal. In these circumstances the only way to catch this signal "
945 "is on an alternate signal stack."
946 msgstr ""
947 "إنشاء مكدس إشارة بديل مفيد إذا توقع خيط أنه قد يستنفد مكدسه القياسي. قد يحدث "
948 "هذا، على سبيل المثال، لأن المكدس ينمو بشكل كبير لدرجة أنه يصطدم بالكومة "
949 "المتنامية لأعلى، أو يصل إلى حد محدد بواسطة استدعاء B<\\"
950 "%setrlimit(RLIMIT_STACK, &rlim)>. إذا استُنفد المكدس القياسي، ترسل النواة "
951 "إشارة B<SIGSEGV> إلى الخيط. في هذه الظروف، الطريقة الوحيدة لالتقاط هذه "
952 "الإشارة هي على مكدس إشارة بديل."
953
954 #. type: TH
955 #: fedora-44 fedora-rawhide
956 #, no-wrap
957 msgid "2024-07-23"
958 msgstr "23 يوليو 2024"
959
960 #. type: TH
961 #: fedora-44 fedora-rawhide
962 #, no-wrap
963 msgid "Linux man-pages 6.13"
964 msgstr "صفحات دليل لينكس 6.13"
965
966 #. type: TH
967 #: mageia-cauldron
968 #, no-wrap
969 msgid "Linux man-pages 6.17"
970 msgstr "صفحات دليل لينكس 6.17"
971
972 #. type: TH
973 #: opensuse-leap-16-1 opensuse-tumbleweed
974 #, no-wrap
975 msgid "Linux man-pages (unreleased)"
976 msgstr "صفحات دليل لينكس (لم تصدر بعد)"