Searched refs:sigstk (Results 1 – 7 of 7) sorted by relevance
/third_party/ltp/testcases/kernel/syscalls/sigaltstack/ |
D | sigaltstack01.c | 87 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()
|
D | sigaltstack02.c | 87 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()
|
/third_party/abseil-cpp/absl/debugging/internal/ |
D | stack_consumption.cc | 118 stack_t sigstk; in GetSignalHandlerStackConsumption() local 119 memset(&sigstk, 0, sizeof(sigstk)); in GetSignalHandlerStackConsumption() 120 sigstk.ss_sp = altstack; in GetSignalHandlerStackConsumption() 121 sigstk.ss_size = kAlternateStackSize; in GetSignalHandlerStackConsumption() 122 sigstk.ss_flags = 0; in GetSignalHandlerStackConsumption() 125 ABSL_RAW_CHECK(sigaltstack(&sigstk, &old_sigstk) == 0, in GetSignalHandlerStackConsumption()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/ |
D | stack_consumption.cc | 118 stack_t sigstk; in GetSignalHandlerStackConsumption() local 119 memset(&sigstk, 0, sizeof(sigstk)); in GetSignalHandlerStackConsumption() 120 sigstk.ss_sp = altstack; in GetSignalHandlerStackConsumption() 121 sigstk.ss_size = kAlternateStackSize; in GetSignalHandlerStackConsumption() 122 sigstk.ss_flags = 0; in GetSignalHandlerStackConsumption() 125 ABSL_RAW_CHECK(sigaltstack(&sigstk, &old_sigstk) == 0, in GetSignalHandlerStackConsumption()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/ |
D | failure_signal_handler.cc | 147 stack_t sigstk; in SetupAlternateStackOnce() local 148 memset(&sigstk, 0, sizeof(sigstk)); in SetupAlternateStackOnce() 149 sigstk.ss_size = stack_size; in SetupAlternateStackOnce() 158 sigstk.ss_sp = mmap(nullptr, sigstk.ss_size, PROT_READ | PROT_WRITE, in SetupAlternateStackOnce() 160 if (sigstk.ss_sp == MAP_FAILED) { in SetupAlternateStackOnce() 164 sigstk.ss_sp = malloc(sigstk.ss_size); in SetupAlternateStackOnce() 165 if (sigstk.ss_sp == nullptr) { in SetupAlternateStackOnce() 170 if (sigaltstack(&sigstk, nullptr) != 0) { in SetupAlternateStackOnce()
|
/third_party/abseil-cpp/absl/debugging/ |
D | failure_signal_handler.cc | 145 stack_t sigstk; in SetupAlternateStackOnce() local 146 memset(&sigstk, 0, sizeof(sigstk)); in SetupAlternateStackOnce() 147 sigstk.ss_size = stack_size; in SetupAlternateStackOnce() 156 sigstk.ss_sp = mmap(nullptr, sigstk.ss_size, PROT_READ | PROT_WRITE, in SetupAlternateStackOnce() 158 if (sigstk.ss_sp == MAP_FAILED) { in SetupAlternateStackOnce() 162 sigstk.ss_sp = malloc(sigstk.ss_size); in SetupAlternateStackOnce() 163 if (sigstk.ss_sp == nullptr) { in SetupAlternateStackOnce() 168 if (sigaltstack(&sigstk, nullptr) != 0) { in SetupAlternateStackOnce()
|
/third_party/boost/boost/test/impl/ |
D | execution_monitor.ipp | 797 stack_t sigstk; 798 std::memset( &sigstk, 0, sizeof(stack_t) ); 800 BOOST_TEST_SYS_ASSERT( ::sigaltstack( 0, &sigstk ) != -1 ); 802 if( sigstk.ss_flags & SS_DISABLE ) { 803 sigstk.ss_sp = alt_stack; 804 sigstk.ss_size = BOOST_TEST_ALT_STACK_SIZE; 805 sigstk.ss_flags = 0; 806 BOOST_TEST_SYS_ASSERT( ::sigaltstack( &sigstk, 0 ) != -1 ); 826 stack_t sigstk = { 0, 0, 0 }; 828 stack_t sigstk = { }; [all …]
|