19 #ifndef CORE_POSIX_EXEC_H_ 20 #define CORE_POSIX_EXEC_H_ 34 enum class RedirectFlags;
46 const std::vector<std::string>& argv,
47 const std::map<std::string, std::string>& env,
61 const std::vector<std::string>& argv,
62 const std::map<std::string, std::string>& env,
64 const std::function<
void()>& child_setup);
68 #endif // CORE_POSIX_EXEC_H_ #define CORE_POSIX_DLL_PUBLIC
StandardStream
The StandardStream enum wraps the POSIX standard streams.
CORE_POSIX_DLL_PUBLIC ChildProcess exec(const std::string &fn, const std::vector< std::string > &argv, const std::map< std::string, std::string > &env, const StandardStream &flags)
exec execve's the executable with the provided arguments and environment.