| /freebsd-13.1/contrib/llvm-project/lldb/include/lldb/Host/ |
| H A D | File.h | 371 class NativeFile : public File { 373 NativeFile() : m_descriptor(kInvalidDescriptor), m_stream(kInvalidStream) {} in NativeFile() function 375 NativeFile(FILE *fh, bool transfer_ownership) in NativeFile() function 379 NativeFile(int fd, OpenOptions options, bool transfer_ownership) in NativeFile() function 383 ~NativeFile() override { Close(); } in ~NativeFile() 427 NativeFile(const NativeFile &) = delete; 428 const NativeFile &operator=(const NativeFile &) = delete;
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Host/common/ |
| H A D | File.cpp | 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() 420 off_t NativeFile::SeekFromEnd(off_t offset, Status *error_ptr) { in SeekFromEnd() 446 Status NativeFile::Flush() { in Flush() 457 Status NativeFile::Sync() { in Sync() 480 Status NativeFile::Read(void *buf, size_t &num_bytes) { in Read() 539 Status NativeFile::Write(const void *buf, size_t &num_bytes) { in Write() [all …]
|
| H A D | FileSystem.cpp | 471 new NativeFile(descriptor, options, should_close_fd)); in Open()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Core/ |
| H A D | StreamFile.cpp | 25 std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, transfer_ownership); in StreamFile() 29 m_file_sp = std::make_shared<NativeFile>(fh, transfer_ownership); in StreamFile()
|
| H A D | Debugger.cpp | 684 m_input_file_sp(std::make_shared<NativeFile>(stdin, false)), in Debugger() 983 in = std::make_shared<NativeFile>(stdin, false); in AdoptTopIOHandlerFilesIfInvalid()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | ConnectionFileDescriptorPosix.cpp | 90 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()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/API/ |
| H A D | SBFile.cpp | 43 m_opaque_sp = std::make_shared<NativeFile>(file, transfer_ownership); in SBFile() 56 std::make_shared<NativeFile>(fd, options.get(), transfer_owndership); in SBFile()
|
| H A D | SBCommandReturnObject.cpp | 273 FileSP file = std::make_shared<NativeFile>(fh, transfer_ownership); in SetImmediateOutputFile() 281 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 | 330 SetInputFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetInputFileHandle() 366 file_sp = std::make_shared<NativeFile>(fh, true); in SetInputFile() 387 SetOutputFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetOutputFileHandle() 408 SetErrorFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetErrorFileHandle() 572 FileSP outfile = std::make_shared<NativeFile>(out, false); in HandleProcessEvent() 573 FileSP errfile = std::make_shared<NativeFile>(err, false); in HandleProcessEvent()
|
| H A D | SBInstruction.cpp | 261 FileSP out = std::make_shared<NativeFile>(outp, /*take_ownership=*/false); in Print()
|
| H A D | SBProcess.cpp | 324 FileSP outfile = std::make_shared<NativeFile>(out, false); in ReportEventState()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangUtilityFunction.cpp | 52 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWrite, true); in ClangUtilityFunction()
|
| H A D | ClangExpressionParser.cpp | 1072 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWrite, true); in ParseInternal()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
| H A D | GDBRemoteCommunicationServerCommon.cpp | 547 NativeFile file(fd, File::OpenOptions(0), true); in Handle_vFile_Close() 578 NativeFile file(fd, File::eOpenOptionRead, false); in Handle_vFile_pRead() 610 NativeFile file(fd, File::eOpenOptionWrite, false); in Handle_vFile_pWrite()
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
| H A D | PythonDataObjects.cpp | 1194 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()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Support/Windows/ |
| H A D | Path.inc | 1221 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath); 1222 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);
|
| /freebsd-13.1/contrib/llvm-project/lldb/source/Target/ |
| H A D | Process.cpp | 4435 NativeFile m_read_file; // Read from this file (usually actual STDIN for LLDB 4436 NativeFile m_write_file; // Write to this file (usually the master pty for
|