Searched refs:stdout_pipe (Results 1 – 2 of 2) 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() 99 if (pipe(stdout_pipe) == -1) in __archive_create_child() 101 if (stdout_pipe[1] == 0 /* stdin */) { in __archive_create_child() 102 if ((tmp = dup(stdout_pipe[1])) == -1) in __archive_create_child() 104 close(stdout_pipe[1]); in __archive_create_child() 105 stdout_pipe[1] = tmp; in __archive_create_child() 118 r = posix_spawn_file_actions_addclose(&actions, stdout_pipe[0]); in __archive_create_child() 131 r = posix_spawn_file_actions_adddup2(&actions, stdout_pipe[1], 1); in __archive_create_child() 134 if (stdout_pipe[1] != 1 /* stdout */) { in __archive_create_child() 135 r = posix_spawn_file_actions_addclose(&actions, stdout_pipe[ in __archive_create_child() 80 int stdin_pipe[2], stdout_pipe[2], tmp; __archive_create_child() local [all...] |
/freebsd/usr.sbin/cron/cron/ |
H A D | do_command.c | 83 int stdin_pipe[2], stdout_pipe[2]; in child_process() local 160 if (pipe(stdin_pipe) != 0 || pipe(stdout_pipe) != 0) { in child_process() 250 close(stdout_pipe[READ_PIPE]); in child_process() 256 close(STDOUT); dup2(stdout_pipe[WRITE_PIPE], STDOUT); in child_process() 262 close(stdout_pipe[WRITE_PIPE]); in child_process() 411 close(stdout_pipe[WRITE_PIPE]); in child_process() 440 close(stdout_pipe[READ_PIPE]); in child_process() 490 FILE *in = fdopen(stdout_pipe[READ_PIPE], "r"); in child_process()
|