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

12

/bionic/tests/libs/
H A Ddlopen_testlib_dlopen_from_ctor.cpp20 void* handle = dlopen("libc.so", RTLD_NOW); local
21 dlclose(handle);
/bionic/libc/dns/nameser/
H A Dns_parse.c75 int ns_msg_getflag(ns_msg handle, int flag) { argument
76 return((u_int32_t)((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift);
105 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { argument
109 handle->_msg = msg;
110 handle->_eom = eom;
113 NS_GET16(handle->_id, msg);
116 NS_GET16(handle->_flags, msg);
120 NS_GET16(handle->_counts[i], msg);
123 if (handle->_counts[i] == 0)
124 handle
141 ns_parserr(ns_msg *handle, ns_sect section, int rrnum, ns_rr *rr) argument
204 ns_parserr2(ns_msg *handle, ns_sect section, int rrnum, ns_rr2 *rr) argument
[all...]
/bionic/tests/
H A Ddlfcn_test.cpp71 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_LAZY | RTLD_LOCAL); local
72 ASSERT_TRUE(handle != nullptr) << dlerror();
81 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT"));
89 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT"));
97 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_NEXT"));
104 dlclose(handle);
111 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); local
112 ASSERT_TRUE(handle != nullptr) << dlerror();
121 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT"));
129 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAUL
151 void* handle = dlopen("libtest_empty.so", RTLD_NOW); local
164 void* handle = dlopen("libtest_with_dependency.so", RTLD_NOW); local
177 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_NOLOAD); local
192 void* handle = dlopen(soname, RTLD_NOW); local
222 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); local
248 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); local
273 void* handle = nullptr; local
313 void* handle = dlopen("libtest_check_order_dlsym.so", RTLD_NOW | RTLD_GLOBAL); local
358 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
382 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
423 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
469 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local
500 void* handle = dlopen("libtest_two_parents_parent1.so", RTLD_NOW | RTLD_LOCAL); local
544 void* handle = dlopen("libtest_check_order_reloc_root.so", RTLD_NOW | RTLD_NOLOAD); local
567 void* handle = dlopen("libtest_simple.so", RTLD_NOW); local
591 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_GLOBAL); local
616 void* handle = dlopen("libtest_with_dependency_loop.so", RTLD_NOW); local
638 void* handle = dlopen("libtest_nodelete_1.so", RTLD_NOW | RTLD_NODELETE); local
671 void* handle = dlopen("libtest_nodelete_2.so", RTLD_NOW); local
698 void* handle = dlopen("libtest_nodelete_dt_flags_1.so", RTLD_NOW); local
710 void* handle = dlopen("libtest_dlsym_df_1_global.so", RTLD_NOW); local
877 void* handle = dlopen("libgnu-hash-table-library.so", RTLD_NOW); local
900 void* handle = dlopen("libsysv-hash-table-library.so", RTLD_NOW); local
921 void* handle; local
962 void* handle = dlopen("libtest_dlsym_weak_func.so", RTLD_NOW); local
973 void* handle = dlopen("libtest_dlopen_weak_undefined_func.so", RTLD_NOW); local
998 void* handle = dlopen("libtest_dlopen_from_ctor_main.so", RTLD_NOW); local
1007 void* handle = dlopen("libtest_versioned_uselibv1.so", RTLD_NOW); local
1017 void* handle = dlopen("libtest_versioned_uselibv2.so", RTLD_NOW); local
1027 void* handle = dlopen("libtest_versioned_uselibv2_other.so", RTLD_NOW); local
1037 void* handle = dlopen("libtest_versioned_uselibv3_other.so", RTLD_NOW); local
1047 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); local
[all...]
H A Datexit_test.cpp32 void* handle = dlopen("libtest_atexit.so", RTLD_NOW); local
33 ASSERT_TRUE(handle != nullptr);
37 get_cxx_ctor_called = reinterpret_cast<int_fn>(dlsym(handle, "get_cxx_ctor_called"));
38 get_attr_ctor_called = reinterpret_cast<int_fn>(dlsym(handle, "get_attr_ctor_called"));
45 void* sym = dlsym(handle, "register_atexit");
49 ASSERT_EQ(0, dlclose(handle));
H A Dpthread_dlfcn_test.cpp41 void* handle = dlopen("libtest_pthread_atfork.so", RTLD_NOW | RTLD_LOCAL); local
42 ASSERT_TRUE(handle != nullptr) << dlerror();
44 fn_t fn = reinterpret_cast<fn_t>(dlsym(handle, "proxy_pthread_atfork"));
64 EXPECT_EQ(0, dlclose(handle));
H A Ddlext_test.cpp182 void* handle = dlopen("libdlext_test.so", RTLD_NOW); local
183 ASSERT_DL_NOTNULL(handle);
189 ASSERT_TRUE(handle != handle2);
192 dlclose(handle);
198 void* handle = dlopen("libdlext_test_v2.so", RTLD_NOW); local
199 ASSERT_DL_NOTNULL(handle);
208 ASSERT_TRUE(handle == handle2);
211 dlclose(handle);
217 void* handle = dlopen((lib_path + "!/libdir/libdlext_test_fd.so").c_str(), RTLD_NOW); local
218 ASSERT_TRUE(handle !
237 void* handle = dlopen("libdlext_test_fd.so", RTLD_NOW); local
346 void* handle = android_dlopen_ext(lib, RTLD_NOW, &extinfo_); local
479 void* handle; local
[all...]
/bionic/libc/kernel/uapi/drm/
H A Darmada_drm.h27 uint32_t handle; member in struct:drm_armada_gem_create
34 uint32_t handle; member in struct:drm_armada_gem_mmap
45 uint32_t handle; member in struct:drm_armada_gem_pwrite
H A Domap_drm.h54 uint32_t handle; member in struct:drm_omap_gem_new
64 uint32_t handle; member in struct:drm_omap_gem_cpu_prep
69 uint32_t handle; member in struct:drm_omap_gem_cpu_fini
76 uint32_t handle; member in struct:drm_omap_gem_info
H A Dtegra_drm.h29 __u32 handle; member in struct:drm_tegra_gem_create
32 __u32 handle; member in struct:drm_tegra_gem_mmap
84 __u32 handle; member in struct:drm_tegra_cmdbuf
92 __u32 handle; member in struct:drm_tegra_reloc::__anon163
97 __u32 handle; member in struct:drm_tegra_reloc::__anon164
106 __u32 handle; member in struct:drm_tegra_waitchk
136 __u32 handle; member in struct:drm_tegra_gem_set_tiling
144 __u32 handle; member in struct:drm_tegra_gem_get_tiling
154 __u32 handle; member in struct:drm_tegra_gem_set_flags
159 __u32 handle; member in struct:drm_tegra_gem_get_flags
[all...]
H A Dqxl_drm.h39 uint32_t handle; member in struct:drm_qxl_alloc
44 uint32_t handle; member in struct:drm_qxl_map
77 uint32_t handle; member in struct:drm_qxl_update_area
105 uint32_t handle; member in struct:drm_qxl_alloc_surf
H A Dmsm_drm.h56 uint32_t handle; member in struct:drm_msm_gem_new
60 uint32_t handle; member in struct:drm_msm_gem_info
71 uint32_t handle; member in struct:drm_msm_gem_cpu_prep
77 uint32_t handle; member in struct:drm_msm_gem_cpu_fini
110 uint32_t handle; member in struct:drm_msm_gem_submit_bo
H A Dvmwgfx_drm.h132 uint32_t handle; member in struct:drm_vmw_fence_rep
149 uint32_t handle; member in struct:drm_vmw_dmabuf_rep
161 uint32_t handle; member in struct:drm_vmw_unref_dmabuf_arg
179 uint32_t handle; member in struct:drm_vmw_control_stream_arg
221 uint32_t handle; member in struct:drm_vmw_fence_wait_arg
234 uint32_t handle; member in struct:drm_vmw_fence_signaled_arg
244 uint32_t handle; member in struct:drm_vmw_fence_arg
261 uint32_t handle; member in struct:drm_vmw_fence_event_arg
306 uint32_t handle; member in struct:drm_vmw_shader_arg
331 uint32_t handle; member in struct:drm_vmw_gb_surface_create_rep
370 uint32_t handle; member in struct:drm_vmw_synccpu_arg
[all...]
H A Dnouveau_drm.h40 uint32_t handle; member in struct:drm_nouveau_gem_info
66 uint32_t handle; member in struct:drm_nouveau_gem_pushbuf_bo
119 uint32_t handle; member in struct:drm_nouveau_gem_cpu_prep
124 uint32_t handle; member in struct:drm_nouveau_gem_cpu_fini
H A Ddrm.h147 void * handle; member in struct:drm_ctx_priv_map
156 void * handle; member in struct:drm_map
287 drm_context_t handle; member in struct:drm_ctx
297 drm_drawable_t handle; member in struct:drm_draw
305 drm_drawable_t handle; member in struct:drm_update_draw
371 unsigned long handle; member in struct:drm_agp_buffer
377 unsigned long handle; member in struct:drm_agp_binding
397 unsigned long handle; member in struct:drm_scatter_gather
409 __u32 handle; member in struct:drm_gem_close
414 __u32 handle; member in struct:drm_gem_flink
420 __u32 handle; member in struct:drm_gem_open
452 __u32 handle; member in struct:drm_prime_handle
[all...]
H A Di915_drm.h387 __u32 handle; member in struct:drm_i915_gem_create
392 __u32 handle; member in struct:drm_i915_gem_pread
401 __u32 handle; member in struct:drm_i915_gem_pwrite
410 __u32 handle; member in struct:drm_i915_gem_mmap
419 __u32 handle; member in struct:drm_i915_gem_mmap_gtt
425 __u32 handle; member in struct:drm_i915_gem_set_domain
431 __u32 handle; member in struct:drm_i915_gem_sw_finish
454 __u32 handle; member in struct:drm_i915_gem_exec_object
475 __u32 handle; member in struct:drm_i915_gem_exec_object2
532 __u32 handle; member in struct:drm_i915_gem_pin
540 __u32 handle; member in struct:drm_i915_gem_unpin
545 __u32 handle; member in struct:drm_i915_gem_busy
554 __u32 handle; member in struct:drm_i915_gem_caching
572 __u32 handle; member in struct:drm_i915_gem_set_tiling
580 __u32 handle; member in struct:drm_i915_gem_get_tiling
600 __u32 handle; member in struct:drm_i915_gem_madvise
721 __u32 handle; member in struct:drm_i915_gem_userptr
[all...]
H A Ddrm_mode.h295 __u32 handle; member in struct:drm_mode_fb_cmd
341 __u32 handle; member in struct:drm_mode_cursor
352 __u32 handle; member in struct:drm_mode_cursor2
385 uint32_t handle; member in struct:drm_mode_create_dumb
391 __u32 handle; member in struct:drm_mode_map_dumb
397 uint32_t handle; member in struct:drm_mode_destroy_dumb
/bionic/libc/kernel/uapi/linux/
H A Dion.h51 ion_user_handle_t handle; member in struct:ion_allocation_data
55 ion_user_handle_t handle; member in struct:ion_fd_data
60 ion_user_handle_t handle; member in struct:ion_handle_data
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/include/
H A Ddlfcn.h47 extern int dlclose(void* handle);
49 extern void* dlsym(void* handle, const char* symbol);
/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));
/bionic/libdl/
H A Dlibdl.c28 void* dlsym(void* handle __unused, const char* symbol __unused) { return 0; }
30 int dlclose(void* handle __unused) { return 0; }
/bionic/linker/
H A Ddlfcn.cpp88 void* dlsym(void* handle, const char* symbol) { argument
92 if (handle == nullptr) {
93 __bionic_format_dlerror("dlsym library handle is null", nullptr);
108 if (handle == RTLD_DEFAULT || handle == RTLD_NEXT) {
109 sym = dlsym_linear_lookup(symbol, &found, caller, handle);
111 sym = dlsym_handle_lookup(reinterpret_cast<soinfo*>(handle), &found, symbol);
154 int dlclose(void* handle) { argument
156 do_dlclose(reinterpret_cast<soinfo*>(handle));
/bionic/libc/dns/resolv/
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
150 #define ns_msg_id(handle) ((handle)._id + 0)
151 #define ns_msg_base(handle) ((handle)._msg + 0)
152 #define ns_msg_end(handle) ((handle)._eom + 0)
153 #define ns_msg_size(handle) ((size_t)((handle)
[all...]

Completed in 395 milliseconds

12