/bionic/libc/dns/nameser/ |
D | ns_parse.c | 77 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/ |
D | dlfcn_test.cpp | 99 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_LAZY | RTLD_LOCAL); in TEST() local 100 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST() 109 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT")); in TEST() 117 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT")); in TEST() 125 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_NEXT")); in TEST() 132 dlclose(handle); in TEST() 139 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); in TEST() local 140 ASSERT_TRUE(handle != nullptr) << dlerror(); in TEST() 149 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT")); in TEST() 157 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT")); in TEST() [all …]
|
D | cfi_test.cpp | 40 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 …]
|
D | dlext_test.cpp | 132 ZipArchiveHandle handle; in TEST_F() local 133 ASSERT_EQ(0, OpenArchive(lib_path.c_str(), &handle)); in TEST_F() 138 ASSERT_EQ(0, FindEntry(handle, zip_name, &zip_entry)); in TEST_F() 140 CloseArchive(handle); in TEST_F() 201 void* handle = dlopen("libdlext_test.so", RTLD_NOW); in TEST() local 202 ASSERT_DL_NOTNULL(handle); in TEST() 208 ASSERT_TRUE(handle != handle2); in TEST() 211 dlclose(handle); in TEST() 219 void* handle = dlopen(symlink_name.c_str(), RTLD_NOW); in TEST() local 220 ASSERT_DL_NOTNULL(handle); in TEST() [all …]
|
D | atexit_test.cpp | 42 void* handle = dlopen("libtest_atexit.so", RTLD_NOW); in TEST() local 43 ASSERT_TRUE(handle != nullptr); in TEST() 47 get_cxx_ctor_called = reinterpret_cast<int_fn>(dlsym(handle, "get_cxx_ctor_called")); in TEST() 48 get_attr_ctor_called = reinterpret_cast<int_fn>(dlsym(handle, "get_attr_ctor_called")); in TEST() 55 void* sym = dlsym(handle, "register_atexit"); in TEST() 59 ASSERT_EQ(0, dlclose(handle)); in TEST()
|
D | dlfcn_symlink_support.cpp | 57 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/ |
D | cfi_test_helper2.cpp | 23 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()
|
D | dlopen_b.cpp | 10 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()
|
D | ld_config_test_helper.cpp | 40 void* handle = dlopen(vdso_name, RTLD_NOW); in main() local 41 if (handle == nullptr) { in main() 45 dlclose(handle); in main()
|
D | namespaces_root.cpp | 54 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()
|
D | bionic_tests_zipalign.cpp | 42 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()
|
D | dlopen_testlib_dlopen_from_ctor.cpp | 20 void* handle = dlopen("libc.so", RTLD_NOW); in call_dlopen_from_ctor() local 21 dlclose(handle); in call_dlopen_from_ctor()
|
/bionic/libc/kernel/uapi/drm/ |
D | tegra_drm.h | 29 __u32 handle; member 32 __u32 handle; member 74 __u32 handle; member 81 __u32 handle; member 85 __u32 handle; member 92 __u32 handle; member 116 __u32 handle; member 122 __u32 handle; member 130 __u32 handle; member 134 __u32 handle; member
|
D | armada_drm.h | 29 __u32 handle; member 34 __u32 handle; member 43 __u32 handle; member
|
D | vc4_drm.h | 93 __u32 handle; member 100 __u32 handle; member 104 __u32 handle; member 112 __u32 handle; member 116 __u32 handle; member 154 __u32 handle; member 159 __u32 handle; member 164 __u32 handle; member 173 __u32 handle; member
|
D | vmwgfx_drm.h | 120 __u32 handle; member 133 __u32 handle; member 143 __u32 handle; member 157 __u32 handle; member 191 __u32 handle; member 201 __u32 handle; member 209 __u32 handle; member 223 __u32 handle; member 258 __u32 handle; member 278 __u32 handle; member [all …]
|
D | omap_drm.h | 49 __u32 handle; member 57 __u32 handle; member 61 __u32 handle; member 67 __u32 handle; member
|
D | etnaviv_drm.h | 62 __u32 handle; member 65 __u32 handle; member 73 __u32 handle; member 78 __u32 handle; member 91 __u32 handle; member 142 __u32 handle; member 146 __u32 handle; member
|
D | qxl_drm.h | 36 __u32 handle; member 40 __u32 handle; member 67 __u32 handle; member 89 __u32 handle; member
|
D | msm_drm.h | 57 __u32 handle; member 62 __u32 handle; member 71 __u32 handle; member 76 __u32 handle; member 102 __u32 handle; member 129 __u32 handle; member
|
D | nouveau_drm.h | 37 __u32 handle; member 58 __u32 handle; member 100 __u32 handle; member 104 __u32 handle; member
|
/bionic/libc/kernel/uapi/linux/ |
D | firewire-cdev.h | 60 __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 …]
|
D | ion.h | 40 ion_user_handle_t handle; member 43 ion_user_handle_t handle; member 47 ion_user_handle_t handle; member
|
/bionic/libdl/ |
D | libdl_static.c | 31 void* dlsym(void* handle __unused, const char* symbol __unused) { in dlsym() 35 void* dlvsym(void* handle __unused, in dlvsym() 45 int dlclose(void* handle __unused) { in dlclose()
|
D | libdl.cpp | 34 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) { in dlsym() argument 116 return __loader_dlsym(handle, symbol, caller_addr); in dlsym() 120 void* dlvsym(void* handle, const char* symbol, const char* version) { in dlvsym() argument 122 return __loader_dlvsym(handle, symbol, version, caller_addr); in dlvsym() 131 int dlclose(void* handle) { in dlclose() argument 132 return __loader_dlclose(handle); in dlclose()
|