Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/llvm-project/lldb/include/lldb/Host/
DFile.h371 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-12-stable/contrib/llvm-project/lldb/source/Host/common/
DFile.cpp249 Expected<File::OpenOptions> NativeFile::GetOptions() const { return m_options; } in GetOptions()
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()
368 off_t NativeFile::SeekFromStart(off_t offset, Status *error_ptr) { in SeekFromStart()
394 off_t NativeFile::SeekFromCurrent(off_t offset, Status *error_ptr) { in SeekFromCurrent()
420 off_t NativeFile::SeekFromEnd(off_t offset, Status *error_ptr) { in SeekFromEnd()
446 Status NativeFile::Flush() { in Flush()
[all …]
DFileSystem.cpp471 new NativeFile(descriptor, options, should_close_fd)); in Open()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Core/
DStreamFile.cpp25 std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, transfer_ownership); in StreamFile()
29 m_file_sp = std::make_shared<NativeFile>(fh, transfer_ownership); in StreamFile()
DDebugger.cpp684 m_input_file_sp(std::make_shared<NativeFile>(stdin, false)), in Debugger()
983 in = std::make_shared<NativeFile>(stdin, false); in AdoptTopIOHandlerFilesIfInvalid()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Host/posix/
DConnectionFileDescriptorPosix.cpp90 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-12-stable/contrib/llvm-project/lldb/source/API/
DSBFile.cpp43 m_opaque_sp = std::make_shared<NativeFile>(file, transfer_ownership); in SBFile()
56 std::make_shared<NativeFile>(fd, options.get(), transfer_owndership); in SBFile()
DSBCommandReturnObject.cpp273 FileSP file = std::make_shared<NativeFile>(fh, transfer_ownership); in SetImmediateOutputFile()
281 FileSP file = std::make_shared<NativeFile>(fh, transfer_ownership); in SetImmediateErrorFile()
DSBStream.cpp119 FileSP file = std::make_unique<NativeFile>(fh, transfer_fh_ownership); in RedirectToFileHandle()
DSBDebugger.cpp330 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()
DSBInstruction.cpp261 FileSP out = std::make_shared<NativeFile>(outp, /*take_ownership=*/false); in Print()
DSBProcess.cpp324 FileSP outfile = std::make_shared<NativeFile>(out, false); in ReportEventState()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DClangUtilityFunction.cpp52 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWrite, true); in ClangUtilityFunction()
DClangExpressionParser.cpp1072 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWrite, true); in ParseInternal()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteCommunicationServerCommon.cpp547 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-12-stable/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
DPythonDataObjects.cpp1194 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-12-stable/contrib/llvm-project/llvm/lib/Support/Windows/
DPath.inc1221 Expected<HANDLE> NativeFile = openNativeFileForRead(Name, Flags, RealPath);
1222 return nativeFileToFd(std::move(NativeFile), ResultFD, OF_None);
/freebsd-12-stable/contrib/llvm-project/lldb/source/Target/
DProcess.cpp4435 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