Searched refs:stdin_pipe (Results 1 - 4 of 4) sorted by relevance
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | filter_fork_posix.c | 80 int stdin_pipe[2], stdout_pipe[2], tmp; local 93 if (pipe(stdin_pipe) == -1) 95 if (stdin_pipe[0] == 1 /* stdout */) { 96 if ((tmp = dup(stdin_pipe[0])) == -1) 98 close(stdin_pipe[0]); 99 stdin_pipe[0] = tmp; 117 r = posix_spawn_file_actions_addclose(&actions, stdin_pipe[1]); 124 r = posix_spawn_file_actions_adddup2(&actions, stdin_pipe[0], 0); 127 if (stdin_pipe[0] != 0 /* stdin */) { 128 r = posix_spawn_file_actions_addclose(&actions, stdin_pipe[ [all...] |
/freebsd-11-stable/lib/libdpv/ |
H A D | util.c | 68 int stdin_pipe[2] = { -1, -1 }; local 82 if (pipe(stdin_pipe) < 0) 99 posix_spawn_file_actions_adddup2(&action, stdin_pipe[0], STDIN_FILENO); 100 posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); 105 return stdin_pipe[1];
|
H A D | dialog_util.c | 238 int stdin_pipe[2] = { -1, -1 }; local 310 if (pipe(stdin_pipe) < 0) 327 posix_spawn_file_actions_adddup2(&action, stdin_pipe[0], STDIN_FILENO); 328 posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); 335 return (stdin_pipe[1]);
|
/freebsd-11-stable/usr.sbin/cron/cron/ |
H A D | do_command.c | 91 int stdin_pipe[2], stdout_pipe[2]; local 175 if (pipe(stdin_pipe) != 0 || pipe(stdout_pipe) != 0) { 263 close(stdin_pipe[WRITE_PIPE]); 269 close(STDIN); dup2(stdin_pipe[READ_PIPE], STDIN); 275 close(stdin_pipe[READ_PIPE]); 365 close(stdin_pipe[READ_PIPE]); 380 register FILE *out = fdopen(stdin_pipe[WRITE_PIPE], "w"); 422 * stdin_pipe[WRITE_PIPE] to be closed, too. 433 close(stdin_pipe[WRITE_PIPE]);
|
Completed in 67 milliseconds