/linux/tools/testing/selftests/clone3/ |
H A D | clone3_clear_sighand.c | 47 struct sigaction act; in test_clone3_clear_sighand() 69 ret = sigaction(SIGUSR1, &act, NULL); in test_clone3_clear_sighand() 76 ret = sigaction(SIGUSR2, &act, NULL); in test_clone3_clear_sighand() 90 ret = sigaction(SIGUSR1, NULL, &act); in test_clone3_clear_sighand() 97 ret = sigaction(SIGUSR2, NULL, &act); in test_clone3_clear_sighand()
|
/linux/tools/testing/selftests/x86/ |
H A D | test_shadow_stack.c | 222 struct sigaction sa = {}; in test_shstk_violation() 226 if (sigaction(SIGSEGV, &sa, NULL)) in test_shstk_violation() 318 struct sigaction sa = {}; in test_gup() 324 if (sigaction(SIGSEGV, &sa, NULL)) in test_gup() 401 struct sigaction sa = {}; in test_mprotect() 405 if (sigaction(SIGSEGV, &sa, NULL)) in test_mprotect() 486 struct sigaction sa = {}; in test_userfaultfd() 493 if (sigaction(SIGSEGV, &sa, NULL)) in test_userfaultfd() 665 int sigaction32(int signum, const struct sigaction *restrict act, in sigaction32() 666 struct sigaction *restrict oldact) in sigaction32() [all …]
|
H A D | nx_stack.c | 164 struct sigaction act = {}; in main() 168 int rv = sigaction(SIGSEGV, &act, NULL); in main() 172 struct sigaction act = {}; in main() 176 int rv = sigaction(SIGTRAP, &act, NULL); in main()
|
/linux/tools/testing/selftests/perf_events/ |
H A D | remove_on_exec.c | 71 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()
|
H A D | watermark_signal.c | 47 struct sigaction previous_sigio, sigio = { 0 }; in TEST() 54 EXPECT_EQ(sigaction(SIGIO, &sigio, &previous_sigio), 0); in TEST() 143 sigaction(SIGIO, &previous_sigio, NULL); in TEST()
|
/linux/tools/testing/selftests/arm64/bti/ |
H A D | signal.h | 18 int sigaction(int n, struct sigaction *sa, const struct sigaction *old);
|
H A D | signal.c | 29 int sigaction(int n, struct sigaction *sa, const struct sigaction *old) in sigaction() function
|
/linux/tools/bpf/bpftool/ |
H A D | tracelog.c | 127 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()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | perf_skip.c | 37 struct sigaction action = {}; in serial_test_perf_skip() 38 struct sigaction previous_sigtrap; in serial_test_perf_skip() 50 if (!ASSERT_OK(sigaction(SIGTRAP, &action, &previous_sigtrap), "sigaction")) in serial_test_perf_skip() 136 sigaction(SIGTRAP, &previous_sigtrap, NULL); in serial_test_perf_skip()
|
/linux/tools/testing/selftests/powerpc/mm/ |
H A D | wild_bctr.c | 126 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 D | bad_accesses.c | 70 struct sigaction sig; in test() 73 sig = (struct sigaction) { in test() 78 FAIL_IF(sigaction(SIGSEGV, &sig, NULL) != 0); in test()
|
/linux/tools/testing/selftests/powerpc/tm/ |
H A D | tm-trap.c | 255 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()
|
H A D | tm-sigreturn.c | 54 struct sigaction sa; in tm_sigreturn() 65 if (sigaction(SIGSEGV, &sa, NULL)) in tm_sigreturn()
|
/linux/tools/testing/selftests/powerpc/signal/ |
H A D | signal_tm.c | 44 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 D | signal.c | 39 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()
|
H A D | sig_sc_double_restart.c | 99 struct sigaction act; in test_restart() 106 if (sigaction(SIGUSR1, &act, NULL) == -1) { in test_restart() 114 if (sigaction(SIGUSR2, &act, NULL) == -1) { in test_restart()
|
H A D | sigreturn_unaligned.c | 27 struct sigaction action; in test_sigreturn_unaligned() 33 FAIL_IF(sigaction(SIGUSR1, &action, NULL) == -1); in test_sigreturn_unaligned()
|
/linux/tools/testing/selftests/powerpc/ |
H A D | harness.c | 95 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()
|
H A D | utils.c | 622 struct sigaction push_signal_handler(int sig, void (*fn)(int, siginfo_t *, void *)) in push_signal_handler() 624 struct sigaction sa; in push_signal_handler() 625 struct sigaction old_handler; in push_signal_handler() 630 FAIL_IF_EXIT_MSG(sigaction(sig, &sa, &old_handler), in push_signal_handler() 636 struct sigaction pop_signal_handler(int sig, struct sigaction old_handler) in pop_signal_handler() 638 struct sigaction popped; in pop_signal_handler() 640 FAIL_IF_EXIT_MSG(sigaction(sig, &old_handler, &popped), in pop_signal_handler()
|
/linux/tools/perf/tests/ |
H A D | bp_signal.c | 167 struct sigaction sa; in test__bp_signal() 176 memset(&sa, 0, sizeof(struct sigaction)); in test__bp_signal() 180 if (sigaction(SIGIO, &sa, NULL) < 0) { in test__bp_signal() 186 if (sigaction(SIGUSR1, &sa, NULL) < 0) { in test__bp_signal()
|
H A D | bp_signal_overflow.c | 66 struct sigaction sa; in test__bp_signal_overflow() 76 memset(&sa, 0, sizeof(struct sigaction)); in test__bp_signal_overflow() 80 if (sigaction(SIGIO, &sa, NULL) < 0) { in test__bp_signal_overflow()
|
/linux/arch/um/os-Linux/ |
H A D | sigio.c | 203 struct sigaction old, new; in check_one_sigio() 238 if (sigaction(SIGIO, NULL, &old) < 0) { in check_one_sigio() 246 if (sigaction(SIGIO, &new, NULL) < 0) { in check_one_sigio() 258 if (sigaction(SIGIO, &old, NULL) < 0) in check_one_sigio()
|
/linux/tools/arch/x86/dell-uart-backlight-emulator/ |
H A D | dell-uart-backlight-emulator.c | 41 struct sigaction sigact = { .sa_handler = signalhdlr }; in main() 78 sigaction(SIGINT, &sigact, 0); in main() 79 sigaction(SIGTERM, &sigact, 0); in main()
|
/linux/tools/power/x86/intel-speed-select/ |
H A D | isst-daemon.c | 151 struct sigaction sig_actions; 169 sigaction(SIGHUP, &sig_actions, NULL); 170 sigaction(SIGTERM, &sig_actions, NULL); 171 sigaction(SIGINT, &sig_actions, NULL);
|
/linux/tools/testing/selftests/filesystems/ |
H A D | dnotify_test.c | 18 struct sigaction act; in main() 24 sigaction(SIGRTMIN + 1, &act, NULL); in main()
|