Searched refs:stdout_pipe (Results 1 – 3 of 3) sorted by relevance
| /dragonfly/contrib/libarchive/libarchive/ |
| HD | filter_fork_posix.c | 80 int stdin_pipe[2], stdout_pipe[2], tmp; in __archive_create_child() local 101 if (pipe(stdout_pipe) == -1) in __archive_create_child() 103 if (stdout_pipe[1] == 0 /* stdin */) { in __archive_create_child() 104 if ((tmp = dup(stdout_pipe[1])) == -1) in __archive_create_child() 106 close(stdout_pipe[1]); in __archive_create_child() 107 stdout_pipe[1] = tmp; in __archive_create_child() 120 r = posix_spawn_file_actions_addclose(&actions, stdout_pipe[0]); in __archive_create_child() 133 r = posix_spawn_file_actions_adddup2(&actions, stdout_pipe[1], 1); in __archive_create_child() 136 if (stdout_pipe[1] != 1 /* stdout */) { in __archive_create_child() 137 r = posix_spawn_file_actions_addclose(&actions, stdout_pipe[1]); in __archive_create_child() [all …]
|
| /dragonfly/usr.sbin/cron/cron/ |
| HD | do_command.c | 76 int stdin_pipe[2], stdout_pipe[2]; in child_process() local 158 pipe(stdout_pipe); /* child's stdout */ in child_process() 243 close(stdout_pipe[READ_PIPE]); in child_process() 249 close(STDOUT); dup2(stdout_pipe[WRITE_PIPE], STDOUT); in child_process() 255 close(stdout_pipe[WRITE_PIPE]); in child_process() 335 close(stdout_pipe[WRITE_PIPE]); in child_process() 365 close(stdout_pipe[READ_PIPE]); in child_process() 420 in = fdopen(stdout_pipe[READ_PIPE], "r"); in child_process()
|
| /dragonfly/contrib/cvs-1.12/src/ |
| HD | server.c | 3502 int stdout_pipe[2]; in do_cvs_command() local 3562 stdout_pipe[0] = -1; in do_cvs_command() 3563 stdout_pipe[1] = -1; in do_cvs_command() 3601 if (pipe (stdout_pipe) < 0) in do_cvs_command() 3699 if (dup2 (stdout_pipe[1], STDOUT_FILENO) < 0) in do_cvs_command() 3704 close (stdout_pipe[0]); in do_cvs_command() 3705 close (stdout_pipe[1]); in do_cvs_command() 3787 num_to_check = stdout_pipe[0]; in do_cvs_command() 3788 FD_SET (stdout_pipe[0], &command_fds_to_drain.fds); in do_cvs_command() 3810 stdoutbuf = fd_buffer_initialize (stdout_pipe[0], 0, NULL, true, in do_cvs_command() [all …]
|