Home
last modified time | relevance | path

Searched refs:sig_action (Results 1 – 3 of 3) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/pidfd_send_signal/
Dpidfd_send_signal01.c21 static struct sigaction *sig_action; variable
42 SAFE_SIGACTION(SIGNAL, sig_action, NULL); in handle_thread()
76 sig_action = SAFE_MALLOC(sizeof(struct sigaction)); in setup()
78 memset(sig_action, 0, sizeof(*sig_action)); in setup()
79 sig_action->sa_sigaction = received_signal; in setup()
80 sig_action->sa_flags = SA_SIGINFO; in setup()
95 free(sig_action); in cleanup()
/third_party/ltp/testcases/kernel/syscalls/rt_sigqueueinfo/
Drt_sigqueueinfo01.c28 static struct sigaction *sig_action; variable
51 ret = sigaction(SIGNAL, sig_action, NULL); in handle_thread()
83 sig_action = SAFE_MALLOC(sizeof(struct sigaction)); in setup()
85 memset(sig_action, 0, sizeof(*sig_action)); in setup()
86 sig_action->sa_sigaction = received_signal; in setup()
87 sig_action->sa_flags = SA_SIGINFO; in setup()
103 free(sig_action); in cleanup()
/third_party/musl/porting/linux/user/src/sigchain/
Dsigchain.c58 struct sigaction sig_action; member
186 int sa_flags = sig_chains[signo - 1].sig_action.sa_flags; in signal_chain_handler()
190 sigorset(&mask, &ucontext->uc_sigmask, &sig_chains[signo - 1].sig_action.sa_mask); in signal_chain_handler()
199 sig_chains[signo - 1].sig_action.sa_sigaction(signo, siginfo, ucontext_raw); in signal_chain_handler()
201 if (sig_chains[signo - 1].sig_action.sa_handler == SIG_IGN) { in signal_chain_handler()
203 } else if (sig_chains[signo - 1].sig_action.sa_handler == SIG_DFL) { in signal_chain_handler()
212 sig_chains[signo - 1].sig_action.sa_handler(signo); in signal_chain_handler()
232 __libc_sigaction(signo, &signal_action, &sig_chains[signo - 1].sig_action); in sigchain_register()
243 __libc_sigaction(signo, &sig_chains[signo - 1].sig_action, NULL); in unregister_sigchain()
270 sig_chains[signo - 1].sig_action = *new_sa; in setaction()
[all …]