Lines Matching full:child

29 #include "utils/process/child.ipp"
62 /// Private implementation fields for child objects.
63 struct child::impl : utils::noncopyable {
169 /// Creates a new child.
172 /// new child.
173 process::child::child(impl *implptr) : in child() function in process::child
179 /// Destructor for child.
180 process::child::~child(void) in ~child()
190 /// \return In the case of the parent, a new child object returned as a
192 /// noncopyable. In the case of the child, a NULL pointer.
195 std::auto_ptr< process::child >
196 process::child::fork_capture_aux(void) in fork_capture_aux()
226 return std::auto_ptr< process::child >(NULL); in fork_capture_aux()
232 return std::auto_ptr< process::child >( in fork_capture_aux()
233 new process::child(new impl(pid, new process::ifdstream(fds[0])))); in fork_capture_aux()
250 /// \return In the case of the parent, a new child object returned as a
252 /// noncopyable. In the case of the child, a NULL pointer.
255 std::auto_ptr< process::child >
256 process::child::fork_files_aux(const fs::path& stdout_file, in fork_files_aux()
287 return std::auto_ptr< process::child >(NULL); in fork_files_aux()
293 return std::auto_ptr< process::child >( in fork_files_aux()
294 new process::child(new impl(pid, NULL))); in fork_files_aux()
307 /// \return A new child object, returned as a dynamically-allocated object
312 std::auto_ptr< process::child >
313 process::child::spawn_capture(const fs::path& program, const args_vector& args) in spawn_capture()
315 std::auto_ptr< child > child = fork_capture_aux(); in spawn_capture() local
316 if (child.get() == NULL) in spawn_capture()
319 return child; in spawn_capture()
333 /// \return A new child object, returned as a dynamically-allocated object
338 std::auto_ptr< process::child >
339 process::child::spawn_files(const fs::path& program, in spawn_files()
344 std::auto_ptr< child > child = fork_files_aux(stdout_file, stderr_file); in spawn_files() local
345 if (child.get() == NULL) in spawn_files()
348 return child; in spawn_files()
352 /// Returns the process identifier of this child.
356 process::child::pid(void) const in pid()
362 /// Gets the input stream corresponding to the stdout and stderr of the child.
364 /// \pre The child must have been started by fork_capture().
369 process::child::output(void) in output()
378 /// \return The termination status of the child process.
382 process::child::wait(void) in wait()