Home | History | Annotate | Download | only in pipe

Lines Matching refs:fd

32 static int fd[2];
39 SAFE_CLOSE(fd[0]);
40 SAFE_WRITE(1, fd[1], wrbuf, SIZE);
44 SAFE_WRITE(1, fd[1], wrbuf, SIZE);
57 maybe_run_child(&do_child, "dd", &fd[0], &fd[1]);
60 TEST(pipe(fd));
69 if (self_exec(av[0], "dd", fd[0], fd[1]) < 0)
77 SAFE_CLOSE(fd[1]);
78 SAFE_READ(1, fd[0], rdbuf, SIZE);
86 SAFE_CLOSE(fd[0]);