Lines Matching refs:pipes
1 /* Utilities to execute a program in a subprocess (possibly linked by pipes
581 volatile int pipes[2]; /* [0]:reader,[1]:writer. */
588 if (pipe2 ((int *)pipes, O_CLOEXEC))
591 if (pipe ((int *)pipes))
595 if (fcntl (pipes[1], F_SETFD, FD_CLOEXEC) == -1)
597 close (pipes[0]);
598 close (pipes[1]);
632 close (pipes[0]);
633 close (pipes[1]);
646 close (pipes[0]);
702 || write (pipes[1], &failed, sizeof (failed)) != sizeof (failed))
738 close (pipes[1]);
739 ssize_t len = read (pipes[0], &failed, sizeof (failed));
742 close (pipes[0]);