Lines Matching refs:pipefd
122 int pipefd[2];
129 if (pipe(pipefd) == -1)
138 close(pipefd[0]);
139 dup2(pipefd[1], STDOUT_FILENO);
151 close(pipefd[1]);
160 while ((nread = read(pipefd[0], buf, sizeof(buf) - 1)) > 0) {
166 close(pipefd[0]);
1142 int pipefd[2];
1144 rc = pipe2(pipefd, O_NONBLOCK);
1149 close(pipefd[0]);
1153 pipefd[1]);
1159 pipes[f] = pipefd[0];
1160 close(pipefd[1]);