Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/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()
/freebsd-14.2/contrib/llvm-project/lldb/source/Host/common/
H A DFile.cpp250 bool NativeFile::IsValid() const { in IsValid()
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()
479 Status NativeFile::Flush() { in Flush()
495 Status NativeFile::Sync() { in Sync()
518 Status NativeFile::Read(void *buf, size_t &num_bytes) { in Read()
902 return NativeFile::Close(); in Close()
[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()
/freebsd-14.2/contrib/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.cpp257 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 DSBStream.cpp119 FileSP file = std::make_unique<NativeFile>(fh, transfer_fh_ownership); in RedirectToFileHandle()
H A DSBDebugger.cpp366 (FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetInputFileHandle()
423 SetOutputFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetOutputFileHandle()
443 SetErrorFile((FileSP)std::make_shared<NativeFile>(fh, transfer_ownership)); in SetErrorFileHandle()
622 FileSP outfile = std::make_shared<NativeFile>(out, false); in HandleProcessEvent()
623 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.cpp308 FileSP outfile = std::make_shared<NativeFile>(out, false); in ReportEventState()
/freebsd-14.2/contrib/llvm-project/lldb/source/Host/posix/
H A DConnectionFileDescriptorPosix.cpp68 std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, owns_fd); in ConnectionFileDescriptor()
706 std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, false); in ConnectFD()
753 m_io_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionReadWrite, true); in ConnectFile()
/freebsd-14.2/contrib/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.cpp1046 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ParseInternal()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
H A DGDBRemoteCommunicationServerCommon.cpp556 NativeFile file(fd, File::OpenOptions(0), true); in Handle_vFile_Close()
587 NativeFile file(fd, File::eOpenOptionReadOnly, false); in Handle_vFile_pRead()
620 NativeFile file(fd, File::eOpenOptionWriteOnly, false); in Handle_vFile_pWrite()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp1132 class SimplePythonFile : public OwnedPythonFile<NativeFile> {
1140 return classID == &ID || NativeFile::isA(classID); in isA()
1365 file_sp = std::make_shared<NativeFile>(fd, options.get(), false); in ConvertToFile()
/freebsd-14.2/contrib/llvm-project/lldb/bindings/lua/
H A Dlua-typemaps.swig236 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
/freebsd-14.2/contrib/llvm-project/lldb/source/Core/
H A DDebugger.cpp833 m_input_file_sp(std::make_shared<NativeFile>(stdin, false)), in Debugger()
1021 SetInputFile((FileSP)std::make_shared<NativeFile>(commands_file, true)); in SetInputString()
1197 in = std::make_shared<NativeFile>(stdin, false); in AdoptTopIOHandlerFilesIfInvalid()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/Windows/
H A DPath.inc1270 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath);
1271 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);
/freebsd-14.2/contrib/llvm-project/lldb/source/Target/
H A DProcess.cpp4526 NativeFile m_read_file; // Read from this file (usually actual STDIN for LLDB
4527 NativeFile m_write_file; // Write to this file (usually the primary pty for
/freebsd-14.2/lib/clang/liblldb/
H A DLLDBWrapLua.cpp14127 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_PutOutput__SWIG_1()
14301 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_PutError__SWIG_1()
14661 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_SetImmediateOutputFile__SWIG_1()
14693 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_SetImmediateErrorFile__SWIG_1()
15202 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_SetImmediateOutputFile__SWIG_2()
15323 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_SetImmediateErrorFile__SWIG_2()
19515 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_SetInputFile__SWIG_1()
19611 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_SetOutputFile__SWIG_1()
19707 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_SetErrorFile__SWIG_1()
20149 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_HandleProcessEvent__SWIG_1()
[all …]
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DSymbolFileDWARF.cpp271 NativeFile file(fd, File::eOpenOptionWriteOnly, true); in Materialize()