Lines Matching defs:handle

794                                             void* handle);
802 // According to man dlopen(3) and posix docs in the case when si is handle
817 // namespace and then calls dlsym() on the handle.
831 void* handle) {
837 if (handle == RTLD_NEXT) {
874 (handle == RTLD_NEXT) ? caller : nullptr,
903 bool get_or_open(const char* zip_path, ZipArchiveHandle* handle);
910 bool ZipArchiveCache::get_or_open(const char* zip_path, ZipArchiveHandle* handle) {
915 *handle = it->second;
924 if (OpenArchiveFd(fd, "", handle) != 0) {
926 CloseArchive(handle);
931 cache_[key] = *handle;
976 ZipArchiveHandle handle;
977 if (!zip_archive_cache->get_or_open(zip_path, &handle)) {
985 if (FindEntry(handle, ZipString(file_path), &entry) != 0) {
1846 // Since we cannot really handle errors at this point - print and continue.
2129 void* handle = si->to_handle();
2131 "... dlopen calling constructors: realpath=\"%s\", soname=\"%s\", handle=%p",
2132 si->get_realpath(), si->get_soname(), handle);
2136 "... dlopen successful: realpath=\"%s\", soname=\"%s\", handle=%p",
2137 si->get_realpath(), si->get_soname(), handle);
2138 return handle;
2167 static soinfo* soinfo_from_handle(void* handle) {
2168 if ((reinterpret_cast<uintptr_t>(handle) & 1) != 0) {
2169 auto it = g_soinfo_handles_map.find(reinterpret_cast<uintptr_t>(handle));
2177 return static_cast<soinfo*>(handle);
2180 bool do_dlsym(void* handle,
2187 if (handle == nullptr) {
2188 DL_ERR("dlsym failed: library handle is null");
2198 if (handle != RTLD_DEFAULT && handle != RTLD_NEXT) {
2199 si = soinfo_from_handle(handle);
2203 "dlsym(handle=%p(\"%s\"), sym_name=\"%s\", sym_ver=\"%s\", caller=\"%s\", caller_ns=%s@%p) ...",
2204 handle,
2229 if (handle == RTLD_DEFAULT || handle == RTLD_NEXT) {
2230 sym = dlsym_linear_lookup(ns, sym_name, vi, &found, caller, handle);
2233 DL_ERR("dlsym failed: invalid handle: %p", handle);
2259 int do_dlclose(void* handle) {
2262 soinfo* si = soinfo_from_handle(handle);
2264 DL_ERR("invalid handle: %p", handle);
2269 "dlclose(handle=%p, realpath=\"%s\"@%p) ...",
2270 handle,
2275 "dlclose(handle=%p) ... done",
2276 handle);