Home
last modified time | relevance | path

Searched refs:SIG_ERR (Results 1 – 17 of 17) sorted by relevance

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dperf_skip.c39 sighandler_t previous_sigio = SIG_ERR; in serial_test_perf_skip()
54 if (!ASSERT_NEQ(previous_sigio, SIG_ERR, "signal")) in serial_test_perf_skip()
134 if (previous_sigio != SIG_ERR) in serial_test_perf_skip()
H A Dsend_signal.c58 ASSERT_NEQ(signal(SIGUSR1, sigusr1_handler), SIG_ERR, "signal"); in test_send_signal_common()
/linux/tools/lib/subcmd/
H A Dsigchain.c28 if (s->old[s->n] == SIG_ERR) in sigchain_push()
41 if (signal(sig, s->old[s->n - 1]) == SIG_ERR) in sigchain_pop()
/linux/tools/testing/selftests/powerpc/tm/
H A Dtm-signal-stack.c60 if (signal(SIGSEGV, signal_segv) == SIG_ERR) in tm_signal_stack()
H A Dtm-signal-msr-resv.c62 if (signal(SIGSEGV, signal_segv) == SIG_ERR) in tm_signal_msr_resv()
/linux/include/uapi/asm-generic/
H A Dsignal-defs.h90 #define SIG_ERR ((__force __sighandler_t)-1) /* error return from signal */ macro
/linux/tools/thermal/tmon/
H A Dtmon.c277 if (signal(SIGINT, tmon_sig_handler) == SIG_ERR) in main()
279 if (signal(SIGTERM, tmon_sig_handler) == SIG_ERR) in main()
/linux/samples/bpf/
H A Dcookie_uid_helper_example.c317 if (signal(SIGINT, finish) == SIG_ERR) in main()
319 if (signal(SIGTERM, finish) == SIG_ERR) in main()
/linux/tools/testing/selftests/mm/
H A Dmkdirty.c46 if (signal(SIGSEGV, signal_handler) == SIG_ERR) { in do_test_write_sigsegv()
55 if (signal(SIGSEGV, SIG_DFL) == SIG_ERR) in do_test_write_sigsegv()
H A Dwrite_to_hugetlbfs.c79 if (signal(SIGINT, sig_handler) == SIG_ERR) in main()
H A Duffd-stress.c442 if (signal(SIGALRM, sigalrm) == SIG_ERR) in main()
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_poll_test.c74 if (signal(SIGALRM, handle_alarm) == SIG_ERR) in main()
/linux/tools/testing/selftests/kvm/x86_64/
H A Dvmx_exception_with_invalid_guest_state.c136 TEST_ASSERT(signal(SIGALRM, sigalrm_handler) != SIG_ERR, in main()
/linux/tools/testing/selftests/timers/
H A Dposix_timers.c146 if (signal(SIGALRM, sig_handler) == SIG_ERR) in check_timer_create()
206 if (signal(SIGALRM, ctd_sighandler) == SIG_ERR) in check_timer_distribution()
307 if (signal(SIGUSR1, SIG_IGN) == SIG_ERR) in check_sig_ign()
/linux/tools/testing/selftests/net/
H A Dfin_ack_lat.c118 if (signal(SIGTERM, sig_handler) == SIG_ERR) in main()
/linux/samples/timers/
H A Dhpet_example.c233 if ((oldsig = signal(SIGIO, hpet_sigio)) == SIG_ERR) { in hpet_fasync()
/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c3568 if (signal(SIGUSR1, signal_handler) == SIG_ERR) { in TEST()