Lines Matching defs:m_fd
172 int m_fd;
190 s->m_fd = open("stdout", O_WRONLY | O_CREAT | O_TRUNC, 0644);
194 s->m_fd = open("stderr", O_WRONLY | O_CREAT | O_TRUNC, 0644);
200 ATF_REQUIRE(s->m_fd != -1);
203 RE(atf_process_stream_init_connect(&s->m_base.m_sb, src_fd, s->m_fd));
212 ATF_REQUIRE(close(s->m_fd) != -1);
221 int m_fd;
243 s->m_fd = STDOUT_FILENO;
247 s->m_fd = STDERR_FILENO;
255 s->m_old_fd = dup(s->m_fd);
257 ATF_REQUIRE(close(s->m_fd) != -1);
259 s->m_fd);
268 ATF_REQUIRE(dup2(s->m_old_fd, s->m_fd) != -1);
303 int m_fd;
319 s->m_fd = open("stdout", O_WRONLY | O_CREAT | O_TRUNC, 0644);
322 s->m_fd = open("stderr", O_WRONLY | O_CREAT | O_TRUNC, 0644);
327 ATF_REQUIRE(s->m_fd != -1);
330 RE(atf_process_stream_init_redirect_fd(&s->m_base.m_sb, s->m_fd));
339 ATF_REQUIRE(close(s->m_fd) != -1);