Home
last modified time | relevance | path

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

123

/arkcompiler/toolchain/inspector/
H A Dlibrary_loader.cpp38 void* handle = reinterpret_cast<void*>(module); in Load() local
39 if (handle != nullptr) { in Load()
40 return handle; in Load()
48 void* ResolveSymbol(void* handle, std::string_view symbol) in ResolveSymbol() argument
50 HMODULE module = reinterpret_cast<HMODULE>(handle); in ResolveSymbol()
60 void CloseHandle(void* handle) in CloseHandle() argument
62 if (handle != nullptr) { in CloseHandle()
63 FreeLibrary(reinterpret_cast<HMODULE>(handle)); in CloseHandle()
69 void* handle = dlopen(libraryName.data(), RTLD_LAZY);
70 if (handle !
[all...]
H A Dlibrary_loader.h24 void* ResolveSymbol(void* handle, std::string_view symbol);
25 void CloseHandle(void* handle);
/arkcompiler/runtime_core/libziparchive/
H A Dzip_archive.cpp32 int OpenArchive(ZipArchiveHandle &handle, const char *path) in OpenArchive() argument
34 handle = unzOpen(path); in OpenArchive()
35 if (handle == nullptr) { in OpenArchive()
42 int OpenArchiveFile(ZipArchiveHandle &handle, FILE *fp) in OpenArchiveFile() argument
44 handle = unzOpenFile(fp); in OpenArchiveFile()
45 if (handle == nullptr) { in OpenArchiveFile()
52 int CloseArchive(ZipArchiveHandle &handle) in CloseArchive() argument
54 if (handle == nullptr) { in CloseArchive()
55 LOG(ERROR, ZIPARCHIVE) << "ZipArchiveHandle handle should not be nullptr"; in CloseArchive()
58 int err = unzClose(handle); in CloseArchive()
66 CloseArchiveFile(ZipArchiveHandle &handle) CloseArchiveFile() argument
80 GetGlobalFileInfo(ZipArchiveHandle &handle, GlobalStat *gstat) GetGlobalFileInfo() argument
90 GoToNextFile(ZipArchiveHandle &handle) GoToNextFile() argument
100 LocateFile(ZipArchiveHandle &handle, const char *filename) LocateFile() argument
110 GetCurrentFileInfo(ZipArchiveHandle &handle, EntryFileStat *entry) GetCurrentFileInfo() argument
120 OpenCurrentFile(ZipArchiveHandle &handle) OpenCurrentFile() argument
130 GetCurrentFileOffset(ZipArchiveHandle &handle, EntryFileStat *entry) GetCurrentFileOffset() argument
135 CloseCurrentFile(ZipArchiveHandle &handle) CloseCurrentFile() argument
145 ExtractToMemory(ZipArchiveHandle &handle, void *buf, size_t buf_size) ExtractToMemory() argument
[all...]
H A Dzip_archive.h71 * Open a Zip archive from filename path, and sets handle for the file.
72 * This handle must be released by calling CloseArchive with this handle.
77 int OpenArchive(ZipArchiveHandle &handle, const char *path);
82 int CloseArchive(ZipArchiveHandle &handle);
85 * Open a Zip archive from opened file FILE* fp, and sets handle for the file.
86 * This handle must be released by calling CloseArchiveFile with this handle.
91 int OpenArchiveFile(ZipArchiveHandle &handle, FILE *fp);
98 int CloseArchiveFile(ZipArchiveHandle &handle);
[all...]
/arkcompiler/runtime_core/static_core/libziparchive/
H A Dzip_archive.cpp32 int OpenArchive(ZipArchiveHandle &handle, const char *path) in OpenArchive() argument
34 handle = unzOpen(path); in OpenArchive()
35 if (handle == nullptr) { in OpenArchive()
42 int OpenArchiveFile(ZipArchiveHandle &handle, FILE *fp) in OpenArchiveFile() argument
44 handle = unzOpenFile(fp); in OpenArchiveFile()
45 if (handle == nullptr) { in OpenArchiveFile()
52 int CloseArchive(ZipArchiveHandle &handle) in CloseArchive() argument
54 if (handle == nullptr) { in CloseArchive()
55 LOG(ERROR, ZIPARCHIVE) << "ZipArchiveHandle handle should not be nullptr"; in CloseArchive()
58 int err = unzClose(handle); in CloseArchive()
66 CloseArchiveFile(ZipArchiveHandle &handle) CloseArchiveFile() argument
80 GetGlobalFileInfo(ZipArchiveHandle &handle, GlobalStat *gstat) GetGlobalFileInfo() argument
90 GoToNextFile(ZipArchiveHandle &handle) GoToNextFile() argument
100 LocateFile(ZipArchiveHandle &handle, const char *filename) LocateFile() argument
110 GetCurrentFileInfo(ZipArchiveHandle &handle, EntryFileStat *entry) GetCurrentFileInfo() argument
120 OpenCurrentFile(ZipArchiveHandle &handle) OpenCurrentFile() argument
130 GetCurrentFileOffset(ZipArchiveHandle &handle, EntryFileStat *entry) GetCurrentFileOffset() argument
135 CloseCurrentFile(ZipArchiveHandle &handle) CloseCurrentFile() argument
145 ExtractToMemory(ZipArchiveHandle &handle, void *buf, size_t bufSize) ExtractToMemory() argument
[all...]
H A Dzip_archive.h75 * Open a Zip archive from filename path, and sets handle for the file.
76 * This handle must be released by calling CloseArchive with this handle.
81 int OpenArchive(ZipArchiveHandle &handle, const char *path);
86 int CloseArchive(ZipArchiveHandle &handle);
89 * Open a Zip archive from opened file FILE* fp, and sets handle for the file.
90 * This handle must be released by calling CloseArchiveFile with this handle.
95 int OpenArchiveFile(ZipArchiveHandle &handle, FILE *fp);
102 int CloseArchiveFile(ZipArchiveHandle &handle);
[all...]
/arkcompiler/runtime_core/tests/fuzztest/ziparchivehandle_fuzzer/
H A Dziparchivehandle_fuzzer.cpp27 panda::ZipArchiveHandle handle = nullptr; in ZipArchiveHandleFuzzTest() local
28 panda::CloseArchive(handle); in ZipArchiveHandleFuzzTest()
32 panda::ZipArchiveHandle handle = nullptr; in ZipArchiveHandleFuzzTest() local
33 panda::CloseArchiveFile(handle); in ZipArchiveHandleFuzzTest()
37 panda::ZipArchiveHandle handle = nullptr; in ZipArchiveHandleFuzzTest() local
38 panda::CloseCurrentFile(handle); in ZipArchiveHandleFuzzTest()
42 panda::ZipArchiveHandle handle = nullptr; in ZipArchiveHandleFuzzTest() local
44 panda::ExtractToMemory(handle, buf, size); in ZipArchiveHandleFuzzTest()
54 panda::ZipArchiveHandle handle = nullptr; in ZipArchiveHandleFuzzTest() local
56 panda::OpenArchive(handle, pat in ZipArchiveHandleFuzzTest()
60 panda::ZipArchiveHandle handle = nullptr; ZipArchiveHandleFuzzTest() local
66 panda::ZipArchiveHandle handle = nullptr; ZipArchiveHandleFuzzTest() local
[all...]
/arkcompiler/runtime_core/libpandabase/os/
H A Dlibrary_loader.h37 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name);
39 void CloseHandle(void *handle);
43 explicit LibraryHandle(void *handle) : handle_(handle) {} in LibraryHandle() argument
45 LibraryHandle(LibraryHandle &&handle) noexcept
47 handle_ = handle.handle_;
48 handle.handle_ = nullptr;
51 LibraryHandle &operator=(LibraryHandle &&handle) noexcept
53 handle_ = handle.handle_;
54 handle
[all...]
/arkcompiler/runtime_core/static_core/libpandabase/os/
H A Dlibrary_loader.h48 PANDA_PUBLIC_API Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name);
50 PANDA_PUBLIC_API void CloseHandle(void *handle);
54 explicit LibraryHandle(void *handle) : handle_(handle) {} in LibraryHandle() argument
56 LibraryHandle(LibraryHandle &&handle) noexcept
58 handle_ = handle.handle_;
59 handle.handle_ = nullptr;
62 LibraryHandle &operator=(LibraryHandle &&handle) noexcept
64 handle_ = handle.handle_;
65 handle
[all...]
/arkcompiler/runtime_core/platforms/windows/libpandabase/
H A Dlibrary_loader.cpp24 void *handle = reinterpret_cast<void *>(module); in Load() local
25 if (handle != nullptr) { in Load()
26 return LibraryHandle(handle); in Load()
32 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name) in ResolveSymbol() argument
34 HMODULE module = reinterpret_cast<HMODULE>(handle.GetNativeHandle()); in ResolveSymbol()
43 void CloseHandle(void *handle) in CloseHandle() argument
45 if (handle != nullptr) { in CloseHandle()
46 FreeLibrary(reinterpret_cast<HMODULE>(handle)); in CloseHandle()
/arkcompiler/runtime_core/static_core/platforms/windows/libpandabase/
H A Dlibrary_loader.cpp24 void *handle = reinterpret_cast<void *>(module); in Load() local
25 if (handle != nullptr) { in Load()
26 return LibraryHandle(handle); in Load()
32 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name) in ResolveSymbol() argument
34 HMODULE module = reinterpret_cast<HMODULE>(handle.GetNativeHandle()); in ResolveSymbol()
43 void CloseHandle(void *handle) in CloseHandle() argument
45 if (handle != nullptr) { in CloseHandle()
46 FreeLibrary(reinterpret_cast<HMODULE>(handle)); in CloseHandle()
/arkcompiler/toolchain/tooling/client/ark_cli/
H A Dmain.cpp34 uv_close(reinterpret_cast<uv_handle_t*>(g_inputSignal), [](uv_handle_t* handle) { in ReleaseHandle()
35 if (handle != nullptr) { in ReleaseHandle()
36 uv_async_t* asyncHandle = reinterpret_cast<uv_async_t*>(handle); in ReleaseHandle()
47 uv_close(reinterpret_cast<uv_handle_t*>(g_socketSignal), [](uv_handle_t* handle) { in ReleaseHandle()
48 if (handle != nullptr) { in ReleaseHandle()
49 delete reinterpret_cast<uv_async_t*>(handle); in ReleaseHandle()
50 handle = nullptr; in ReleaseHandle()
55 uv_close(reinterpret_cast<uv_handle_t*>(g_releaseHandle), [](uv_handle_t* handle) { in ReleaseHandle()
56 if (handle != nullptr) { in ReleaseHandle()
57 delete reinterpret_cast<uv_async_t*>(handle); in ReleaseHandle()
75 InputOnMessage(uv_async_t *handle) InputOnMessage() argument
140 SocketOnMessage([[maybe_unused]] uv_async_t *handle) SocketOnMessage() argument
[all...]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/
H A Dets_native_library.cpp21 auto handle = os::library_loader::Load(name); in Load() local
22 if (!handle) { in Load()
23 return Unexpected(handle.Error()); in Load()
26 return EtsNativeLibrary(name, std::move(handle.Value())); in Load()
29 EtsNativeLibrary::EtsNativeLibrary(PandaString name, os::library_loader::LibraryHandle &&handle) in EtsNativeLibrary() argument
30 : name_(std::move(name)), handle_(std::move(handle)) in EtsNativeLibrary()
/arkcompiler/runtime_core/tests/fuzztest/getglobalfileinfo_fuzzer/
H A Dgetglobalfileinfo_fuzzer.cpp24 // handle is nullptr in GetGlobalFileInfoFuzzTest()
25 panda::ZipArchiveHandle handle = nullptr; in GetGlobalFileInfoFuzzTest() local
27 if (panda::GetGlobalFileInfo(handle, &gi) != 0) { in GetGlobalFileInfoFuzzTest()
33 // handle is not nullptr in GetGlobalFileInfoFuzzTest()
44 panda::ZipArchiveHandle handle = nullptr; in GetGlobalFileInfoFuzzTest() local
45 if (panda::OpenArchive(handle, zipname) != 0) { in GetGlobalFileInfoFuzzTest()
49 if (panda::GetGlobalFileInfo(handle, &gi) != 0) { in GetGlobalFileInfoFuzzTest()
52 panda::CloseArchive(handle); in GetGlobalFileInfoFuzzTest()
/arkcompiler/runtime_core/platforms/unix/libpandabase/
H A Dlibrary_loader_resolve_symbol.cpp28 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name) in ResolveSymbol() argument
30 void *p = dlsym(handle.GetNativeHandle(), name.data()); in ResolveSymbol()
38 void CloseHandle(void *handle) in CloseHandle() argument
40 if (handle != nullptr) { in CloseHandle()
41 dlclose(handle); in CloseHandle()
H A Dlibrary_loader_load.cpp29 void *handle = dlopen(filename.data(), RTLD_LAZY); in Load() local
30 if (handle != nullptr) { in Load()
31 return LibraryHandle(handle); in Load()
/arkcompiler/runtime_core/static_core/platforms/unix/libpandabase/
H A Dlibrary_loader_resolve_symbol.cpp22 Expected<void *, Error> ResolveSymbol(const LibraryHandle &handle, std::string_view name) in ResolveSymbol() argument
24 void *p = dlsym(handle.GetNativeHandle(), name.data()); in ResolveSymbol()
32 void CloseHandle(void *handle) in CloseHandle() argument
34 if (handle != nullptr) { in CloseHandle()
35 dlclose(handle); in CloseHandle()
H A Dlibrary_loader_load.cpp23 void *handle = dlopen(filename.data(), RTLD_LAZY); in Load() local
24 if (handle != nullptr) { in Load()
25 return LibraryHandle(handle); in Load()
/arkcompiler/runtime_core/static_core/runtime/
H A Dloadable_agent.cpp34 auto handle = os::library_loader::Load(libraryPath_); in Load() local
35 if (!handle) { in Load()
36 LOG(ERROR, RUNTIME) << "Couldn't load library '" << libraryPath_ << "': " << handle.Error().ToString(); in Load()
40 auto loadCallback = os::library_loader::ResolveSymbol(handle.Value(), loadCallbackName_); in Load()
47 auto unloadCallback = os::library_loader::ResolveSymbol(handle.Value(), unloadCallbackName_); in Load()
59 handle_ = std::move(handle.Value()); in Load()
/arkcompiler/ets_runtime/ecmascript/
H A Djs_handle.h56 * JSHandle<T> handle;
61 * handle = jshandle;
63 * handle->method(); // error! do not used handle out of scope
110 explicit JSHandle(const JSHandle<S> &handle) : address_(handle.GetAddress()) {} in JSHandle() argument
113 inline static JSHandle<T> Cast(const JSHandle<S> &handle) in Cast() argument
115 T::Cast(handle.GetTaggedValue().GetTaggedObject()); in Cast()
116 return JSHandle<T>(handle.GetAddress()); in Cast()
218 JSMutableHandle(const JSThread *thread, const JSHandle<S> &handle) in JSMutableHandle() argument
227 Cast(const JSMutableHandle<S> &handle) Cast() argument
241 Update(const JSHandle<S> &handle) Update() argument
[all...]
H A Dglobal_handle_collection.h41 void Dispose(JSHandle<T> handle) in Dispose() argument
43 thread_->DisposeGlobalHandle(handle.GetAddress()); in Dispose()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
H A Djs_value.cpp29 LocalObjectHandle<JSValue> handle(coro, jsValue); in AttachFinalizer()
33 FinalizeETSWeak(ctx, handle.GetPtr()); in AttachFinalizer()
36 mirror->type_ = handle->type_; in AttachFinalizer()
37 mirror->data_ = handle->data_; in AttachFinalizer()
39 if (UNLIKELY(!ctx->PushOntoFinalizationRegistry(coro, handle.GetPtr(), mirror))) { in AttachFinalizer()
40 FinalizeETSWeak(ctx, handle.GetPtr()); in AttachFinalizer()
43 return handle.GetPtr(); in AttachFinalizer()
/arkcompiler/ets_runtime/ecmascript/platform/unix/ohos/
H A Dbacktrace.cpp77 void *handle = dlopen(LIB_UNWIND_SO_NAME.c_str(), RTLD_NOW); in GetPcs()
78 if (handle == nullptr) { in GetPcs()
79 handle = dlopen(LIB_UNWIND_Z_SO_NAME.c_str(), RTLD_NOW); in GetPcs()
80 if (handle == nullptr) { in GetPcs()
85 unwBackTrace = reinterpret_cast<UnwBackTraceFunc>(dlsym(handle, "unw_backtrace")); in GetPcs()
/arkcompiler/runtime_core/static_core/compiler/aot/
H A Daot_file.cpp32 static inline Expected<const uint8_t *, std::string> LoadSymbol(const ark::os::library_loader::LibraryHandle &handle, in LoadSymbol() argument
35 auto sym = ark::os::library_loader::ResolveSymbol(handle, name); in LoadSymbol()
45 auto name = LoadSymbol(handle, (#name)); \
59 auto handle = std::move(handleLoad.Value()); in Open() local
88 return std::make_unique<AotFile>(std::move(handle), Span(aot.Value(), aot_end.Value() - aot.Value()), in Open()
/arkcompiler/ets_frontend/merge_abc/src/
H A DmergeProgram.cpp36 int handle = 0; in EnumerateFilesWindows() local
39 if ((handle = _findfirst(path.assign(protoBinPath).append("\\*").c_str(), &fileInfo)) == -1) { in EnumerateFilesWindows()
49 _findclose(handle); in EnumerateFilesWindows()
58 } while (_findnext(handle, &fileInfo) == 0); in EnumerateFilesWindows()
59 _findclose(handle); in EnumerateFilesWindows()

Completed in 14 milliseconds

123