/external/ltp/testcases/kernel/syscalls/sigwaitinfo/ |
D | sigwaitinfo01.c | 137 void test_empty_set(swi_func sigwaitinfo, int signo) in test_empty_set() argument 145 child = create_sig_proc(100000, signo, UINT_MAX); in test_empty_set() 153 void test_timeout(swi_func sigwaitinfo, int signo) in test_timeout() argument 163 child = create_sig_proc(100000, signo, UINT_MAX); in test_timeout() 174 void test_unmasked_matching(swi_func sigwaitinfo, int signo) in test_unmasked_matching() argument 181 SUCCEED_OR_DIE(sigaddset, "sigaddset failed", &sigs, signo); in test_unmasked_matching() 184 child = create_sig_proc(100000, signo, UINT_MAX); in test_unmasked_matching() 187 REPORT_SUCCESS_COND(signo, 0, si.si_pid == child in test_unmasked_matching() 189 && si.si_signo == signo, "Struct siginfo mismatch"); in test_unmasked_matching() 194 void test_unmasked_matching_noinfo(swi_func sigwaitinfo, int signo) in test_unmasked_matching_noinfo() argument [all …]
|
/external/google-breakpad/src/client/solaris/handler/ |
D | exception_handler.cc | 143 void ExceptionHandler::SetupHandler(int signo) { in SetupHandler() argument 147 if (sigaction(signo, &act, &old_act) < 0) in SetupHandler() 149 old_handlers_[signo] = old_act.sa_handler; in SetupHandler() 152 void ExceptionHandler::TeardownHandler(int signo) { in TeardownHandler() argument 153 if (old_handlers_.find(signo) != old_handlers_.end()) { in TeardownHandler() 155 act.sa_handler = old_handlers_[signo]; in TeardownHandler() 157 sigaction(signo, &act, 0); in TeardownHandler() 168 void ExceptionHandler::HandleException(int signo) { in HandleException() argument 189 current_handler->TeardownHandler(signo); in HandleException() 192 if (current_handler->InternalWriteMinidump(signo, current_ebp, &sig_ctx)) { in HandleException() [all …]
|
D | exception_handler.h | 140 void SetupHandler(int signo); 142 void TeardownHandler(int signo); 150 static void HandleException(int signo); 159 bool InternalWriteMinidump(int signo, uintptr_t sighandler_ebp,
|
/external/strace/tests-mx32/ |
D | sigaction.c | 100 static const kernel_ulong_t signo = variable 116 if (k_sigaction(signo, 0, 0)) in main() 120 k_sigaction(signo, 0, 0); in main() 123 k_sigaction(signo, (uintptr_t) (new_act + 1), 0); in main() 127 k_sigaction(signo, (uintptr_t) new_act + 2, 0); in main() 131 k_sigaction(signo, 0, (uintptr_t) (old_act + 1)); in main() 135 k_sigaction(signo, 0, (uintptr_t) old_act + 2); in main() 144 k_sigaction(signo, (uintptr_t) new_act, 0); in main() 156 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main() 169 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main() [all …]
|
D | qual_signal.c | 46 test_sig(int signo, const char *name) in test_sig() argument 50 if (sigaction(signo, &act, NULL)) in test_sig() 51 perror_msg_and_fail("sigaction: %d", signo); in test_sig() 55 sigaddset(&mask, signo); in test_sig() 57 perror_msg_and_fail("sigprocmask: %d", signo); in test_sig() 59 if (kill(pid, signo)) in test_sig() 60 perror_msg_and_fail("kill(%d, %d)", pid, signo); in test_sig()
|
D | unblock_reset_raise.c | 43 const int signo = atoi(av[1]); in main() local 44 if (sigaddset(&mask, signo)) in main() 48 if (signal(signo, SIG_DFL) == SIG_ERR) in main() 50 if (raise(signo)) in main()
|
D | block_reset_raise_run.c | 43 const int signo = atoi(av[1]); in main() local 44 if (sigaddset(&mask, signo)) in main() 48 if (signal(signo, SIG_DFL) == SIG_ERR) in main() 50 if (raise(signo)) in main()
|
D | sigsuspend.c | 57 static int signo; variable 66 signo = i; in handler() 107 " (To be restarted if no handler)\n", sigtxt[signo]); in main()
|
D | interactive_block.test | 9 for signo in 1 2 3 13 14 15; do 10 blocksig="../block_reset_raise_run $signo"
|
/external/strace/tests/ |
D | sigaction.c | 100 static const kernel_ulong_t signo = variable 116 if (k_sigaction(signo, 0, 0)) in main() 120 k_sigaction(signo, 0, 0); in main() 123 k_sigaction(signo, (uintptr_t) (new_act + 1), 0); in main() 127 k_sigaction(signo, (uintptr_t) new_act + 2, 0); in main() 131 k_sigaction(signo, 0, (uintptr_t) (old_act + 1)); in main() 135 k_sigaction(signo, 0, (uintptr_t) old_act + 2); in main() 144 k_sigaction(signo, (uintptr_t) new_act, 0); in main() 156 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main() 169 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main() [all …]
|
D | qual_signal.c | 46 test_sig(int signo, const char *name) in test_sig() argument 50 if (sigaction(signo, &act, NULL)) in test_sig() 51 perror_msg_and_fail("sigaction: %d", signo); in test_sig() 55 sigaddset(&mask, signo); in test_sig() 57 perror_msg_and_fail("sigprocmask: %d", signo); in test_sig() 59 if (kill(pid, signo)) in test_sig() 60 perror_msg_and_fail("kill(%d, %d)", pid, signo); in test_sig()
|
D | unblock_reset_raise.c | 43 const int signo = atoi(av[1]); in main() local 44 if (sigaddset(&mask, signo)) in main() 48 if (signal(signo, SIG_DFL) == SIG_ERR) in main() 50 if (raise(signo)) in main()
|
D | block_reset_raise_run.c | 43 const int signo = atoi(av[1]); in main() local 44 if (sigaddset(&mask, signo)) in main() 48 if (signal(signo, SIG_DFL) == SIG_ERR) in main() 50 if (raise(signo)) in main()
|
D | sigsuspend.c | 57 static int signo; variable 66 signo = i; in handler() 107 " (To be restarted if no handler)\n", sigtxt[signo]); in main()
|
/external/strace/tests-m32/ |
D | sigaction.c | 100 static const kernel_ulong_t signo = variable 116 if (k_sigaction(signo, 0, 0)) in main() 120 k_sigaction(signo, 0, 0); in main() 123 k_sigaction(signo, (uintptr_t) (new_act + 1), 0); in main() 127 k_sigaction(signo, (uintptr_t) new_act + 2, 0); in main() 131 k_sigaction(signo, 0, (uintptr_t) (old_act + 1)); in main() 135 k_sigaction(signo, 0, (uintptr_t) old_act + 2); in main() 144 k_sigaction(signo, (uintptr_t) new_act, 0); in main() 156 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main() 169 k_sigaction(signo, (uintptr_t) new_act, (uintptr_t) old_act); in main() [all …]
|
D | qual_signal.c | 46 test_sig(int signo, const char *name) in test_sig() argument 50 if (sigaction(signo, &act, NULL)) in test_sig() 51 perror_msg_and_fail("sigaction: %d", signo); in test_sig() 55 sigaddset(&mask, signo); in test_sig() 57 perror_msg_and_fail("sigprocmask: %d", signo); in test_sig() 59 if (kill(pid, signo)) in test_sig() 60 perror_msg_and_fail("kill(%d, %d)", pid, signo); in test_sig()
|
D | unblock_reset_raise.c | 43 const int signo = atoi(av[1]); in main() local 44 if (sigaddset(&mask, signo)) in main() 48 if (signal(signo, SIG_DFL) == SIG_ERR) in main() 50 if (raise(signo)) in main()
|
D | block_reset_raise_run.c | 43 const int signo = atoi(av[1]); in main() local 44 if (sigaddset(&mask, signo)) in main() 48 if (signal(signo, SIG_DFL) == SIG_ERR) in main() 50 if (raise(signo)) in main()
|
D | sigsuspend.c | 57 static int signo; variable 66 signo = i; in handler() 107 " (To be restarted if no handler)\n", sigtxt[signo]); in main()
|
/external/openssh/openbsd-compat/ |
D | readpassphrase.c | 57 static volatile sig_atomic_t signo[_NSIG]; variable 79 signo[i] = 0; in readpassphrase() 160 const int sigttou = signo[SIGTTOU]; in readpassphrase() 164 errno == EINTR && !signo[SIGTTOU]) in readpassphrase() 166 signo[SIGTTOU] = sigttou; in readpassphrase() 185 if (signo[i]) { in readpassphrase() 217 signo[s] = 1; in handler()
|
/external/ltp/testcases/kernel/syscalls/signalfd/ |
D | signalfd01.c | 173 if (fdsi.SIGNALFD_PREFIX(signo) == sig) { in do_test1() 179 fdsi.SIGNALFD_PREFIX(signo), in do_test1() 180 strsignal(fdsi.SIGNALFD_PREFIX(signo))); in do_test1() 257 if (fdsi.SIGNALFD_PREFIX(signo) == sig) { in do_test2() 262 fdsi.SIGNALFD_PREFIX(signo), in do_test2() 263 strsignal(fdsi.SIGNALFD_PREFIX(signo))); in do_test2()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigqueue/ |
D | 7-1.c | 37 void myhandler(int signo, siginfo_t * info, void *context) in myhandler() argument 39 printf("%d, ", signo); in myhandler() 40 if (last_signal >= signo) { in myhandler()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/ |
D | 16-1.c | 88 struct sig_info *lookup(int signo) in lookup() argument 93 if (s->sig == signo) in lookup() 101 void handler(int signo) in handler() argument 105 s = lookup(signo); in handler()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigsuspend/ |
D | 1-1.c | 52 void handler(int signo) in handler() argument 54 if (signo == SIGUSR1) { in handler() 60 } else if (signo == SIGUSR2) { in handler()
|
/external/compiler-rt/lib/asan/ |
D | asan_posix.cc | 36 void AsanOnDeadlySignal(int signo, void *siginfo, void *context) { in AsanOnDeadlySignal() argument 87 else if (signo == SIGFPE) in AsanOnDeadlySignal() 89 else if (signo == SIGILL) in AsanOnDeadlySignal()
|