Lines Matching +full:stdout +full:- +full:path

46 #include "utils/fs/path.hpp"
67 /// The input stream for the process' stdout and stderr. May be NULL.
91 /// Exception-based version of dup(2).
101 if (process::detail::syscall_dup2(old_fd, new_fd) == -1) { in safe_dup()
109 /// Exception-based version of open(2) to open (or create) a file for append.
117 open_for_append(const fs::path& filename) in open_for_append()
122 if (fd == -1) { in open_for_append()
136 log_exec(const fs::path& program, const process::args_vector& args) in log_exec()
171 /// \param implptr A dynamically-allocated impl object with the contents of the
191 /// dynamically-allocated object because children classes are unique and thus
202 if (detail::syscall_pipe(fds) == -1) in fork_capture_aux()
208 if (pid == -1) { in fork_capture_aux()
229 LD(F("Spawned process %s: stdout and stderr inherited") % pid); in fork_capture_aux()
243 /// \param stdout_file The name of the file in which to store the stdout.
244 /// If this has the magic value /dev/stdout, then the parent's stdout is
251 /// dynamically-allocated object because children classes are unique and thus
256 process::child::fork_files_aux(const fs::path& stdout_file, in fork_files_aux()
257 const fs::path& stderr_file) in fork_files_aux()
265 if (pid == -1) { in fork_files_aux()
273 if (stdout_file != fs::path("/dev/stdout")) { in fork_files_aux()
278 if (stderr_file != fs::path("/dev/stderr")) { in fork_files_aux()
289 LD(F("Spawned process %s: stdout=%s, stderr=%s") % pid % stdout_file % in fork_files_aux()
299 /// Spawns a new binary and multiplexes and captures its stdout and stderr.
307 /// \return A new child object, returned as a dynamically-allocated object
313 process::child::spawn_capture(const fs::path& program, const args_vector& args) in spawn_capture()
323 /// Spawns a new binary and redirects its stdout and stderr to files.
330 /// \param stdout_file The name of the file in which to store the stdout.
333 /// \return A new child object, returned as a dynamically-allocated object
339 process::child::spawn_files(const fs::path& program, in spawn_files()
341 const fs::path& stdout_file, in spawn_files()
342 const fs::path& stderr_file) in spawn_files()
358 return _pimpl->_pid; in pid()
362 /// Gets the input stream corresponding to the stdout and stderr of the child.
371 PRE(_pimpl->_output.get() != NULL); in output()
372 return *_pimpl->_output; in output()
384 return process::wait(_pimpl->_pid); in wait()