/bionic/tests/ |
D | __cxa_thread_atexit_test.cpp | 40 static void* thread_nop(void* arg) { in thread_nop() argument 41 class_with_dtor.set_message(*static_cast<std::string*>(arg)); in thread_nop() 76 extern "C" int __cxa_thread_atexit_impl(void (*fn)(void*), void* arg, void* dso_handle); 78 static void thread_atexit_fn1(void* arg) { in thread_atexit_fn1() argument 79 std::string* call_sequence = static_cast<std::string*>(arg); in thread_atexit_fn1() 83 static void thread_atexit_fn2(void* arg) { in thread_atexit_fn2() argument 84 std::string* call_sequence = static_cast<std::string*>(arg); in thread_atexit_fn2() 88 static void thread_atexit_from_atexit(void* arg) { in thread_atexit_from_atexit() argument 89 std::string* call_sequence = static_cast<std::string*>(arg); in thread_atexit_from_atexit() 93 static void thread_atexit_fn3(void* arg) { in thread_atexit_fn3() argument [all …]
|
D | pty_test.cpp | 82 static void PtyReader_28979140(PtyReader_28979140_Arg* arg) { in PtyReader_28979140() argument 83 arg->finished = false; in PtyReader_28979140() 86 CPU_CLR(arg->main_cpu_id, &cpus); in PtyReader_28979140() 90 while (counter <= arg->data_count) { in PtyReader_28979140() 92 size_t to_read = std::min(sizeof(buf), (arg->data_count + 1 - counter) * sizeof(uint32_t)); in PtyReader_28979140() 93 ASSERT_TRUE(android::base::ReadFully(arg->slave_fd, buf, to_read)); in PtyReader_28979140() 98 arg->matched = false; in PtyReader_28979140() 102 close(arg->slave_fd); in PtyReader_28979140() 103 arg->finished = true; in PtyReader_28979140() 128 PtyReader_28979140_Arg arg; in TEST() local [all …]
|
D | pthread_test.cpp | 192 static void* IdFn(void* arg) { in IdFn() argument 193 return arg; in IdFn() 225 static void* JoinFn(void* arg) { in JoinFn() argument 226 return reinterpret_cast<void*>(pthread_join(reinterpret_cast<pthread_t>(arg), NULL)); in JoinFn() 330 static void* thread_fn(void* arg) { in thread_fn() 331 TestBug37410* data = reinterpret_cast<TestBug37410*>(arg); in thread_fn() 353 static void* SignalHandlerFn(void* arg) { in SignalHandlerFn() argument 356 return reinterpret_cast<void*>(sigwait(&wait_set, reinterpret_cast<int*>(arg))); in SignalHandlerFn() 632 static void* GetActualGuardSizeFn(void* arg) { in GetActualGuardSizeFn() argument 635 pthread_attr_getguardsize(&attributes, reinterpret_cast<size_t*>(arg)); in GetActualGuardSizeFn() [all …]
|
D | stack_protector_test.cpp | 77 ASSERT_EQ(0, pthread_create(&t, NULL, [](void* arg) -> void* { in TEST() argument 78 stack_protector_checker* checker = reinterpret_cast<stack_protector_checker*>(arg); in TEST()
|
D | stack_unwinding_test.cpp | 37 _Unwind_Reason_Code FrameCounter(_Unwind_Context* ctx __unused, void* arg) { in FrameCounter() argument 38 int* count_ptr = reinterpret_cast<int*>(arg); in FrameCounter()
|
D | semaphore_test.cpp | 71 static void* SemWaitThreadFn(void* arg) { in SemWaitThreadFn() argument 72 SemWaitThreadTestFn(*reinterpret_cast<sem_t*>(arg)); in SemWaitThreadFn() 168 static void* SemWaitEINTRThreadFn(void* arg) { in SemWaitEINTRThreadFn() argument 169 sem_t* sem = reinterpret_cast<sem_t*>(arg); in SemWaitEINTRThreadFn()
|
/bionic/libc/bionic/ |
D | __cxa_thread_atexit_impl.cpp | 23 void *arg; member in thread_local_dtor 28 extern "C" int __cxa_thread_atexit_impl(void (*func) (void *), void *arg, void *dso_handle) { in __cxa_thread_atexit_impl() argument 32 dtor->arg = arg; in __cxa_thread_atexit_impl() 47 current->func(current->arg); in __cxa_thread_finalize()
|
D | exec.cpp | 72 int execl(const char* name, const char* arg, ...) { in execl() argument 74 va_start(ap, arg); in execl() 75 return __execl(name, arg, kIsExecL, ap); in execl() 78 int execle(const char* name, const char* arg, ...) { in execle() argument 80 va_start(ap, arg); in execle() 81 return __execl(name, arg, kIsExecLE, ap); in execle() 84 int execlp(const char* name, const char* arg, ...) { in execlp() argument 86 va_start(ap, arg); in execlp() 87 return __execl(name, arg, kIsExecLP, ap); in execlp()
|
D | clone.cpp | 36 …flags, void* child_stack, int* parent_tid, void* tls, int* child_tid, int (*fn)(void*), void* arg); 40 extern "C" __LIBC_HIDDEN__ void __start_thread(int (*fn)(void*), void* arg) { in __start_thread() argument 46 int status = (*fn)(arg); in __start_thread() 50 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { in clone() argument 62 va_start(args, arg); in clone() 95 clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg); in clone()
|
D | ioctl.cpp | 37 void* arg = va_arg(ap, void*); in ioctl() local 39 return __ioctl(fd, request, arg); in ioctl()
|
D | sys_sem.cpp | 43 semun arg = va_arg(ap, semun); in semctl() local 46 return syscall(SYS_semctl, id, num, cmd, arg); in semctl() 48 return syscall(SYS_ipc, SEMCTL, id, num, cmd, &arg, 0); in semctl()
|
D | pthread_exit.cpp | 47 void __pthread_cleanup_push(__pthread_cleanup_t* c, __pthread_cleanup_func_t routine, void* arg) { in __pthread_cleanup_push() argument 50 c->__cleanup_arg = arg; in __pthread_cleanup_push()
|
/bionic/libc/arch-mips/bionic/ |
D | __bionic_clone.S | 42 lw t1,24(sp) # arg 44 sw t1,4(a1) # arg
|
/bionic/libc/arch-mips64/bionic/ |
D | __bionic_clone.S | 54 PRL_L t1,FRAMESZ+6*REGSZ(sp) # arg 56 PTR_S t1,FRAME_ARG(a1) # arg 61 PTR_S a6,FRAME_ARG(a1) # arg
|
/bionic/libc/arch-arm/bionic/ |
D | atexit_legacy.c | 40 extern int __cxa_atexit(void (*func)(void *), void *arg, void *dso);
|
/bionic/libc/kernel/uapi/linux/ |
D | n_r3964.h | 47 int arg; member
|
D | ax25.h | 86 int arg; member 95 unsigned long arg; member
|
/bionic/benchmarks/ |
D | pthread_benchmark.cpp | 139 static void* RunThread(void* arg) { in RunThread() argument 140 benchmark::State& state = *reinterpret_cast<benchmark::State*>(arg); in RunThread() 155 static void* ExitThread(void* arg) { in ExitThread() argument 156 benchmark::State& state = *reinterpret_cast<benchmark::State*>(arg); in ExitThread()
|
D | semaphore_benchmark.cpp | 72 static void* BM_semaphore_sem_post_start_thread(void* arg) { in BM_semaphore_sem_post_start_thread() argument 73 sem_t* semaphore = reinterpret_cast<sem_t*>(arg); in BM_semaphore_sem_post_start_thread()
|
/bionic/libc/kernel/tools/ |
D | clean_header.py | 160 for opt, arg in optlist: 166 src_dir = arg 168 dst_dir = arg
|
/bionic/libc/tools/ |
D | generate-NOTICE.py | 107 for arg in args: 108 sys.stderr.write('Searching for source files in "%s"...\n' % arg) 110 for directory, sub_directories, filenames in os.walk(arg):
|
/bionic/libc/kernel/uapi/linux/mmc/ |
D | ioctl.h | 27 __u32 arg; member
|
/bionic/libc/arch-arm64/bionic/ |
D | __bionic_clone.S | 56 # Call __start_thread with the 'fn' and 'arg' we stored on the child stack.
|
/bionic/libc/kernel/uapi/xen/ |
D | privcmd.h | 27 __u64 arg[5]; member
|
/bionic/libc/malloc_debug/ |
D | malloc_debug.cpp | 83 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg); 662 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg) { in debug_iterate() argument 667 decltype(arg) arg; in debug_iterate() member 668 } ctx = { callback, arg }; in debug_iterate() 671 [](uintptr_t base, size_t size, void* arg) { in debug_iterate() argument 672 const iterate_ctx* ctx = reinterpret_cast<iterate_ctx*>(arg); in debug_iterate() 680 header->usable_size, ctx->arg); in debug_iterate() 686 ctx->callback(base, size, ctx->arg); in debug_iterate()
|