/external/strace/tests/ |
D | rt_sigprocmask.c | 93 void *const k_set = tail_alloc(set_size); in main() local 97 memset(k_set, 0, set_size); in main() 98 if (k_sigprocmask(SIG_SETMASK, k_set, NULL, set_size)) in main() 102 if (k_sigprocmask(SIG_UNBLOCK, k_set - set_size, old_set, set_size)) in main() 106 assert(k_sigprocmask(SIG_SETMASK, k_set - set_size, in main() 109 k_set - set_size, old_set, set_size << 1); in main() 111 iterate("~[]", k_set - set_size, old_set, set_size >> 1); in main() 115 memcpy(k_set, libc_set, set_size); in main() 117 if (k_sigprocmask(SIG_BLOCK, k_set, old_set, set_size)) in main() 123 memcpy(k_set, libc_set, set_size); in main() [all …]
|
D | rt_sigtimedwait.c | 98 void *k_set = tail_alloc(big_size); in main() local 99 memset(k_set, 0, big_size); in main() 102 for (; set_size; set_size >>= 1, k_set += set_size) { in main() 103 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); in main() 108 k_set, (long long) timeout->tv_sec, in main() 120 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); in main() 128 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); in main() 140 memcpy(k_set, libc_set, set_size); in main() 142 assert(k_sigtimedwait(k_set, info, timeout, set_size) == -1); in main() 150 memcpy(k_set, libc_set, set_size); in main() [all …]
|
D | rt_sigsuspend.c | 89 void *k_set = tail_alloc(big_size); in main() local 90 memset(k_set, 0, big_size); in main() 106 for (; set_size; set_size >>= 1, k_set += set_size) { in main() 107 assert(k_sigsuspend(k_set, set_size) == -1); in main() 111 k_set, set_size); in main() 120 memcpy(k_set, libc_set, set_size); in main() 122 assert(k_sigsuspend(k_set, set_size) == -1); in main() 128 memcpy(k_set, libc_set, set_size); in main() 130 assert(k_sigsuspend(k_set, set_size) == -1); in main() 136 memcpy(k_set, libc_set, set_size); in main() [all …]
|
D | sigpending.c | 54 TAIL_ALLOC_OBJECT_CONST_PTR(kernel_ulong_t, k_set); in main() 66 k_sigpending((uintptr_t) k_set); in main() 69 k_sigpending((uintptr_t) (k_set + 1)); in main() 70 printf("sigpending(%p) = -1 EFAULT (%m)\n", k_set + 1); in main() 72 uintptr_t efault = sizeof(*k_set) / 2 + (uintptr_t) k_set; in main() 81 k_sigpending((uintptr_t) k_set); in main() 89 k_sigpending((uintptr_t) k_set); in main() 93 k_sigpending(f8ill_ptr_to_kulong(k_set)); in main() 95 (uintmax_t) f8ill_ptr_to_kulong(k_set), errstr); in main()
|
D | rt_sigpending.c | 81 void *k_set = tail_alloc(big_size); in main() local 88 memset(k_set, 0, big_size); in main() 90 for (; set_size; set_size >>= 1, k_set += set_size) { in main() 91 if (!k_sigpending(k_set, set_size)) in main() 94 k_set, set_size); in main() 100 iterate("[]", set_size >> 1, k_set + (set_size >> 1)); in main() 102 void *const efault = k_set + (set_size >> 1); in main() 112 iterate("[HUP]", set_size, k_set); in main() 119 iterate("[HUP INT]", set_size, k_set); in main()
|
D | ptrace.c | 187 void *const k_set = tail_alloc(sigset_size); in main() local 240 memcpy(k_set, &libc_set, sigset_size); in main() 242 do_ptrace(PTRACE_SETSIGMASK, pid, sigset_size, (unsigned long) k_set); in main() 246 do_ptrace(PTRACE_GETSIGMASK, pid, sigset_size, (unsigned long) k_set); in main() 248 (unsigned) pid, sigset_size, k_set, errstr); in main()
|
/external/strace/tests-mx32/ |
D | rt_sigprocmask.c | 93 void *const k_set = tail_alloc(set_size); in main() local 97 memset(k_set, 0, set_size); in main() 98 if (k_sigprocmask(SIG_SETMASK, k_set, NULL, set_size)) in main() 102 if (k_sigprocmask(SIG_UNBLOCK, k_set - set_size, old_set, set_size)) in main() 106 assert(k_sigprocmask(SIG_SETMASK, k_set - set_size, in main() 109 k_set - set_size, old_set, set_size << 1); in main() 111 iterate("~[]", k_set - set_size, old_set, set_size >> 1); in main() 115 memcpy(k_set, libc_set, set_size); in main() 117 if (k_sigprocmask(SIG_BLOCK, k_set, old_set, set_size)) in main() 123 memcpy(k_set, libc_set, set_size); in main() [all …]
|
D | rt_sigtimedwait.c | 98 void *k_set = tail_alloc(big_size); in main() local 99 memset(k_set, 0, big_size); in main() 102 for (; set_size; set_size >>= 1, k_set += set_size) { in main() 103 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); in main() 108 k_set, (long long) timeout->tv_sec, in main() 120 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); in main() 128 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); in main() 140 memcpy(k_set, libc_set, set_size); in main() 142 assert(k_sigtimedwait(k_set, info, timeout, set_size) == -1); in main() 150 memcpy(k_set, libc_set, set_size); in main() [all …]
|
D | rt_sigsuspend.c | 89 void *k_set = tail_alloc(big_size); in main() local 90 memset(k_set, 0, big_size); in main() 106 for (; set_size; set_size >>= 1, k_set += set_size) { in main() 107 assert(k_sigsuspend(k_set, set_size) == -1); in main() 111 k_set, set_size); in main() 120 memcpy(k_set, libc_set, set_size); in main() 122 assert(k_sigsuspend(k_set, set_size) == -1); in main() 128 memcpy(k_set, libc_set, set_size); in main() 130 assert(k_sigsuspend(k_set, set_size) == -1); in main() 136 memcpy(k_set, libc_set, set_size); in main() [all …]
|
D | sigpending.c | 54 TAIL_ALLOC_OBJECT_CONST_PTR(kernel_ulong_t, k_set); in main() 66 k_sigpending((uintptr_t) k_set); in main() 69 k_sigpending((uintptr_t) (k_set + 1)); in main() 70 printf("sigpending(%p) = -1 EFAULT (%m)\n", k_set + 1); in main() 72 uintptr_t efault = sizeof(*k_set) / 2 + (uintptr_t) k_set; in main() 81 k_sigpending((uintptr_t) k_set); in main() 89 k_sigpending((uintptr_t) k_set); in main() 93 k_sigpending(f8ill_ptr_to_kulong(k_set)); in main() 95 (uintmax_t) f8ill_ptr_to_kulong(k_set), errstr); in main()
|
D | rt_sigpending.c | 81 void *k_set = tail_alloc(big_size); in main() local 88 memset(k_set, 0, big_size); in main() 90 for (; set_size; set_size >>= 1, k_set += set_size) { in main() 91 if (!k_sigpending(k_set, set_size)) in main() 94 k_set, set_size); in main() 100 iterate("[]", set_size >> 1, k_set + (set_size >> 1)); in main() 102 void *const efault = k_set + (set_size >> 1); in main() 112 iterate("[HUP]", set_size, k_set); in main() 119 iterate("[HUP INT]", set_size, k_set); in main()
|
D | ptrace.c | 187 void *const k_set = tail_alloc(sigset_size); in main() local 240 memcpy(k_set, &libc_set, sigset_size); in main() 242 do_ptrace(PTRACE_SETSIGMASK, pid, sigset_size, (unsigned long) k_set); in main() 246 do_ptrace(PTRACE_GETSIGMASK, pid, sigset_size, (unsigned long) k_set); in main() 248 (unsigned) pid, sigset_size, k_set, errstr); in main()
|
/external/strace/tests-m32/ |
D | rt_sigprocmask.c | 93 void *const k_set = tail_alloc(set_size); in main() local 97 memset(k_set, 0, set_size); in main() 98 if (k_sigprocmask(SIG_SETMASK, k_set, NULL, set_size)) in main() 102 if (k_sigprocmask(SIG_UNBLOCK, k_set - set_size, old_set, set_size)) in main() 106 assert(k_sigprocmask(SIG_SETMASK, k_set - set_size, in main() 109 k_set - set_size, old_set, set_size << 1); in main() 111 iterate("~[]", k_set - set_size, old_set, set_size >> 1); in main() 115 memcpy(k_set, libc_set, set_size); in main() 117 if (k_sigprocmask(SIG_BLOCK, k_set, old_set, set_size)) in main() 123 memcpy(k_set, libc_set, set_size); in main() [all …]
|
D | rt_sigtimedwait.c | 98 void *k_set = tail_alloc(big_size); in main() local 99 memset(k_set, 0, big_size); in main() 102 for (; set_size; set_size >>= 1, k_set += set_size) { in main() 103 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); in main() 108 k_set, (long long) timeout->tv_sec, in main() 120 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); in main() 128 assert(k_sigtimedwait(k_set, NULL, timeout, set_size) == -1); in main() 140 memcpy(k_set, libc_set, set_size); in main() 142 assert(k_sigtimedwait(k_set, info, timeout, set_size) == -1); in main() 150 memcpy(k_set, libc_set, set_size); in main() [all …]
|
D | rt_sigsuspend.c | 89 void *k_set = tail_alloc(big_size); in main() local 90 memset(k_set, 0, big_size); in main() 106 for (; set_size; set_size >>= 1, k_set += set_size) { in main() 107 assert(k_sigsuspend(k_set, set_size) == -1); in main() 111 k_set, set_size); in main() 120 memcpy(k_set, libc_set, set_size); in main() 122 assert(k_sigsuspend(k_set, set_size) == -1); in main() 128 memcpy(k_set, libc_set, set_size); in main() 130 assert(k_sigsuspend(k_set, set_size) == -1); in main() 136 memcpy(k_set, libc_set, set_size); in main() [all …]
|
D | sigpending.c | 54 TAIL_ALLOC_OBJECT_CONST_PTR(kernel_ulong_t, k_set); in main() 66 k_sigpending((uintptr_t) k_set); in main() 69 k_sigpending((uintptr_t) (k_set + 1)); in main() 70 printf("sigpending(%p) = -1 EFAULT (%m)\n", k_set + 1); in main() 72 uintptr_t efault = sizeof(*k_set) / 2 + (uintptr_t) k_set; in main() 81 k_sigpending((uintptr_t) k_set); in main() 89 k_sigpending((uintptr_t) k_set); in main() 93 k_sigpending(f8ill_ptr_to_kulong(k_set)); in main() 95 (uintmax_t) f8ill_ptr_to_kulong(k_set), errstr); in main()
|
D | rt_sigpending.c | 81 void *k_set = tail_alloc(big_size); in main() local 88 memset(k_set, 0, big_size); in main() 90 for (; set_size; set_size >>= 1, k_set += set_size) { in main() 91 if (!k_sigpending(k_set, set_size)) in main() 94 k_set, set_size); in main() 100 iterate("[]", set_size >> 1, k_set + (set_size >> 1)); in main() 102 void *const efault = k_set + (set_size >> 1); in main() 112 iterate("[HUP]", set_size, k_set); in main() 119 iterate("[HUP INT]", set_size, k_set); in main()
|
D | ptrace.c | 187 void *const k_set = tail_alloc(sigset_size); in main() local 240 memcpy(k_set, &libc_set, sigset_size); in main() 242 do_ptrace(PTRACE_SETSIGMASK, pid, sigset_size, (unsigned long) k_set); in main() 246 do_ptrace(PTRACE_GETSIGMASK, pid, sigset_size, (unsigned long) k_set); in main() 248 (unsigned) pid, sigset_size, k_set, errstr); in main()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_linux.cc | 696 __sanitizer_kernel_sigset_t *k_set = (__sanitizer_kernel_sigset_t *)set; in internal_sigprocmask() 699 (uptr)&k_set->sig[0], (uptr)&k_oldset->sig[0], in internal_sigprocmask() 717 __sanitizer_kernel_sigset_t *k_set = (__sanitizer_kernel_sigset_t *)set; in internal_sigdelset() local 718 const uptr idx = signum / (sizeof(k_set->sig[0]) * 8); in internal_sigdelset() 719 const uptr bit = signum % (sizeof(k_set->sig[0]) * 8); in internal_sigdelset() 720 k_set->sig[idx] &= ~(1 << bit); in internal_sigdelset() 727 __sanitizer_kernel_sigset_t *k_set = (__sanitizer_kernel_sigset_t *)set; in internal_sigismember() local 728 const uptr idx = signum / (sizeof(k_set->sig[0]) * 8); in internal_sigismember() 729 const uptr bit = signum % (sizeof(k_set->sig[0]) * 8); in internal_sigismember() 730 return k_set->sig[idx] & (1 << bit); in internal_sigismember()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_linux.cpp | 854 __sanitizer_kernel_sigset_t *k_set = (__sanitizer_kernel_sigset_t *)set; in internal_sigprocmask() 856 return internal_syscall(SYSCALL(rt_sigprocmask), (uptr)how, (uptr)k_set, in internal_sigprocmask() 874 __sanitizer_kernel_sigset_t *k_set = (__sanitizer_kernel_sigset_t *)set; in internal_sigdelset() local 875 const uptr idx = signum / (sizeof(k_set->sig[0]) * 8); in internal_sigdelset() 876 const uptr bit = signum % (sizeof(k_set->sig[0]) * 8); in internal_sigdelset() 877 k_set->sig[idx] &= ~(1 << bit); in internal_sigdelset() 884 __sanitizer_kernel_sigset_t *k_set = (__sanitizer_kernel_sigset_t *)set; in internal_sigismember() local 885 const uptr idx = signum / (sizeof(k_set->sig[0]) * 8); in internal_sigismember() 886 const uptr bit = signum % (sizeof(k_set->sig[0]) * 8); in internal_sigismember() 887 return k_set->sig[idx] & (1 << bit); in internal_sigismember()
|