Apache Mesos
Classes | Namespaces | Functions
shell.hpp File Reference
#include <process.h>
#include <stdarg.h>
#include <algorithm>
#include <array>
#include <map>
#include <string>
#include <vector>
#include <stout/error.hpp>
#include <stout/foreach.hpp>
#include <stout/none.hpp>
#include <stout/option.hpp>
#include <stout/os.hpp>
#include <stout/try.hpp>
#include <stout/windows.hpp>
#include <stout/os/int_fd.hpp>
#include <stout/os/pipe.hpp>
#include <stout/internal/windows/inherit.hpp>

Go to the source code of this file.

Classes

struct  internal::windows::ProcessData
 

Namespaces

 internal
 
 internal::windows
 
 os
 
 os::Shell
 

Functions

Option< std::map< std::wstring, std::wstring > > internal::windows::get_system_env ()
 
Option< std::wstring > internal::windows::create_process_env (const Option< std::map< std::string, std::string >> &env)
 
std::wstring internal::windows::stringify_args (const std::vector< std::string > &argv)
 
Try< ProcessData > internal::windows::create_process (const std::string &command, const std::vector< std::string > &argv, const Option< std::map< std::string, std::string >> &environment, const bool create_suspended=false, const Option< std::array< int_fd, 3 >> &pipes=None(), const std::vector< int_fd > &whitelist_fds={})
 
template<typename... T>
Try< std::string > os::shell (const std::string &fmt, const T &...t)
 Runs a shell command with optional arguments. More...
 
template<typename... T>
int os::execlp (const char *file, T...t)
 
Option< int > os::spawn (const std::string &command, const std::vector< std::string > &arguments, const Option< std::map< std::string, std::string >> &environment=None())
 
Option< int > os::system (const std::string &command)
 
int os::execvp (const std::string &command, const std::vector< std::string > &argv)
 
int os::execvpe (const std::string &command, const std::vector< std::string > &argv, const std::map< std::string, std::string > &envp)