Searched refs:ScopedSignalHandler (Results 1 – 11 of 11) sorted by relevance
/bionic/libc/private/ |
D | ScopedSignalHandler.h | 21 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/ |
D | system.cpp | 45 ScopedSignalHandler sigint_ignorer(SIGINT, SIG_IGN); in system() 46 ScopedSignalHandler sigquit_ignorer(SIGQUIT, SIG_IGN); in system()
|
/bionic/tests/ |
D | signal_test.cpp | 153 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()
|
D | stack_unwinding_test.cpp | 115 ScopedSignalHandler ssh(SIGUSR1, UnwindSignalHandler); in TEST() 122 ScopedSignalHandler ssh(SIGUSR1, UnwindSignalHandler, SA_SIGINFO); in TEST()
|
D | heap_tagging_level_test.cpp | 111 ScopedSignalHandler ssh(SIGSEGV, CheckSiCode<SEGV_MTEAERR>, SA_SIGINFO); in TEST() 119 ScopedSignalHandler ssh(SIGSEGV, CheckSiCode<SEGV_MTESERR>, SA_SIGINFO); in TEST()
|
D | semaphore_test.cpp | 220 ScopedSignalHandler handler(SIGUSR1, sem_wait_test_signal_handler); in TEST() 243 ScopedSignalHandler handler(SIGUSR1, sem_wait_test_signal_handler); in TEST()
|
D | threads_test.cpp | 403 ScopedSignalHandler ssh{SIGALRM, [](int) {}}; in TEST() 421 ScopedSignalHandler ssh{SIGALRM, [](int) {}}; in TEST()
|
D | time_test.cpp | 417 ScopedSignalHandler ssh(SIGUSR1, timer_create_SIGEV_SIGNAL_signal_handler); in TEST() 531 ScopedSignalHandler ssh(SIGALRM, timer_create_NULL_signal_handler); in TEST()
|
D | spawn_test.cpp | 490 ScopedSignalHandler ssh(SIGRTMIN, [](int) { ASSERT_EQ(getpid(), parent); }); in TEST()
|
D | pthread_test.cpp | 545 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()
|
D | unistd_test.cpp | 227 ScopedSignalHandler handler(SIGALRM, PauseTestSignalHandler); in TEST()
|