Home
last modified time | relevance | path

Searched refs:sigaction (Results 1 – 25 of 251) sorted by relevance

1234567891011

/openbmc/linux/tools/testing/selftests/x86/
H A Dtest_shadow_stack.c221 struct sigaction sa = {}; in test_shstk_violation()
225 if (sigaction(SIGSEGV, &sa, NULL)) in test_shstk_violation()
317 struct sigaction sa = {}; in test_gup()
323 if (sigaction(SIGSEGV, &sa, NULL)) in test_gup()
400 struct sigaction sa = {}; in test_mprotect()
404 if (sigaction(SIGSEGV, &sa, NULL)) in test_mprotect()
485 struct sigaction sa = {}; in test_userfaultfd()
492 if (sigaction(SIGSEGV, &sa, NULL)) in test_userfaultfd()
611 int sigaction32(int signum, const struct sigaction *restrict act, in sigaction32()
612 struct sigaction *restrict oldact) in sigaction32()
[all …]
H A Dsigaltstack.c33 struct sigaction sa; in sethandler()
39 if (sigaction(sig, &sa, 0)) in sethandler()
45 struct sigaction sa; in clearhandler()
50 if (sigaction(sig, &sa, 0)) in clearhandler()
H A Dioperm.c28 struct sigaction sa; in sethandler()
33 if (sigaction(sig, &sa, 0)) in sethandler()
40 struct sigaction sa; in clearhandler()
44 if (sigaction(sig, &sa, 0)) in clearhandler()
H A Dsysret_rip.c45 struct sigaction sa; in sethandler()
50 if (sigaction(sig, &sa, 0)) in sethandler()
56 struct sigaction sa; in clearhandler()
60 if (sigaction(sig, &sa, 0)) in clearhandler()
H A Dsingle_step_syscall.c39 struct sigaction sa; in sethandler()
44 if (sigaction(sig, &sa, 0)) in sethandler()
50 struct sigaction sa; in clearhandler()
54 if (sigaction(sig, &sa, 0)) in clearhandler()
H A Diopl.c28 struct sigaction sa; in sethandler()
33 if (sigaction(sig, &sa, 0)) in sethandler()
40 struct sigaction sa; in clearhandler()
44 if (sigaction(sig, &sa, 0)) in clearhandler()
/openbmc/linux/tools/testing/selftests/clone3/
H A Dclone3_clear_sighand.c51 struct sigaction act; in test_clone3_clear_sighand()
73 ret = sigaction(SIGUSR1, &act, NULL); in test_clone3_clear_sighand()
80 ret = sigaction(SIGUSR2, &act, NULL); in test_clone3_clear_sighand()
94 ret = sigaction(SIGUSR1, NULL, &act); in test_clone3_clear_sighand()
101 ret = sigaction(SIGUSR2, NULL, &act); in test_clone3_clear_sighand()
/openbmc/linux/tools/testing/selftests/perf_events/
H A Dremove_on_exec.c71 struct sigaction oldact; in FIXTURE()
78 struct sigaction action = {}; in FIXTURE_SETUP()
86 ASSERT_EQ(sigaction(SIGTRAP, &action, &self->oldact), 0); in FIXTURE_SETUP()
96 sigaction(SIGTRAP, &self->oldact, NULL); in FIXTURE_TEARDOWN()
231 struct sigaction action = {}; in exec_child()
238 if (sigaction(SIGTRAP, &action, NULL)) in exec_child()
/openbmc/linux/tools/testing/selftests/arm64/bti/
H A Dsignal.h18 int sigaction(int n, struct sigaction *sa, const struct sigaction *old);
H A Dsignal.c29 int sigaction(int n, struct sigaction *sa, const struct sigaction *old) in sigaction() function
/openbmc/qemu/
H A Dos-posix.c45 struct sigaction act; in os_setup_early_signal_handling()
49 sigaction(SIGPIPE, &act, NULL); in os_setup_early_signal_handling()
59 struct sigaction act; in os_setup_signal_handling()
64 sigaction(SIGINT, &act, NULL); in os_setup_signal_handling()
65 sigaction(SIGHUP, &act, NULL); in os_setup_signal_handling()
66 sigaction(SIGTERM, &act, NULL); in os_setup_signal_handling()
/openbmc/qemu/tests/tcg/m68k/
H A Dtrap.c39 struct sigaction act = { in main()
45 sigaction(SIGILL, &act, NULL); in main()
46 sigaction(SIGTRAP, &act, NULL); in main()
47 sigaction(SIGFPE, &act, NULL); in main()
/openbmc/linux/arch/x86/um/
H A Dbugs_32.c24 struct sigaction old, new; in arch_check_bugs()
32 sigaction(SIGILL, &new, &old); in arch_check_bugs()
41 sigaction(SIGILL, &old, &new); in arch_check_bugs()
/openbmc/qemu/tests/tcg/hexagon/
H A Dhex_sigsegv.c59 struct sigaction act; in main()
65 chk_error(sigaction(SIGSEGV, &act, NULL)); in main()
79 chk_error(sigaction(SIGSEGV, &act, NULL)); in main()
H A Dmem_noshuf_exception.c68 struct sigaction act; in main()
77 chk_error(sigaction(SIGSEGV, &act, NULL)); in main()
91 chk_error(sigaction(SIGSEGV, &act, NULL)); in main()
/openbmc/linux/tools/bpf/bpftool/
H A Dtracelog.c127 const struct sigaction act = { in do_tracelog()
145 sigaction(SIGHUP, &act, NULL); in do_tracelog()
146 sigaction(SIGINT, &act, NULL); in do_tracelog()
147 sigaction(SIGTERM, &act, NULL); in do_tracelog()
/openbmc/linux/tools/testing/selftests/powerpc/mm/
H A Dwild_bctr.c126 struct sigaction segv = { in test_wild_bctr()
130 struct sigaction usr2 = { in test_wild_bctr()
135 FAIL_IF(sigaction(SIGSEGV, &segv, NULL)); in test_wild_bctr()
136 FAIL_IF(sigaction(SIGUSR2, &usr2, NULL)); in test_wild_bctr()
H A Dsubpage_prot.c151 struct sigaction act = { in test_anon()
165 sigaction(SIGSEGV, &act, NULL); in test_anon()
187 struct sigaction act = { in test_file()
202 sigaction(SIGSEGV, &act, NULL); in test_file()
/openbmc/linux/tools/testing/selftests/powerpc/signal/
H A Dsignal_tm.c44 struct sigaction act; in test_signal_tm()
49 if (sigaction(SIGUSR1, &act, NULL) < 0) { in test_signal_tm()
53 if (sigaction(SIGALRM, &act, NULL) < 0) { in test_signal_tm()
H A Dsignal.c39 struct sigaction act; in test_signal()
46 if (sigaction(SIGUSR1, &act, NULL) < 0) { in test_signal()
50 if (sigaction(SIGALRM, &act, NULL) < 0) { in test_signal()
/openbmc/linux/tools/testing/selftests/powerpc/tm/
H A Dtm-trap.c255 struct sigaction trap_sa; in tm_trap_test()
262 sigaction(SIGTRAP, &trap_sa, NULL); in tm_trap_test()
264 struct sigaction usr1_sa; in tm_trap_test()
268 sigaction(SIGUSR1, &usr1_sa, NULL); in tm_trap_test()
/openbmc/qemu/tests/tcg/multiarch/linux/
H A Dlinux-sigrtminmax.c37 struct sigaction act; in main()
65 assert(sigaction(SIGRTMIN, &act, NULL) == 0); in main()
66 assert(sigaction(SIGRTMAX, &act, NULL) == 0); in main()
/openbmc/qemu/tests/tcg/s390x/
H A Dtrap.c67 struct sigaction act; in main()
73 chk_error(sigaction(SIGFPE, &act, NULL)); in main()
74 chk_error(sigaction(SIGILL, &act, NULL)); in main()
/openbmc/openbmc/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/
H A Drestore_sigalarm.patch11 + struct sigaction nact, oact;
25 + (void) sigaction(SIGALRM, &nact, &oact);
34 + (void) sigaction(SIGALRM, &oact, NULL);
/openbmc/linux/tools/testing/selftests/powerpc/
H A Dharness.c95 static struct sigaction sig_action = {
111 if (sigaction(SIGINT, &sig_action, NULL)) { in test_harness()
117 if (sigaction(SIGALRM, &sig_action, NULL)) { in test_harness()

1234567891011