/external/strace/tests/ |
rt_sigpending.c | 80 void *k_set = tail_alloc(big_size); local 87 memset(k_set, 0, big_size); 89 for (; set_size; set_size >>= 1, k_set += set_size) { 90 if (!k_sigpending(k_set, set_size)) 93 k_set, set_size); 99 iterate("[]", set_size >> 1, k_set + (set_size >> 1)); 101 void *const efault = k_set + (set_size >> 1); 111 iterate("[HUP]", set_size, k_set); 118 iterate("[HUP INT]", set_size, k_set);
|
rt_sigsuspend.c | 88 void *k_set = tail_alloc(big_size); local 89 memset(k_set, 0, big_size); 105 for (; set_size; set_size >>= 1, k_set += set_size) { 106 assert(k_sigsuspend(k_set, set_size) == -1); 110 k_set, set_size); 119 memcpy(k_set, libc_set, set_size); 121 assert(k_sigsuspend(k_set, set_size) == -1); 127 memcpy(k_set, libc_set, set_size); 129 assert(k_sigsuspend(k_set, set_size) == -1); 135 memcpy(k_set, libc_set, set_size) [all...] |
rt_sigprocmask.c | 92 void *const k_set = tail_alloc(set_size); local 96 memset(k_set, 0, set_size); 97 if (k_sigprocmask(SIG_SETMASK, k_set, NULL, set_size)) 101 if (k_sigprocmask(SIG_UNBLOCK, k_set - set_size, old_set, set_size)) 105 assert(k_sigprocmask(SIG_SETMASK, k_set - set_size, 108 k_set - set_size, old_set, set_size << 1); 110 iterate("~[]", k_set - set_size, old_set, set_size >> 1); 114 memcpy(k_set, libc_set, set_size); 116 if (k_sigprocmask(SIG_BLOCK, k_set, old_set, set_size)) 122 memcpy(k_set, libc_set, set_size) [all...] |
rt_sigtimedwait.c | 95 void *k_set = tail_alloc(big_size); local 96 memset(k_set, 0, big_size); 99 for (; set_size; set_size >>= 1, k_set += set_size) { 100 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); 105 k_set, (intmax_t) timeout->tv_sec, 117 memcpy(k_set, libc_set, set_size); 119 assert(k_sigtimedwait(k_set, info, timeout, set_size) == -1); 126 memcpy(k_set, libc_set, set_size); 128 assert(k_sigtimedwait(k_set, info, timeout, set_size) == -1); 138 memcpy(k_set, libc_set, set_size) [all...] |
ptrace.c | 191 void *const k_set = tail_alloc(sigset_size); local 244 memcpy(k_set, &libc_set, sigset_size); 246 do_ptrace(PTRACE_SETSIGMASK, pid, sigset_size, (unsigned long) k_set); 250 do_ptrace(PTRACE_GETSIGMASK, pid, sigset_size, (unsigned long) k_set); 252 (unsigned) pid, sigset_size, k_set, errstr);
|
/external/strace/tests-m32/ |
rt_sigpending.c | 80 void *k_set = tail_alloc(big_size); local 87 memset(k_set, 0, big_size); 89 for (; set_size; set_size >>= 1, k_set += set_size) { 90 if (!k_sigpending(k_set, set_size)) 93 k_set, set_size); 99 iterate("[]", set_size >> 1, k_set + (set_size >> 1)); 101 void *const efault = k_set + (set_size >> 1); 111 iterate("[HUP]", set_size, k_set); 118 iterate("[HUP INT]", set_size, k_set);
|
rt_sigsuspend.c | 88 void *k_set = tail_alloc(big_size); local 89 memset(k_set, 0, big_size); 105 for (; set_size; set_size >>= 1, k_set += set_size) { 106 assert(k_sigsuspend(k_set, set_size) == -1); 110 k_set, set_size); 119 memcpy(k_set, libc_set, set_size); 121 assert(k_sigsuspend(k_set, set_size) == -1); 127 memcpy(k_set, libc_set, set_size); 129 assert(k_sigsuspend(k_set, set_size) == -1); 135 memcpy(k_set, libc_set, set_size) [all...] |
rt_sigprocmask.c | 92 void *const k_set = tail_alloc(set_size); local 96 memset(k_set, 0, set_size); 97 if (k_sigprocmask(SIG_SETMASK, k_set, NULL, set_size)) 101 if (k_sigprocmask(SIG_UNBLOCK, k_set - set_size, old_set, set_size)) 105 assert(k_sigprocmask(SIG_SETMASK, k_set - set_size, 108 k_set - set_size, old_set, set_size << 1); 110 iterate("~[]", k_set - set_size, old_set, set_size >> 1); 114 memcpy(k_set, libc_set, set_size); 116 if (k_sigprocmask(SIG_BLOCK, k_set, old_set, set_size)) 122 memcpy(k_set, libc_set, set_size) [all...] |
rt_sigtimedwait.c | 95 void *k_set = tail_alloc(big_size); local 96 memset(k_set, 0, big_size); 99 for (; set_size; set_size >>= 1, k_set += set_size) { 100 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); 105 k_set, (intmax_t) timeout->tv_sec, 117 memcpy(k_set, libc_set, set_size); 119 assert(k_sigtimedwait(k_set, info, timeout, set_size) == -1); 126 memcpy(k_set, libc_set, set_size); 128 assert(k_sigtimedwait(k_set, info, timeout, set_size) == -1); 138 memcpy(k_set, libc_set, set_size) [all...] |
ptrace.c | 191 void *const k_set = tail_alloc(sigset_size); local 244 memcpy(k_set, &libc_set, sigset_size); 246 do_ptrace(PTRACE_SETSIGMASK, pid, sigset_size, (unsigned long) k_set); 250 do_ptrace(PTRACE_GETSIGMASK, pid, sigset_size, (unsigned long) k_set); 252 (unsigned) pid, sigset_size, k_set, errstr);
|
/external/strace/tests-mx32/ |
rt_sigpending.c | 80 void *k_set = tail_alloc(big_size); local 87 memset(k_set, 0, big_size); 89 for (; set_size; set_size >>= 1, k_set += set_size) { 90 if (!k_sigpending(k_set, set_size)) 93 k_set, set_size); 99 iterate("[]", set_size >> 1, k_set + (set_size >> 1)); 101 void *const efault = k_set + (set_size >> 1); 111 iterate("[HUP]", set_size, k_set); 118 iterate("[HUP INT]", set_size, k_set);
|
rt_sigsuspend.c | 88 void *k_set = tail_alloc(big_size); local 89 memset(k_set, 0, big_size); 105 for (; set_size; set_size >>= 1, k_set += set_size) { 106 assert(k_sigsuspend(k_set, set_size) == -1); 110 k_set, set_size); 119 memcpy(k_set, libc_set, set_size); 121 assert(k_sigsuspend(k_set, set_size) == -1); 127 memcpy(k_set, libc_set, set_size); 129 assert(k_sigsuspend(k_set, set_size) == -1); 135 memcpy(k_set, libc_set, set_size) [all...] |
rt_sigprocmask.c | 92 void *const k_set = tail_alloc(set_size); local 96 memset(k_set, 0, set_size); 97 if (k_sigprocmask(SIG_SETMASK, k_set, NULL, set_size)) 101 if (k_sigprocmask(SIG_UNBLOCK, k_set - set_size, old_set, set_size)) 105 assert(k_sigprocmask(SIG_SETMASK, k_set - set_size, 108 k_set - set_size, old_set, set_size << 1); 110 iterate("~[]", k_set - set_size, old_set, set_size >> 1); 114 memcpy(k_set, libc_set, set_size); 116 if (k_sigprocmask(SIG_BLOCK, k_set, old_set, set_size)) 122 memcpy(k_set, libc_set, set_size) [all...] |
rt_sigtimedwait.c | 95 void *k_set = tail_alloc(big_size); local 96 memset(k_set, 0, big_size); 99 for (; set_size; set_size >>= 1, k_set += set_size) { 100 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); 105 k_set, (intmax_t) timeout->tv_sec, 117 memcpy(k_set, libc_set, set_size); 119 assert(k_sigtimedwait(k_set, info, timeout, set_size) == -1); 126 memcpy(k_set, libc_set, set_size); 128 assert(k_sigtimedwait(k_set, info, timeout, set_size) == -1); 138 memcpy(k_set, libc_set, set_size) [all...] |
ptrace.c | 191 void *const k_set = tail_alloc(sigset_size); local 244 memcpy(k_set, &libc_set, sigset_size); 246 do_ptrace(PTRACE_SETSIGMASK, pid, sigset_size, (unsigned long) k_set); 250 do_ptrace(PTRACE_GETSIGMASK, pid, sigset_size, (unsigned long) k_set); 252 (unsigned) pid, sigset_size, k_set, errstr);
|
/external/compiler-rt/lib/sanitizer_common/ |
sanitizer_linux.cc | 696 __sanitizer_kernel_sigset_t *k_set = (__sanitizer_kernel_sigset_t *)set; 699 (uptr)&k_set->sig[0], (uptr)&k_oldset->sig[0], 717 __sanitizer_kernel_sigset_t *k_set = (__sanitizer_kernel_sigset_t *)set; local 718 const uptr idx = signum / (sizeof(k_set->sig[0]) * 8); 719 const uptr bit = signum % (sizeof(k_set->sig[0]) * 8); 720 k_set->sig[idx] &= ~(1 << bit); 727 __sanitizer_kernel_sigset_t *k_set = (__sanitizer_kernel_sigset_t *)set; local 728 const uptr idx = signum / (sizeof(k_set->sig[0]) * 8); 729 const uptr bit = signum % (sizeof(k_set->sig[0]) * 8); 730 return k_set->sig[idx] & (1 << bit) [all...] |