Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DFileAction.cpp23 m_fd = -1; in Clear()
38 m_fd = fd; in Open()
57 m_fd = fd; in Close()
59 return m_fd >= 0; in Close()
66 m_fd = fd; in Duplicate()
69 return m_fd >= 0; in Duplicate()
76 stream.Printf("close fd %d", m_fd); in Dump()
79 stream.Printf("duplicate fd %d to %d", m_fd, m_arg); in Dump()
85 stream.Printf("open fd %d with '%s', OFLAGS = 0x%x", m_fd, in Dump()
H A DLockFileBase.cpp21 : m_fd(fd), m_locked(false), m_start(0), m_len(0) {} in LockFileBase()
62 bool LockFileBase::IsValidFile() const { return m_fd != -1; } in IsValidFile()
H A DTerminal.cpp31 bool Terminal::IsATerminal() const { return m_fd >= 0 && ::isatty(m_fd); } in IsATerminal()
51 if (::tcgetattr(m_fd, &data.m_termios) != 0) in GetData()
66 if (::tcsetattr(m_fd, TCSANOW, &data.m_termios) != 0) in SetData()
H A DSocket.cpp69 m_fd = kInvalidFD; in SharedSocket()
76 m_fd = m_socket_pipe.GetReadPipe(); in SharedSocket()
78 m_fd = socket->GetNativeSocket(); in SharedSocket()
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/
H A DTerminal.h41 Terminal(int fd = -1) : m_fd(fd) {}
47 int GetFileDescriptor() const { return m_fd; }
49 void SetFileDescriptor(int fd) { m_fd = fd; }
51 bool FileDescriptorIsValid() const { return m_fd != -1; }
53 void Clear() { m_fd = -1; }
74 int m_fd; // This may or may not be a terminal file descriptor
42 Terminal(int fd = -1) : m_fd(fd) {} m_fd() function
75 int m_fd; // This may or may not be a terminal file descriptor global() 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 DSocket.h54 shared_fd_t GetSendableFD() { return m_fd; } in GetSendableFD()
65 shared_fd_t m_fd; variable
H A DLockFileBase.h49 int m_fd; // not owned. variable
/freebsd/contrib/llvm-project/lldb/source/Host/posix/
H A DLockFilePosix.cpp40 return fileLock(m_fd, F_SETLKW, F_WRLCK, start, len); in DoWriteLock()
44 return fileLock(m_fd, F_SETLK, F_WRLCK, start, len); in DoTryWriteLock()
48 return fileLock(m_fd, F_SETLKW, F_RDLCK, start, len); in DoReadLock()
52 return fileLock(m_fd, F_SETLK, F_RDLCK, start, len); in DoTryReadLock()
56 return fileLock(m_fd, F_SETLK, F_UNLCK, m_start, m_len); in DoUnlock()
/freebsd/contrib/atf/atf-c/detail/
H A Dprocess_test.c173 int m_fd;
191 s->m_fd = open("stdout", O_WRONLY | O_CREAT | O_TRUNC, 0644); in connect_stream_init()
195 s->m_fd = open("stderr", O_WRONLY | O_CREAT | O_TRUNC, 0644); in connect_stream_init()
201 ATF_REQUIRE(s->m_fd != -1); in connect_stream_init()
204 RE(atf_process_stream_init_connect(&s->m_base.m_sb, src_fd, s->m_fd)); in connect_stream_init()
213 ATF_REQUIRE(close(s->m_fd) != -1); in connect_stream_fini()
222 int m_fd;
244 s->m_fd = STDOUT_FILENO; in inherit_stream_init()
248 s->m_fd = STDERR_FILENO; in inherit_stream_init()
256 s->m_old_fd = dup(s->m_fd); in inherit_stream_init()
175 int m_fd; global() member
224 int m_fd; global() member
306 int m_fd; global() member
[all...]
H A Dprocess.h50 int m_fd;
49 int m_fd; global() member
H A Dprocess.c157 sb->m_fd = fd; in atf_process_stream_init_redirect_fd()
342 err = safe_dup(sp->m_sb->m_fd, procfd); in child_connect()
/freebsd/contrib/atf/atf-sh/
H A Datf-check.cpp114 int m_fd;
119 m_fd(-1) in temp_file()
134 m_fd = ::mkstemp(file_ch_arr); in ~temp_file()
135 if (m_fd == -1) in ~temp_file()
162 if (::write(m_fd, text.c_str(), text.size()) == -1) in close()
169 if (m_fd != -1) {
171 ::close(m_fd); in get_monotonic_useconds()
172 m_fd = -1; in get_monotonic_useconds()
112 int m_fd; global() member in __anon7e9de9140111::temp_file