Home
last modified time | relevance | path

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

/llvm-project/lldb/include/lldb/Host/
H A DFile.h378 class NativeFile : public File {
380 NativeFile() : m_descriptor(kInvalidDescriptor), m_stream(kInvalidStream) {} in NativeFile() function
382 NativeFile(FILE *fh, bool transfer_ownership) in NativeFile() function
386 NativeFile(int fd, OpenOptions options, bool transfer_ownership) in NativeFile() function
390 ~NativeFile() override { Close(); } in ~NativeFile()
454 NativeFile(const NativeFile &) = delete;
455 const NativeFile &operator=(const NativeFile &) = delete;
458 class SerialPort : public NativeFile {
476 return NativeFile::IsValid() && m_is_interactive == eLazyBoolYes; in IsValid()
/llvm-project/lldb/source/Host/common/
H A DFile.cpp250 bool NativeFile::IsValid() const { in IsValid()
255 Expected<File::OpenOptions> NativeFile::GetOptions() const { return m_options; } in GetOptions()
257 int NativeFile::GetDescriptor() const { in GetDescriptor()
276 IOObject::WaitableHandle NativeFile::GetWaitableHandle() { in GetWaitableHandle()
280 FILE *NativeFile::GetStream() { in GetStream()
315 Status NativeFile::Close() { in Close()
351 Status NativeFile::GetFileSpec(FileSpec &file_spec) const { in GetFileSpec()
379 "NativeFile::GetFileSpec is not supported on this platform"); in GetFileSpec()
387 off_t NativeFile::SeekFromStart(off_t offset, Status *error_ptr) { in SeekFromStart()
418 off_t NativeFile
[all...]
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 DFileSystem.cpp455 new NativeFile(descriptor, options, should_close_fd)); in Open()
/llvm-project/clang-tools-extra/include-cleaner/unittests/
H A DIncludeSpellerTest.cpp35 llvm::SmallString<32> NativeFile = File; in testPath() local
36 llvm::sys::path::native(NativeFile, llvm::sys::path::Style::native); in testPath()
39 NativeFile); in testPath()
/llvm-project/clang-tools-extra/clangd/unittests/
H A DTestFS.cpp96 llvm::SmallString<32> NativeFile = File; in testPath() local
97 llvm::sys::path::native(NativeFile, Style); in testPath()
99 llvm::sys::path::append(Path, Style, testRoot(), NativeFile); in testPath()
/llvm-project/lldb/unittests/Host/
H A DFileTest.cpp34 NativeFile file(stream, true); in TEST()
49 NativeFile file(fd, File::eOpenOptionWriteOnly, true); in TEST()
/llvm-project/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.cpp268 FileSP file = std::make_shared<NativeFile>(fh, transfer_ownership); in SetImmediateOutputFile()
275 FileSP file = std::make_shared<NativeFile>(fh, transfer_ownership); in SetImmediateErrorFile()
H A DSBStream.cpp119 FileSP file = std::make_unique<NativeFile>(fh, transfer_fh_ownership); in RedirectToFileHandle()
H A DSBDebugger.cpp370 (FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetInputString()
427 SetOutputFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetOutputFile()
447 SetErrorFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetErrorFile()
626 FileSP outfile = std::make_shared<NativeFile>(out, false);
627 FileSP errfile = std::make_shared<NativeFile>(err, false); in HandleProcessEvent()
H A DSBInstruction.cpp272 FileSP out = std::make_shared<NativeFile>(outp, /*take_ownership=*/false); in Print()
H A DSBProcess.cpp312 FileSP outfile = std::make_shared<NativeFile>(out, false); in ReportEventState()
/llvm-project/lldb/source/Host/posix/
H A DConnectionFileDescriptorPosix.cpp65 std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, owns_fd); in ConnectionFileDescriptor()
700 std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, false); in ConnectFD()
757 m_io_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, true); in ConnectFile()
/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangUtilityFunction.cpp47 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ClangUtilityFunction()
H A DClangExpressionParser.cpp1245 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in RewriteExpression()
/llvm-project/lldb/test/API/api/multithreaded/
H A Dtest_stop-hook.cpp.template73 // NativeFile class:
/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServerCommon.cpp555 NativeFile file(fd, File::OpenOptions(0), true); in Handle_vFile_Close()
586 NativeFile file(fd, File::eOpenOptionReadOnly, false); in Handle_vFile_pRead()
619 NativeFile file(fd, File::eOpenOptionWriteOnly, false); in Handle_vFile_pWrite()
/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp1074 // a NativeFile in OwnedPythonFile()
1076 class SimplePythonFile : public OwnedPythonFile<NativeFile> { in OwnedPythonFile()
1084 return classID == &ID || NativeFile::isA(classID); in ~OwnedPythonFile()
1320 file_sp = std::make_shared<NativeFile>(fd, options.get(), false); in Read()
/llvm-project/lldb/bindings/lua/
H A Dlua-typemaps.swig236 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
/llvm-project/lldb/source/Core/
H A DDebugger.cpp877 m_input_file_sp(std::make_shared<NativeFile>(stdin, false)), in Debugger()
1073 SetInputFile((FileSP)std::make_shared<NativeFile>(commands_file, true));
1246 in = std::make_shared<NativeFile>(stdin, false); in PushIOHandler()
/llvm-project/lldb/source/Plugins/Platform/MacOSX/objcxx/
H A DPlatformiOSSimulatorCoreSimulatorSupport.mm431 file = std::make_shared<NativeFile>(created_fd, file_options, true);
/llvm-project/llvm/lib/Support/Windows/
H A DPath.inc1276 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath);
1277 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);
/llvm-project/lldb/source/Target/
H A DProcess.cpp4750 NativeFile m_read_file; // Read from this file (usually actual STDIN for LLDB in PushProcessIOHandler()
4751 NativeFile m_write_file; // Write to this file (usually the primary pty for in PushProcessIOHandler()
/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DSymbolFileDWARF.cpp271 NativeFile file(fd, File::eOpenOptionWriteOnly, true); in Materialize()