E-MailRelay
|
Provides syntactic sugar for the G::NewProcess constructor. More...
#include <gnewprocess.h>
Public Member Functions | |
NewProcessConfig (const Path &exe) | |
Constructor. More... | |
NewProcessConfig (const ExecutableCommand &cmd) | |
Constructor. More... | |
NewProcessConfig (const Path &exe, const std::string &argv1) | |
Constructor. More... | |
NewProcessConfig (const Path &exe, const std::string &argv1, const std::string &argv2) | |
Constructor. More... | |
NewProcessConfig (const Path &exe, const StringArray &args) | |
Constructor. More... | |
NewProcessConfig & | set_args (const StringArray &args) |
Sets the command-line arguments. More... | |
NewProcessConfig & | set_env (const Environment &env) |
Sets the environment. More... | |
NewProcessConfig & | set_fd_stdin (NewProcess::Fd) |
Sets the standard-input file descriptor. More... | |
NewProcessConfig & | set_fd_stdout (NewProcess::Fd) |
Sets the standard-output file descriptor. More... | |
NewProcessConfig & | set_fd_stderr (NewProcess::Fd) |
Sets the standard-error file descriptor. More... | |
NewProcessConfig & | set_cd (const G::Path &) |
Sets the working directory. More... | |
NewProcessConfig & | set_strict_path (bool=true) |
Sets the 'strict_path' value. More... | |
NewProcessConfig & | set_run_as_id (const G::Identity &) |
Sets the run-as id. More... | |
NewProcessConfig & | set_strict_id (bool=true) |
Sets the 'strict_id' value. More... | |
NewProcessConfig & | set_exec_error_exit (int) |
Sets the 'exec_error_exit' value. More... | |
NewProcessConfig & | set_exec_error_format (const std::string &) |
Sets the 'exec_error_format' value. More... | |
NewProcessConfig & | set_exec_error_format_fn (std::string(*)(std::string, int)) |
Sets the 'exec_error_format_fn' value. More... | |
Public Attributes | |
Path | m_path |
StringArray | m_args |
Environment | m_env {Environment::minimal()} |
NewProcess::Fd | m_stdin {NewProcess::Fd::devnull()} |
NewProcess::Fd | m_stdout {NewProcess::Fd::pipe()} |
NewProcess::Fd | m_stderr {NewProcess::Fd::devnull()} |
Path | m_cd |
bool | m_strict_path {true} |
Identity | m_run_as {Identity::invalid()} |
bool | m_strict_id {true} |
int | m_exec_error_exit {127} |
std::string | m_exec_error_format |
std::string(* | m_exec_error_format_fn )(std::string, int) |
Provides syntactic sugar for the G::NewProcess constructor.
Definition at line 256 of file gnewprocess.h.
|
inlineexplicit |
Constructor.
Definition at line 325 of file gnewprocess.h.
|
inlineexplicit |
Constructor.
Definition at line 338 of file gnewprocess.h.
|
inline |
Constructor.
Definition at line 345 of file gnewprocess.h.
|
inline |
Constructor.
Definition at line 352 of file gnewprocess.h.
|
inline |
Constructor.
Definition at line 331 of file gnewprocess.h.
|
inline |
Sets the command-line arguments.
Definition at line 359 of file gnewprocess.h.
|
inline |
Sets the working directory.
Definition at line 364 of file gnewprocess.h.
|
inline |
Sets the environment.
Definition at line 360 of file gnewprocess.h.
|
inline |
Sets the 'exec_error_exit' value.
Definition at line 368 of file gnewprocess.h.
|
inline |
Sets the 'exec_error_format' value.
Definition at line 369 of file gnewprocess.h.
|
inline |
Sets the 'exec_error_format_fn' value.
Definition at line 370 of file gnewprocess.h.
|
inline |
Sets the standard-error file descriptor.
Definition at line 363 of file gnewprocess.h.
|
inline |
Sets the standard-input file descriptor.
Definition at line 361 of file gnewprocess.h.
|
inline |
Sets the standard-output file descriptor.
Definition at line 362 of file gnewprocess.h.
|
inline |
Sets the run-as id.
Definition at line 366 of file gnewprocess.h.
|
inline |
Sets the 'strict_id' value.
Definition at line 367 of file gnewprocess.h.
|
inline |
Sets the 'strict_path' value.
Definition at line 365 of file gnewprocess.h.
StringArray G::NewProcessConfig::m_args |
Definition at line 310 of file gnewprocess.h.
Path G::NewProcessConfig::m_cd |
Definition at line 315 of file gnewprocess.h.
Environment G::NewProcessConfig::m_env {Environment::minimal()} |
Definition at line 311 of file gnewprocess.h.
int G::NewProcessConfig::m_exec_error_exit {127} |
Definition at line 319 of file gnewprocess.h.
std::string G::NewProcessConfig::m_exec_error_format |
Definition at line 320 of file gnewprocess.h.
|
inline |
Definition at line 321 of file gnewprocess.h.
Path G::NewProcessConfig::m_path |
Definition at line 309 of file gnewprocess.h.
Identity G::NewProcessConfig::m_run_as {Identity::invalid()} |
Definition at line 317 of file gnewprocess.h.
NewProcess::Fd G::NewProcessConfig::m_stderr {NewProcess::Fd::devnull()} |
Definition at line 314 of file gnewprocess.h.
NewProcess::Fd G::NewProcessConfig::m_stdin {NewProcess::Fd::devnull()} |
Definition at line 312 of file gnewprocess.h.
NewProcess::Fd G::NewProcessConfig::m_stdout {NewProcess::Fd::pipe()} |
Definition at line 313 of file gnewprocess.h.
bool G::NewProcessConfig::m_strict_id {true} |
Definition at line 318 of file gnewprocess.h.
bool G::NewProcessConfig::m_strict_path {true} |
Definition at line 316 of file gnewprocess.h.