Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 36) sorted by relevance

12

/bionic/libc/arch-common/bionic/
Datexit.h36 void __atexit_handler_wrapper(void* func) { in __atexit_handler_wrapper() argument
37 if (func != NULL) { in __atexit_handler_wrapper()
38 (*(void (*)(void))func)(); in __atexit_handler_wrapper()
43 int atexit(void (*func)(void)) { in atexit()
44 return (__cxa_atexit(&__atexit_handler_wrapper, func, &__dso_handle)); in atexit()
/bionic/libc/bionic/
D__cxa_thread_atexit_impl.cpp24 void (*func) (void *); member in 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) { in __cxa_thread_atexit_impl()
38 dtor->func = func; in __cxa_thread_atexit_impl()
57 current->func(current->arg); in __cxa_thread_finalize()
Dmalloc_common_dynamic.cpp125 extern "C" int __cxa_atexit(void (*func)(void *), void *arg, void *dso);
128 static bool InitMallocFunction(void* malloc_impl_handler, FunctionType* func, const char* prefix, c… in InitMallocFunction() argument
131 *func = reinterpret_cast<FunctionType>(dlsym(malloc_impl_handler, symbol)); in InitMallocFunction()
132 if (*func == nullptr) { in InitMallocFunction()
423 void* func = gFunctions[FUNC_GET_MALLOC_LEAK_INFO]; in GetMallocLeakInfo() local
424 if (func == nullptr) { in GetMallocLeakInfo()
428 reinterpret_cast<get_malloc_leak_info_func_t>(func)( in GetMallocLeakInfo()
435 void* func = gFunctions[FUNC_FREE_MALLOC_LEAK_INFO]; in FreeMallocLeakInfo() local
436 if (func == nullptr) { in FreeMallocLeakInfo()
440 reinterpret_cast<free_malloc_leak_info_func_t>(func)(leak_info->buffer); in FreeMallocLeakInfo()
[all …]
Dpthread_internal.cpp204 bool android_run_on_all_threads(bool (*func)(void*), void* arg) { in android_run_on_all_threads()
212 if (!func(arg)) { in android_run_on_all_threads()
223 g_func = func; in android_run_on_all_threads()
Datexit.cpp230 int __cxa_atexit(void (*func)(void*), void* arg, void* dso) { in __cxa_atexit()
233 if (func != nullptr) { in __cxa_atexit()
235 if (g_array.append_entry({.fn = func, .arg = arg, .dso = dso})) { in __cxa_atexit()
/bionic/libc/arch-arm/bionic/
Datexit_legacy.c40 extern int __cxa_atexit(void (*func)(void *), void *arg, void *dso);
46 atexit(void (*func)(void)) in atexit()
59 return (__cxa_atexit((void (*)(void *))func, NULL, NULL)); in atexit()
/bionic/libc/upstream-netbsd/lib/libc/isc/
Dev_timers.c63 evTimerFunc func; member
187 evTimerFunc func, in evSetTimer() argument
198 ctx, func, uap, in evSetTimer()
225 id->func = func; in evSetTimer()
305 evTimerFunc func, in evResetTimer() argument
337 timer->func = func; in evResetTimer()
364 evTimerFunc func, in evSetIdleTimer() argument
374 tt->func = func; in evSetIdleTimer()
403 evTimerFunc func, in evResetIdleTimer() argument
411 tt->func = func; in evResetIdleTimer()
[all …]
Deventlib_p.h79 evConnFunc func; member
115 evFileFunc func; member
127 evStreamFunc func; member
146 evTimerFunc func; member
155 evWaitFunc func; member
Dev_streams.c68 evStreamFunc func, void *uap, evStreamID *id) in evWrite() argument
75 new->func = func; in evWrite()
102 evStreamFunc func, void *uap, evStreamID *id) in evRead() argument
109 new->func = func; in evRead()
/bionic/libc/arch-x86/bionic/
Datexit.h32 int atexit(void (*func)(void)) in atexit()
34 return (__cxa_atexit((void (*)(void *))func, (void *)0, &__dso_handle)); in atexit()
/bionic/libc/kernel/uapi/linux/
Dpci.h10 #define PCI_DEVFN(slot,func) ((((slot) & 0x1f) << 3) | ((func) & 0x07)) argument
Dpg.h15 char func; member
Dtee.h77 __u32 func; member
96 __u32 func; member
Dptp_clock.h86 unsigned int func; member
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Dquick_exit.c56 at_quick_exit(void (*func)(void)) in at_quick_exit()
64 h->cleanup = func; in at_quick_exit()
/bionic/linker/
Dlinker_tls.h51 TlsDescResolverFunc* func; member
53 TlsDescResolverFunc* func;
/bionic/tests/libs/
Delftls_dtv_resize_helper.cpp107 auto func = reinterpret_cast<int (*)()>(dlsym(lib, "bump")); in main() local
108 ASSERT_NE(nullptr, func); in main()
109 return func; in main()
151 auto func = load_lib(soname); in main() local
160 ASSERT_EQ(tls_var_value, func()); in main()
/bionic/libc/tools/
Dgenfunctosyscallnrs.py27 for func, syscall in base_names.items():
28 out_file.write("#define __" + arch + "_" + func + " " +
/bionic/libc/system_properties/
Dcontexts_split.cpp89 static void ListForEach(List* list, Func func) { in ListForEach() argument
91 func(list); in ListForEach()
97 static List* ListFind(List* list, Func func) { in ListFind() argument
99 if (func(list)) { in ListFind()
/bionic/libc/include/sys/
Dcdefs.h202 # define __RENAME_IF_FILE_OFFSET64(func) __RENAME(func) argument
204 # define __RENAME_IF_FILE_OFFSET64(func) argument
/bionic/benchmarks/spawn/
Dbench_cxa_atexit.cpp34 extern "C" int __cxa_atexit(void (*func)(void*), void* arg, void* dso);
/bionic/tests/
Dlink_test.cpp262 uintptr_t func = reinterpret_cast<uintptr_t>(read_exidx_func); in TEST() local
271 if (func == exidx_func || func == exidx_func + 1) found = true; in TEST()
D__cxa_atexit_test.cpp32 int __cxa_atexit(void (*func)(void*), void* arg, void* dso);
Dfdtrack_test.cpp62 std::vector<android_fdtrack_event> FdtrackRun(void (*func)(), bool reenable = true) { in FdtrackRun() argument
84 func(); in FdtrackRun()
/bionic/libc/upstream-netbsd/lib/libc/include/isc/
Deventlib.h139 evStreamFunc func, void *, evStreamID *));
141 evStreamFunc func, void *, evStreamID *));

12