/llvm-project/lldb/include/lldb/Host/ |
H A D | File.h | 378 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 D | File.cpp | 250 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 D | StreamFile.cpp | 25 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 D | FileSystem.cpp | 455 new NativeFile(descriptor, options, should_close_fd)); in Open()
|
/llvm-project/clang-tools-extra/include-cleaner/unittests/ |
H A D | IncludeSpellerTest.cpp | 35 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 D | TestFS.cpp | 96 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 D | FileTest.cpp | 34 NativeFile file(stream, true); in TEST() 49 NativeFile file(fd, File::eOpenOptionWriteOnly, true); in TEST()
|
/llvm-project/lldb/source/API/ |
H A D | SBFile.cpp | 42 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 D | SBCommandReturnObject.cpp | 268 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 D | SBStream.cpp | 119 FileSP file = std::make_unique<NativeFile>(fh, transfer_fh_ownership); in RedirectToFileHandle()
|
H A D | SBDebugger.cpp | 370 (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 D | SBInstruction.cpp | 272 FileSP out = std::make_shared<NativeFile>(outp, /*take_ownership=*/false); in Print()
|
H A D | SBProcess.cpp | 312 FileSP outfile = std::make_shared<NativeFile>(out, false); in ReportEventState()
|
/llvm-project/lldb/source/Host/posix/ |
H A D | ConnectionFileDescriptorPosix.cpp | 65 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 D | ClangUtilityFunction.cpp | 47 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ClangUtilityFunction()
|
H A D | ClangExpressionParser.cpp | 1245 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in RewriteExpression()
|
/llvm-project/lldb/test/API/api/multithreaded/ |
H A D | test_stop-hook.cpp.template | 73 // NativeFile class:
|
/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
H A D | GDBRemoteCommunicationServerCommon.cpp | 555 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 D | PythonDataObjects.cpp | 1074 // 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 D | lua-typemaps.swig | 236 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
|
/llvm-project/lldb/source/Core/ |
H A D | Debugger.cpp | 877 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 D | PlatformiOSSimulatorCoreSimulatorSupport.mm | 431 file = std::make_shared<NativeFile>(created_fd, file_options, true);
|
/llvm-project/llvm/lib/Support/Windows/ |
H A D | Path.inc | 1276 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath); 1277 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);
|
/llvm-project/lldb/source/Target/ |
H A D | Process.cpp | 4750 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 D | SymbolFileDWARF.cpp | 271 NativeFile file(fd, File::eOpenOptionWriteOnly, true); in Materialize()
|