Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 53) 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 …]
Dcfi_test.cpp40 void* handle; in TEST() local
41 handle = dlopen("libcfi-test.so", RTLD_NOW | RTLD_LOCAL); in TEST()
42 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST()
46 #define SYM(type, name) auto name = reinterpret_cast<type>(dlsym(handle, #name)) in TEST()
107 EXPECT_EQ(handle2, handle); in TEST()
115 dlclose(handle); in TEST()
126 void* handle; in TEST() local
127 handle = dlopen("libcfi-test-bad.so", RTLD_NOW | RTLD_LOCAL); in TEST()
128 ASSERT_FALSE(handle != nullptr) << dlerror(); in TEST()
130 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()
Ddlext_test.cpp134 ZipArchiveHandle handle; in TEST_F() local
135 ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle)); in TEST_F()
140 ASSERT_EQ(0, FindEntry(handle, zip_name, &zip_entry)); in TEST_F()
142 CloseArchive(handle); in TEST_F()
203 void* handle = dlopen("libdlext_test.so", RTLD_NOW); in TEST() local
204 ASSERT_DL_NOTNULL(handle); in TEST()
210 ASSERT_TRUE(handle != handle2); in TEST()
213 dlclose(handle); in TEST()
221 void* handle = dlopen(symlink_name.c_str(), RTLD_NOW); in TEST() local
222 ASSERT_DL_NOTNULL(handle); in TEST()
[all …]
Ddlfcn_symlink_support.cpp57 void* handle = dlopen(source_file_name, RTLD_NOW); in create_dlfcn_test_symlink() local
60 ASSERT_TRUE(handle != nullptr) << dlerror(); in create_dlfcn_test_symlink()
64 dlclose(handle); in create_dlfcn_test_symlink()
/bionic/tests/libs/
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.cpp10 void *handle = dlopen("libtest_dt_runpath_x.so", RTLD_NOW); in dlopen_b() local
11 if (handle != nullptr) { in dlopen_b()
13 return handle; in dlopen_b()
Dsegment_gap_outer.cpp19 void *handle = android_dlopen_ext("libsegment_gap_inner.so", RTLD_NOW, &info); in get_inner() local
20 if (!handle) { in get_inner()
24 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()
Dbionic_tests_zipalign.cpp42 static bool GetEntries(ZipArchiveHandle handle, std::vector<ZipData>* entries) { in GetEntries() argument
44 int32_t return_value = StartIteration(handle, &cookie, nullptr, nullptr); in GetEntries()
68 static bool CreateAlignedZip(ZipArchiveHandle& handle, FILE* zip_dst, uint32_t alignment) { in CreateAlignedZip() argument
72 if (!GetEntries(handle, &entries)) { in CreateAlignedZip()
94 ZipArchiveStreamEntry::Create(handle, *zip_entry)); in CreateAlignedZip()
139 ZipArchiveHandle handle; in main() local
141 int32_t return_value = OpenArchive(argv[2], &handle); in main()
143 CloseArchive(handle); in main()
154 bool success = CreateAlignedZip(handle, zip_dst, static_cast<uint32_t>(alignment)); in main()
156 CloseArchive(handle); in main()
Ddlopen_testlib_dlopen_from_ctor.cpp20 void* handle = dlopen("libc.so", RTLD_NOW); in call_dlopen_from_ctor() local
21 dlclose(handle); in call_dlopen_from_ctor()
/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
Darmada_drm.h30 __u32 handle; member
35 __u32 handle; member
44 __u32 handle; member
Domap_drm.h50 __u32 handle; member
58 __u32 handle; member
62 __u32 handle; member
68 __u32 handle; member
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
Dvmwgfx_drm.h126 __u32 handle; member
140 __u32 handle; member
162 __u32 handle; member
196 __u32 handle; member
206 __u32 handle; member
214 __u32 handle; member
228 __u32 handle; member
263 __u32 handle; member
283 __u32 handle; member
314 __u32 handle; member
[all …]
Detnaviv_drm.h69 __u32 handle; member
72 __u32 handle; member
80 __u32 handle; member
85 __u32 handle; member
98 __u32 handle; member
149 __u32 handle; member
153 __u32 handle; member
Dqxl_drm.h37 __u32 handle; member
41 __u32 handle; member
68 __u32 handle; member
90 __u32 handle; member
Dv3d_drm.h55 __u32 handle; member
62 __u32 handle; member
66 __u32 handle; member
86 __u32 handle; member
Dmsm_drm.h58 __u32 handle; member
65 __u32 handle; member
76 __u32 handle; member
81 __u32 handle; member
108 __u32 handle; member
136 __u32 handle; member
Dnouveau_drm.h38 __u32 handle; member
59 __u32 handle; member
101 __u32 handle; member
105 __u32 handle; member
/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 …]

123