Home
last modified time | relevance | path

Searched refs:ScopedSignalHandler (Results 1 – 11 of 11) sorted by relevance

/bionic/libc/private/
DScopedSignalHandler.h21 class ScopedSignalHandler {
23 ScopedSignalHandler(int signal_number, void (*handler)(int), int sa_flags = 0)
29 ScopedSignalHandler(int signal_number, void (*action)(int, siginfo_t*, void*),
36 explicit ScopedSignalHandler(int signal_number) : signal_number_(signal_number) { in ScopedSignalHandler() function
40 ~ScopedSignalHandler() { in ~ScopedSignalHandler()
/bionic/libc/bionic/
Dsystem.cpp45 ScopedSignalHandler sigint_ignorer(SIGINT, SIG_IGN); in system()
46 ScopedSignalHandler sigquit_ignorer(SIGQUIT, SIG_IGN); in system()
/bionic/tests/
Dsignal_test.cpp153 ScopedSignalHandler ssh(SIGALRM, raise_in_signal_handler_helper); in TEST()
168 ScopedSignalHandler ssh(SIGALRM, [](int) { ++g_sigsuspend_signal_handler_call_count; }); in TEST()
210 ScopedSignalHandler ssh(SIGRTMIN, [](int) { ++g_sigsuspend64_signal_handler_call_count; }); in TEST()
584 ScopedSignalHandler ssh(SIGALRM, SigqueueSignalHandler, SA_SIGINFO); in TEST()
593 ScopedSignalHandler ssh(SIGALRM, SigqueueSignalHandler, SA_SIGINFO); in TEST()
602 ScopedSignalHandler ssh(SIGALRM, SigqueueSignalHandler, SA_SIGINFO); in TEST()
832 ScopedSignalHandler sigalrm{SIGALRM}; in TEST()
860 ScopedSignalHandler ssh{sig, [](int) { signal_handler_call_count++; }}; in TestSigholdSigpauseSigrelse()
908 ScopedSignalHandler ssh{SIGRTMIN, signal_handler}; in TEST()
928 ScopedSignalHandler ssh{SIGALRM, signal_handler}; in TEST()
Dstack_unwinding_test.cpp115 ScopedSignalHandler ssh(SIGUSR1, UnwindSignalHandler); in TEST()
122 ScopedSignalHandler ssh(SIGUSR1, UnwindSignalHandler, SA_SIGINFO); in TEST()
Dheap_tagging_level_test.cpp111 ScopedSignalHandler ssh(SIGSEGV, CheckSiCode<SEGV_MTEAERR>, SA_SIGINFO); in TEST()
119 ScopedSignalHandler ssh(SIGSEGV, CheckSiCode<SEGV_MTESERR>, SA_SIGINFO); in TEST()
Dsemaphore_test.cpp220 ScopedSignalHandler handler(SIGUSR1, sem_wait_test_signal_handler); in TEST()
243 ScopedSignalHandler handler(SIGUSR1, sem_wait_test_signal_handler); in TEST()
Dthreads_test.cpp403 ScopedSignalHandler ssh{SIGALRM, [](int) {}}; in TEST()
421 ScopedSignalHandler ssh{SIGALRM, [](int) {}}; in TEST()
Dtime_test.cpp417 ScopedSignalHandler ssh(SIGUSR1, timer_create_SIGEV_SIGNAL_signal_handler); in TEST()
531 ScopedSignalHandler ssh(SIGALRM, timer_create_NULL_signal_handler); in TEST()
Dspawn_test.cpp490 ScopedSignalHandler ssh(SIGRTMIN, [](int) { ASSERT_EQ(getpid(), parent); }); in TEST()
Dpthread_test.cpp545 ScopedSignalHandler ssh(SIGALRM, pthread_kill__in_signal_handler_helper); in TEST()
1864 ScopedSignalHandler handler(SIGUSR1, getstack_signal_handler, SA_ONSTACK); in TEST()
2642 ScopedSignalHandler handler(SIGUSR1, SignalHandlerOnAltStack, SA_SIGINFO | SA_ONSTACK); in TEST()
Dunistd_test.cpp227 ScopedSignalHandler handler(SIGALRM, PauseTestSignalHandler); in TEST()