| /llvm-project-15.0.7/lldb/include/lldb/Host/ |
| H A D | File.h | 377 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 D | File.cpp | 250 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 D | FileSystem.cpp | 467 new NativeFile(descriptor, options, should_close_fd)); in Open()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/unittests/ |
| H A D | TestFS.cpp | 97 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 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 | Debugger.cpp | 742 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 D | FileTest.cpp | 34 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 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 | 257 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 D | SBStream.cpp | 118 FileSP file = std::make_unique<NativeFile>(fh, transfer_fh_ownership); in RedirectToFileHandle()
|
| H A D | SBDebugger.cpp | 343 (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 D | SBInstruction.cpp | 253 FileSP out = std::make_shared<NativeFile>(outp, /*take_ownership=*/false); in Print()
|
| H A D | SBProcess.cpp | 307 FileSP outfile = std::make_shared<NativeFile>(out, false); in ReportEventState()
|
| /llvm-project-15.0.7/lldb/source/Host/posix/ |
| H A D | ConnectionFileDescriptorPosix.cpp | 67 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 D | ClangUtilityFunction.cpp | 48 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ClangUtilityFunction()
|
| H A D | ClangExpressionParser.cpp | 1075 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ParseInternal()
|
| /llvm-project-15.0.7/lldb/test/API/api/multithreaded/ |
| H A D | test_stop-hook.cpp.template | 73 // NativeFile class:
|
| /llvm-project-15.0.7/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteCommunicationServerCommon.cpp | 557 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 D | PythonDataObjects.cpp | 1094 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 D | lua-typemaps.swig | 236 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
|
| /llvm-project-15.0.7/lldb/source/Plugins/Platform/MacOSX/objcxx/ |
| H A D | PlatformiOSSimulatorCoreSimulatorSupport.mm | 432 file = std::make_shared<NativeFile>(created_fd, file_options, true);
|
| /llvm-project-15.0.7/llvm/lib/Support/Windows/ |
| H A D | Path.inc | 1236 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 D | Process.cpp | 4460 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
|