/third_party/musl/src/signal/liteos_a/ |
D | sigaction.c | 233 static int __sig_dfl_opr(int sig, sigactq_t *sigact, const sigaction_t *act) in __sig_dfl_opr() argument 241 sigact->act.sa_handler = def_handler; in __sig_dfl_opr() 242 sigact->act.sa_mask = act->sa_mask; in __sig_dfl_opr() 243 sigact->act.sa_flags = act->sa_flags; in __sig_dfl_opr() 252 sigactq_t *sigact = NULL; in __sig_action_opr() local 263 sigact = __sig_find_action(sig); in __sig_action_opr() 264 if (sigact && oact) __sig_copy_sigaction(&sigact->act, oact); in __sig_action_opr() 266 sigact->ign_flag = false; in __sig_action_opr() 268 if (handler == SIG_IGN && sigact) { in __sig_action_opr() 269 sigact->ign_flag = true; in __sig_action_opr() [all …]
|
/third_party/musl/porting/liteos_a/user/src/signal/ |
D | sigaction.c | 218 static int __sig_dfl_opr(int sig, sigactq_t *sigact, const sigaction_t *act) in __sig_dfl_opr() argument 226 sigact->act.sa_handler = def_handler; in __sig_dfl_opr() 227 sigact->act.sa_mask = act->sa_mask; in __sig_dfl_opr() 228 sigact->act.sa_flags = act->sa_flags; in __sig_dfl_opr() 237 sigactq_t *sigact = NULL; in __sig_action_opr() local 248 sigact = __sig_find_action(sig); in __sig_action_opr() 249 if (sigact && oact) __sig_copy_sigaction(&sigact->act, oact); in __sig_action_opr() 251 sigact->ign_flag = false; in __sig_action_opr() 253 if (handler == SIG_IGN && sigact) { in __sig_action_opr() 254 sigact->ign_flag = true; in __sig_action_opr() [all …]
|
/third_party/json/tests/thirdparty/Fuzzer/ |
D | FuzzerUtilPosix.cpp | 46 struct sigaction sigact; in SetSigaction() local 47 memset(&sigact, 0, sizeof(sigact)); in SetSigaction() 48 sigact.sa_sigaction = callback; in SetSigaction() 49 if (sigaction(signum, &sigact, 0)) { in SetSigaction()
|
/third_party/ltp/testcases/kernel/syscalls/mq_notify/ |
D | mq_notify01.c | 104 struct sigaction sigact; in do_test() local 117 memset(&sigact, 0, sizeof(sigact)); in do_test() 118 sigact.sa_sigaction = sigfunc; in do_test() 119 sigact.sa_flags = SA_SIGINFO; in do_test() 120 if (sigaction(SIGUSR1, &sigact, NULL) == -1) { in do_test()
|
/third_party/json/tests/thirdparty/Fuzzer/afl/ |
D | afl_driver.cpp | 131 struct sigaction sigact; in SetSigaction() local 132 memset(&sigact, 0, sizeof(sigact)); in SetSigaction() 133 sigact.sa_sigaction = callback; in SetSigaction() 134 if (sigaction(signum, &sigact, 0)) { in SetSigaction()
|
/third_party/mksh/ |
D | histrap.c | 1499 struct sigaction sigact; in setsig() local 1504 memset(&sigact, 0, sizeof(sigact)); in setsig() 1511 sigaction(p->signal, &Sigact_ign, &sigact); in setsig() 1512 p->flags |= sigact.sa_handler == SIG_IGN ? in setsig() 1543 (void)sigemptyset(&sigact.sa_mask); in setsig() 1545 sigact.sa_flags = 0; in setsig() 1546 sigact.sa_handler = f; in setsig() 1547 sigaction(p->signal, &sigact, NULL); in setsig()
|
/third_party/curl/lib/ |
D | hostip.c | 902 struct sigaction sigact; in Curl_resolv_timeout() local 958 sigaction(SIGALRM, NULL, &sigact); in Curl_resolv_timeout() 959 keep_sigact = sigact; in Curl_resolv_timeout() 961 sigact.sa_handler = alarmfunc; in Curl_resolv_timeout() 964 sigact.sa_flags &= ~SA_RESTART; in Curl_resolv_timeout() 967 sigaction(SIGALRM, &sigact, NULL); in Curl_resolv_timeout()
|
/third_party/ltp/testcases/kernel/mce-test/tsrc/ |
D | tinjpage.c | 722 struct sigaction sigact; in do_shared() local 723 sigaction(SIGBUS, NULL, &sigact); in do_shared() 725 if (sigact.sa_handler == SIG_DFL) {/* suicide version */ in do_shared()
|
/third_party/libwebsockets/lib/misc/ |
D | daemonize.c | 84 static void lws_daemon_closing(int sigact) in lws_daemon_closing() argument
|
/third_party/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | scsimain.c | 1794 struct sigaction sigact; in install_handler() local 1795 sigaction(sig_num, NULL, &sigact); in install_handler() 1796 if (sigact.sa_handler != SIG_IGN) { in install_handler() 1797 sigact.sa_handler = sig_handler; in install_handler() 1798 sigemptyset(&sigact.sa_mask); in install_handler() 1799 sigact.sa_flags = 0; in install_handler() 1800 sigaction(sig_num, &sigact, NULL); in install_handler() 1815 struct sigaction sigact; in interrupt_handler() local 1817 sigact.sa_handler = SIG_DFL; in interrupt_handler() 1818 sigemptyset(&sigact.sa_mask); in interrupt_handler() [all …]
|
/third_party/NuttX/ |
D | ReleaseNotes | 31664 * [#5925](https://github.com/apache/nuttx/pull/5925) sigact: get free sigact from freelist always s…
|