Home
last modified time | relevance | path

Searched refs:handler (Results 1 – 8 of 8) sorted by relevance

/bionic/libc/bionic/
Dsignal.cpp31 __LIBC_HIDDEN__ sighandler_t _signal(int signum, sighandler_t handler, int flags) { in _signal() argument
34 sa.sa_handler = handler; in _signal()
44 sighandler_t signal(int signum, sighandler_t handler) { in signal() argument
45 return _signal(signum, handler, SA_RESTART); in signal()
Dndk_cruft.cpp239 sighandler_t bsd_signal(int signum, sighandler_t handler) { in bsd_signal() argument
240 return signal(signum, handler); in bsd_signal()
254 extern "C++" sighandler_t _signal(int signum, sighandler_t handler, int flags);
255 sighandler_t sysv_signal(int signum, sighandler_t handler) { in sysv_signal() argument
256 return _signal(signum, handler, SA_RESETHAND); in sysv_signal()
/bionic/tests/
DScopedSignalHandler.h25 ScopedSignalHandler(int signal_number, void (*handler)(int), int sa_flags = 0)
29 action_.sa_handler = handler; in signal_number_()
Dsignal_test.cpp390 struct sigaction handler; in TEST() local
391 memset(&handler, 0, sizeof(handler)); in TEST()
392 handler.sa_sigaction = [](int, siginfo_t* siginfo, void*) { received = *siginfo; }; in TEST()
393 handler.sa_flags = SA_SIGINFO; in TEST()
395 ASSERT_EQ(0, sigaction(SIGUSR1, &handler, nullptr)); in TEST()
Dsemaphore_test.cpp194 ScopedSignalHandler handler(SIGUSR1, sem_wait_test_signal_handler); in TEST() local
217 ScopedSignalHandler handler(SIGUSR1, sem_wait_test_signal_handler); in TEST() local
Dunistd_test.cpp207 ScopedSignalHandler handler(SIGALRM, PauseTestSignalHandler); in TEST() local
Dpthread_test.cpp1370 ScopedSignalHandler handler(SIGUSR1, getstack_signal_handler, SA_ONSTACK); in TEST() local
1804 ScopedSignalHandler handler(SIGUSR1, SignalHandlerOnAltStack, SA_SIGINFO | SA_ONSTACK); in TEST() local
/bionic/libc/include/android/
Dlegacy_signal_inlines.h37 extern sighandler_t bsd_signal(int signum, sighandler_t handler);