Dmitry V. Levin | 9c8654e | 2016-01-04 23:34:00 +0000 | [diff] [blame] | 1 | #include "tests.h" |
Elvira Khabirova | 10020ae | 2015-07-17 04:45:25 +0300 | [diff] [blame] | 2 | #include <signal.h> |
3 | |||||
4 | int | ||||
5 | main(void) | ||||
6 | { | ||||
7 | stack_t ss = { | ||||
8 | .ss_sp = (void *) 0xbaadf00d, | ||||
9 | .ss_flags = SS_DISABLE, | ||||
10 | .ss_size = 0xdeadbeef | ||||
11 | }; | ||||
Dmitry V. Levin | 9c8654e | 2016-01-04 23:34:00 +0000 | [diff] [blame] | 12 | if (sigaltstack(&ss, (stack_t *) 0)) |
13 | perror_msg_and_skip("sigaltstack"); | ||||
14 | return 0; | ||||
Elvira Khabirova | 10020ae | 2015-07-17 04:45:25 +0300 | [diff] [blame] | 15 | } |