Home
last modified time | relevance | path

Searched refs:m_fd (Results 1 – 17 of 17) sorted by relevance

/llvm-project-15.0.7/lldb/tools/debugserver/source/
H A DRNBSocket.cpp154 m_fd = -1; in Listen()
193 if (m_fd == -1) in Connect()
219 m_fd = fd; in useFD()
231 m_fd = -1; in ConnectToService()
235 if (m_fd == -1) { in ConnectToService()
247 if (m_fd == -1) { in OpenFile()
273 m_fd = -1; in Disconnect()
288 if (m_fd == -1) in Read()
307 m_fd = -1; in Read()
310 m_fd = -1; in Read()
[all …]
H A DTTYState.cpp19 : m_fd(-1), m_tflags(-1), m_ttystateErr(-1), m_processGroup(-1) {} in TTYState()
25 m_fd = fd; in GetTTYState()
33 m_fd = -1; in GetTTYState()
44 fcntl(m_fd, F_SETFL, m_tflags); in SetTTYState()
47 tcsetattr(m_fd, TCSANOW, &m_ttystate); in SetTTYState()
54 tcsetpgrp(m_fd, m_processGroup); in SetTTYState()
H A DRNBSocket.h31 : m_fd(-1), in RNBSocket()
54 bool IsConnected() const { return m_fd != -1; } in IsConnected()
67 int m_fd; // Socket we use to communicate once conn established variable
H A DTTYState.h30 bool FileDescriptorValid() const { return m_fd >= 0; } in FileDescriptorValid()
36 int m_fd; // File descriptor
/llvm-project-15.0.7/lldb/unittests/Host/posix/
H A DTerminalTest.cpp24 int m_fd; member in TerminalTest
32 m_fd = m_pty.GetSecondaryFileDescriptor(); in SetUp()
33 ASSERT_NE(m_fd, -1); in SetUp()
34 m_term.SetFileDescriptor(m_fd); in SetUp()
55 ASSERT_EQ(tcgetattr(m_fd, &terminfo), 0); in TEST_F()
59 ASSERT_EQ(tcgetattr(m_fd, &terminfo), 0); in TEST_F()
67 ASSERT_EQ(tcgetattr(m_fd, &terminfo), 0); in TEST_F()
71 ASSERT_EQ(tcgetattr(m_fd, &terminfo), 0); in TEST_F()
79 ASSERT_EQ(tcgetattr(m_fd, &terminfo), 0); in TEST_F()
95 ASSERT_EQ(tcgetattr(m_fd, &terminfo), 0); in TEST_F()
[all …]
/llvm-project-15.0.7/lldb/source/Host/common/
H A DFileAction.cpp23 m_fd = -1; in Clear()
36 m_fd = fd; in Open()
55 m_fd = fd; in Close()
57 return m_fd >= 0; in Close()
64 m_fd = fd; in Duplicate()
67 return m_fd >= 0; in Duplicate()
74 stream.Printf("close fd %d", m_fd); in Dump()
77 stream.Printf("duplicate fd %d to %d", m_fd, m_arg); in Dump()
83 stream.Printf("open fd %d with '%s', OFLAGS = 0x%x", m_fd, in Dump()
H A DLockFileBase.cpp19 : m_fd(fd), m_locked(false), m_start(0), m_len(0) {} in LockFileBase()
60 bool LockFileBase::IsValidFile() const { return m_fd != -1; } in IsValidFile()
H A DTerminal.cpp30 bool Terminal::IsATerminal() const { return m_fd >= 0 && ::isatty(m_fd); } in IsATerminal()
50 if (::tcgetattr(m_fd, &data.m_termios) != 0) in GetData()
65 if (::tcsetattr(m_fd, TCSANOW, &data.m_termios) != 0) in SetData()
/llvm-project-15.0.7/lldb/include/lldb/Host/
H A DTerminal.h42 Terminal(int fd = -1) : m_fd(fd) {} in m_fd() function
48 int GetFileDescriptor() const { return m_fd; } in GetFileDescriptor()
50 void SetFileDescriptor(int fd) { m_fd = fd; } in SetFileDescriptor()
52 bool FileDescriptorIsValid() const { return m_fd != -1; } in FileDescriptorIsValid()
54 void Clear() { m_fd = -1; } in Clear()
75 int m_fd; // This may or may not be a terminal file descriptor variable
H A DFileAction.h36 int GetFD() const { return m_fd; } in GetFD()
50 int m_fd = -1; // An existing file descriptor variable
H A DLockFileBase.h49 int m_fd; // not owned. variable
/llvm-project-15.0.7/lldb/source/Host/posix/
H A DLockFilePosix.cpp41 return fileLock(m_fd, F_SETLKW, F_WRLCK, start, len); in DoWriteLock()
45 return fileLock(m_fd, F_SETLK, F_WRLCK, start, len); in DoTryWriteLock()
49 return fileLock(m_fd, F_SETLKW, F_RDLCK, start, len); in DoReadLock()
53 return fileLock(m_fd, F_SETLK, F_RDLCK, start, len); in DoTryReadLock()
57 return fileLock(m_fd, F_SETLK, F_UNLCK, m_start, m_len); in DoUnlock()
/llvm-project-15.0.7/lldb/tools/lldb-vscode/
H A DIOStream.cpp42 ::close(m_fd); in ~StreamDescriptor()
52 m_fd = other.m_fd; in operator =()
67 sd.m_fd = fd; in from_file()
78 bytes_written = ::write(descriptor.m_fd, str.data(), str.size()); in write_full()
102 bytes_read = ::read(descriptor.m_fd, ptr, length); in read_full()
H A DIOStream.h49 int m_fd; member
/llvm-project-15.0.7/lldb/source/Plugins/Process/Linux/
H A DPerf.h263 : m_fd(new long(fd), resource_handle::FileDescriptorDeleter()), in PerfEvent()
300 resource_handle::FileDescriptorUP m_fd; variable
H A DPerf.cpp173 long PerfEvent::GetFd() const { return *(m_fd.get()); } in GetFd()
298 if (ioctl(*m_fd, PERF_EVENT_IOC_DISABLE, PERF_IOC_FLAG_GROUP) < 0) in DisableWithIoctl()
313 if (ioctl(*m_fd, PERF_EVENT_IOC_ENABLE, PERF_IOC_FLAG_GROUP) < 0) in EnableWithIoctl()
/llvm-project-15.0.7/lldb/examples/interposing/darwin/fd_interposing/
H A DFDInterposing.cpp153 m_fd(fd), m_err(err), m_is_create(is_create) {} in FDEvent()
165 int GetFD() const { return m_fd; } in GetFD()
185 int m_fd; member in fd_interposing::FDEvent
424 log_to_fd(log_fd, "\nfd=%i was created with this event:\n", m_fd); in Dump()