Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 61) sorted by relevance

123

/bionic/libc/dns/nameser/
Dns_parse.c77 int ns_msg_getflag(ns_msg handle, int flag) { in ns_msg_getflag() argument
78 return((u_int32_t)((handle)._flags & _ns_flagdata[flag].mask) >> _ns_flagdata[flag].shift); in ns_msg_getflag()
107 ns_initparse(const u_char *msg, int msglen, ns_msg *handle) { in ns_initparse() argument
111 handle->_msg = msg; in ns_initparse()
112 handle->_eom = eom; in ns_initparse()
115 NS_GET16(handle->_id, msg); in ns_initparse()
118 NS_GET16(handle->_flags, msg); in ns_initparse()
122 NS_GET16(handle->_counts[i], msg); in ns_initparse()
125 if (handle->_counts[i] == 0) in ns_initparse()
126 handle->_sections[i] = NULL; in ns_initparse()
[all …]
/bionic/tests/
Ddlfcn_test.cpp107 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_LAZY | RTLD_LOCAL); in TEST() local
108 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
117 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT")); in TEST()
125 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT")); in TEST()
133 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_NEXT")); in TEST()
140 dlclose(handle); in TEST()
147 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); in TEST() local
148 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
157 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT")); in TEST()
165 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT")); in TEST()
[all …]
Ddlext_test.cpp134 ZipArchiveHandle handle; in TEST_F() local
135 ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle)); in TEST_F()
137 ASSERT_EQ(0, FindEntry(handle, kLibZipSimpleZip, &zip_entry)); in TEST_F()
139 CloseArchive(handle); in TEST_F()
200 void* handle = dlopen("libdlext_test.so", RTLD_NOW); in TEST() local
201 ASSERT_DL_NOTNULL(handle); in TEST()
207 ASSERT_TRUE(handle != handle2); in TEST()
210 dlclose(handle); in TEST()
218 void* handle = dlopen(symlink_name.c_str(), RTLD_NOW); in TEST() local
219 ASSERT_DL_NOTNULL(handle); in TEST()
[all …]
Dcfi_test.cpp50 void* handle; in TEST() local
51 handle = dlopen("libcfi-test.so", RTLD_NOW | RTLD_LOCAL); in TEST()
52 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
56 #define SYM(type, name) auto name = reinterpret_cast<type>(dlsym(handle, #name)) in TEST()
115 EXPECT_EQ(handle2, handle); in TEST()
123 dlclose(handle); in TEST()
134 void* handle; in TEST() local
135 handle = dlopen("libcfi-test-bad.so", RTLD_NOW | RTLD_LOCAL); in TEST()
136 ASSERT_FALSE(handle != nullptr) << dlerror(); in TEST()
138 handle = dlopen("libcfi-test-bad.so", RTLD_NOW | RTLD_LOCAL); in TEST()
[all …]
Datexit_test.cpp32 void* handle = dlopen("libtest_atexit.so", RTLD_NOW); in TEST() local
33 ASSERT_TRUE(handle != nullptr); in TEST()
37 get_cxx_ctor_called = reinterpret_cast<int_fn>(dlsym(handle, "get_cxx_ctor_called")); in TEST()
38 get_attr_ctor_called = reinterpret_cast<int_fn>(dlsym(handle, "get_attr_ctor_called")); in TEST()
45 void* sym = dlsym(handle, "register_atexit"); in TEST()
49 ASSERT_EQ(0, dlclose(handle)); in TEST()
/bionic/libc/bionic/
DNetdClient.cpp31 static void netdClientInitFunction(void* handle, const char* symbol, FunctionType* function) { in netdClientInitFunction() argument
33 InitFunctionType initFunction = reinterpret_cast<InitFunctionType>(dlsym(handle, symbol)); in netdClientInitFunction()
48 void* handle = dlopen("libnetd_client.so", RTLD_NOW); in netdClientInitImpl() local
49 if (handle == nullptr) { in netdClientInitImpl()
55 netdClientInitFunction(handle, "netdClientInitAccept4", &__netdClientDispatch.accept4); in netdClientInitImpl()
56 netdClientInitFunction(handle, "netdClientInitConnect", &__netdClientDispatch.connect); in netdClientInitImpl()
57 netdClientInitFunction(handle, "netdClientInitSendmmsg", &__netdClientDispatch.sendmmsg); in netdClientInitImpl()
58 netdClientInitFunction(handle, "netdClientInitSendmsg", &__netdClientDispatch.sendmsg); in netdClientInitImpl()
59 netdClientInitFunction(handle, "netdClientInitSendto", &__netdClientDispatch.sendto); in netdClientInitImpl()
60 netdClientInitFunction(handle, "netdClientInitSocket", &__netdClientDispatch.socket); in netdClientInitImpl()
[all …]
/bionic/libc/kernel/uapi/linux/
Dfirewire-cdev.h60 __u32 handle; member
73 __u32 handle; member
92 __u32 handle; member
159 __u32 handle; member
165 __u32 handle; member
169 __u32 handle; member
181 __u32 handle; member
184 __u32 handle; member
195 __u32 handle; member
199 __u32 handle; member
[all …]
/bionic/libdl/
Dlibdl.cpp37 void* __loader_dlsym(void* handle, const char* symbol, const void* caller_addr);
40 void* __loader_dlvsym(void* handle,
49 int __loader_dlclose(void* handle);
93 void* dlsym(void* handle, const char* symbol) { in dlsym() argument
95 return __loader_dlsym(handle, symbol, caller_addr); in dlsym()
99 void* dlvsym(void* handle, const char* symbol, const char* version) { in dlvsym() argument
101 return __loader_dlvsym(handle, symbol, version, caller_addr); in dlvsym()
110 int dlclose(void* handle) { in dlclose() argument
111 return __loader_dlclose(handle); in dlclose()
/bionic/libc/kernel/uapi/drm/
Dtegra_drm.h30 __u32 handle; member
33 __u32 handle; member
75 __u32 handle; member
82 __u32 handle; member
86 __u32 handle; member
93 __u32 handle; member
117 __u32 handle; member
123 __u32 handle; member
131 __u32 handle; member
135 __u32 handle; member
Dvmwgfx_drm.h128 __u32 handle; member
142 __u32 handle; member
164 __u32 handle; member
198 __u32 handle; member
208 __u32 handle; member
216 __u32 handle; member
230 __u32 handle; member
265 __u32 handle; member
286 __u32 handle; member
317 __u32 handle; member
[all …]
Dvc4_drm.h104 __u32 handle; member
111 __u32 handle; member
115 __u32 handle; member
123 __u32 handle; member
127 __u32 handle; member
166 __u32 handle; member
171 __u32 handle; member
176 __u32 handle; member
185 __u32 handle; member
Detnaviv_drm.h70 __u32 handle; member
73 __u32 handle; member
81 __u32 handle; member
86 __u32 handle; member
99 __u32 handle; member
151 __u32 handle; member
155 __u32 handle; member
Ddrm.h127 void * handle; member
134 void * handle; member
243 drm_context_t handle; member
251 drm_drawable_t handle; member
257 drm_drawable_t handle; member
310 unsigned long handle; member
315 unsigned long handle; member
331 unsigned long handle; member
340 __u32 handle; member
344 __u32 handle; member
[all …]
Damdgpu_drm.h81 __u32 handle; member
182 __u32 handle; member
217 __u32 handle; member
227 __u32 handle; member
238 __u32 handle; member
251 __u64 handle; member
289 __u32 handle; member
310 __u32 handle; member
351 __u64 handle; member
376 __u64 handle; member
[all …]
Dpanfrost_drm.h54 __u32 handle; member
63 __u32 handle; member
68 __u32 handle; member
120 __u32 handle; member
134 __u32 handle; member
Dmsm_drm.h60 __u32 handle; member
67 __u32 handle; member
78 __u32 handle; member
83 __u32 handle; member
110 __u32 handle; member
138 __u32 handle; member
Domap_drm.h49 __u32 handle; member
57 __u32 handle; member
61 __u32 handle; member
67 __u32 handle; member
/bionic/tests/libs/
Dbionic_tests_zipalign.cpp42 static bool GetEntries(ZipArchiveHandle handle, std::vector<ZipData>* entries) { in GetEntries() argument
44 int32_t return_value = StartIteration(handle, &cookie); in GetEntries()
67 static bool CreateAlignedZip(ZipArchiveHandle& handle, FILE* zip_dst, uint32_t alignment) { in CreateAlignedZip() argument
71 if (!GetEntries(handle, &entries)) { in CreateAlignedZip()
92 ZipArchiveStreamEntry::Create(handle, *zip_entry)); in CreateAlignedZip()
137 ZipArchiveHandle handle; in main() local
139 int32_t return_value = OpenArchive(argv[2], &handle); in main()
141 CloseArchive(handle); in main()
152 bool success = CreateAlignedZip(handle, zip_dst, static_cast<uint32_t>(alignment)); in main()
154 CloseArchive(handle); in main()
Dcfi_test_helper2.cpp23 void* handle; in main() local
25 handle = dlopen("libcfi-test.so", RTLD_NOW | RTLD_NOLOAD); in main()
26 CHECK(handle != nullptr); in main()
27 dlclose(handle); in main()
Ddlopen_b.cpp9 void *handle = dlopen("libtest_dt_runpath_x.so", RTLD_NOW); in dlopen_b() local
10 if (handle != nullptr) { in dlopen_b()
12 return handle; in dlopen_b()
Dsegment_gap_outer.cpp18 void *handle = android_dlopen_ext("libsegment_gap_inner.so", RTLD_NOW, &info); in get_inner() local
19 if (!handle) { in get_inner()
23 return dlsym(handle, "inner"); in get_inner()
Dld_config_test_helper.cpp40 void* handle = dlopen(vdso_name, RTLD_NOW); in main() local
41 if (handle == nullptr) { in main()
45 dlclose(handle); in main()
Dnamespaces_root.cpp54 void* handle = dlopen("libnstest_dlopened.so", RTLD_NOW | RTLD_GLOBAL); in ns_get_dlopened_string() local
55 if (handle == nullptr) { in ns_get_dlopened_string()
59 const char** result = static_cast<const char**>(dlsym(handle, "g_private_dlopened_string")); in ns_get_dlopened_string()
/bionic/libc/dns/resolv/
Dres_debug.c150 ns_msg *handle, ns_sect section, in do_section() argument
172 opcode = (ns_opcode) ns_msg_getflag(*handle, ns_f_opcode); in do_section()
175 if (ns_parserr(handle, section, rrnum, &rr)) { in do_section()
245 n = ns_sprintrr(handle, &rr, NULL, NULL, in do_section()
280 ns_msg handle; in res_pquery() local
284 if (ns_initparse(msg, len, &handle) < 0) { in res_pquery()
288 opcode = ns_msg_getflag(handle, ns_f_opcode); in res_pquery()
289 rcode = ns_msg_getflag(handle, ns_f_rcode); in res_pquery()
290 id = ns_msg_id(handle); in res_pquery()
291 qdcount = ns_msg_count(handle, ns_s_qd); in res_pquery()
[all …]
/bionic/linker/
Ddlfcn.cpp81 int __loader_dlclose(void* handle) __LINKER_PUBLIC__;
84 void* __loader_dlsym(void* handle, const char* symbol, const void* caller_addr) __LINKER_PUBLIC__;
85 void* __loader_dlvsym(void* handle,
158 void* dlsym_impl(void* handle, const char* symbol, const char* version, const void* caller_addr) { in dlsym_impl() argument
162 if (!do_dlsym(handle, symbol, version, caller_addr, &result)) { in dlsym_impl()
170 void* __loader_dlsym(void* handle, const char* symbol, const void* caller_addr) { in __loader_dlsym() argument
171 return dlsym_impl(handle, symbol, nullptr, caller_addr); in __loader_dlsym()
174 void* __loader_dlvsym(void* handle, const char* symbol, const char* version, const void* caller_add… in __loader_dlvsym() argument
175 return dlsym_impl(handle, symbol, version, caller_addr); in __loader_dlvsym()
183 int __loader_dlclose(void* handle) { in __loader_dlclose() argument
[all …]

123