Searched refs:handle (Results 1 - 25 of 75) sorted by relevance

123

/bionic/tests/libs/
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 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_testlib_dlopen_from_ctor.cpp20 void* handle = dlopen("libc.so", RTLD_NOW); local
21 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"));
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...]
/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...]
/bionic/tests/
H A Ddlfcn_test.cpp95 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_LAZY | RTLD_LOCAL); local
96 ASSERT_TRUE(handle != nullptr) << dlerror();
105 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT"));
113 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT"));
121 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_NEXT"));
128 dlclose(handle);
135 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); local
136 ASSERT_TRUE(handle != nullptr) << dlerror();
145 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT"));
153 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAUL
175 void* handle = dlopen("libtest_empty.so", RTLD_NOW); local
189 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW); local
198 void* handle = dlopen("libtest_with_dependency.so", RTLD_NOW); local
211 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_NOLOAD); local
226 void* handle = dlopen(soname, RTLD_NOW); local
256 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); local
287 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); local
307 void* handle = dlopen("libtest_ifunc.so", RTLD_LAZY); local
332 void* handle = nullptr; local
372 void* handle = dlopen("libtest_check_order_dlsym.so", RTLD_NOW | RTLD_GLOBAL); local
417 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
441 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
482 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
528 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
559 void* handle = dlopen("libtest_two_parents_parent1.so", RTLD_NOW | RTLD_LOCAL); local
603 void* handle = dlopen("libtest_check_order_reloc_root.so", RTLD_NOW | RTLD_NOLOAD); local
626 void* handle = dlopen("libtest_simple.so", RTLD_NOW); local
650 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_GLOBAL); local
675 void* handle = dlopen("libtest_with_dependency_loop.so", RTLD_NOW); local
699 void* handle = dlopen("libtest_nodelete_1.so", RTLD_NOW | RTLD_NODELETE); local
732 void* handle = dlopen("libtest_nodelete_2.so", RTLD_NOW); local
759 void* handle = dlopen("libtest_nodelete_dt_flags_1.so", RTLD_NOW); local
771 void* handle = dlopen("libtest_dlsym_df_1_global.so", RTLD_NOW); local
793 void* handle = dlopen("/child/thread", RTLD_NOW); local
803 void* handle = dlopen("/main/thread", RTLD_NOW); local
819 void* handle = dlopen("/main/thread", RTLD_NOW); local
987 void* handle = dlopen("libgnu-hash-table-library.so", RTLD_NOW); local
1010 void* handle = dlopen("libsysv-hash-table-library.so", RTLD_NOW); local
1031 void* handle; local
1088 void* handle = dlopen("libtest_dlsym_weak_func.so", RTLD_NOW); local
1099 void* handle = dlopen("libtest_dlopen_weak_undefined_func.so", RTLD_NOW); local
1126 void* handle = dlopen("libtest_dlopen_from_ctor_main.so", RTLD_NOW); local
1142 void* handle = dlopen(libname, RTLD_NOW); local
1163 void* handle = dlopen("libtest_versioned_uselibv1.so", RTLD_NOW); local
1173 void* handle = dlopen("libtest_versioned_uselibv2.so", RTLD_NOW); local
1183 void* handle = dlopen("libtest_versioned_uselibv2_other.so", RTLD_NOW); local
1193 void* handle = dlopen("libtest_versioned_uselibv3_other.so", RTLD_NOW); local
1203 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); local
1213 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); local
1243 void* handle = dlopen("libtest_dt_runpath_d.so", RTLD_NOW); local
1339 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1356 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1367 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1378 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1389 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1400 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1411 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1422 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1433 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
1444 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local
[all...]
H A Dcfi_test.cpp35 void* handle; local
36 handle = dlopen("libcfi-test.so", RTLD_NOW | RTLD_LOCAL);
37 ASSERT_TRUE(handle != nullptr) << dlerror();
39 #define SYM(type, name) auto name = reinterpret_cast<type>(dlsym(handle, #name))
91 EXPECT_EQ(handle2, handle);
99 dlclose(handle);
110 void* handle; local
111 handle = dlopen("libcfi-test-bad.so", RTLD_NOW | RTLD_LOCAL);
112 ASSERT_FALSE(handle != nullptr) << dlerror();
114 handle
[all...]
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 Ddlext_test.cpp131 ZipArchiveHandle handle; local
132 ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle));
137 ASSERT_EQ(0, FindEntry(handle, zip_name, &zip_entry));
139 CloseArchive(handle);
200 void* handle = dlopen("libdlext_test.so", RTLD_NOW); local
201 ASSERT_DL_NOTNULL(handle);
207 ASSERT_TRUE(handle != handle2);
210 dlclose(handle);
218 void* handle = dlopen(symlink_name.c_str(), RTLD_NOW); local
219 ASSERT_DL_NOTNULL(handle);
238 void* handle = dlopen((lib_path + "!/libdir/libatest_simple_zip.so").c_str(), RTLD_NOW); local
252 void* handle = dlopen((lib_path + "!/libdir/libtest_dt_runpath_d_zip.so").c_str(), RTLD_NOW); local
277 void* handle = dlopen("libdlext_test_zip.so", RTLD_NOW); local
435 void* handle = android_dlopen_ext(lib, RTLD_NOW, &extinfo_); local
582 void* handle; local
688 void* handle = dlopen(g_public_lib, RTLD_NOW); local
856 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); local
904 void* handle = android_dlopen_ext("foobar", RTLD_NOW, &extinfo); local
935 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); local
984 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); local
1035 void* handle = android_dlopen_ext(root_lib, RTLD_NOW, &extinfo); local
1074 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); local
1111 void* handle = android_dlopen_ext("libnativehelper.so", RTLD_NOW, &extinfo); local
1150 void* handle = android_dlopen_ext("libthatdoesnotexist.so", RTLD_NOW, &extinfo); local
1205 void* handle = dlopen(lib_private_external_path.c_str(), RTLD_NOW); local
1314 void* handle = dlopen(lib_private_external_path.c_str(), RTLD_NOW); local
1420 void* handle = android_dlopen_ext("libnstest_private.so", RTLD_NOW, &extinfo); local
1431 void* handle = android_dlopen_ext( local
1446 void* handle = android_dlopen_ext( local
1481 void* handle = android_dlopen_ext("libnstest_dlopened.so", RTLD_NOW | RTLD_NOLOAD, &extinfo); local
1623 void* handle = android_dlopen_ext(private_library_absolute_path.c_str(), RTLD_NOW, &extinfo); local
[all...]
/bionic/libc/include/
H A Ddlfcn.h54 int dlclose(void* _Nonnull handle);
56 void* dlsym(void* handle, const char* _Nonnull symbol);
57 void* dlvsym(void* handle, const char* _Nonnull symbol, const char* _Nonnull version) __INTRODUCED_IN(24);
/bionic/libc/kernel/uapi/drm/
H A Darmada_drm.h31 uint32_t handle; member in struct:drm_armada_gem_create
37 uint32_t handle; member in struct:drm_armada_gem_mmap
49 uint32_t handle; member in struct:drm_armada_gem_pwrite
H A Domap_drm.h56 uint32_t handle; member in struct:drm_omap_gem_new
66 uint32_t handle; member in struct:drm_omap_gem_cpu_prep
71 uint32_t handle; member in struct:drm_omap_gem_cpu_fini
79 uint32_t handle; member in struct:drm_omap_gem_info
H A Dtegra_drm.h31 __u32 handle; member in struct:drm_tegra_gem_create
35 __u32 handle; member in struct:drm_tegra_gem_mmap
87 __u32 handle; member in struct:drm_tegra_cmdbuf
96 __u32 handle; member in struct:drm_tegra_reloc::__anon206
101 __u32 handle; member in struct:drm_tegra_reloc::__anon207
110 __u32 handle; member in struct:drm_tegra_waitchk
140 __u32 handle; member in struct:drm_tegra_gem_set_tiling
147 __u32 handle; member in struct:drm_tegra_gem_get_tiling
157 __u32 handle; member in struct:drm_tegra_gem_set_flags
162 __u32 handle; member in struct:drm_tegra_gem_get_flags
[all...]
H A Dqxl_drm.h40 __u32 handle; member in struct:drm_qxl_alloc
45 __u32 handle; member in struct:drm_qxl_map
79 __u32 handle; member in struct:drm_qxl_update_area
106 __u32 handle; member in struct:drm_qxl_alloc_surf
/bionic/libc/versioner-dependencies/common/kernel_uapi/drm/
H A Darmada_drm.h31 uint32_t handle; member in struct:drm_armada_gem_create
37 uint32_t handle; member in struct:drm_armada_gem_mmap
49 uint32_t handle; member in struct:drm_armada_gem_pwrite
H A Domap_drm.h56 uint32_t handle; member in struct:drm_omap_gem_new
66 uint32_t handle; member in struct:drm_omap_gem_cpu_prep
71 uint32_t handle; member in struct:drm_omap_gem_cpu_fini
79 uint32_t handle; member in struct:drm_omap_gem_info
H A Dtegra_drm.h31 __u32 handle; member in struct:drm_tegra_gem_create
35 __u32 handle; member in struct:drm_tegra_gem_mmap
87 __u32 handle; member in struct:drm_tegra_cmdbuf
96 __u32 handle; member in struct:drm_tegra_reloc::__anon1279
101 __u32 handle; member in struct:drm_tegra_reloc::__anon1280
110 __u32 handle; member in struct:drm_tegra_waitchk
140 __u32 handle; member in struct:drm_tegra_gem_set_tiling
147 __u32 handle; member in struct:drm_tegra_gem_get_tiling
157 __u32 handle; member in struct:drm_tegra_gem_set_flags
162 __u32 handle; member in struct:drm_tegra_gem_get_flags
[all...]
/bionic/tools/versioner/current/
H A Ddlfcn.h54 int dlclose(void* _Nonnull handle);
56 void* dlsym(void* handle, const char* _Nonnull symbol);
57 void* dlvsym(void* handle, const char* _Nonnull symbol, const char* _Nonnull version) __INTRODUCED_IN(24);
/bionic/libc/kernel/uapi/linux/
H A Dfirewire-cdev.h70 __u32 handle; member in struct:fw_cdev_event_request
86 __u32 handle; member in struct:fw_cdev_event_request2
110 __u32 handle; member in struct:fw_cdev_event_iso_resource
194 __u32 handle; member in struct:fw_cdev_send_response
201 __u32 handle; member in struct:fw_cdev_allocate
206 __u32 handle; member in struct:fw_cdev_deallocate
221 __u32 handle; member in struct:fw_cdev_add_descriptor
225 __u32 handle; member in struct:fw_cdev_remove_descriptor
239 __u32 handle; member in struct:fw_cdev_create_iso_context
244 __u32 handle; member in struct:fw_cdev_set_iso_channels
265 __u32 handle; member in struct:fw_cdev_queue_iso
279 __u32 handle; member in struct:fw_cdev_start_iso
282 __u32 handle; member in struct:fw_cdev_stop_iso
286 __u32 handle; member in struct:fw_cdev_flush_iso
306 __u32 handle; member in struct:fw_cdev_allocate_iso_resource
[all...]
H A Dnbd.h57 char handle[8]; member in struct:nbd_request
66 char handle[8]; member in struct:nbd_reply
/bionic/libc/versioner-dependencies/common/kernel_uapi/linux/
H A Dfirewire-cdev.h70 __u32 handle; member in struct:fw_cdev_event_request
86 __u32 handle; member in struct:fw_cdev_event_request2
110 __u32 handle; member in struct:fw_cdev_event_iso_resource
194 __u32 handle; member in struct:fw_cdev_send_response
201 __u32 handle; member in struct:fw_cdev_allocate
206 __u32 handle; member in struct:fw_cdev_deallocate
221 __u32 handle; member in struct:fw_cdev_add_descriptor
225 __u32 handle; member in struct:fw_cdev_remove_descriptor
239 __u32 handle; member in struct:fw_cdev_create_iso_context
244 __u32 handle; member in struct:fw_cdev_set_iso_channels
265 __u32 handle; member in struct:fw_cdev_queue_iso
279 __u32 handle; member in struct:fw_cdev_start_iso
282 __u32 handle; member in struct:fw_cdev_stop_iso
286 __u32 handle; member in struct:fw_cdev_flush_iso
306 __u32 handle; member in struct:fw_cdev_allocate_iso_resource
[all...]
H A Dnbd.h57 char handle[8]; member in struct:nbd_request
66 char handle[8]; member in struct:nbd_reply
/bionic/libdl/
H A Dlibdl.c33 void* __loader_dlsym(void* handle, const char* symbol, const void* caller_addr);
36 void* __loader_dlvsym(void* handle,
45 int __loader_dlclose(void* handle);
110 void* dlsym(void* handle, const char* symbol) { argument
112 return __loader_dlsym(handle, symbol, caller_addr);
115 void* dlvsym(void* handle, const char* symbol, const char* version) { argument
117 return __loader_dlvsym(handle, symbol, version, caller_addr);
124 int dlclose(void* handle) { argument
125 return __loader_dlclose(handle);
/bionic/libc/bionic/
H A DNetdClient.cpp28 static void netdClientInitFunction(void* handle, const char* symbol, FunctionType* function) { argument
30 InitFunctionType initFunction = reinterpret_cast<InitFunctionType>(dlsym(handle, symbol));

Completed in 413 milliseconds

123