Searched refs:stdin_pipe (Results 1 – 5 of 5) sorted by relevance
| /freebsd/contrib/libarchive/libarchive/ |
| H A D | filter_fork_posix.c | 78 int stdin_pipe[2], stdout_pipe[2], tmp; in __archive_create_child() local 99 if (pipe(stdin_pipe) == -1) in __archive_create_child() 101 if (stdin_pipe[0] == 1 /* stdout */) { in __archive_create_child() 102 if ((tmp = dup(stdin_pipe[0])) == -1) in __archive_create_child() 104 close(stdin_pipe[0]); in __archive_create_child() 105 stdin_pipe[0] = tmp; in __archive_create_child() 133 r = posix_spawn_file_actions_addclose(&actions, stdin_pipe[1]); in __archive_create_child() 140 r = posix_spawn_file_actions_adddup2(&actions, stdin_pipe[0], 0); in __archive_create_child() 143 if (stdin_pipe[0] != 0 /* stdin */) { in __archive_create_child() 144 r = posix_spawn_file_actions_addclose(&actions, stdin_pipe[0]); in __archive_create_child() [all …]
|
| /freebsd/libexec/flua/lfbsd/ |
| H A D | lfbsd.c | 93 int stdin_pipe[2] = {-1, -1}; in lua_exec() local 103 if (pipe(stdin_pipe) < 0) { in lua_exec() 110 close_pipes(stdin_pipe); in lua_exec() 118 proc->stdin_fileno = stdin_pipe[1]; in lua_exec() 121 posix_spawn_file_actions_adddup2(&action, stdin_pipe[0], STDIN_FILENO); in lua_exec() 122 posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); in lua_exec() 123 if (stdin_pipe[0] != STDIN_FILENO) in lua_exec() 124 posix_spawn_file_actions_addclose(&action, stdin_pipe[0]); in lua_exec() 143 close_pipes(stdin_pipe); in lua_exec() 156 close(stdin_pipe[0]); in lua_exec()
|
| /freebsd/lib/libdpv/ |
| H A D | util.c | 66 int stdin_pipe[2] = { -1, -1 }; in shell_spawn_pipecmd() local 80 if (pipe(stdin_pipe) < 0) in shell_spawn_pipecmd() 97 posix_spawn_file_actions_adddup2(&action, stdin_pipe[0], STDIN_FILENO); in shell_spawn_pipecmd() 98 posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); in shell_spawn_pipecmd() 103 return stdin_pipe[1]; in shell_spawn_pipecmd()
|
| H A D | dialog_util.c | 236 int stdin_pipe[2] = { -1, -1 }; in dialog_spawn_gauge() local 308 if (pipe(stdin_pipe) < 0) in dialog_spawn_gauge() 325 posix_spawn_file_actions_adddup2(&action, stdin_pipe[0], STDIN_FILENO); in dialog_spawn_gauge() 326 posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); in dialog_spawn_gauge() 333 return (stdin_pipe[1]); in dialog_spawn_gauge()
|
| /freebsd/usr.sbin/cron/cron/ |
| H A D | do_command.c | 118 int stdin_pipe[2], stdout_pipe[2]; in child_process() local 239 if (pipe(stdin_pipe) != 0 || pipe(stdout_pipe) != 0) { in child_process() 346 close(stdin_pipe[WRITE_PIPE]); in child_process() 352 close(STDIN); dup2(stdin_pipe[READ_PIPE], STDIN); in child_process() 358 close(stdin_pipe[READ_PIPE]); in child_process() 538 close(stdin_pipe[READ_PIPE]); in child_process() 553 FILE *out = fdopen(stdin_pipe[WRITE_PIPE], "w"); in child_process() 606 close(stdin_pipe[WRITE_PIPE]); in child_process()
|