Searched refs:stdin_pipe (Results 1 - 4 of 4) sorted by relevance
/freebsd-10.2-release/contrib/libarchive/libarchive/ |
H A D | filter_fork_posix.c | 79 int stdin_pipe[2], stdout_pipe[2], tmp; local 92 if (pipe(stdin_pipe) == -1) 94 if (stdin_pipe[0] == 1 /* stdout */) { 95 if ((tmp = dup(stdin_pipe[0])) == -1) 97 close(stdin_pipe[0]); 98 stdin_pipe[0] = tmp; 116 r = posix_spawn_file_actions_addclose(&actions, stdin_pipe[1]); 123 r = posix_spawn_file_actions_adddup2(&actions, stdin_pipe[0], 0); 126 if (stdin_pipe[0] != 0 /* stdin */) { 127 r = posix_spawn_file_actions_addclose(&actions, stdin_pipe[ [all...] |
/freebsd-10.2-release/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]); 106 return stdin_pipe[1];
|
H A D | dialog_util.c | 238 int stdin_pipe[2] = { -1, -1 }; local 303 if (pipe(stdin_pipe) < 0) 320 posix_spawn_file_actions_adddup2(&action, stdin_pipe[0], STDIN_FILENO); 321 posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); 329 return (stdin_pipe[1]);
|
/freebsd-10.2-release/usr.sbin/cron/cron/ |
H A D | do_command.c | 84 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 57 milliseconds