Home
last modified time | relevance | path

Searched refs:sa_flags (Results 1 – 13 of 13) 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_()
30 int sa_flags = SA_SIGINFO)
32 action_ = { .sa_flags = sa_flags, .sa_sigaction = action }; in signal_number_()
/bionic/libc/bionic/
Dsigaction.cpp44 kernel_new_action.sa_flags = bionic_new_action->sa_flags; in sigaction()
56 if (!(kernel_new_action.sa_flags & SA_RESTORER)) { in sigaction()
57 kernel_new_action.sa_flags |= SA_RESTORER; in sigaction()
71 bionic_old_action->sa_flags = kernel_old_action.sa_flags; in sigaction()
94 kernel_new.sa_flags = bionic_new->sa_flags; in sigaction()
107 bionic_old->sa_flags = kernel_old.sa_flags; in sigaction()
122 if (!(kernel_new.sa_flags & SA_RESTORER)) { in sigaction64()
123 kernel_new.sa_flags |= SA_RESTORER; in sigaction64()
124 kernel_new.sa_restorer = (kernel_new.sa_flags & SA_SIGINFO) ? &__restore_rt : &__restore; in sigaction64()
Dabort.cpp49 struct sigaction64 sa = { .sa_handler = SIG_DFL, .sa_flags = SA_RESTART }; in abort()
Dsignal.cpp158 act.sa_flags &= ~SA_RESTART; in siginterrupt()
160 act.sa_flags |= SA_RESTART; in siginterrupt()
185 struct sigaction64 sa = { .sa_handler = handler, .sa_flags = flags }; in _signal()
/bionic/libc/include/bits/
Dsignal_types.h71 int sa_flags; \
87 int sa_flags; \
110 int sa_flags; member
120 int sa_flags; member
/bionic/libc/kernel/uapi/asm-x86/asm/
Dsignal.h86 unsigned long sa_flags; member
94 unsigned long sa_flags; member
/bionic/libc/kernel/uapi/asm-mips/asm/
Dsignal.h81 unsigned int sa_flags; member
/bionic/libc/kernel/uapi/asm-arm/asm/
Dsignal.h82 unsigned long sa_flags; member
/bionic/libc/kernel/uapi/asm-generic/
Dsignal.h87 unsigned long sa_flags; member
/bionic/tests/
Dsignal_test.cpp288 ASSERT_EQ(0U, original_sa.sa_flags & ~sa_restorer); in TestSigAction()
290 ASSERT_EQ(bool(original_sa.sa_flags & sa_restorer), bool(original_sa.sa_restorer)); in TestSigAction()
297 sa.sa_flags = SA_ONSTACK; in TestSigAction()
306 ASSERT_EQ(static_cast<unsigned>(SA_ONSTACK), sa.sa_flags & ~sa_restorer); in TestSigAction()
308 ASSERT_EQ(bool(sa.sa_flags & sa_restorer), bool(sa.sa_restorer)); in TestSigAction()
315 sa.sa_flags = SA_ONSTACK | SA_SIGINFO; in TestSigAction()
324 ASSERT_EQ(static_cast<unsigned>(SA_ONSTACK | SA_SIGINFO), sa.sa_flags & ~sa_restorer); in TestSigAction()
326 ASSERT_EQ(bool(sa.sa_flags & sa_restorer), bool(sa.sa_restorer)); in TestSigAction()
395 sa.sa_flags = SA_ONSTACK | SA_NODEFER; in TEST()
415 sa.sa_flags = SA_ONSTACK | SA_NODEFER; in TEST()
[all …]
/bionic/libc/malloc_debug/
DRecordData.cpp177 dump_act.sa_flags = SA_RESTART | SA_SIGINFO | SA_ONSTACK; in Initialize()
DPointerData.cpp103 enable_act.sa_flags = SA_RESTART | SA_SIGINFO | SA_ONSTACK; in Initialize()
117 act.sa_flags = SA_RESTART | SA_SIGINFO | SA_ONSTACK; in Initialize()
/bionic/tests/headers/posix/
Dsignal_h.c106 STRUCT_MEMBER(struct sigaction, int, sa_flags); in signal_h()