Home
last modified time | relevance | path

Searched refs:stdin_pipe (Results 1 – 5 of 5) sorted by relevance

/freebsd/contrib/libarchive/libarchive/
H A Dfilter_fork_posix.c78 int stdin_pipe[2], stdout_pipe[2], tmp; in __archive_create_child()
91 if (pipe(stdin_pipe) == -1) in __archive_create_child()
93 if (stdin_pipe[0] == 1 /* stdout */) { in __archive_create_child()
94 if ((tmp = dup(stdin_pipe[0])) == -1) in __archive_create_child()
96 close(stdin_pipe[0]); in __archive_create_child()
97 stdin_pipe[0] = tmp; in __archive_create_child()
115 r = posix_spawn_file_actions_addclose(&actions, stdin_pipe[1]); in __archive_create_child()
122 r = posix_spawn_file_actions_adddup2(&actions, stdin_pipe[0], 0); in __archive_create_child()
125 if (stdin_pipe[0] != 0 /* stdin */) { in __archive_create_child()
126 r = posix_spawn_file_actions_addclose(&actions, stdin_pipe[ in __archive_create_child()
80 int stdin_pipe[2], stdout_pipe[2], tmp; __archive_create_child() local
[all...]
/freebsd/libexec/flua/modules/
H A Dlfbsd.c70 int stdin_pipe[2] = {-1, -1}; in lua_exec() local
77 if (pipe(stdin_pipe) < 0) { in lua_exec()
85 posix_spawn_file_actions_adddup2(&action, stdin_pipe[0], STDIN_FILENO); in lua_exec()
86 posix_spawn_file_actions_addclose(&action, stdin_pipe[1]); in lua_exec()
114 if (stdin_pipe[0] != -1) in lua_exec()
115 close(stdin_pipe[0]); in lua_exec()
116 if (stdin_pipe[1] != -1) in lua_exec()
117 close(stdin_pipe[1]); in lua_exec()
/freebsd/lib/libdpv/
H A Dutil.c66 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 Ddialog_util.c236 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 Ddo_command.c83 int stdin_pipe[2], stdout_pipe[2]; in child_process() local
160 if (pipe(stdin_pipe) != 0 || pipe(stdout_pipe) != 0) { in child_process()
249 close(stdin_pipe[WRITE_PIPE]); in child_process()
255 close(STDIN); dup2(stdin_pipe[READ_PIPE], STDIN); in child_process()
261 close(stdin_pipe[READ_PIPE]); in child_process()
410 close(stdin_pipe[READ_PIPE]); in child_process()
425 FILE *out = fdopen(stdin_pipe[WRITE_PIPE], "w"); in child_process()
478 close(stdin_pipe[WRITE_PIPE]); in child_process()