Home
last modified time | relevance | path

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

/bionic/libc/private/
DScopedSignalHandler.h23 ScopedSignalHandler(int signal_number, void (*handler)(int), int sa_flags = 0)
25 action_ = { .sa_flags = sa_flags, .sa_handler = handler }; in signal_number_()
/bionic/libc/bionic/
Dndk_cruft.cpp243 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()
Dsignal.cpp195 __LIBC_HIDDEN__ sighandler_t _signal(int sig, sighandler_t handler, int flags) { in _signal() argument
196 struct sigaction64 sa = { .sa_handler = handler, .sa_flags = flags }; in _signal()
200 sighandler_t signal(int sig, sighandler_t handler) { in signal() argument
201 return _signal(sig, handler, SA_RESTART); in signal()
Dpthread_internal.cpp229 auto handler = [](int, siginfo_t*, void*) { in android_run_on_all_threads() local
239 act.sa_sigaction = handler; in android_run_on_all_threads()
/bionic/tests/
Dsemaphore_test.cpp228 ScopedSignalHandler handler(SIGUSR1, sem_wait_test_signal_handler); in TEST() local
251 ScopedSignalHandler handler(SIGUSR1, sem_wait_test_signal_handler); in TEST() local
Dsignal_test.cpp801 struct sigaction handler = {}; in TEST() local
802 handler.sa_sigaction = [](int, siginfo_t* siginfo, void*) { received = *siginfo; }; in TEST()
803 handler.sa_flags = SA_SIGINFO; in TEST()
805 ASSERT_EQ(0, sigaction(SIGUSR1, &handler, nullptr)); in TEST()
Dpthread_test.cpp1943 ScopedSignalHandler handler(SIGUSR1, getstack_signal_handler, SA_ONSTACK); in TEST() local
2749 ScopedSignalHandler handler(SIGUSR1, SignalHandlerOnAltStack, SA_SIGINFO | SA_ONSTACK); in TEST() local
Dunistd_test.cpp229 ScopedSignalHandler handler(SIGALRM, PauseTestSignalHandler); in TEST() local
/bionic/tests/libs/
Dstack_tagging_helper.cpp221 SigActionScoped(int signo, handler_t handler) : signo(signo) { in SigActionScoped() argument
223 sa.sa_sigaction = handler; in SigActionScoped()
DAndroid.bp1148 // This library used to test phtread_atfork handler behaviour
/bionic/docs/
DEINTR.md28 guarantee. If any code has installed a signal handler, you need to cope with
/bionic/libc/malloc_debug/
DREADME.md350 signal handler directly. Instead, the next time any allocation call occurs,