/external/rust/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerUtilPosix.cpp | 63 struct sigaction sigact = {}; in SetSigaction() local 64 if (sigaction(signum, nullptr, &sigact)) { in SetSigaction() 68 if (sigact.sa_flags & SA_SIGINFO) { in SetSigaction() 69 if (sigact.sa_sigaction) { in SetSigaction() 72 upstream_segv_handler = sigact.sa_sigaction; in SetSigaction() 75 if (sigact.sa_handler != SIG_DFL && sigact.sa_handler != SIG_IGN && in SetSigaction() 76 sigact.sa_handler != SIG_ERR) in SetSigaction() 80 sigact = {}; in SetSigaction() 81 sigact.sa_flags = SA_SIGINFO; in SetSigaction() 82 sigact.sa_sigaction = callback; in SetSigaction() [all …]
|
/external/llvm-project/compiler-rt/lib/fuzzer/ |
D | FuzzerUtilPosix.cpp | 63 struct sigaction sigact = {}; in SetSigaction() local 64 if (sigaction(signum, nullptr, &sigact)) { in SetSigaction() 68 if (sigact.sa_flags & SA_SIGINFO) { in SetSigaction() 69 if (sigact.sa_sigaction) { in SetSigaction() 72 upstream_segv_handler = sigact.sa_sigaction; in SetSigaction() 75 if (sigact.sa_handler != SIG_DFL && sigact.sa_handler != SIG_IGN && in SetSigaction() 76 sigact.sa_handler != SIG_ERR) in SetSigaction() 80 sigact = {}; in SetSigaction() 81 sigact.sa_flags = SA_SIGINFO; in SetSigaction() 82 sigact.sa_sigaction = callback; in SetSigaction() [all …]
|
/external/autotest/client/site_tests/platform_ToolchainTests/src/ |
D | clang-fortify-driver.cpp | 17 struct sigaction sigact; in SetTimeout() local 18 bzero(&sigact, sizeof(sigact)); in SetTimeout() 20 sigact.sa_flags = SA_RESETHAND; in SetTimeout() 21 sigact.sa_handler = [](int) { in SetTimeout() 27 if (sigaction(SIGALRM, &sigact, nullptr)) in SetTimeout()
|
/external/llvm-project/compiler-rt/lib/stats/ |
D | stats.cpp | 124 struct sigaction sigact; in WriteReportOnExitOrSignal() local 125 internal_memset(&sigact, 0, sizeof(sigact)); in WriteReportOnExitOrSignal() 126 sigact.sa_handler = USR2Handler; in WriteReportOnExitOrSignal() 127 internal_sigaction(SIGUSR2, &sigact, nullptr); in WriteReportOnExitOrSignal()
|
/external/compiler-rt/lib/stats/ |
D | stats.cc | 124 struct sigaction sigact; in WriteReportOnExitOrSignal() local 125 internal_memset(&sigact, 0, sizeof(sigact)); in WriteReportOnExitOrSignal() 126 sigact.sa_handler = USR2Handler; in WriteReportOnExitOrSignal() 127 internal_sigaction(SIGUSR2, &sigact, nullptr); in WriteReportOnExitOrSignal()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix_libcdep.cpp | 144 struct sigaction sigact; in Abort() local 145 internal_memset(&sigact, 0, sizeof(sigact)); in Abort() 146 sigact.sa_sigaction = (sa_sigaction_t)SIG_DFL; in Abort() 147 internal_sigaction(SIGABRT, &sigact, nullptr); in Abort() 199 struct sigaction sigact; in MaybeInstallSigaction() local 200 internal_memset(&sigact, 0, sizeof(sigact)); in MaybeInstallSigaction() 201 sigact.sa_sigaction = (sa_sigaction_t)handler; in MaybeInstallSigaction() 204 sigact.sa_flags = SA_SIGINFO | SA_NODEFER; in MaybeInstallSigaction() 205 if (common_flags()->use_sigaltstack) sigact.sa_flags |= SA_ONSTACK; in MaybeInstallSigaction() 206 CHECK_EQ(0, internal_sigaction(signum, &sigact, nullptr)); in MaybeInstallSigaction()
|
/external/ltp/testcases/kernel/syscalls/mq_notify/ |
D | mq_notify01.c | 104 struct sigaction sigact; in do_test() local 117 memset(&sigact, 0, sizeof(sigact)); in do_test() 118 sigact.sa_sigaction = sigfunc; in do_test() 119 sigact.sa_flags = SA_SIGINFO; in do_test() 120 if (sigaction(SIGUSR1, &sigact, NULL) == -1) { in do_test()
|
/external/llvm/lib/Fuzzer/afl/ |
D | afl_driver.cpp | 131 struct sigaction sigact; in SetSigaction() local 132 memset(&sigact, 0, sizeof(sigact)); in SetSigaction() 133 sigact.sa_sigaction = callback; in SetSigaction() 134 if (sigaction(signum, &sigact, 0)) { in SetSigaction()
|
/external/libusb/examples/ |
D | sam3u_benchmark.c | 182 struct sigaction sigact; in main() local 184 sigact.sa_handler = sig_hdlr; in main() 185 sigemptyset(&sigact.sa_mask); in main() 186 sigact.sa_flags = 0; in main() 187 (void)sigaction(SIGINT, &sigact, NULL); in main()
|
D | dpfp.c | 575 struct sigaction sigact; in setup_signals() local 577 sigact.sa_handler = sighandler; in setup_signals() 578 sigemptyset(&sigact.sa_mask); in setup_signals() 579 sigact.sa_flags = 0; in setup_signals() 580 (void)sigaction(SIGINT, &sigact, NULL); in setup_signals() 581 (void)sigaction(SIGTERM, &sigact, NULL); in setup_signals() 582 (void)sigaction(SIGQUIT, &sigact, NULL); in setup_signals()
|
/external/openssh/openbsd-compat/ |
D | sigact.c | 49 sigaction(int sig, struct sigaction *sigact, struct sigaction *osigact) in sigaction() argument 51 return sigvec(sig, sigact ? &sigact->sv : NULL, in sigaction()
|
D | sigact.h | 81 int sigaction(int sig, struct sigaction *sigact, struct sigaction *osigact);
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix_libcdep.cc | 178 struct sigaction sigact; in MaybeInstallSigaction() local 179 internal_memset(&sigact, 0, sizeof(sigact)); in MaybeInstallSigaction() 180 sigact.sa_sigaction = (sa_sigaction_t)handler; in MaybeInstallSigaction() 183 sigact.sa_flags = SA_SIGINFO | SA_NODEFER; in MaybeInstallSigaction() 184 if (common_flags()->use_sigaltstack) sigact.sa_flags |= SA_ONSTACK; in MaybeInstallSigaction() 185 CHECK_EQ(0, internal_sigaction(signum, &sigact, nullptr)); in MaybeInstallSigaction()
|
/external/crosvm/sys_util/src/ |
D | signal.rs | 306 let mut sigact: sigaction = mem::zeroed(); in register_signal_handler() localVariable 307 sigact.sa_flags = SA_RESTART; in register_signal_handler() 308 sigact.sa_sigaction = handler as *const () as usize; in register_signal_handler() 310 let ret = sigaction(num, &sigact, null_mut()); in register_signal_handler() 321 let mut sigact: sigaction = unsafe { mem::zeroed() }; in clear_signal_handler() localVariable 322 sigact.sa_flags = SA_RESTART; in clear_signal_handler() 323 sigact.sa_sigaction = SIG_DFL; in clear_signal_handler() 326 let ret = unsafe { sigaction(num, &sigact, null_mut()) }; in clear_signal_handler() 337 let mut sigact: sigaction = unsafe { mem::zeroed() }; in has_default_signal_handler() localVariable 340 let ret = unsafe { sigaction(num, null(), &mut sigact) }; in has_default_signal_handler() [all …]
|
D | scoped_signal_handler.rs | 231 let mut sigact: sigaction = unsafe { zeroed() }; in get_sigaction() localVariable 233 if unsafe { sigaction(signal.into(), null(), &mut sigact) } < 0 { in get_sigaction() 236 Ok(sigact) in get_sigaction() 242 unsafe fn restore_sigaction(signal: Signal, sigact: sigaction) -> Result<sigaction> { in restore_sigaction() 243 if sigaction(signal.into(), &sigact, null_mut()) < 0 { in restore_sigaction() 246 Ok(sigact) in restore_sigaction()
|
/external/perfetto/src/base/ |
D | debug_crash_stack_trace.cc | 248 struct sigaction sigact = {}; in SignalHandler() local 249 sigact.sa_sigaction = &SignalHandler; in SignalHandler() 250 sigact.sa_flags = static_cast<decltype(sigact.sa_flags)>( in SignalHandler() 253 sigaction(g_signals[i].sig_num, &sigact, &g_signals[i].old_handler); in SignalHandler()
|
/external/openssh/ |
D | .depend | 5 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r… 6 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r… 7 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r… 8 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r… 9 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r… 10 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r… 11 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r… 12 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r… 13 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r… 14 …h openbsd-compat/openbsd-compat.h openbsd-compat/base64.h openbsd-compat/sigact.h openbsd-compat/r… [all …]
|
/external/llvm/lib/Fuzzer/ |
D | FuzzerUtil.cpp | 89 struct sigaction sigact; in SetSigaction() local 90 memset(&sigact, 0, sizeof(sigact)); in SetSigaction() 91 sigact.sa_sigaction = callback; in SetSigaction() 92 if (sigaction(signum, &sigact, 0)) { in SetSigaction()
|
/external/dnsmasq/src/ |
D | helper.c | 55 struct sigaction sigact; in create_helper() local 71 sigact.sa_handler = SIG_IGN; in create_helper() 72 sigact.sa_flags = 0; in create_helper() 73 sigemptyset(&sigact.sa_mask); in create_helper() 74 sigaction(SIGTERM, &sigact, NULL); in create_helper() 75 sigaction(SIGALRM, &sigact, NULL); in create_helper()
|
D | dnsmasq.c | 82 struct sigaction sigact; in setupSignalHandling() local 84 sigact.sa_handler = sig_handler; in setupSignalHandling() 85 sigact.sa_flags = 0; in setupSignalHandling() 86 sigemptyset(&sigact.sa_mask); in setupSignalHandling() 87 sigaction(SIGUSR1, &sigact, NULL); in setupSignalHandling() 88 sigaction(SIGUSR2, &sigact, NULL); in setupSignalHandling() 89 sigaction(SIGHUP, &sigact, NULL); in setupSignalHandling() 90 sigaction(SIGTERM, &sigact, NULL); in setupSignalHandling() 91 sigaction(SIGALRM, &sigact, NULL); in setupSignalHandling() 92 sigaction(SIGCHLD, &sigact, NULL); in setupSignalHandling() [all …]
|
/external/curl/lib/ |
D | hostip.c | 671 struct sigaction sigact; in Curl_resolv_timeout() local 726 sigaction(SIGALRM, NULL, &sigact); in Curl_resolv_timeout() 727 keep_sigact = sigact; in Curl_resolv_timeout() 729 sigact.sa_handler = alarmfunc; in Curl_resolv_timeout() 732 sigact.sa_flags &= ~SA_RESTART; in Curl_resolv_timeout() 735 sigaction(SIGALRM, &sigact, NULL); in Curl_resolv_timeout()
|
/external/mksh/src/ |
D | histrap.c | 1498 struct sigaction sigact; in setsig() local 1503 memset(&sigact, 0, sizeof(sigact)); in setsig() 1510 sigaction(p->signal, &Sigact_ign, &sigact); in setsig() 1511 p->flags |= sigact.sa_handler == SIG_IGN ? in setsig() 1542 (void)sigemptyset(&sigact.sa_mask); in setsig() 1544 sigact.sa_flags = 0; in setsig() 1545 sigact.sa_handler = f; in setsig() 1546 sigaction(p->signal, &sigact, NULL); in setsig()
|
/external/llvm-project/compiler-rt/lib/asan/tests/ |
D | asan_test.cpp | 292 struct sigaction sigact; in TEST() local 293 memset(&sigact, 0, sizeof(sigact)); in TEST() 294 sigact.sa_sigaction = my_sigaction_sighandler; in TEST() 295 sigact.sa_flags = SA_SIGINFO; in TEST() 301 EXPECT_EQ(0, sigaction(SIGSEGV, &sigact, 0)); in TEST() 303 EXPECT_EQ(0, sigaction(SIGBUS, &sigact, 0)); in TEST()
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_test.cc | 272 struct sigaction sigact; in TEST() local 273 memset(&sigact, 0, sizeof(sigact)); in TEST() 274 sigact.sa_sigaction = my_sigaction_sighandler; in TEST() 275 sigact.sa_flags = SA_SIGINFO; in TEST() 277 EXPECT_EQ(0, sigaction(SIGSEGV, &sigact, 0)); in TEST() 279 EXPECT_EQ(0, sigaction(SIGBUS, &sigact, 0)); in TEST()
|
/external/libwebsockets/lib/misc/ |
D | daemonize.c | 84 static void lws_daemon_closing(int sigact) in lws_daemon_closing() argument
|