Searched refs:arg (Results 1 - 25 of 67) sorted by relevance

123

/bionic/tests/
H A D__cxa_thread_atexit_test.cpp40 static void* thread_nop(void* arg) { argument
41 class_with_dtor.set_message(*static_cast<std::string*>(arg));
76 extern "C" int __cxa_thread_atexit_impl(void (*fn)(void*), void* arg, void* dso_handle);
78 static void thread_atexit_fn1(void* arg) { argument
79 std::string* call_sequence = static_cast<std::string*>(arg);
83 static void thread_atexit_fn2(void* arg) { argument
84 std::string* call_sequence = static_cast<std::string*>(arg);
88 static void thread_atexit_from_atexit(void* arg) { argument
89 std::string* call_sequence = static_cast<std::string*>(arg);
93 static void thread_atexit_fn3(void* arg) { argument
99 thread_atexit_fn4(void* arg) argument
104 thread_atexit_fn5(void* arg) argument
109 thread_main(void* arg) argument
[all...]
H A Dpty_test.cpp82 static void PtyReader_28979140(PtyReader_28979140_Arg* arg) { argument
83 arg->finished = false;
86 CPU_CLR(arg->main_cpu_id, &cpus);
90 while (counter <= arg->data_count) {
92 size_t to_read = std::min(sizeof(buf), (arg->data_count + 1 - counter) * sizeof(uint32_t));
93 ASSERT_TRUE(android::base::ReadFully(arg->slave_fd, buf, to_read));
98 arg->matched = false;
102 close(arg->slave_fd);
103 arg->finished = true;
128 PtyReader_28979140_Arg arg; local
[all...]
H A Dsys_sem_test.cpp105 semun arg; local
109 arg.val = 123;
110 arg.buf = &i1;
111 arg.array = a;
112 arg.__buf = &i2;
H A Dpthread_test.cpp195 static void* IdFn(void* arg) { argument
196 return arg;
230 static void* JoinFn(void* arg) { argument
231 return reinterpret_cast<void*>(pthread_join(reinterpret_cast<pthread_t>(arg), NULL));
335 static void* thread_fn(void* arg) { argument
336 TestBug37410* data = reinterpret_cast<TestBug37410*>(arg);
358 static void* SignalHandlerFn(void* arg) { argument
361 return reinterpret_cast<void*>(sigwait64(&wait_set, reinterpret_cast<int*>(arg)));
690 static void* GetActualGuardSizeFn(void* arg) { argument
693 pthread_attr_getguardsize(&attributes, reinterpret_cast<size_t*>(arg));
705 GetActualStackSizeFn(void* arg) argument
899 pthread_rwlock_wakeup_helper(RwlockWakeupHelperArg* arg) argument
1010 pthread_rwlock_wakeup_timeout_helper(RwlockWakeupHelperArg* arg) argument
1132 ThreadArg* arg = new ThreadArg(this, tid); local
1139 ThreadArg* arg = new ThreadArg(this, tid); local
1157 WriterThreadFn(ThreadArg* arg) argument
1166 ReaderThreadFn(ThreadArg* arg) argument
1679 pthread_gettid_np_helper(void* arg) argument
2391 BarrierTestHelper(BarrierTestHelperArg* arg) argument
2435 BarrierDestroyTestHelper(BarrierDestroyTestArg* arg) argument
2444 BarrierDestroyTestArg arg; local
2467 BarrierOrderingTestHelper(BarrierOrderingTestHelperArg* arg) argument
[all...]
H A Dstack_protector_test.cpp77 ASSERT_EQ(0, pthread_create(&t, NULL, [](void* arg) -> void* {
78 stack_protector_checker* checker = reinterpret_cast<stack_protector_checker*>(arg);
/bionic/libc/bionic/
H A D__cxa_thread_atexit_impl.cpp25 void *arg; member in class:thread_local_dtor
30 extern "C" int __cxa_thread_atexit_impl(void (*func) (void *), void *arg, void *dso_handle);
35 int __cxa_thread_atexit_impl(void (*func) (void *), void *arg, void *dso_handle) { argument
39 dtor->arg = arg;
57 current->func(current->arg);
H A Dioctl.cpp37 void* arg = va_arg(ap, void*); local
39 return __ioctl(fd, request, arg);
H A Dclone.cpp40 extern "C" pid_t __bionic_clone(uint32_t flags, void* child_stack, int* parent_tid, void* tls, int* child_tid, int (*fn)(void*), void* arg);
44 extern "C" __LIBC_HIDDEN__ void __start_thread(int (*fn)(void*), void* arg) { argument
52 int status = (*fn)(arg);
57 int clone(int (*fn)(void*), void* child_stack, int flags, void* arg, ...) { argument
69 va_start(args, arg);
102 clone_result = __bionic_clone(flags, child_stack, parent_tid, new_tls, child_tid, fn, arg);
H A Dexec.cpp74 int execl(const char* name, const char* arg, ...) { argument
76 va_start(ap, arg);
77 int result = __execl(name, arg, kIsExecL, ap);
82 int execle(const char* name, const char* arg, ...) { argument
84 va_start(ap, arg);
85 int result = __execl(name, arg, kIsExecLE, ap);
90 int execlp(const char* name, const char* arg, ...) { argument
92 va_start(ap, arg);
93 int result = __execl(name, arg, kIsExecLP, ap);
H A Dsys_sem.cpp43 semun arg = va_arg(ap, semun); local
46 return syscall(SYS_semctl, id, num, cmd, arg);
48 return syscall(SYS_ipc, SEMCTL, id, num, cmd, &arg, 0);
/bionic/benchmarks/
H A Dutil.h31 static int __attribute__((unused)) EmplaceBenchmark(const std::string& fn_name, benchmark_func_t fn_ptr, const std::string& arg = "") {
33 g_str_to_func.emplace(std::string(fn_name), std::make_pair(fn_ptr, arg));
41 #define BIONIC_BENCHMARK_WITH_ARG(n, arg) \
42 int _bionic_benchmark_##n __attribute__((unused)) = EmplaceBenchmark(std::string(#n), reinterpret_cast<benchmark_func_t>(n), arg)
H A Dsemaphore_benchmark.cpp73 static void* BM_semaphore_sem_post_start_thread(void* arg) { argument
74 sem_t* semaphore = reinterpret_cast<sem_t*>(arg);
/bionic/libc/arch-arm/bionic/
H A Datexit_legacy.c40 extern int __cxa_atexit(void (*func)(void *), void *arg, void *dso);
/bionic/libc/arch-mips/bionic/
H A D__bionic_clone.S33 // pid_t __bionic_clone(int flags, void* child_stack, pid_t* parent_tid, void* tls, pid_t* child_tid, int (*fn)(void*), void* arg);
42 lw $t1,24($sp) # arg
44 sw $t1,4($a1) # arg
61 lw $a1,4($sp) # arg
63 # void __start_thread(int (*func)(void*), void *arg)
/bionic/libc/kernel/uapi/linux/
H A Dn_r3964.h42 int arg; member in struct:r3964_client_message
H A Dax25.h73 int arg; member in struct:ax25_route_opt_struct
80 unsigned long arg; member in struct:ax25_ctl_struct
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/
H A Dn_r3964.h42 int arg; member in struct:r3964_client_message
H A Dax25.h73 int arg; member in struct:ax25_route_opt_struct
80 unsigned long arg; member in struct:ax25_ctl_struct
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/
H A Dn_r3964.h42 int arg; member in struct:r3964_client_message
/bionic/libc/arch-mips64/bionic/
H A D__bionic_clone.S44 // pid_t __bionic_clone(int flags, void* child_stack, pid_t* parent_tid, void* tls, pid_t* child_tid, int (*fn)(void*), void* arg);
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
81 # void __start_thread(int (*func)(void*), void *arg)
83 PTR_L $a1,FRAME_ARG($sp) # arg
/bionic/libc/malloc_hooks/tests/
H A Dmalloc_hooks_tests.cpp155 void* MallocHooksTest::test_malloc_hook(size_t size, const void* arg) { argument
157 void_arg_ = arg;
158 return orig_malloc_hook_(size, arg);
161 void* MallocHooksTest::test_realloc_hook(void* ptr, size_t size, const void* arg) { argument
163 void_arg_ = arg;
164 return orig_realloc_hook_(ptr, size, arg);
167 void* MallocHooksTest::test_memalign_hook(size_t alignment, size_t size, const void* arg) { argument
169 void_arg_ = arg;
170 return orig_memalign_hook_(alignment, size, arg);
173 void MallocHooksTest::test_free_hook(void* ptr, const void* arg) { argument
[all...]
/bionic/libc/kernel/uapi/linux/mmc/
H A Dioctl.h26 __u32 arg; member in struct:mmc_ioc_cmd
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/mmc/
H A Dioctl.h26 __u32 arg; member in struct:mmc_ioc_cmd
/bionic/tools/versioner/dependencies/common/kernel_uapi/linux/mmc/
H A Dioctl.h26 __u32 arg; member in struct:mmc_ioc_cmd
/bionic/libc/arch-arm64/bionic/
H A D__bionic_clone.S31 // pid_t __bionic_clone(int flags, void* child_stack, pid_t* parent_tid, void* tls, pid_t* child_tid, int (*fn)(void*), void* arg);
34 # Push 'fn' and 'arg' onto the child stack.
56 # Call __start_thread with the 'fn' and 'arg' we stored on the child stack.

Completed in 5661 milliseconds

123