Searched refs:stdin_pipe (Results 1 – 4 of 4) sorted by relevance
| /freebsd-12.1/contrib/libarchive/libarchive/ |
| H A D | filter_fork_posix.c | 92 if (pipe(stdin_pipe) == -1) in __archive_create_child() 97 close(stdin_pipe[0]); in __archive_create_child() 98 stdin_pipe[0] = tmp; in __archive_create_child() 126 if (stdin_pipe[0] != 0 /* stdin */) { in __archive_create_child() 156 close(stdin_pipe[1]); in __archive_create_child() 160 if (stdin_pipe[0] != 0 /* stdin */) in __archive_create_child() 161 close(stdin_pipe[0]); in __archive_create_child() 171 close(stdin_pipe[0]); in __archive_create_child() 174 *child_stdin = stdin_pipe[1]; in __archive_create_child() 191 close(stdin_pipe[0]); in __archive_create_child() [all …]
|
| /freebsd-12.1/lib/libdpv/ |
| H A 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()
|
| H A 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-12.1/usr.sbin/cron/cron/ |
| H A D | do_command.c | 94 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]); 373 close(stdin_pipe[READ_PIPE]); 388 register FILE *out = fdopen(stdin_pipe[WRITE_PIPE], "w"); 441 close(stdin_pipe[WRITE_PIPE]);
|