/third_party/abseil-cpp/absl/debugging/ |
D | failure_signal_handler.cc | 66 static void RaiseToDefaultHandler(int signo) { in RaiseToDefaultHandler() argument 67 signal(signo, SIG_DFL); in RaiseToDefaultHandler() 68 raise(signo); in RaiseToDefaultHandler() 72 const int signo; member 99 static void RaiseToPreviousHandler(int signo) { in RaiseToPreviousHandler() argument 102 if (it.signo == signo) { in RaiseToPreviousHandler() 104 sigaction(signo, &it.previous_action, nullptr); in RaiseToPreviousHandler() 106 signal(signo, it.previous_handler); in RaiseToPreviousHandler() 108 raise(signo); in RaiseToPreviousHandler() 114 RaiseToDefaultHandler(signo); in RaiseToPreviousHandler() [all …]
|
D | failure_signal_handler_test.cc | 43 void InstallHandlerAndRaise(int signo) { in InstallHandlerAndRaise() argument 45 raise(signo); in InstallHandlerAndRaise() 49 const int signo = GetParam(); in TEST_P() local 51 "\\*\\*\\* ", absl::debugging_internal::FailureSignalToString(signo), in TEST_P() 54 EXPECT_EXIT(InstallHandlerAndRaise(signo), testing::KilledBySignal(signo), in TEST_P() 58 EXPECT_DEATH_IF_SUPPORTED(InstallHandlerAndRaise(signo), exit_regex); in TEST_P() 88 void InstallHandlerWithWriteToFileAndRaise(const char* file, int signo) { in InstallHandlerWithWriteToFileAndRaise() argument 94 raise(signo); in InstallHandlerWithWriteToFileAndRaise() 98 const int signo = GetParam(); in TEST_P() local 100 std::string file = absl::StrCat(tmp_dir, "/signo_", signo); in TEST_P() [all …]
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/ |
D | failure_signal_handler.cc | 67 static void RaiseToDefaultHandler(int signo) { in RaiseToDefaultHandler() argument 68 signal(signo, SIG_DFL); in RaiseToDefaultHandler() 69 raise(signo); in RaiseToDefaultHandler() 73 const int signo; member 100 static void RaiseToPreviousHandler(int signo) { in RaiseToPreviousHandler() argument 103 if (it.signo == signo) { in RaiseToPreviousHandler() 105 sigaction(signo, &it.previous_action, nullptr); in RaiseToPreviousHandler() 107 signal(signo, it.previous_handler); in RaiseToPreviousHandler() 109 raise(signo); in RaiseToPreviousHandler() 115 RaiseToDefaultHandler(signo); in RaiseToPreviousHandler() [all …]
|
D | failure_signal_handler_test.cc | 43 void InstallHandlerAndRaise(int signo) { in InstallHandlerAndRaise() argument 45 raise(signo); in InstallHandlerAndRaise() 49 const int signo = GetParam(); in TEST_P() local 51 "\\*\\*\\* ", absl::debugging_internal::FailureSignalToString(signo), in TEST_P() 54 EXPECT_EXIT(InstallHandlerAndRaise(signo), testing::KilledBySignal(signo), in TEST_P() 58 EXPECT_DEATH_IF_SUPPORTED(InstallHandlerAndRaise(signo), exit_regex); in TEST_P() 88 void InstallHandlerWithWriteToFileAndRaise(const char* file, int signo) { in InstallHandlerWithWriteToFileAndRaise() argument 94 raise(signo); in InstallHandlerWithWriteToFileAndRaise() 98 const int signo = GetParam(); in TEST_P() local 100 std::string file = absl::StrCat(tmp_dir, "/signo_", signo); in TEST_P() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/sigwaitinfo/ |
D | sigwaitinfo01.c | 136 void test_empty_set(swi_func sigwaitinfo, int signo) in test_empty_set() argument 144 child = create_sig_proc(100000, signo, UINT_MAX); in test_empty_set() 152 void test_timeout(swi_func sigwaitinfo, int signo) in test_timeout() argument 162 child = create_sig_proc(100000, signo, UINT_MAX); in test_timeout() 173 void test_unmasked_matching(swi_func sigwaitinfo, int signo) in test_unmasked_matching() argument 180 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo); in test_unmasked_matching() 183 child = create_sig_proc(100000, signo, UINT_MAX); in test_unmasked_matching() 186 REPORT_SUCCESS_COND(signo, 0, si.si_pid == child in test_unmasked_matching() 188 && si.si_signo == signo, "Struct siginfo mismatch"); in test_unmasked_matching() 193 void test_unmasked_matching_noinfo(swi_func sigwaitinfo, int signo) in test_unmasked_matching_noinfo() argument [all …]
|
/third_party/node/test/addons/register-signal-handler/ |
D | test.js | 21 const signo = +process.argv[3]; constant 25 binding.registerSignalHandler(signo, reset); 27 process.kill(process.pid, signo); 32 const signo = signals[raiseSignal]; constant 34 { reset: true, count: 1, stderr: [signo], code: 0, signal: null }, 35 { reset: true, count: 2, stderr: [signo], code: null, signal: raiseSignal }, 36 { reset: false, count: 1, stderr: [signo], code: 0, signal: null }, 37 { reset: false, count: 2, stderr: [signo, signo], code: 0, signal: null }, 45 if (reset && signo === signals.SIGSEGV) 48 const args = [__filename, 'child', signo, reset ? 'reset' : '', count];
|
D | binding.cc | 13 void Handler(int signo, siginfo_t* siginfo, void* ucontext) { in Handler() argument 14 char signo_char = signo; in Handler() 26 int32_t signo = args[0].As<Int32>()->Value(); in RegisterSignalHandler() local 29 node::RegisterSignalHandler(signo, Handler, reset_handler); in RegisterSignalHandler()
|
/third_party/musl/porting/liteos_a/user/src/signal/ |
D | sigaction.c | 23 unsigned char signo; member 45 static void __sig_core(int signo); 46 static void __sig_kill(int signo); 47 static void __sig_cont(int signo); 48 static void __sig_stop(int signo); 49 static void __sig_ignore(int signo); 117 static void __sig_core(int signo) in __sig_core() argument 122 static void __sig_kill(int signo) in __sig_kill() argument 127 static void __sig_cont(int signo) in __sig_cont() argument 132 static void __sig_stop(int signo) in __sig_stop() argument [all …]
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
D | 7-1.c | 37 void myhandler(int signo, siginfo_t *info LTP_ATTRIBUTE_UNUSED, in myhandler() argument 40 printf("%d, ", signo); in myhandler() 41 if (last_signal >= signo) { in myhandler()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/ |
D | 1-1.c | 52 void handler(int signo) in handler() argument 54 if (signo == SIGUSR1) { in handler() 60 } else if (signo == SIGUSR2) { in handler()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
D | 16-1.c | 88 struct sig_info *lookup(int signo) in lookup() argument 93 if (s->sig == signo) in lookup() 101 void handler(int signo) in handler() argument 105 s = lookup(signo); in handler()
|
D | 2-3.c | 24 void handler1(int signo LTP_ATTRIBUTE_UNUSED) in handler1() 28 void handler2(int signo LTP_ATTRIBUTE_UNUSED) in handler2()
|
D | 2-2.c | 24 void handler1(int signo LTP_ATTRIBUTE_UNUSED) in handler1() 28 void handler2(int signo LTP_ATTRIBUTE_UNUSED) in handler2()
|
D | 2-9.c | 24 void handler1(int signo LTP_ATTRIBUTE_UNUSED) in handler1() 28 void handler2(int signo LTP_ATTRIBUTE_UNUSED) in handler2()
|
D | 2-15.c | 24 void handler1(int signo LTP_ATTRIBUTE_UNUSED) in handler1() 28 void handler2(int signo LTP_ATTRIBUTE_UNUSED) in handler2()
|
D | 2-23.c | 24 void handler1(int signo LTP_ATTRIBUTE_UNUSED) in handler1() 28 void handler2(int signo LTP_ATTRIBUTE_UNUSED) in handler2()
|
D | 2-13.c | 24 void handler1(int signo LTP_ATTRIBUTE_UNUSED) in handler1() 28 void handler2(int signo LTP_ATTRIBUTE_UNUSED) in handler2()
|
D | 2-12.c | 24 void handler1(int signo LTP_ATTRIBUTE_UNUSED) in handler1() 28 void handler2(int signo LTP_ATTRIBUTE_UNUSED) in handler2()
|
D | 2-26.c | 24 void handler1(int signo LTP_ATTRIBUTE_UNUSED) in handler1() 28 void handler2(int signo LTP_ATTRIBUTE_UNUSED) in handler2()
|
D | 2-1.c | 24 void handler1(int signo LTP_ATTRIBUTE_UNUSED) in handler1() 28 void handler2(int signo LTP_ATTRIBUTE_UNUSED) in handler2()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/internal/ |
D | stack_consumption_test.cc | 30 static void SimpleSignalHandler(int signo) { in SimpleSignalHandler() argument 35 if (signo == 0) { in SimpleSignalHandler()
|
/third_party/abseil-cpp/absl/debugging/internal/ |
D | stack_consumption_test.cc | 30 static void SimpleSignalHandler(int signo) { in SimpleSignalHandler() argument 35 if (signo == 0) { in SimpleSignalHandler()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/signal/ |
D | 5-1.c | 25 void SIGUSR1_handler(int signo LTP_ATTRIBUTE_UNUSED) in SIGUSR1_handler() 30 void SIGUSR2_handler(int signo LTP_ATTRIBUTE_UNUSED) in SIGUSR2_handler()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/kill/ |
D | 1-1.c | 26 static void handler(int signo) in handler() argument 28 (void) signo; in handler()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/killpg/ |
D | 1-1.c | 26 void handler(int signo) in handler() argument 28 (void) signo; in handler()
|