Debian Codegraph @

templates/man2/sigaltstack.2.pot

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