Searched refs:handler (Results 1 – 8 of 8) sorted by relevance
/bionic/libc/bionic/ |
D | ndk_cruft.cpp | 243 sighandler_t bsd_signal(int signum, sighandler_t handler) { in bsd_signal() argument 244 return signal(signum, handler); in bsd_signal() 260 extern "C++" sighandler_t _signal(int signum, sighandler_t handler, int flags); 261 sighandler_t sysv_signal(int signum, sighandler_t handler) { in sysv_signal() argument 262 return _signal(signum, handler, SA_RESETHAND); in sysv_signal()
|
D | signal.cpp | 185 __LIBC_HIDDEN__ sighandler_t _signal(int sig, sighandler_t handler, int flags) { in _signal() argument 186 struct sigaction64 sa = { .sa_handler = handler, .sa_flags = flags }; in _signal() 190 sighandler_t signal(int sig, sighandler_t handler) { in signal() argument 191 return _signal(sig, handler, SA_RESTART); in signal()
|
/bionic/libc/private/ |
D | ScopedSignalHandler.h | 23 ScopedSignalHandler(int signal_number, void (*handler)(int), int sa_flags = 0) 25 action_ = { .sa_flags = sa_flags, .sa_handler = handler }; in signal_number_()
|
/bionic/tests/ |
D | semaphore_test.cpp | 220 ScopedSignalHandler handler(SIGUSR1, sem_wait_test_signal_handler); in TEST() local 243 ScopedSignalHandler handler(SIGUSR1, sem_wait_test_signal_handler); in TEST() local
|
D | signal_test.cpp | 780 struct sigaction handler = {}; in TEST() local 781 handler.sa_sigaction = [](int, siginfo_t* siginfo, void*) { received = *siginfo; }; in TEST() 782 handler.sa_flags = SA_SIGINFO; in TEST() 784 ASSERT_EQ(0, sigaction(SIGUSR1, &handler, nullptr)); in TEST()
|
D | pthread_test.cpp | 1864 ScopedSignalHandler handler(SIGUSR1, getstack_signal_handler, SA_ONSTACK); in TEST() local 2642 ScopedSignalHandler handler(SIGUSR1, SignalHandlerOnAltStack, SA_SIGINFO | SA_ONSTACK); in TEST() local
|
D | unistd_test.cpp | 227 ScopedSignalHandler handler(SIGALRM, PauseTestSignalHandler); in TEST() local
|
/bionic/tests/libs/ |
D | Android.bp | 1001 // This library used to test phtread_atfork handler behaviour
|