Searched refs:handle (Results 1 - 25 of 100) sorted by last modified time

1234

/bionic/libdl/
H A Dlibdl.cpp34 void* __loader_dlsym(void* handle, const char* symbol, const void* caller_addr);
37 void* __loader_dlvsym(void* handle,
46 int __loader_dlclose(void* handle);
114 void* dlsym(void* handle, const char* symbol) { argument
116 return __loader_dlsym(handle, symbol, caller_addr);
120 void* dlvsym(void* handle, const char* symbol, const char* version) { argument
122 return __loader_dlvsym(handle, symbol, version, caller_addr);
131 int dlclose(void* handle) { argument
132 return __loader_dlclose(handle);
H A Dlibdl_static.c31 void* dlsym(void* handle __unused, const char* symbol __unused) {
35 void* dlvsym(void* handle __unused,
45 int dlclose(void* handle __unused) {
/bionic/linker/
H A Ddlfcn.cpp79 int __loader_dlclose(void* handle) __LINKER_PUBLIC__;
82 void* __loader_dlsym(void* handle, const char* symbol, const void* caller_addr) __LINKER_PUBLIC__;
83 void* __loader_dlvsym(void* handle,
156 void* dlsym_impl(void* handle, const char* symbol, const char* version, const void* caller_addr) { argument
160 if (!do_dlsym(handle, symbol, version, caller_addr, &result)) {
168 void* __loader_dlsym(void* handle, const char* symbol, const void* caller_addr) { argument
169 return dlsym_impl(handle, symbol, nullptr, caller_addr);
172 void* __loader_dlvsym(void* handle, const char* symbol, const char* version, const void* caller_addr) { argument
173 return dlsym_impl(handle, symbol, version, caller_addr);
181 int __loader_dlclose(void* handle) { argument
[all...]
H A Dlinker.cpp794 void* handle);
802 // According to man dlopen(3) and posix docs in the case when si is handle
817 // namespace and then calls dlsym() on the handle.
831 void* handle) {
837 if (handle == RTLD_NEXT) {
874 (handle == RTLD_NEXT) ? caller : nullptr,
903 bool get_or_open(const char* zip_path, ZipArchiveHandle* handle);
910 bool ZipArchiveCache::get_or_open(const char* zip_path, ZipArchiveHandle* handle) { argument
915 *handle = it->second;
924 if (OpenArchiveFd(fd, "", handle) !
826 dlsym_linear_lookup(android_namespace_t* ns, const char* name, const version_info* vi, soinfo** found, soinfo* caller, void* handle) argument
976 ZipArchiveHandle handle; local
[all...]
H A Dlinker.h115 int do_dlclose(void* handle);
123 bool do_dlsym(void* handle, const char* sym_name,
/bionic/tests/
H A Datexit_test.cpp42 void* handle = dlopen("libtest_atexit.so", RTLD_NOW); local
43 ASSERT_TRUE(handle != nullptr);
47 get_cxx_ctor_called = reinterpret_cast<int_fn>(dlsym(handle, "get_cxx_ctor_called"));
48 get_attr_ctor_called = reinterpret_cast<int_fn>(dlsym(handle, "get_attr_ctor_called"));
55 void* sym = dlsym(handle, "register_atexit");
59 ASSERT_EQ(0, dlclose(handle));
H A Dcfi_test.cpp40 void* handle; local
41 handle = dlopen("libcfi-test.so", RTLD_NOW | RTLD_LOCAL);
42 ASSERT_TRUE(handle != nullptr) << dlerror();
46 #define SYM(type, name) auto name = reinterpret_cast<type>(dlsym(handle, #name))
107 EXPECT_EQ(handle2, handle);
115 dlclose(handle);
126 void* handle; local
127 handle = dlopen("libcfi-test-bad.so", RTLD_NOW | RTLD_LOCAL);
128 ASSERT_FALSE(handle != nullptr) << dlerror();
130 handle
[all...]
H A Ddlext_test.cpp132 ZipArchiveHandle handle; local
133 ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle));
138 ASSERT_EQ(0, FindEntry(handle, zip_name, &zip_entry));
140 CloseArchive(handle);
201 void* handle = dlopen("libdlext_test.so", RTLD_NOW); local
202 ASSERT_DL_NOTNULL(handle);
208 ASSERT_TRUE(handle != handle2);
211 dlclose(handle);
219 void* handle = dlopen(symlink_name.c_str(), RTLD_NOW); local
220 ASSERT_DL_NOTNULL(handle);
239 void* handle = dlopen((lib_path + "!/libdir/libatest_simple_zip.so").c_str(), RTLD_NOW); local
253 void* handle = dlopen((lib_path + "!/libdir/libtest_dt_runpath_d_zip.so").c_str(), RTLD_NOW); local
278 void* handle = dlopen("libdlext_test_zip.so", RTLD_NOW); local
436 void* handle = android_dlopen_ext(lib, RTLD_NOW, &extinfo_); local
583 void* handle; local
689 void* handle = dlopen(g_public_lib, RTLD_NOW); local
857 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); local
905 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); local
936 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); local
985 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); local
1036 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); local
1085 void* handle = android_dlopen_ext((public_ns_search_path + "/libtest_missing_symbol.so").c_str(), local
1128 void* handle = android_dlopen_ext("libtest_missing_symbol_root.so", RTLD_NOW, &extinfo); local
1156 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); local
1193 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); local
1232 void* handle = android_dlopen_ext("libthatdoesnotexist.so", RTLD_NOW, &extinfo); local
1287 void* handle = dlopen(lib_private_external_path.c_str(), RTLD_NOW); local
1417 void* handle = android_dlopen_ext(lib_private_external_path.c_str(), RTLD_NOW, &extinfo); local
1521 void* handle = android_dlopen_ext("libnstest_private.so", RTLD_NOW, &extinfo); local
1532 void* handle = android_dlopen_ext( local
1547 void* handle = android_dlopen_ext( local
1582 void* handle = android_dlopen_ext("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD, &extinfo); local
1730 void* handle = android_dlopen_ext(library_path.c_str(), RTLD_NOW, &extinfo); local
1892 void* handle = android_dlopen_ext(private_library_absolute_path.c_str(), RTLD_NOW, &extinfo); local
[all...]
H A Ddlfcn_symlink_support.cpp57 void* handle = dlopen(source_file_name, RTLD_NOW); local
60 ASSERT_TRUE(handle != nullptr) << dlerror();
64 dlclose(handle);
H A Ddlfcn_test.cpp99 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_LAZY | RTLD_LOCAL); local
100 ASSERT_TRUE(handle != nullptr) << dlerror();
109 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT"));
117 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT"));
125 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_NEXT"));
132 dlclose(handle);
139 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); local
140 ASSERT_TRUE(handle != nullptr) << dlerror();
149 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT"));
157 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAUL
179 void* handle = dlopen("libtest_empty.so", RTLD_NOW); local
193 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW); local
202 void* handle = dlopen("libtest_with_dependency.so", RTLD_NOW); local
215 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_NOLOAD); local
230 void* handle = dlopen(soname, RTLD_NOW); local
264 void* handle = dlopen(vdso_name, RTLD_NOW); local
279 void* handle = dlopen("libtest_ifunc_variable.so", RTLD_NOW); local
311 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); local
337 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); local
352 void* handle = dlopen("libtest_ifunc.so", RTLD_LAZY); local
377 void* handle = nullptr; local
415 void* handle = dlopen("libtest_check_order_dlsym.so", RTLD_NOW | RTLD_GLOBAL); local
460 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
484 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
525 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
571 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
602 void* handle = dlopen("libtest_two_parents_parent1.so", RTLD_NOW | RTLD_LOCAL); local
646 void* handle = dlopen("libtest_check_order_reloc_root.so", RTLD_NOW | RTLD_NOLOAD); local
669 void* handle = dlopen("libtest_simple.so", RTLD_NOW); local
693 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_GLOBAL); local
718 void* handle = dlopen("libtest_with_dependency_loop.so", RTLD_NOW); local
742 void* handle = dlopen("libtest_nodelete_1.so", RTLD_NOW | RTLD_NODELETE); local
775 void* handle = dlopen("libtest_nodelete_2.so", RTLD_NOW); local
802 void* handle = dlopen("libtest_nodelete_dt_flags_1.so", RTLD_NOW); local
814 void* handle = dlopen("libtest_dlsym_df_1_global.so", RTLD_NOW); local
834 void* handle = dlopen("libtest_simple.so", RTLD_NOW); local
851 void* handle = dlopen("/child/thread", RTLD_NOW); local
861 void* handle = dlopen("/main/thread", RTLD_NOW); local
877 void* handle = dlopen("/main/thread", RTLD_NOW); local
1045 void* handle = dlopen("libgnu-hash-table-library.so", RTLD_NOW); local
1066 void* handle = dlopen("libsysv-hash-table-library.so", RTLD_NOW); local
1085 void* handle = dlopen("libelf-tls-library.so", RTLD_NOW); local
1092 void* handle; local
1149 void* handle = dlopen("libtest_dlsym_weak_func.so", RTLD_NOW); local
1160 void* handle = dlopen("libtest_dlopen_weak_undefined_func.so", RTLD_NOW); local
1187 void* handle = dlopen("libtest_dlopen_from_ctor_main.so", RTLD_NOW); local
1203 void* handle = dlopen(libname, RTLD_NOW); local
1224 void* handle = dlopen("libtest_versioned_uselibv1.so", RTLD_NOW); local
1234 void* handle = dlopen("libtest_versioned_uselibv2.so", RTLD_NOW); local
1244 void* handle = dlopen("libtest_versioned_uselibv2_other.so", RTLD_NOW); local
1254 void* handle = dlopen("libtest_versioned_uselibv3_other.so", RTLD_NOW); local
1264 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); local
1274 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); local
1304 void* handle = dlopen("libtest_dt_runpath_d.so", RTLD_NOW); local
1319 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1345 void* handle = dlopen("libtest_thread_local_dtor.so", RTLD_NOW | RTLD_NOLOAD); local
1388 void* handle = dlopen("libtest_thread_local_dtor.so", RTLD_NOW); local
1516 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1527 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1538 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1549 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1560 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1571 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1582 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1593 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1604 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1611 void* handle = dlopen("libtest_dlopen_df_1_global.so", RTLD_NOW); local
[all...]
H A Dpthread_dlfcn_test.cpp48 void* handle = dlopen("libtest_pthread_atfork.so", RTLD_NOW | RTLD_LOCAL); local
49 ASSERT_TRUE(handle != nullptr) << dlerror();
51 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "proxy_pthread_atfork"));
71 EXPECT_EQ(0, dlclose(handle));
/bionic/tests/libs/
H A Dbionic_tests_zipalign.cpp42 static bool GetEntries(ZipArchiveHandle handle, std::vector<ZipData>* entries) { argument
44 int32_t return_value = StartIteration(handle, &cookie, nullptr, nullptr);
68 static bool CreateAlignedZip(ZipArchiveHandle& handle, FILE* zip_dst, uint32_t alignment) { argument
72 if (!GetEntries(handle, &entries)) {
94 ZipArchiveStreamEntry::Create(handle, *zip_entry));
139 ZipArchiveHandle handle; local
141 int32_t return_value = OpenArchive(argv[2], &handle);
143 CloseArchive(handle);
154 bool success = CreateAlignedZip(handle, zip_dst, static_cast<uint32_t>(alignment));
156 CloseArchive(handle);
[all...]
H A Dcfi_test_helper2.cpp23 void* handle; local
25 handle = dlopen("libcfi-test.so", RTLD_NOW | RTLD_NOLOAD);
26 CHECK(handle != nullptr);
27 dlclose(handle);
H A Ddlopen_b.cpp10 void *handle = dlopen("libtest_dt_runpath_x.so", RTLD_NOW); local
11 if (handle != nullptr) {
13 return handle;
H A Ddlopen_testlib_dlopen_from_ctor.cpp20 void* handle = dlopen("libc.so", RTLD_NOW); local
21 dlclose(handle);
H A Dld_config_test_helper.cpp40 void* handle = dlopen(vdso_name, RTLD_NOW); local
41 if (handle == nullptr) {
45 dlclose(handle);
H A Dnamespaces_root.cpp54 void* handle = dlopen("libnstest_dlopened.so", RTLD_NOW | RTLD_GLOBAL); local
55 if (handle == nullptr) {
59 const char** result = static_cast<const char**>(dlsym(handle, "g_private_dlopened_string"));
/bionic/libc/bionic/
H A DNetdClient.cpp29 static void netdClientInitFunction(void* handle, const char* symbol, FunctionType* function) { argument
31 InitFunctionType initFunction = reinterpret_cast<InitFunctionType>(dlsym(handle, symbol));
/bionic/libc/dns/include/
H A Dnsswitch.h191 void *handle; /* handle from dlopen() */ member in struct:__anon30
/bionic/libc/dns/nameser/
H A Dns_parse.c77 int ns_msg_getflag(ns_msg handle, int flag) { argument
78 return((u_int32_t)((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift);
107 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { argument
111 handle->_msg = msg;
112 handle->_eom = eom;
115 NS_GET16(handle->_id, msg);
118 NS_GET16(handle->_flags, msg);
122 NS_GET16(handle->_counts[i], msg);
125 if (handle->_counts[i] == 0)
126 handle
143 ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) argument
206 ns_parserr2(ns_msg *handle, ns_sect section, int rrnum, ns_rr2 *rr) argument
[all...]
H A Dns_print.c88 ns_sprintrr(const ns_msg *handle, const ns_rr *rr, argument
94 n = ns_sprintrrf(ns_msg_base(*handle), ns_msg_size(*handle),
1117 /* XXX need to handle \nnn form. */
/bionic/libc/dns/resolv/
H A Dres_cache.c81 * - the client calls _resolv_cache_get() to obtain a handle to the cache.
1070 answer_getNegativeTTL(ns_msg handle) { argument
1075 nscount = ns_msg_count(handle, ns_s_ns);
1077 if ((ns_parserr(&handle, ns_s_ns, n, &rr) == 0) && (ns_rr_type(rr) == ns_t_soa)) {
1126 ns_msg handle; local
1132 if (ns_initparse(answer, answerlen, &handle) >= 0) {
1134 ancount = ns_msg_count(handle, ns_s_an);
1138 result = answer_getNegativeTTL(handle);
1141 if (ns_parserr(&handle, ns_s_an, n, &rr) == 0) {
H A Dres_debug.c150 ns_msg *handle, ns_sect section,
172 opcode = (ns_opcode) ns_msg_getflag(*handle, ns_f_opcode);
175 if (ns_parserr(handle, section, rrnum, &rr)) {
245 n = ns_sprintrr(handle, &rr, NULL, NULL,
280 ns_msg handle; local
284 if (ns_initparse(msg, len, &handle) < 0) {
288 opcode = ns_msg_getflag(handle, ns_f_opcode);
289 rcode = ns_msg_getflag(handle, ns_f_rcode);
290 id = ns_msg_id(handle);
291 qdcount = ns_msg_count(handle, ns_s_q
149 do_section(const res_state statp, ns_msg *handle, ns_sect section, int pflag, FILE *file) argument
[all...]
/bionic/libc/include/arpa/
H A Dnameser.h121 * This is a message handle. It is caller allocated and has no dynamic data.
134 * This is a newmsg handle, used when constructing new messages with
146 #define ns_msg_id(handle) ((handle)._id + 0)
147 #define ns_msg_base(handle) ((handle)._msg + 0)
148 #define ns_msg_end(handle) ((handle)._eom + 0)
149 #define ns_msg_size(handle) ((size_t)((handle)
[all...]
/bionic/libc/kernel/uapi/drm/
H A Damdgpu_drm.h77 __u32 handle; member in struct:drm_amdgpu_gem_create_out
171 __u32 handle; member in struct:drm_amdgpu_gem_userptr
196 __u32 handle; member in struct:drm_amdgpu_gem_metadata
206 __u32 handle; member in struct:drm_amdgpu_gem_mmap_in
217 __u32 handle; member in struct:drm_amdgpu_gem_wait_idle_in
230 __u64 handle; member in struct:drm_amdgpu_wait_cs_in
268 __u32 handle; member in struct:drm_amdgpu_gem_op
288 __u32 handle; member in struct:drm_amdgpu_gem_va
324 __u64 handle; member in struct:drm_amdgpu_cs_out
347 __u64 handle; member in struct:drm_amdgpu_cs_chunk_dep
350 __u32 handle; member in struct:drm_amdgpu_cs_chunk_fence
354 __u32 handle; member in struct:drm_amdgpu_cs_chunk_sem
366 __u32 handle; member in struct:drm_amdgpu_fence_to_handle::__anon166
[all...]

Completed in 911 milliseconds

1234