Home
last modified time | relevance | path

Searched refs:dlopen (Results 1 - 25 of 204) sorted by relevance

123456789

/third_party/musl/libc-test/src/functionalext/supplement/ldso/ldso_gtest/
H A Dldso_dlopen_test.cpp33 void* handle = dlopen("libdlopen_relocation.so", RTLD_NOW); in HWTEST_F()
55 void* handle = dlopen("libdlopen_order_02.so", RTLD_NOW | RTLD_GLOBAL); in HWTEST_F()
82 void* handle = dlopen("libdlopen_order_003.so", RTLD_NOW | RTLD_LOCAL); in HWTEST_F()
105 void* handle = dlopen("libdlopen_005.so", RTLD_NOW | RTLD_LOCAL); in HWTEST_F()
127 void* handle = dlopen("libdlopen_test_dependency.so", RTLD_NOW); in HWTEST_F()
134 handle = dlopen("libdlopen_test_dependency.so", RTLD_NOW | RTLD_NOLOAD); in HWTEST_F()
137 handle = dlopen("libdlopen_test_dependency_1.so", RTLD_NOW | RTLD_NOLOAD); in HWTEST_F()
143 * @tc.desc: If the "so" has been loaded, when using the RTLD_NOLOAD to dlopen the "so",
149 void* handle = dlopen("libdlopen_common.so", RTLD_NOLOAD); in HWTEST_F()
151 handle = dlopen("libdlopen_commo in HWTEST_F()
[all...]
H A Dldso_dlsym_test.cpp39 void* handle = dlopen("libdlsym_get_answer.so", RTLD_NOW); in HWTEST_F()
56 void* handle = dlopen("libempty.so", RTLD_NOW); in HWTEST_F()
71 void* handle = dlopen("libempty.so", RTLD_NOW); in HWTEST_F()
86 void* handle = dlopen("libldso_dlsym_dependent.so", RTLD_NOW); in HWTEST_F()
103 void* prehandle = dlopen("libdlsym_get_symbol_impl.so", RTLD_NOW | RTLD_LOCAL); in HWTEST_F()
104 void* handle = dlopen("libdlsym_get_symbol.so", RTLD_NOW | RTLD_LOCAL); in HWTEST_F()
126 void* handle = dlopen("libempty.so", RTLD_NOW); in HWTEST_F()
128 void* handle01 = dlopen("libdlsym_get_answer.so", RTLD_NOW | RTLD_GLOBAL); in HWTEST_F()
192 void* handle = dlopen("libdlsym_weak_func_undefined.so", RTLD_NOW); in HWTEST_F()
208 void* handle = dlopen("libdlsym_weak_fun in HWTEST_F()
[all...]
H A Dcxa_thread_atexit_test.cpp160 void* handle = dlopen("libldso_cxa_thread_atexit_test.so", RTLD_NOW); in HWTEST_F()
168 handle = dlopen("libldso_cxa_thread_atexit_test.so", RTLD_NOLOAD); in HWTEST_F()
174 * Test we can't unload B and C if we already add a thread_local dtor for B after dlopen A.
180 void* handle = dlopen("libldso_cxa_thread_atexit_test_A.so", RTLD_NOW); in TestDlcloseSo()
188 handle = dlopen("libldso_cxa_thread_atexit_test_A.so", RTLD_NOLOAD); in TestDlcloseSo()
192 handle = dlopen("libldso_cxa_thread_atexit_test_B.so", RTLD_NOLOAD); in TestDlcloseSo()
195 handle = dlopen("libldso_cxa_thread_atexit_test_C.so", RTLD_NOLOAD); in TestDlcloseSo()
221 handle = dlopen("libldso_cxa_thread_atexit_test_B.so", RTLD_NOLOAD); in HWTEST_F()
223 handle = dlopen("libldso_cxa_thread_atexit_test_C.so", RTLD_NOLOAD); in HWTEST_F()
H A Dldso_dlclose_test.cpp25 void* handle = dlopen("libdlopen_common_close.so", RTLD_NOW | RTLD_GLOBAL); in HWTEST_F()
58 void* handle = dlopen("libldso_thread_test.so", RTLD_NOW); in HWTEST_F()
68 handle = dlopen("libldso_thread_test.so", RTLD_NOW | RTLD_NOLOAD); in HWTEST_F()
79 void* handle = dlopen("libldso_thread_test_2.so", RTLD_NOW); in HWTEST_F()
89 handle = dlopen("libldso_thread_test_2.so", RTLD_NOW | RTLD_NOLOAD); in HWTEST_F()
106 void* handle = dlopen("libldso_dlclose_test_a.so", RTLD_GLOBAL); in HWTEST_F()
H A Dldso_cfi_test.cpp57 void* handle = dlopen(LIB_PATH, RTLD_NOW); in HWTEST_F()
64 void* handle2 = dlopen(LIB_PATH, RTLD_NOW); in HWTEST_F()
94 void* handle = dlopen(LIB_PATH, RTLD_NOW); in HWTEST_F()
129 void* handle = dlopen(LIB_PATH, RTLD_NOW); in HWTEST_F()
153 void* handle = dlopen(LIB_PATH, RTLD_NOW); in HWTEST_F()
174 void* handle = dlopen(LIB_PATH, RTLD_NOW); in HWTEST_F()
194 void* handle = dlopen(LIB_PATH, RTLD_NOW); in HWTEST_F()
212 void* handle = dlopen(LIB_PATH, RTLD_NOW); in HWTEST_F()
241 void* handle = dlopen(LIB_PATH, RTLD_NOW); in HWTEST_F()
H A Dldso_dladdr_test.cpp18 void* handle = dlopen("libdlopen_common.so", RTLD_NOW); in HWTEST_F()
44 void* handle = dlopen("libdlopen_gnu_hash.so", RTLD_NOW); in HWTEST_F()
71 void* handle = dlopen("libdlopen_sysv_hash.so", RTLD_NOW); in HWTEST_F()
/third_party/musl/libc-test/src/functional/
H A Ddlopen.c19 void* handle = dlopen(name, mode); in do_dlopen()
22 t_error("dlopen(name=%s, mode=%d) failed: %s\n", name, mode, dlerror()); in do_dlopen()
50 void* handle1 = dlopen(SO_LOAD_BY_LOCAL, RTLD_LOCAL); in dlopen_so_used_by_dlsym()
52 t_error("dlopen(name=%s, mode=%d) failed: %s\n", SO_LOAD_BY_LOCAL, RTLD_LOCAL, dlerror()); in dlopen_so_used_by_dlsym()
64 void* handle2 = dlopen(SO_LOAD_BY_GLOBAL, RTLD_GLOBAL); in dlopen_so_used_by_dlsym()
66 t_error("dlopen(name=%s, mode=%d) failed: %s\n", SO_LOAD_BY_GLOBAL, RTLD_LOCAL, dlerror()); in dlopen_so_used_by_dlsym()
80 void* handle1 = dlopen(SO_FOR_NO_DELETE, RTLD_NODELETE); in dlopen_nodelete_and_noload()
83 t_error("dlopen(name=%s, mode=RTLD_NODELETE) failed: %s\n", SO_FOR_NO_DELETE, dlerror()); in dlopen_nodelete_and_noload()
89 void* handle2 = dlopen(SO_FOR_NO_DELETE, RTLD_NOLOAD); in dlopen_nodelete_and_noload()
91 t_error("dlopen(nam in dlopen_nodelete_and_noload()
[all...]
H A Ddl_multithread_lock.c121 void* handle = dlopen(g_libPath, RTLD_NOW); in dlopen_dlclose_test001()
123 t_error("dlopen(name=%s, mode=%d) failed: %s\n", g_libPath, RTLD_NOW, dlerror()); in dlopen_dlclose_test001()
131 void* handle = dlopen(g_initlibPath, RTLD_NOW); in dlopen_dlclose_test002()
133 t_error("dlopen(name=%s, mode=%d) failed: %s\n", g_initlibPath, RTLD_NOW, dlerror()); in dlopen_dlclose_test002()
240 * @tc.desc : multithreaded dlopen/dlclose, at the end the expected so file should not be in memory.
254 * @tc.desc : multithreaded dlopen, the init constructor should be called only once.
275 * @tc.desc : multithreaded dlopen, the deconstructor should be called only at the last dlclose.
305 void* handle1 = dlopen(g_libPath, RTLD_NOW); in dl_multithread_lock_0400()
307 t_error("dlopen(name=%s, mode=%d) failed: %s\n", g_libPath, RTLD_NOW, dlerror()); in dl_multithread_lock_0400()
310 void* handle2 = dlopen(g_initlibPat in dl_multithread_lock_0400()
[all...]
H A Ddlclose_reset.c30 h = dlopen(buf, RTLD_LAZY|RTLD_LOCAL); in main()
32 t_error("dlopen %s failed: %s\n", buf, dlerror()); in main()
48 g = dlopen(buf, RTLD_LAZY|RTLD_LOCAL); in main()
50 t_error("dlopen %s failed: %s\n", buf, dlerror()); in main()
/third_party/musl/libc-test/src/functionalext/symver/
H A Ddlvsym.c29 void *handle = dlopen(dso_no_symver_name, RTLD_LAZY); in dlvsym_no_symver_0100()
61 void *handle = dlopen(dso_no_symver_name, RTLD_LAZY); in dlvsym_no_symver_0200()
93 void *handle = dlopen(dso_easy_symver_name, RTLD_LAZY); in dlvsym_easy_symver_0100()
126 void *handle = dlopen(dso_easy_symver_name, RTLD_LAZY); in dlvsym_easy_symver_0200()
159 void *handle = dlopen(dso_easy_symver_name, RTLD_LAZY); in dlvsym_easy_symver_0300()
191 void *handle = dlopen(dso_easy_symver_name, RTLD_LAZY); in dlvsym_easy_symver_0400()
223 void *handle = dlopen(dso_hard_symver_name, RTLD_LAZY); in dlvsym_hard_symver_0100()
256 void *handle = dlopen(dso_hard_symver_name, RTLD_LAZY); in dlvsym_hard_symver_0200()
289 void *handle = dlopen(dso_hard_symver_name, RTLD_LAZY); in dlvsym_hard_symver_0300()
321 void *handle = dlopen(dso_hard_symver_nam in dlvsym_hard_symver_0400()
[all...]
H A Ddlsym.c34 void *handle = dlopen(dso_no_symver_name, RTLD_LAZY); in dlsym_no_symver_0100()
67 void *handle = dlopen(dso_no_symver_name, RTLD_LAZY); in dlsym_no_symver_0200()
115 void *handle = dlopen(dso_easy_symver_name, RTLD_LAZY); in dlsym_easy_symver_0200()
148 void *handle = dlopen(dso_easy_symver_name, RTLD_LAZY); in dlsym_easy_symver_0300()
196 void *handle = dlopen(dso_hard_symver_name, RTLD_LAZY); in dlsym_hard_symver_0200()
229 void *handle = dlopen(dso_hard_symver_name, RTLD_LAZY); in dlsym_hard_symver_0300()
261 void *handle = dlopen(dso_no_symver_name, RTLD_LAZY); in dlsym_time64_no_symver_0100()
/third_party/musl/libc-test/src/functionalext/ldso_debug/
H A Dldso_debug_test.c39 void* handle_lib1 = dlopen(LIB_PATH_1, RTLD_NOW); in ldso_debug_test_0001()
41 void* handle_lib2 = dlopen(LIB_PATH_2, RTLD_NOW); in ldso_debug_test_0001()
43 void* handle_lib3 = dlopen(LIB_PATH_3, RTLD_NOW); in ldso_debug_test_0001()
62 void* handle_lib1 = dlopen(LIB_PATH_1, RTLD_NOW); in ldso_debug_test_0002()
66 handle_lib1 = dlopen(LIB_PATH_1, RTLD_NOW); in ldso_debug_test_0002()
86 void* handle_lib4 = dlopen(LIB_PATH_4, RTLD_NOW); in ldso_debug_test_0003()
103 void* handle_lib6 = dlopen(LIB_PATH_6, RTLD_NOW); in ldso_debug_test_0004()
H A Dldso_memleak_check.c53 * @tc.desc : dlopen so file libldso_debug_test_lib_6.so which has another DTNEEDED so file
55 * so the dlopen will fail, and we will check there is no memleak for so libldso_debug_test_lib_6.so
60 void* handle = dlopen(g_libPath_1, RTLD_NOW); in ldso_memleak_check_0100()
62 t_error("dlopen(name=%s, mode=%d) should fail\n", g_libPath_1, RTLD_NOW); in ldso_memleak_check_0100()
74 * @tc.desc : dlopen so file libldso_debug_test_lib_8.so has DTNEEDED so file libldso_debug_test_lib_9.so.
76 * but the libldso_debug_test_lib_10.so is not in device, so the dlopen will fail,
83 void* handle = dlopen(g_libPath_2, RTLD_NOW); in ldso_memleak_check_0200()
85 t_error("dlopen(name=%s, mode=%d) should fail\n", g_libPath_2, RTLD_NOW); in ldso_memleak_check_0200()
/third_party/musl/libc-test/src/functionalext/supplement/ldso/
H A Ddl_iterate_phdr.c61 void *handle = dlopen("/data/libtest.so", RTLD_NOW); in dl_iterate_phdr_0100()
73 * @tc.desc : Call dlopen twice, dlclose twice, the target so cannot find when second dlclose call.
78 void *handle = dlopen("/data/libtest.so", RTLD_NOW); in dl_iterate_phdr_0200()
83 handle = dlopen("/data/libtest.so", RTLD_NOW); in dl_iterate_phdr_0200()
98 * @tc.desc : Call dlopen twice, dlclose twice, so file use the same name but it is two different files.
103 void *handle1 = dlopen("/data/libtest.so", RTLD_NOW); in dl_iterate_phdr_0300()
113 void *handle2 = dlopen("/data/libtest.so", RTLD_NOW); in dl_iterate_phdr_0300()
136 void *handle = dlopen("/data/libtest.so", RTLD_NOW); in dl_iterate_phdr_0400()
151 void *handle = dlopen("/data/libtest.so", RTLD_NOW); in dl_iterate_phdr_0500()
/third_party/musl/libc-test/src/functionalext/dlns/
H A Ddlns_dlopen.c27 * @tc.desc : Enter a valid path, dlopen compatibility test
32 void* handle = dlopen(dllNamePath, RTLD_LAZY); in dlopen_0100()
40 * @tc.desc : Enter invalid path, dlopen compatibility test
45 void* handle = dlopen(errPath_ns, RTLD_LAZY); in dlopen_0200()
290 void* handle = dlopen(dllAcePath, RTLD_LAZY); in dlopen_add_reloc()
296 * @tc.desc : Test dlopen lib relocation type is REL_DTPMOD/REL_DTPOFF.(libstd.dylib.so)
301 void* handle = dlopen(dllDylibPath, RTLD_LAZY); in dlopen_relocation()
310 * @tc.desc : Test dlopen lib hash type is sysv.(libdlopen_hash_sysv.so)
315 void* handle = dlopen(dllHashsysvPath, RTLD_LAZY); in dlopen_hash_type()
324 * @tc.desc : Test dlopen li
[all...]
/third_party/musl/libc-test/src/functionalext/ldso_cfi/
H A Dldso_cfi_check.c99 void* handle = dlopen(LIB_PATH, RTLD_LAZY); in cfi_slowpath_function_test_0002()
132 void* handle = dlopen(LIB_PATH, RTLD_LAZY); in cfi_slowpath_function_test_0003()
162 void* handle = dlopen(LIB_PATH, RTLD_LAZY); in cfi_slowpath_function_test_0004()
185 void* handle = dlopen(LIB_PATH, RTLD_LAZY); in cfi_slowpath_function_test_0005()
221 void* handle = dlopen(LIB_PATH, RTLD_LAZY); in cfi_slowpath_function_test_0006()
249 void* handle = dlopen(LIB_PATH, RTLD_LAZY); in cfi_slowpath_function_test_0007()
256 void* handle2 = dlopen(LIB_PATH, RTLD_LAZY); in cfi_slowpath_function_test_0007()
284 void* handle = dlopen(LIB_PATH, RTLD_LAZY); in cfi_slowpath_function_test_0008()
315 void* handle = dlopen(LIB_PATH, RTLD_LAZY); in cfi_slowpath_diag_function_test_0001()
/third_party/skia/third_party/externals/swiftshader/src/Common/
H A DSharedLibrary.hpp95 return dlopen(path, RTLD_LAZY | RTLD_LOCAL); in loadLibrary()
102 return dlopen(path, RTLD_NOW | RTLD_LOCAL); in getLibraryHandle()
104 void *resident = dlopen(path, RTLD_LAZY | RTLD_NOLOAD | RTLD_LOCAL); in getLibraryHandle()
108 return dlopen(path, RTLD_LAZY | RTLD_LOCAL); // Increment reference count in getLibraryHandle()
/third_party/skia/third_party/externals/swiftshader/src/System/
H A DSharedLibrary.hpp94 return dlopen(path, RTLD_LAZY | RTLD_LOCAL); in loadLibrary()
101 return dlopen(path, RTLD_NOW | RTLD_LOCAL); in getLibraryHandle()
103 void *resident = dlopen(path, RTLD_LAZY | RTLD_NOLOAD | RTLD_LOCAL); in getLibraryHandle()
107 return dlopen(path, RTLD_LAZY | RTLD_LOCAL); // Increment reference count in getLibraryHandle()
/third_party/musl/libc-test/src/functionalext/ldso_randomization/
H A Dldso_randomization_manual.c49 * @tc.desc : Repeatedly calling the dlopen interface to load the dynamic library,
59 handle = dlopen(LIB_NAME, RTLD_NOW); in dlopen_randomization_0500()
74 * @tc.desc : Different processes call the dlopen interface to load dynamic libraries
88 void *child_handle = dlopen(LIB_NAME, RTLD_NOW); in dlopen_randomization_0700()
96 parent_handle = dlopen(LIB_NAME, RTLD_NOW); in dlopen_randomization_0700()
265 void *handle = dlopen(LIB_NAME, RTLD_NOW); in dlsym_randomization_0100()
267 t_printf("%s dlopen failed: %s\n", __FUNCTION__, LIB_NAME); in dlsym_randomization_0100()
294 child_handle = dlopen(LIB_NAME_A, RTLD_NOW); in dlsym_randomization_0200()
296 t_printf("%s child process dlopen failed: %s\n", __FUNCTION__, LIB_NAME_A); in dlsym_randomization_0200()
305 parent_handle = dlopen(LIB_NAME_ in dlsym_randomization_0200()
[all...]
H A Dldso_randomization_test.c44 * @tc.desc : Call the dlopen interface to load a valid dynamic library
49 void *handle = dlopen(LIB_NAME, RTLD_NOW); in dlopen_randomization_0100()
58 * @tc.desc : Call the dlopen interface to load NULL
63 void *handle = dlopen(NULL, RTLD_NOW); in dlopen_randomization_0200()
89 * @tc.desc : Call the dlopen interface to load a invalid dynamic library
94 void *handle = dlopen("test_invaild.so", RTLD_NOW); in dlopen_randomization_0300()
103 * @tc.desc : Repeatedly calling the dlopen interface to load the same dynamic library
108 void *ori_handle = dlopen(LIB_NAME, RTLD_NOW); in dlopen_randomization_0400()
116 handle = dlopen(LIB_NAME, RTLD_NOW); in dlopen_randomization_0400()
127 * @tc.desc : Call the dlopen interfac
[all...]
/third_party/mbedtls/programs/test/
H A Ddlopen.c60 void *tls_so = dlopen(TLS_SO_FILENAME, RTLD_NOW); in main()
61 CHECK_DLERROR("dlopen", TLS_SO_FILENAME); in main()
69 mbedtls_printf("dlopen(%s): %u ciphersuites\n", in main()
76 void *x509_so = dlopen(X509_SO_FILENAME, RTLD_NOW); in main()
77 CHECK_DLERROR("dlopen", X509_SO_FILENAME); in main()
81 mbedtls_printf("dlopen(%s): Allowed md mask: %08x\n", in main()
88 void *crypto_so = dlopen(CRYPTO_SO_FILENAME, RTLD_NOW); in main()
89 CHECK_DLERROR("dlopen", CRYPTO_SO_FILENAME); in main()
97 mbedtls_printf("dlopen(%s): %u hashes\n", in main()
/third_party/musl/libc-test/src/functionalext/rpath/
H A Drpath_test.c31 void *handle = dlopen(g_absoluteLib, RTLD_LAZY); in RapthAbsolute()
46 void *handle = dlopen(g_originLib, RTLD_LAZY); in RapthRelative()
62 void *handle = dlopen(g_multipleLib, RTLD_LAZY); in RapthMultiple()
/third_party/python/Modules/_ctypes/darwin/
H A Ddlfcn_simple.c53 extern void * dlopen(const char *path, int mode) __attribute__((weak_import));
61 #define dlopen darwin_dlopen macro
75 /* Mac OS X 10.3+ has dlopen, so strip all this dead code to avoid warnings */
255 if (dlopen != NULL) { in ctypes_dlfcn_init()
257 ctypes_dlopen = dlopen; in ctypes_dlfcn_init()
/third_party/musl/Benchmark/musl/
H A Dlibc_linker.cpp510 void *handle = dlopen(LIBGLES_MALI_PATH, RTLD_LAZY); in Bm_function_dlsym_libGLES_mali()
512 printf("dlopen %s failed: %s.n", LIBGLES_MALI_PATH, dlerror()); in Bm_function_dlsym_libGLES_mali()
526 handle = dlopen(libace, RTLD_LAZY); in Bm_function_dlclose()
528 printf("dlopen %s failed: %s.n", libace, dlerror()); in Bm_function_dlclose()
/third_party/vk-gl-cts/framework/delibs/deutil/
H A DdeDynamicLibrary.c46 library->libHandle = dlopen(basename((char*)fileName), RTLD_LAZY); in deDynamicLibrary_open()
48 library->libHandle = dlopen(fileName, RTLD_LAZY); in deDynamicLibrary_open()

Completed in 10 milliseconds

123456789