Home
last modified time | relevance | path

Searched refs:NativeFile (Results 1 – 22 of 22) sorted by relevance

/external/llvm-project/lldb/include/lldb/Host/
DFile.h374 class NativeFile : public File {
376 NativeFile() in NativeFile() function
380 NativeFile(FILE *fh, bool transfer_ownership) in NativeFile() function
384 NativeFile(int fd, OpenOptions options, bool transfer_ownership) in NativeFile() function
388 ~NativeFile() override { Close(); } in ~NativeFile()
432 NativeFile(const NativeFile &) = delete;
433 const NativeFile &operator=(const NativeFile &) = delete;
/external/llvm-project/lldb/source/Host/common/
DFile.cpp249 Expected<File::OpenOptions> NativeFile::GetOptions() const { return m_options; } in GetOptions()
251 int NativeFile::GetDescriptor() const { in GetDescriptor()
269 IOObject::WaitableHandle NativeFile::GetWaitableHandle() { in GetWaitableHandle()
273 FILE *NativeFile::GetStream() { in GetStream()
307 Status NativeFile::Close() { in Close()
332 Status NativeFile::GetFileSpec(FileSpec &file_spec) const { in GetFileSpec()
368 off_t NativeFile::SeekFromStart(off_t offset, Status *error_ptr) { in SeekFromStart()
394 off_t NativeFile::SeekFromCurrent(off_t offset, Status *error_ptr) { in SeekFromCurrent()
420 off_t NativeFile::SeekFromEnd(off_t offset, Status *error_ptr) { in SeekFromEnd()
446 Status NativeFile::Flush() { in Flush()
[all …]
DFileSystem.cpp471 new NativeFile(descriptor, options, should_close_fd)); in Open()
/external/llvm-project/clang-tools-extra/clangd/unittests/
DTestFS.cpp85 llvm::SmallString<32> NativeFile = File; in testPath() local
86 llvm::sys::path::native(NativeFile, Style); in testPath()
88 llvm::sys::path::append(Path, Style, testRoot(), NativeFile); in testPath()
/external/llvm-project/lldb/source/Core/
DStreamFile.cpp25 std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, transfer_ownership); in StreamFile()
29 m_file_sp = std::make_shared<NativeFile>(fh, transfer_ownership); in StreamFile()
DDebugger.cpp661 m_input_file_sp(std::make_shared<NativeFile>(stdin, false)), in Debugger()
976 in = std::make_shared<NativeFile>(stdin, false); in AdoptTopIOHandlerFilesIfInvalid()
/external/llvm-project/lldb/unittests/Host/
DFileTest.cpp34 NativeFile file(stream, true); in TEST()
49 NativeFile file(fd, File::eOpenOptionWrite, true); in TEST()
/external/llvm-project/lldb/source/Host/posix/
DConnectionFileDescriptorPosix.cpp90 m_write_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, owns_fd); in ConnectionFileDescriptor()
91 m_read_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionRead, false); in ConnectionFileDescriptor()
223 std::make_shared<NativeFile>(fd, File::eOpenOptionRead, false); in Connect()
225 std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, false); in Connect()
274 m_read_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionRead, true); in Connect()
275 m_write_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, false); in Connect()
/external/llvm-project/lldb/source/API/
DSBFile.cpp43 m_opaque_sp = std::make_shared<NativeFile>(file, transfer_ownership); in SBFile()
56 std::make_shared<NativeFile>(fd, options.get(), transfer_owndership); in SBFile()
DSBCommandReturnObject.cpp274 FileSP file = std::make_shared<NativeFile>(fh, transfer_ownership); in SetImmediateOutputFile()
282 FileSP file = std::make_shared<NativeFile>(fh, transfer_ownership); in SetImmediateErrorFile()
DSBStream.cpp119 FileSP file = std::make_unique<NativeFile>(fh, transfer_fh_ownership); in RedirectToFileHandle()
DSBDebugger.cpp294 SetInputFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetInputFileHandle()
330 file_sp = std::make_shared<NativeFile>(fh, true); in SetInputFile()
351 SetOutputFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetOutputFileHandle()
372 SetErrorFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetErrorFileHandle()
536 FileSP outfile = std::make_shared<NativeFile>(out, false); in HandleProcessEvent()
537 FileSP errfile = std::make_shared<NativeFile>(err, false); in HandleProcessEvent()
DSBInstruction.cpp261 FileSP out = std::make_shared<NativeFile>(outp, /*take_ownership=*/false); in Print()
DSBProcess.cpp345 FileSP outfile = std::make_shared<NativeFile>(out, false); in ReportEventState()
/external/llvm-project/lldb/test/API/api/multithreaded/
Dtest_stop-hook.cpp.template73 // NativeFile class:
/external/llvm-project/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteCommunicationServerCommon.cpp553 NativeFile file(fd, File::OpenOptions(0), true); in Handle_vFile_Close()
584 NativeFile file(fd, File::eOpenOptionRead, false); in Handle_vFile_pRead()
616 NativeFile file(fd, File::eOpenOptionWrite, false); in Handle_vFile_pWrite()
/external/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
DPythonDataObjects.cpp1194 class SimplePythonFile : public OwnedPythonFile<NativeFile> {
1202 return classID == &ID || NativeFile::isA(classID); in isA()
1428 file_sp = std::make_shared<NativeFile>(fd, options.get(), false); in ConvertToFile()
/external/llvm-project/lldb/source/Plugins/Platform/MacOSX/objcxx/
DPlatformiOSSimulatorCoreSimulatorSupport.mm435 file = std::make_shared<NativeFile>(created_fd, file_options, true);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/
DPath.inc1202 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath);
1203 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);
/external/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DClangExpressionParser.cpp1061 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWrite, true); in ParseInternal()
/external/llvm-project/llvm/lib/Support/Windows/
DPath.inc1222 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath);
1223 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);
/external/llvm-project/lldb/source/Target/
DProcess.cpp4564 NativeFile m_read_file; // Read from this file (usually actual STDIN for LLDB
4565 NativeFile m_write_file; // Write to this file (usually the master pty for