Home
last modified time | relevance | path

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

/bionic/libc/bionic/
Dstrsignal.cpp35 #define __BIONIC_SIGDEF(signal_number, signal_description) [signal_number] = signal_description, argument
40 #define __BIONIC_SIGDEF(signal_number, unused) [signal_number] = &(#signal_number)[3], argument
44 extern "C" __LIBC_HIDDEN__ const char* __strsignal(int signal_number, char* buf, size_t buf_len) { in __strsignal() argument
46 if (signal_number >= 0 && signal_number < NSIG) { in __strsignal()
47 signal_name = sys_siglist[signal_number]; in __strsignal()
54 if (signal_number >= SIGRTMIN && signal_number <= SIGRTMAX) { in __strsignal()
56 signal_number -= SIGRTMIN; in __strsignal()
58 size_t length = snprintf(buf, buf_len, "%s signal %d", prefix, signal_number); in __strsignal()
65 char* strsignal(int signal_number) { in strsignal() argument
67 …return const_cast<char*>(__strsignal(signal_number, tls.strsignal_buf, sizeof(tls.strsignal_buf))); in strsignal()
/bionic/libc/private/
DScopedSignalHandler.h23 ScopedSignalHandler(int signal_number, void (*handler)(int), int sa_flags = 0)
24 : signal_number_(signal_number) { in signal_number_() argument
29 ScopedSignalHandler(int signal_number, void (*action)(int, siginfo_t*, void*),
31 : signal_number_(signal_number) { in signal_number_() argument
36 explicit ScopedSignalHandler(int signal_number) : signal_number_(signal_number) { in ScopedSignalHandler() argument
37 sigaction64(signal_number, nullptr, &old_action_); in ScopedSignalHandler()
/bionic/libdl/
Dlibdl.cpp77 int signal_number, siginfo_t* info, void* context);
150 __attribute__((__weak__)) bool android_handle_signal(int signal_number, siginfo_t* info, in android_handle_signal() argument
152 return __loader_android_handle_signal(signal_number, info, context); in android_handle_signal()
/bionic/linker/
Dlinker_debuggerd.h34 extern "C" bool debuggerd_handle_signal(int signal_number, siginfo_t* info, void* context);
Ddlfcn.cpp96 bool __loader_android_handle_signal(int signal_number, siginfo_t* info,
308 bool __loader_android_handle_signal(int signal_number, siginfo_t* info, void* context) { in __loader_android_handle_signal() argument
309 return debuggerd_handle_signal(signal_number, info, context); in __loader_android_handle_signal()
/bionic/tests/
Dtime_test.cpp663 static void timer_create_SIGEV_SIGNAL_signal_handler(int signal_number) { in timer_create_SIGEV_SIGNAL_signal_handler() argument
665 ASSERT_EQ(SIGUSR1, signal_number); in timer_create_SIGEV_SIGNAL_signal_handler()
781 static void timer_create_NULL_signal_handler(int signal_number) { in timer_create_NULL_signal_handler() argument
783 ASSERT_EQ(SIGALRM, signal_number); in timer_create_NULL_signal_handler()
Dsignal_test.cpp152 static void raise_in_signal_handler_helper(int signal_number) { in raise_in_signal_handler_helper() argument
153 ASSERT_EQ(SIGALRM, signal_number); in raise_in_signal_handler_helper()
Dpthread_test.cpp561 static void pthread_kill__in_signal_handler_helper(int signal_number) { in pthread_kill__in_signal_handler_helper() argument
563 ASSERT_EQ(SIGALRM, signal_number); in pthread_kill__in_signal_handler_helper()