Lines Matching refs:dup2
137 This uses _pipe(), dup2(), and spawnv(). It could also be implemented
181 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0)
182 && (!pipe_stdout || dup2 (ifd[1], STDOUT_FILENO) >= 0)
186 || (dup2 (nulloutfd, STDERR_FILENO) >= 0
192 || (dup2 (stdinfd, STDIN_FILENO) >= 0
198 || (dup2 (stdoutfd, STDOUT_FILENO) >= 0
201 but it inherits all open()ed or dup2()ed file handles (which is what
215 dup2 (orig_stderr, STDERR_FILENO), close (orig_stderr);
217 dup2 (orig_stdout, STDOUT_FILENO), close (orig_stdout);
219 dup2 (orig_stdin, STDIN_FILENO), close (orig_stdin);
374 if ((!pipe_stdin || dup2 (ofd[0], STDIN_FILENO) >= 0)
375 && (!pipe_stdout || dup2 (ifd[1], STDOUT_FILENO) >= 0)
383 || (dup2 (nulloutfd, STDERR_FILENO) >= 0
389 || (dup2 (stdinfd, STDIN_FILENO) >= 0
395 || (dup2 (stdoutfd, STDOUT_FILENO) >= 0