Home
last modified time | relevance | path

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

/freebsd-src/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-src/contrib/llvm-project/lldb/source/Host/common/
H A DFile.cpp250 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()
387 off_t NativeFile::SeekFromStart(off_t offset, Status *error_ptr) { in SeekFromStart()
418 off_t NativeFile::SeekFromCurrent(off_t offset, Status *error_ptr) { in SeekFromCurrent()
449 off_t NativeFile::SeekFromEnd(off_t offset, Status *error_ptr) { in SeekFromEnd()
[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-src/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.cpp311 FileSP outfile = std::make_shared<NativeFile>(out, false);
/freebsd-src/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-src/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.cpp1049 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWriteOnly, true); in ParseInternal()
/freebsd-src/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-src/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A DPythonDataObjects.cpp1130 // a NativeFile
1132 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-src/contrib/llvm-project/lldb/bindings/lua/
H A Dlua-typemaps.swig236 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false);
/freebsd-src/contrib/llvm-project/lldb/source/Core/
H A DDebugger.cpp847 m_input_file_sp(std::make_shared<NativeFile>(stdin, false)), in Debugger()
1038 SetInputFile((FileSP)std::make_shared<NativeFile>(commands_file, true)); in SetErrorFile()
1211 in = std::make_shared<NativeFile>(stdin, false); in AdoptTopIOHandlerFilesIfInvalid()
/freebsd-src/contrib/llvm-project/llvm/lib/Support/Windows/
H A DPath.inc1276 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath);
1277 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);
/freebsd-src/contrib/llvm-project/lldb/source/Target/
H A DProcess.cpp4724 NativeFile m_read_file; // Read from this file (usually actual STDIN for LLDB in HandleStoppedEvent()
4725 NativeFile m_write_file; // Write to this file (usually the primary pty for
/freebsd-src/lib/clang/liblldb/
H A DLLDBWrapLua.cpp15071 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_SetError()
15245 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommandReturnObject_SetImmediateOutputFile()
15605 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommunication_IsValid()
15637 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCommunication_GetBroadcasterClass()
16146 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCompileUnit_IsValid()
16267 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBCompileUnit_FindLineEntryIndex__SWIG_0()
20793 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_GetSelectedPlatform()
20889 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_GetNumAvailablePlatforms()
20985 file_sp = std::make_shared<lldb_private::NativeFile>(p->f, false); in _wrap_SBDebugger_SetCurrentPlatform()
21427 file_sp = std::make_shared<lldb_private::NativeFile>( in _wrap_SBDebugger_EnableLog()
[all...]
/freebsd-src/contrib/llvm-project/lldb/source/Plugins/SymbolFile/DWARF/
H A DSymbolFileDWARF.cpp271 NativeFile file(fd, File::eOpenOptionWriteOnly, true); in Materialize()