Home | History | Annotate | Download | only in lib

Lines Matching refs:child

95 /* Open a pipe connected to a child process.
98 * parent -> fd[1] -> STDIN_FILENO -> child if pipe_stdin
99 * parent <- fd[0] <- STDOUT_FILENO <- child if pipe_stdout
103 * pipe_stdin and prog_stdin together determine the child's standard input.
104 * pipe_stdout and prog_stdout together determine the child's standard output.
129 int child;
147 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin
148 * parent <- ifd[0] <- ifd[1] <- child if pipe_stdout
160 child = -1;
162 /* Create standard file handles of child process. */
185 /* The child process doesn't inherit ifd[0], ifd[1], ofd[0], ofd[1],
193 macro. When using spawnvp() without 'e', the child process inherits a
197 child = spawnvpe (P_NOWAIT, prog_path, (const char **) prog_argv,
199 if (child < 0 && errno == ENOEXEC)
205 child = spawnvpe (P_NOWAIT, prog_argv[0], (const char **) prog_argv,
209 if (child == -1)
230 if (child == -1)
247 return child;
260 pid_t child;
271 * parent -> ofd[1] -> ofd[0] -> child if pipe_stdin
272 * parent <- ifd[0] <- ifd[1] <- child if pipe_stdout
335 || (err = posix_spawnp (&child, prog_path, &actions,
367 register_slave_subprocess (child);
379 return child;
387 * parent -> fd[1] -> STDIN_FILENO -> child
388 * parent <- fd[0] <- STDOUT_FILENO <- child
406 /* Open a pipe for input from a child process.
407 * The child's stdin comes from a file.
410 * parent <- fd[0] <- STDOUT_FILENO <- child
430 /* Open a pipe for output to a child process.
431 * The child's stdout goes to a file.
434 * parent -> fd[0] -> STDIN_FILENO -> child