E-MailRelay
|
Configuration structure for G::NewProcess. More...
#include <gnewprocess.h>
Public Types | |
using | Fd = NewProcess::Fd |
using | FormatFn = std::string(*)(std::string, int) |
Public Member Functions | |
Config & | set_env (const Environment &) |
Config & | set_stdin (Fd) noexcept |
Config & | set_stdout (Fd) noexcept |
Config & | set_stderr (Fd) noexcept |
Config & | set_cd (const Path &) |
Config & | set_strict_exe (bool=true) noexcept |
Config & | set_exec_search_path (const std::string &) |
Config & | set_run_as (Identity) |
Config & | set_strict_id (bool=true) noexcept |
Config & | set_close_other_fds (bool=true) noexcept |
Config & | set_exec_error_exit (int) noexcept |
Config & | set_exec_error_format (const std::string &) |
Config & | set_exec_error_format_fn (FormatFn) |
Public Attributes | |
Environment | env {Environment::minimal()} |
NewProcess::Fd | stdin {Fd::devnull()} |
NewProcess::Fd | stdout {Fd::pipe()} |
NewProcess::Fd | stderr {Fd::devnull()} |
Path | cd |
bool | strict_exe {true} |
std::string | exec_search_path |
Identity | run_as {Identity::invalid()} |
bool | strict_id {true} |
bool | close_other_fds {true} |
int | exec_error_exit {127} |
std::string | exec_error_format |
FormatFn | exec_error_format_fn {nullptr} |
HANDLE | keep_handle_1 {HNULL} |
HANDLE | keep_handle_2 {HNULL} |
Configuration structure for G::NewProcess.
Definition at line 88 of file gnewprocess.h.
Definition at line 90 of file gnewprocess.h.
using G::NewProcess::Config::FormatFn = std::string (*)(std::string,int) |
Definition at line 91 of file gnewprocess.h.
|
inline |
Definition at line 283 of file gnewprocess.h.
|
inlinenoexcept |
Definition at line 288 of file gnewprocess.h.
|
inline |
Definition at line 279 of file gnewprocess.h.
|
inlinenoexcept |
Definition at line 289 of file gnewprocess.h.
|
inline |
Definition at line 290 of file gnewprocess.h.
|
inline |
Definition at line 291 of file gnewprocess.h.
|
inline |
Definition at line 285 of file gnewprocess.h.
|
inline |
Definition at line 286 of file gnewprocess.h.
|
inlinenoexcept |
Definition at line 282 of file gnewprocess.h.
|
inlinenoexcept |
Definition at line 280 of file gnewprocess.h.
|
inlinenoexcept |
Definition at line 281 of file gnewprocess.h.
|
inlinenoexcept |
Definition at line 284 of file gnewprocess.h.
|
inlinenoexcept |
Definition at line 287 of file gnewprocess.h.
Path G::NewProcess::Config::cd |
Definition at line 96 of file gnewprocess.h.
bool G::NewProcess::Config::close_other_fds {true} |
Definition at line 101 of file gnewprocess.h.
Environment G::NewProcess::Config::env {Environment::minimal()} |
Definition at line 92 of file gnewprocess.h.
int G::NewProcess::Config::exec_error_exit {127} |
Definition at line 102 of file gnewprocess.h.
std::string G::NewProcess::Config::exec_error_format |
Definition at line 103 of file gnewprocess.h.
FormatFn G::NewProcess::Config::exec_error_format_fn {nullptr} |
Definition at line 104 of file gnewprocess.h.
std::string G::NewProcess::Config::exec_search_path |
Definition at line 98 of file gnewprocess.h.
HANDLE G::NewProcess::Config::keep_handle_1 {HNULL} |
Definition at line 105 of file gnewprocess.h.
HANDLE G::NewProcess::Config::keep_handle_2 {HNULL} |
Definition at line 106 of file gnewprocess.h.
Identity G::NewProcess::Config::run_as {Identity::invalid()} |
Definition at line 99 of file gnewprocess.h.
NewProcess::Fd G::NewProcess::Config::stderr {Fd::devnull()} |
Definition at line 95 of file gnewprocess.h.
NewProcess::Fd G::NewProcess::Config::stdin {Fd::devnull()} |
Definition at line 93 of file gnewprocess.h.
NewProcess::Fd G::NewProcess::Config::stdout {Fd::pipe()} |
Definition at line 94 of file gnewprocess.h.
bool G::NewProcess::Config::strict_exe {true} |
Definition at line 97 of file gnewprocess.h.
bool G::NewProcess::Config::strict_id {true} |
Definition at line 100 of file gnewprocess.h.