Searched refs:stdin_pipe (Results 1 – 4 of 4) sorted by relevance
| /freebsd-10-stable/contrib/libarchive/libarchive/ |
| D | filter_fork_posix.c | 80 int stdin_pipe[2], stdout_pipe[2], tmp; in __archive_create_child() local 93 if (pipe(stdin_pipe) == -1) in __archive_create_child() 95 if (stdin_pipe[0] == 1 /* stdout */) { in __archive_create_child() 96 if ((tmp = dup(stdin_pipe[0])) == -1) in __archive_create_child() 98 close(stdin_pipe[0]); in __archive_create_child() 99 stdin_pipe[0] = tmp; in __archive_create_child() 117 r = posix_spawn_file_actions_addclose(&actions, stdin_pipe[1]); in __archive_create_child() 124 r = posix_spawn_file_actions_adddup2(&actions, stdin_pipe[0], 0); in __archive_create_child() 127 if (stdin_pipe[0] != 0 /* stdin */) { in __archive_create_child() 128 r = posix_spawn_file_actions_addclose(&actions, stdin_pipe[0]); in __archive_create_child() [all …]
|
| /freebsd-10-stable/lib/libdpv/ |
| D | util.c | 68 int stdin_pipe[2] = { -1, -1 }; in shell_spawn_pipecmd() local 82 if (pipe(stdin_pipe) < 0) in shell_spawn_pipecmd() 99 posix_spawn_file_actions_adddup2(&action, stdin_pipe[0], STDIN_FILENO); in shell_spawn_pipecmd() 100 posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); in shell_spawn_pipecmd() 105 return stdin_pipe[1]; in shell_spawn_pipecmd()
|
| D | dialog_util.c | 238 int stdin_pipe[2] = { -1, -1 }; in dialog_spawn_gauge() local 310 if (pipe(stdin_pipe) < 0) in dialog_spawn_gauge() 327 posix_spawn_file_actions_adddup2(&action, stdin_pipe[0], STDIN_FILENO); in dialog_spawn_gauge() 328 posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); in dialog_spawn_gauge() 335 return (stdin_pipe[1]); in dialog_spawn_gauge()
|
| /freebsd-10-stable/usr.sbin/cron/cron/ |
| D | do_command.c | 84 int stdin_pipe[2], stdout_pipe[2]; local 164 if (pipe(stdin_pipe) != 0 || pipe(stdout_pipe) != 0) { 252 close(stdin_pipe[WRITE_PIPE]); 258 close(STDIN); dup2(stdin_pipe[READ_PIPE], STDIN); 264 close(stdin_pipe[READ_PIPE]); 362 close(stdin_pipe[READ_PIPE]); 377 register FILE *out = fdopen(stdin_pipe[WRITE_PIPE], "w"); 430 close(stdin_pipe[WRITE_PIPE]);
|