Home
last modified time | relevance | path

Searched refs:altstack (Results 1 – 8 of 8) sorted by relevance

/external/ltp/testcases/kernel/syscalls/signal/
Dsignal06.c64 char altstack[4096 * 10] __attribute__((aligned(4096))); variable
102 TEST(mprotect(altstack, sizeof(altstack), PROT_READ)); in tfunc()
107 TEST(mprotect(altstack, sizeof(altstack), PROT_READ | PROT_WRITE)); in tfunc()
124 .ss_sp = altstack, in main()
125 .ss_size = sizeof(altstack), in main()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix_libcdep.cc149 stack_t altstack, oldstack; in SetAlternateSignalStack() local
158 altstack.ss_sp = (char*) base; in SetAlternateSignalStack()
159 altstack.ss_flags = 0; in SetAlternateSignalStack()
160 altstack.ss_size = kAltStackSize; in SetAlternateSignalStack()
161 CHECK_EQ(0, sigaltstack(&altstack, nullptr)); in SetAlternateSignalStack()
165 stack_t altstack, oldstack; in UnsetAlternateSignalStack() local
166 altstack.ss_sp = nullptr; in UnsetAlternateSignalStack()
167 altstack.ss_flags = SS_DISABLE; in UnsetAlternateSignalStack()
168 altstack.ss_size = kAltStackSize; // Some sane value required on Darwin. in UnsetAlternateSignalStack()
169 CHECK_EQ(0, sigaltstack(&altstack, &oldstack)); in UnsetAlternateSignalStack()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/
Dstress.c173 if (scenarii[sc].altstack != 0) in main()
230 if ((scenarii[sc].altstack == 0) in main()
Dthreads_scenarii.c37 int altstack; /* 0 => system manages the stack; 1 => stack is provided */ member
53 .altstack=sta, \
334 if (scenarii[i].altstack != 0) { in scenar_init()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/testfrmw/
Dthreads_scenarii.c58 int altstack; member
96 .altstack = sta, \
380 if (scenarii[i].altstack != 0) { in scenar_init()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/
Dthreads_scenarii.c37 int altstack; /* 0 => system manages the stack; 1 => stack is provided */ member
53 .altstack=sta, \
401 if (scenarii[i].altstack != 0) { in scenar_init()
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/
Dthreads_scenarii.c37 int altstack; /* 0 => system manages the stack; 1 => stack is provided */ member
53 .altstack=sta, \
334 if (scenarii[i].altstack != 0) { in scenar_init()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D3-2.c430 if ((scenarii[sc].altstack == 0) in main()
486 if ((scenarii[sc].altstack == 0) in main()