Lines Matching refs:fds
287 int fds[2];
288 if (pipe(fds) != 0) {
296 dup2(fds[0], STDIN_FILENO);
297 close(fds[0]);
298 fXargsInput = fds[1]; // write to in, appears on command's stdin
300 if (pipe(fds) != 0) {
309 dup2(fds[1], STDOUT_FILENO);
310 close(fds[1]);
311 int out = fds[0]; // read from out, taken from command's stdout
313 if (pipe(fds) != 0) {
323 dup2(fds[1], STDERR_FILENO);
324 close(fds[1]);
325 int err = fds[0]; // read from err, taken from command's stderr