| /freebsd/contrib/llvm-project/lldb/include/lldb/Host/ |
| H A D | File.h | 378 class NativeFile : public File { 385 NativeFile() : m_descriptor(kInvalidDescriptor), m_stream(kInvalidStream) {} in NativeFile() function 387 NativeFile(FILE *fh, bool transfer_ownership) in NativeFile() function 391 NativeFile(int fd, OpenOptions options, bool transfer_ownership) in NativeFile() function 395 ~NativeFile() override { Close(); } in ~NativeFile() 459 NativeFile(const NativeFile &) = delete; 460 const NativeFile &operator=(const NativeFile &) = delete; 463 class SerialPort : public NativeFile { 481 return NativeFile::IsValid() && m_is_interactive == eLazyBoolYes; in IsValid()
|
| H A D | StreamFile.h | 84 : m_file_sp(std::make_shared<NativeFile>(fh, transfer_ownership)), in LockableStreamFile()
|
| /freebsd/contrib/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() 284 FILE *NativeFile::GetStream() { in GetStream() 319 Status NativeFile::Close() { in Close() 355 Status NativeFile::GetFileSpec(FileSpec &file_spec) const { in GetFileSpec() 391 off_t NativeFile::SeekFromStart(off_t offset, Status *error_ptr) { in SeekFromStart() 422 off_t NativeFile::SeekFromCurrent(off_t offset, Status *error_ptr) { in SeekFromCurrent() 453 off_t NativeFile::SeekFromEnd(off_t offset, Status *error_ptr) { in SeekFromEnd() [all …]
|
| H A D | FileSystem.cpp | 455 new NativeFile(descriptor, options, should_close_fd)); in Open()
|
| /freebsd/contrib/llvm-project/lldb/source/Core/ |
| H A D | StreamFile.cpp | |
| H A D | Debugger.cpp | 966 m_input_file_sp(std::make_shared<NativeFile>(stdin, NativeFile::Unowned)), in Debugger() 968 stdout, NativeFile::Unowned, m_output_mutex)), in Debugger() 970 stderr, NativeFile::Unowned, m_output_mutex)), in Debugger() 1173 SetInputFile((FileSP)std::make_shared<NativeFile>(commands_file, true)); in SetInputString() 1368 in = std::make_shared<NativeFile>(stdin, NativeFile::Unowned); in AdoptTopIOHandlerFilesIfInvalid() 1378 out = std::make_shared<LockableStreamFile>(stdout, NativeFile::Unowned, in AdoptTopIOHandlerFilesIfInvalid() 1389 err = std::make_shared<LockableStreamFile>(stderr, NativeFile::Unowned, in AdoptTopIOHandlerFilesIfInvalid()
|
| /freebsd/contrib/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 | 278 FileSP file = std::make_shared<NativeFile>(fh, transfer_ownership); in SetImmediateOutputFile() 285 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 | 331 (FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetInputFileHandle() 388 SetOutputFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetOutputFileHandle() 408 SetErrorFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetErrorFileHandle() 579 FileSP outfile = std::make_shared<NativeFile>(out, false); in HandleProcessEvent() 580 FileSP errfile = std::make_shared<NativeFile>(err, false); in HandleProcessEvent()
|
| H A D | SBInstruction.cpp | 271 FileSP out = std::make_shared<NativeFile>(outp, /*take_ownership=*/false); in Print()
|
| H A D | SBProcess.cpp | 313 FileSP outfile = std::make_shared<NativeFile>(out, false); in ReportEventState()
|
| /freebsd/contrib/llvm-project/lldb/source/Host/posix/ |
| H A D | ConnectionFileDescriptorPosix.cpp | 65 std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, owns_fd); in ConnectionFileDescriptor() 695 std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, false); in ConnectFD() 752 m_io_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, true); in ConnectFile()
|
| /freebsd/contrib/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 | 1248 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ParseInternal()
|
| /freebsd/contrib/llvm-project/lldb/source/Interpreter/ |
| H A D | ScriptInterpreter.cpp | 244 std::make_shared<StreamFile>(outfile_handle, NativeFile::Owned), in ScriptInterpreterIORedirect()
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
| H A D | PythonDataObjects.cpp | 1076 class SimplePythonFile : public OwnedPythonFile<NativeFile> { 1084 return classID == &ID || NativeFile::isA(classID); in isA() 1320 file_sp = std::make_shared<NativeFile>(fd, options.get(), false); in ConvertToFile()
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/lldb/bindings/lua/ |
| H A D | lua-typemaps.swig | 236 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/Windows/ |
| H A D | Path.inc | 1278 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath); 1279 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);
|
| /freebsd/contrib/llvm-project/lldb/source/Target/ |
| H A D | Process.cpp | 4757 NativeFile m_read_file; // Read from this file (usually actual STDIN for LLDB 4758 NativeFile m_write_file; // Write to this file (usually the primary pty for
|
| /freebsd/lib/clang/liblldb/ |
| H A D | LLDBWrapLua.cpp | 15121 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_PutOutput__SWIG_1() 15295 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_PutError__SWIG_1() 15655 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_SetImmediateOutputFile__SWIG_1() 15687 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_SetImmediateErrorFile__SWIG_1() 16226 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_SetImmediateOutputFile__SWIG_2() 16347 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_SetImmediateErrorFile__SWIG_2() 21079 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_SetInputFile__SWIG_1() 21175 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_SetOutputFile__SWIG_1() 21271 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_SetErrorFile__SWIG_1() 21713 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_HandleProcessEvent__SWIG_1() [all …]
|
| /freebsd/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/ |
| H A D | SymbolFileDWARF.cpp | 271 NativeFile file(fd, File::eOpenOptionWriteOnly, true); in Materialize()
|