Lines Matching refs:m_fd
176 int m_fd;
194 s->m_fd = open("stdout", O_WRONLY | O_CREAT | O_TRUNC, 0644);
198 s->m_fd = open("stderr", O_WRONLY | O_CREAT | O_TRUNC, 0644);
204 ATF_REQUIRE(s->m_fd != -1);
207 RE(atf_process_stream_init_connect(&s->m_base.m_sb, src_fd, s->m_fd));
216 ATF_REQUIRE(close(s->m_fd) != -1);
225 int m_fd;
247 s->m_fd = STDOUT_FILENO;
251 s->m_fd = STDERR_FILENO;
259 s->m_old_fd = dup(s->m_fd);
261 ATF_REQUIRE(close(s->m_fd) != -1);
263 s->m_fd);
272 ATF_REQUIRE(dup2(s->m_old_fd, s->m_fd) != -1);
307 int m_fd;
323 s->m_fd = open("stdout", O_WRONLY | O_CREAT | O_TRUNC, 0644);
326 s->m_fd = open("stderr", O_WRONLY | O_CREAT | O_TRUNC, 0644);
331 ATF_REQUIRE(s->m_fd != -1);
334 RE(atf_process_stream_init_redirect_fd(&s->m_base.m_sb, s->m_fd));
343 ATF_REQUIRE(close(s->m_fd) != -1);