/freebsd-11-stable/contrib/llvm-project/lldb/source/Target/ |
H A D | Process.cpp | 4423 void Process::SetSTDIOFileDescriptor(int fd) { 4427 new ConnectionFileDescriptor(fd, true)); 4440 std::make_shared<IOHandlerProcessSTDIO>(this, fd);
|
H A D | Platform.cpp | 1302 unsigned flags, addr_t fd, 1310 MmapArgList args({addr, length, prot, flags_platform, fd, offset}); 1300 GetMmapArgumentList(const ArchSpec &arch, addr_t addr, addr_t length, unsigned prot, unsigned flags, addr_t fd, addr_t offset) argument
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/PDB/ |
H A D | PDBLocationToDWARFExpression.cpp | 38 while (auto fd = enumFrameData->getNext()) { 39 Range<lldb::addr_t, lldb::addr_t> fdRange(fd->getVirtualAddress(), 40 fd->getLengthBlock()); 50 found = std::move(fd); 111 if (auto fd = GetCorrespondingFrameData(symbol.getSession(), ranges)) { 112 if (EmitVFrameEvaluationDWARFExpression(fd->getProgram(), arch_type,
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Python/ |
H A D | PythonDataObjects.cpp | 1145 SimplePythonFile(const PythonFile &file, bool borrowed, int fd, argument 1147 : OwnedPythonFile(file, borrowed, fd, options, false) {} 1244 BinaryPythonFile(int fd, const PythonFile &file, bool borrowed) argument 1246 m_descriptor(File::DescriptorIsValid(fd) ? fd 1298 TextPythonFile(int fd, const PythonFile &file, bool borrowed) argument 1300 m_descriptor(File::DescriptorIsValid(fd) ? fd 1356 int fd = PyObject_AsFileDescriptor(m_py_obj); local 1357 if (fd < [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/gdb-remote/ |
H A D | ProcessGDBRemote.cpp | 3427 static bool SetCloexecFlag(int fd) { 3429 int flags = ::fcntl(fd, F_GETFD); 3432 return (::fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == 0);
|
H A D | GDBRemoteCommunicationServerLLGS.h | 191 Status SetSTDIOFileDescriptor(int fd);
|
H A D | GDBRemoteCommunicationServerLLGS.cpp | 259 "inferior STDIO fd to %d", 267 "inferior STDIO since terminal fd reported as %d", 313 "inferior STDIO fd to %d", 321 "inferior STDIO since terminal fd reported as %d", 951 Status GDBRemoteCommunicationServerLLGS::SetSTDIOFileDescriptor(int fd) { argument 956 new ConnectionFileDescriptor(fd, true));
|
H A D | GDBRemoteCommunicationServerCommon.cpp | 520 // Do not close fd. 550 int fd = packet.GetS32(-1); local 553 if (fd >= 0) { 554 NativeFile file(fd, File::OpenOptions(0), true); 574 int fd = packet.GetS32(-1); local 585 NativeFile file(fd, File::eOpenOptionRead, false); 611 int fd = packet.GetU32(UINT32_MAX); local 617 NativeFile file(fd, File::eOpenOptionWrite, false);
|
H A D | GDBRemoteCommunicationClient.h | 357 bool CloseFile(lldb::user_id_t fd, Status &error); 367 uint64_t ReadFile(lldb::user_id_t fd, uint64_t offset, void *dst, 370 uint64_t WriteFile(lldb::user_id_t fd, uint64_t offset, const void *src,
|
H A D | GDBRemoteCommunicationClient.cpp | 2942 bool GDBRemoteCommunicationClient::CloseFile(lldb::user_id_t fd, 2945 stream.Printf("vFile:close:%i", (int)fd); 3008 uint64_t GDBRemoteCommunicationClient::ReadFile(lldb::user_id_t fd, 3013 stream.Printf("vFile:pread:%i,%" PRId64 ",%" PRId64, (int)fd, dst_len, 3041 uint64_t GDBRemoteCommunicationClient::WriteFile(lldb::user_id_t fd, 3047 stream.Printf("vFile:pwrite:%i,%" PRId64 ",", (int)fd, offset);
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/Utility/ |
H A D | InferiorCallPOSIX.h | 29 unsigned flags, lldb::addr_t fd, lldb::addr_t offset);
|
H A D | InferiorCallPOSIX.cpp | 38 unsigned flags, addr_t fd, addr_t offset) { 95 arch, addr, length, prot_arg, flags, fd, offset); 36 InferiorCallMmap(Process *process, addr_t &allocated_addr, addr_t addr, addr_t length, unsigned prot, unsigned flags, addr_t fd, addr_t offset) argument
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/NetBSD/ |
H A D | NativeProcessNetBSD.cpp | 39 static Status EnsureFDFlags(int fd, int flags) { argument 42 int status = fcntl(fd, F_GETFL); 48 if (fcntl(fd, F_SETFL, status | flags) == -1) {
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ |
H A D | ProcessMonitor.cpp | 176 static bool EnsureFDFlags(int fd, int flags, Status &error) { argument 179 if ((status = fcntl(fd, F_GETFL)) == -1) { 184 if (fcntl(fd, F_SETFL, status | flags) == -1) { 856 // closes original fd from which they were copied (and avoids leaking 945 // Set the terminal fd to be in non blocking mode (it simplifies the 1369 bool ProcessMonitor::DupDescriptor(const FileSpec &file_spec, int fd, argument 1377 if (dup2(target_fd, fd) == -1)
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Platform/gdb-server/ |
H A D | PlatformRemoteGDBServer.h | 119 bool CloseFile(lldb::user_id_t fd, Status &error) override; 121 uint64_t ReadFile(lldb::user_id_t fd, uint64_t offset, void *data_ptr, 124 uint64_t WriteFile(lldb::user_id_t fd, uint64_t offset, const void *data,
|
H A D | PlatformRemoteGDBServer.cpp | 638 bool PlatformRemoteGDBServer::CloseFile(lldb::user_id_t fd, Status &error) { argument 639 return m_gdb_client.CloseFile(fd, error); 647 uint64_t PlatformRemoteGDBServer::ReadFile(lldb::user_id_t fd, uint64_t offset, argument 650 return m_gdb_client.ReadFile(fd, offset, dst, dst_len, error); 653 uint64_t PlatformRemoteGDBServer::WriteFile(lldb::user_id_t fd, uint64_t offset, argument 656 return m_gdb_client.WriteFile(fd, offset, src, src_len, error);
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Platform/OpenBSD/ |
H A D | PlatformOpenBSD.cpp | 205 addr_t fd, addr_t offset) { 213 MmapArgList args({addr, length, prot, flags_platform, fd, offset}); 202 GetMmapArgumentList(const ArchSpec &arch, addr_t addr, addr_t length, unsigned prot, unsigned flags, addr_t fd, addr_t offset) argument
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Platform/NetBSD/ |
H A D | PlatformNetBSD.cpp | 354 addr_t fd, addr_t offset) { 362 MmapArgList args({addr, length, prot, flags_platform, fd, offset}); 351 GetMmapArgumentList(const ArchSpec &arch, addr_t addr, addr_t length, unsigned prot, unsigned flags, addr_t fd, addr_t offset) argument
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/Platform/FreeBSD/ |
H A D | PlatformFreeBSD.cpp | 309 addr_t fd, addr_t offset) { 317 MmapArgList args({addr, length, prot, flags_platform, fd, offset}); 306 GetMmapArgumentList(const ArchSpec &arch, addr_t addr, addr_t length, unsigned prot, unsigned flags, addr_t fd, addr_t offset) argument
|
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/InstrumentationRuntime/TSan/ |
H A D | TSanRuntime.cpp | 79 int *fd, int *suppressable, void **trace, 128 int fd; 185 __tsan_get_report_loc(t.report, i, &t.locs[i].type, &t.locs[i].addr, &t.locs[i].start, &t.locs[i].size, &t.locs[i].tid, &t.locs[i].fd, &t.locs[i].suppressable, t.locs[i].trace, REPORT_TRACE_SIZE); 414 o->GetValueForExpressionPath(".fd")->GetValueAsUnsigned(0)); 685 int fd = loc->GetAsDictionary() local 689 if (fd != 0) { 690 summary = summary + " on file descriptor " + Sprintf("%d", fd); 782 } else if (type == "fd") { 783 int fd = loc->GetAsDictionary() local 787 result = Sprintf("Location is file descriptor %d", fd); 984 int fd = local [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/posix/ |
H A D | PipePosix.cpp | 53 bool SetCloexecFlag(int fd) { argument 54 int flags = ::fcntl(fd, F_GETFD); 57 return (::fcntl(fd, F_SETFD, flags | FD_CLOEXEC) == 0); 161 int fd = llvm::sys::RetryAfterSignal(-1, ::open, name.data(), flags); local 162 if (fd != -1) 163 m_fds[READ] = fd; 192 int fd = ::open(name.data(), flags); local 193 if (fd == -1) { 202 m_fds[WRITE] = fd; 214 const int fd local 220 const int fd = m_fds[WRITE]; local 263 const int fd = GetReadFileDescriptor(); local 295 const int fd = GetWriteFileDescriptor(); local [all...] |
H A D | ConnectionFileDescriptorPosix.cpp | 61 const char *ConnectionFileDescriptor::FD_SCHEME = "fd"; 86 ConnectionFileDescriptor::ConnectionFileDescriptor(int fd, bool owns_fd) argument 89 m_write_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionWrite, owns_fd); 90 m_read_sp = std::make_shared<NativeFile>(fd, File::eOpenOptionRead, false); 95 "%p ConnectionFileDescriptor::ConnectionFileDescriptor (fd = " 97 static_cast<void *>(this), fd, owns_fd); 186 int fd = -1; local 188 if (!addr->getAsInteger(0, fd)) { 191 // from the file descriptor and making sure it isn't a bad fd. 193 int flags = ::fcntl(fd, F_GETF 240 int fd = llvm::sys::RetryAfterSignal(-1, ::open, addr_str.c_str(), O_RDWR); local [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/source/Host/common/ |
H A D | Terminal.cpp | 105 // Save the current state of the TTY for the file descriptor "fd" and if 108 bool TerminalState::Save(int fd, bool save_process_group) { argument 109 m_tty.SetFileDescriptor(fd); 112 m_tflags = ::fcntl(fd, F_GETFL, 0); 117 int err = ::tcgetattr(fd, m_termios_up.get()); 143 const int fd = m_tty.GetFileDescriptor(); local 145 fcntl(fd, F_SETFL, m_tflags); 149 tcsetattr(fd, TCSANOW, m_termios_up.get()); 157 tcsetpgrp(fd, m_process_group); 226 // Save the state at index "idx" for file descriptor "fd" an 230 Save(uint32_t idx, int fd, bool save_process_group) argument [all...] |
H A D | TCPSocket.cpp | 193 int fd = Socket::CreateSocket(address.GetFamily(), kType, IPPROTO_TCP, local 204 ::setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, option_value_p, 214 ::bind(fd, &listen_address.sockaddr(), listen_address.GetLength()); 216 err = ::listen(fd, backlog); 219 CLOSE_SOCKET(fd); 225 if (getsockname(fd, &address.sockaddr(), &sa_len) == 0) 228 m_listen_sockets[fd] = address; 255 auto fd = socket.first; local 259 io_sp, [fd, inherit, &sock, &AcceptAddr, &error, 262 sock = AcceptSocket(fd, [all...] |
H A D | Socket.cpp | 395 LLDB_LOGF(log, "%p Socket::Close (fd = %" PRIu64 ")", 466 int fd = syscall(__NR_accept, sockfd, addr, addrlen); local 467 if (fd >= 0 && !child_processes_inherit) { 468 int flags = ::fcntl(fd, F_GETFD); 469 if (flags != -1 && ::fcntl(fd, F_SETFD, flags | FD_CLOEXEC) != -1) 470 return fd; 472 close(fd); 474 return fd; 480 NativeSocket fd = llvm::sys::RetryAfterSignal( 483 NativeSocket fd [all...] |