#include <redir.hpp>
Definition at line 115 of file redir.hpp.
◆ RedirectStd() [1/2]
openvpn::RedirectStd::RedirectStd |
( |
const std::string & |
in_fn, |
|
|
const std::string & |
out_fn, |
|
|
const int |
out_flags = FLAGS_OVERWRITE , |
|
|
const mode_t |
out_mode = MODE_ALL , |
|
|
const bool |
combine_out_err_arg = true |
|
) |
| |
|
inline |
◆ RedirectStd() [2/2]
openvpn::RedirectStd::RedirectStd |
( |
| ) |
|
|
inlineprotected |
◆ open_input()
void openvpn::RedirectStd::open_input |
( |
const std::string & |
fn | ) |
|
|
inlineprotected |
◆ open_output()
void openvpn::RedirectStd::open_output |
( |
const std::string & |
fn, |
|
|
const int |
flags, |
|
|
const mode_t |
mode |
|
) |
| |
|
inlineprotected |
◆ FLAGS_APPEND
constexpr int openvpn::RedirectStd::FLAGS_APPEND = O_CREAT | O_WRONLY | O_APPEND |
|
staticconstexpr |
◆ FLAGS_MUST_NOT_EXIST
constexpr int openvpn::RedirectStd::FLAGS_MUST_NOT_EXIST = O_CREAT | O_WRONLY | O_EXCL |
|
staticconstexpr |
◆ FLAGS_OVERWRITE
constexpr int openvpn::RedirectStd::FLAGS_OVERWRITE = O_CREAT | O_WRONLY | O_TRUNC |
|
staticconstexpr |
◆ MODE_ALL
constexpr mode_t openvpn::RedirectStd::MODE_ALL = 0777 |
|
staticconstexpr |
◆ MODE_USER
constexpr mode_t openvpn::RedirectStd::MODE_USER = S_IRUSR | S_IWUSR |
|
staticconstexpr |
◆ MODE_USER_GROUP
constexpr mode_t openvpn::RedirectStd::MODE_USER_GROUP = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP |
|
staticconstexpr |
The documentation for this class was generated from the following file: