Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/lldb/include/lldb/Host/
H A 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-13.1/contrib/llvm-project/lldb/source/Host/common/
H A DFile.cpp251 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 DFileSystem.cpp471 new NativeFile(descriptor, options, should_close_fd)); in Open()
/freebsd-13.1/contrib/llvm-project/lldb/source/Core/
H A 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()
H A 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-13.1/contrib/llvm-project/lldb/source/Host/posix/
H A 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-13.1/contrib/llvm-project/lldb/source/API/
H A 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()
H A 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()
H A DSBStream.cpp119 FileSP file = std::make_unique<NativeFile>(fh, transfer_fh_ownership); in RedirectToFileHandle()
H A 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()
H A DSBInstruction.cpp261 FileSP out = std::make_shared<NativeFile>(outp, /*take_ownership=*/false); in Print()
H A DSBProcess.cpp324 FileSP outfile = std::make_shared<NativeFile>(out, false); in ReportEventState()
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangUtilityFunction.cpp52 lldb_private::NativeFile file(temp_fd, File::eOpenOptionWrite, true); in ClangUtilityFunction()
H A DClangExpressionParser.cpp1072 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 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-13.1/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/
H A 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-13.1/contrib/llvm-project/llvm/lib/Support/Windows/
H A DPath.inc1221 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 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