Home
last modified time | relevance | path

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

/llvm-project-15.0.7/lldb/include/lldb/Host/
H A DFile.h377 class NativeFile : public File {
379 NativeFile() : m_descriptor(kInvalidDescriptor), m_stream(kInvalidStream) {} in NativeFile() function
381 NativeFile(FILE *fh, bool transfer_ownership) in NativeFile() function
385 NativeFile(int fd, OpenOptions options, bool transfer_ownership) in NativeFile() function
389 ~NativeFile() override { Close(); } in ~NativeFile()
433 NativeFile(const NativeFile &) = delete;
434 const NativeFile &operator=(const NativeFile &) = delete;
437 class SerialPort : public NativeFile {
455 return NativeFile::IsValid() && m_is_interactive == eLazyBoolYes; in IsValid()
/llvm-project-15.0.7/lldb/source/Host/common/
H A DFile.cpp250 int NativeFile::GetDescriptor() const { in GetDescriptor()
268 IOObject::WaitableHandle NativeFile::GetWaitableHandle() { in GetWaitableHandle()
272 FILE *NativeFile::GetStream() { in GetStream()
306 Status NativeFile::Close() { in Close()
337 Status NativeFile::GetFileSpec(FileSpec &file_spec) const { in GetFileSpec()
451 Status NativeFile::Flush() { in Flush()
462 Status NativeFile::Sync() { in Sync()
485 Status NativeFile::Read(void *buf, size_t &num_bytes) { in Read()
544 Status NativeFile::Write(const void *buf, size_t &num_bytes) { in Write()
863 return NativeFile::Close(); in Close()
[all …]
H A DFileSystem.cpp467 new NativeFile(descriptor, options, should_close_fd)); in Open()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DTestFS.cpp97 llvm::SmallString<32> NativeFile = File; in testPath() local
98 llvm::sys::path::native(NativeFile, Style); in testPath()
100 llvm::sys::path::append(Path, Style, testRoot(), NativeFile); in testPath()
/llvm-project-15.0.7/lldb/source/Core/
H A DStreamFile.cpp25 m_file_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionWriteOnly, in StreamFile()
30 m_file_sp = std::make_shared<NativeFile>(fh, transfer_ownership); in StreamFile()
H A DDebugger.cpp742 m_input_file_sp(std::make_shared<NativeFile>(stdin, false)), in Debugger()
920 (FileSP)std::make_shared<NativeFile>(commands_file, true)); in SetInputString()
939 file_sp = std::make_shared<NativeFile>(fh, true); in SetInputFile()
1125 in = std::make_shared<NativeFile>(stdin, false); in AdoptTopIOHandlerFilesIfInvalid()
/llvm-project-15.0.7/lldb/unittests/Host/
H A DFileTest.cpp34 NativeFile file(stream, true); in TEST()
49 NativeFile file(fd, File::eOpenOptionWriteOnly, true); in TEST()
/llvm-project-15.0.7/lldb/source/API/
H A DSBFile.cpp42 m_opaque_sp = std::make_shared<NativeFile>(file, transfer_ownership); in SBFile()
54 std::make_shared<NativeFile>(fd, options.get(), transfer_owndership); in SBFile()
H A DSBCommandReturnObject.cpp257 FileSP file = std::make_shared<NativeFile>(fh, transfer_ownership); in SetImmediateOutputFile()
264 FileSP file = std::make_shared<NativeFile>(fh, transfer_ownership); in SetImmediateErrorFile()
H A DSBStream.cpp118 FileSP file = std::make_unique<NativeFile>(fh, transfer_fh_ownership); in RedirectToFileHandle()
H A DSBDebugger.cpp343 (FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetInputFileHandle()
396 SetOutputFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetOutputFileHandle()
416 SetErrorFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetErrorFileHandle()
573 FileSP outfile = std::make_shared<NativeFile>(out, false); in HandleProcessEvent()
574 FileSP errfile = std::make_shared<NativeFile>(err, false); in HandleProcessEvent()
H A DSBInstruction.cpp253 FileSP out = std::make_shared<NativeFile>(outp, /*take_ownership=*/false); in Print()
H A DSBProcess.cpp307 FileSP outfile = std::make_shared<NativeFile>(out, false); in ReportEventState()
/llvm-project-15.0.7/lldb/source/Host/posix/
H A DConnectionFileDescriptorPosix.cpp67 std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, owns_fd); in ConnectionFileDescriptor()
708 std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, false); in ConnectFD()
755 m_io_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, true); in ConnectFile()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangUtilityFunction.cpp48 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ClangUtilityFunction()
H A DClangExpressionParser.cpp1075 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ParseInternal()
/llvm-project-15.0.7/lldb/test/API/api/multithreaded/
H A Dtest_stop-hook.cpp.template73 // NativeFile class:
/llvm-project-15.0.7/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServerCommon.cpp557 NativeFile file(fd, File::OpenOptions(0), true); in Handle_vFile_Close()
588 NativeFile file(fd, File::eOpenOptionReadOnly, false); in Handle_vFile_pRead()
621 NativeFile file(fd, File::eOpenOptionWriteOnly, false); in Handle_vFile_pWrite()
/llvm-project-15.0.7/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp1094 class SimplePythonFile : public OwnedPythonFile<NativeFile> {
1102 return classID == &ID || NativeFile::isA(classID); in isA()
1327 file_sp = std::make_shared<NativeFile>(fd, options.get(), false); in ConvertToFile()
/llvm-project-15.0.7/lldb/bindings/lua/
H A Dlua-typemaps.swig236 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
/llvm-project-15.0.7/lldb/source/Plugins/Platform/MacOSX/objcxx/
H A DPlatformiOSSimulatorCoreSimulatorSupport.mm432 file = std::make_shared<NativeFile>(created_fd, file_options, true);
/llvm-project-15.0.7/llvm/lib/Support/Windows/
H A DPath.inc1236 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath);
1237 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);
/llvm-project-15.0.7/lldb/source/Target/
H A DProcess.cpp4460 NativeFile m_read_file; // Read from this file (usually actual STDIN for LLDB
4461 NativeFile m_write_file; // Write to this file (usually the primary pty for