Home
last modified time | relevance | path

Searched refs:sigstk (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/syscalls/sigaltstack/
Dsigaltstack01.c87 stack_t sigstk, osigstk; /* signal stack storing struct. */ variable
108 sigstk.ss_size = SIGSTKSZ; in main()
109 sigstk.ss_flags = 0; in main()
110 TEST(sigaltstack(&sigstk, &osigstk)); in main()
145 if ((alt_stk < sigstk.ss_sp) && in main()
146 (alt_stk > (sigstk.ss_sp + SIGSTKSZ))) { in main()
150 } else if ((main_stk >= sigstk.ss_sp) && in main()
152 (sigstk.ss_sp + SIGSTKSZ))) { in main()
204 if ((sigstk.ss_sp = malloc(SIGSTKSZ)) == NULL) { in setup()
236 free(sigstk.ss_sp); in cleanup()
Dsigaltstack02.c87 stack_t sigstk; /* signal stack storing struct. */ variable
125 sigstk.ss_size = Test_cases[ind].size; in main()
126 sigstk.ss_flags = Test_cases[ind].flag; in main()
130 TEST(sigaltstack(&sigstk, NULL)); in main()
174 if ((sigstk.ss_sp = malloc(SIGSTKSZ)) == NULL) { in setup()
189 free(sigstk.ss_sp); in cleanup()