Searched refs:stdin_pipe (Results 1 - 2 of 2) sorted by relevance

/freebsd-9.3-release/contrib/libarchive/libarchive/
H A Dfilter_fork.c60 int stdin_pipe[2], stdout_pipe[2], tmp; local
62 if (pipe(stdin_pipe) == -1)
64 if (stdin_pipe[0] == 1 /* stdout */) {
65 if ((tmp = dup(stdin_pipe[0])) == -1)
67 close(stdin_pipe[0]);
68 stdin_pipe[0] = tmp;
87 close(stdin_pipe[1]);
89 if (dup2(stdin_pipe[0], 0 /* stdin */) == -1)
91 if (stdin_pipe[0] != 0 /* stdin */)
92 close(stdin_pipe[
[all...]
/freebsd-9.3-release/usr.sbin/cron/cron/
H A Ddo_command.c84 int stdin_pipe[2], stdout_pipe[2]; local
164 pipe(stdin_pipe); /* child's stdin */
250 close(stdin_pipe[WRITE_PIPE]);
256 close(STDIN); dup2(stdin_pipe[READ_PIPE], STDIN);
262 close(stdin_pipe[READ_PIPE]);
359 close(stdin_pipe[READ_PIPE]);
374 register FILE *out = fdopen(stdin_pipe[WRITE_PIPE], "w");
416 * stdin_pipe[WRITE_PIPE] to be closed, too.
427 close(stdin_pipe[WRITE_PIPE]);

Completed in 62 milliseconds