Home
last modified time | relevance | path

Searched refs:sigact (Results 1 – 15 of 15) sorted by relevance

/external/valgrind/none/tests/
Dpth_blockedsig.c33 struct sigaction sigact; in main() local
44 memset (&sigact, 0, sizeof sigact); in main()
45 sigact.sa_handler = sig_usr1; in main()
46 if (sigaction(SIGUSR1, &sigact, NULL) != 0) in main()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix_libcdep.cc173 struct sigaction sigact; in MaybeInstallSigaction() local
174 internal_memset(&sigact, 0, sizeof(sigact)); in MaybeInstallSigaction()
175 sigact.sa_sigaction = (sa_sigaction_t)handler; in MaybeInstallSigaction()
178 sigact.sa_flags = SA_SIGINFO | SA_NODEFER; in MaybeInstallSigaction()
179 if (common_flags()->use_sigaltstack) sigact.sa_flags |= SA_ONSTACK; in MaybeInstallSigaction()
180 CHECK_EQ(0, internal_sigaction(signum, &sigact, nullptr)); in MaybeInstallSigaction()
/external/libusb/examples/
Ddpfp.c419 struct sigaction sigact; in main() local
459 sigact.sa_handler = sighandler; in main()
460 sigemptyset(&sigact.sa_mask); in main()
461 sigact.sa_flags = 0; in main()
462 sigaction(SIGINT, &sigact, NULL); in main()
463 sigaction(SIGTERM, &sigact, NULL); in main()
464 sigaction(SIGQUIT, &sigact, NULL); in main()
Ddpfp_threaded.c446 struct sigaction sigact; in main() local
478 sigact.sa_handler = sighandler; in main()
479 sigemptyset(&sigact.sa_mask); in main()
480 sigact.sa_flags = 0; in main()
481 sigaction(SIGINT, &sigact, NULL); in main()
482 sigaction(SIGTERM, &sigact, NULL); in main()
483 sigaction(SIGQUIT, &sigact, NULL); in main()
/external/openssh/openbsd-compat/
Dsigact.c49 sigaction(int sig, struct sigaction *sigact, struct sigaction *osigact) in sigaction() argument
51 return sigvec(sig, sigact ? &sigact->sv : NULL, in sigaction()
Dsigact.h81 int sigaction(int sig, struct sigaction *sigact, struct sigaction *osigact);
DMakefile.in19 …lpath.o rresvport.o setenv.o setproctitle.o sha1.o sha2.o rmd160.o md5.o sigact.o strlcat.o strlcp…
/external/llvm/lib/Fuzzer/
DFuzzerUtil.cpp57 struct sigaction sigact; in SetTimer() local
58 memset(&sigact, 0, sizeof(sigact)); in SetTimer()
59 sigact.sa_sigaction = AlarmHandler; in SetTimer()
60 Res = sigaction(SIGALRM, &sigact, 0); in SetTimer()
/external/dnsmasq/src/
Dhelper.c57 struct sigaction sigact; in create_helper() local
75 sigact.sa_handler = SIG_IGN; in create_helper()
76 sigact.sa_flags = 0; in create_helper()
77 sigemptyset(&sigact.sa_mask); in create_helper()
78 sigaction(SIGTERM, &sigact, NULL); in create_helper()
79 sigaction(SIGALRM, &sigact, NULL); in create_helper()
Ddnsmasq.c76 struct sigaction sigact; in main() local
99 sigact.sa_handler = sig_handler; in main()
100 sigact.sa_flags = 0; in main()
101 sigemptyset(&sigact.sa_mask); in main()
102 sigaction(SIGUSR1, &sigact, NULL); in main()
103 sigaction(SIGUSR2, &sigact, NULL); in main()
104 sigaction(SIGHUP, &sigact, NULL); in main()
105 sigaction(SIGTERM, &sigact, NULL); in main()
106 sigaction(SIGALRM, &sigact, NULL); in main()
107 sigaction(SIGCHLD, &sigact, NULL); in main()
[all …]
/external/curl/lib/
Dhostip.c577 struct sigaction sigact; in Curl_resolv_timeout() local
629 sigaction(SIGALRM, NULL, &sigact); in Curl_resolv_timeout()
630 keep_sigact = sigact; in Curl_resolv_timeout()
632 sigact.sa_handler = alarmfunc; in Curl_resolv_timeout()
635 sigact.sa_flags &= ~SA_RESTART; in Curl_resolv_timeout()
638 sigaction(SIGALRM, &sigact, NULL); in Curl_resolv_timeout()
/external/mksh/src/
Dhistrap.c1445 struct sigaction sigact; in setsig() local
1450 memset(&sigact, 0, sizeof(sigact)); in setsig()
1457 sigaction(p->signal, &Sigact_ign, &sigact); in setsig()
1458 p->flags |= sigact.sa_handler == SIG_IGN ? in setsig()
1489 (void)sigemptyset(&sigact.sa_mask); in setsig()
1491 sigact.sa_flags = 0; in setsig()
1492 sigact.sa_handler = f; in setsig()
1493 sigaction(p->signal, &sigact, NULL); in setsig()
/external/compiler-rt/lib/asan/tests/
Dasan_test.cc272 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/compiler-rt/lib/tsan/rtl/
Dtsan_interceptors.cc1935 bool sigact, int sig, my_siginfo_t *info, void *uctx) { in CallUserSignalHandler() argument
1944 volatile uptr pc = sigact ? in CallUserSignalHandler()
1948 if (sigact) in CallUserSignalHandler()
2005 void ALWAYS_INLINE rtl_generic_sighandler(bool sigact, int sig, in rtl_generic_sighandler() argument
2027 CallUserSignalHandler(thr, sync, true, sigact, sig, info, ctx); in rtl_generic_sighandler()
2037 CallUserSignalHandler(thr, sync, acq, sigact, sig, info, ctx); in rtl_generic_sighandler()
2048 signal->sigaction = sigact; in rtl_generic_sighandler()
/external/valgrind/perf/
Dtinycc.c20727 struct sigaction sigact; in tcc_run()
20730 sigact.sa_flags = SA_SIGINFO | SA_RESETHAND; in tcc_run()
20731 sigact.sa_sigaction = sig_error; in tcc_run()
20732 sigemptyset(&sigact.sa_mask); in tcc_run()
20733 sigaction(SIGFPE, &sigact, NULL); in tcc_run()
20734 sigaction(SIGILL, &sigact, NULL); in tcc_run()
20735 sigaction(SIGSEGV, &sigact, NULL); in tcc_run()
20736 sigaction(SIGBUS, &sigact, NULL); in tcc_run()
20737 sigaction(SIGABRT, &sigact, NULL); in tcc_run()