Searched refs:stdin_pipe (Results 1 – 4 of 4) sorted by relevance
| /freebsd-11-stable/contrib/libarchive/libarchive/ |
| HD | 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-11-stable/lib/libdpv/ |
| HD | 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()
|
| HD | 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-11-stable/usr.sbin/cron/cron/ |
| HD | 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"); 433 close(stdin_pipe[WRITE_PIPE]);
|