dius 0.1.0
Loading...
Searching...
No Matches
dius::system::Process Class Reference

#include <generic/dius/system/process.h>

Public Member Functions

 Process (di::Vector< di::TransparentString > arguments)
 
auto with_file_open (i32 fd, di::Path path, OpenMode open_mode, u16 create_mode=0666) &&-> Process
 
auto with_file_close (i32 fd) &&-> Process
 
auto with_file_dup (i32 old_fd, i32 new_fd) &&-> Process
 
auto with_tty_window_size (int fd, tty::WindowSize const &size) &&-> Process
 
auto with_controlling_tty (int fd) &&-> Process
 
auto with_new_session () &&-> Process
 
auto with_env (di::TransparentString key, di::TransparentString value) &&-> Process
 
auto use_fork (bool b=true) &&-> Process
 
auto spawn () &&-> di::Result< ProcessHandle >
 
auto spawn_and_wait () &&-> di::Result< ProcessResult >
 

Constructor & Destructor Documentation

◆ Process()

dius::system::Process::Process ( di::Vector< di::TransparentString > arguments)
inlineexplicit

Member Function Documentation

◆ spawn()

auto dius::system::Process::spawn ( ) && -> di::Result< ProcessHandle >

◆ spawn_and_wait()

auto dius::system::Process::spawn_and_wait ( ) && -> di::Result<ProcessResult>
inline

◆ use_fork()

auto dius::system::Process::use_fork ( bool b = true) && -> Process
inline

◆ with_controlling_tty()

auto dius::system::Process::with_controlling_tty ( int fd) && -> Process
inline

◆ with_env()

auto dius::system::Process::with_env ( di::TransparentString key,
di::TransparentString value ) && -> Process
inline

◆ with_file_close()

auto dius::system::Process::with_file_close ( i32 fd) && -> Process
inline

◆ with_file_dup()

auto dius::system::Process::with_file_dup ( i32 old_fd,
i32 new_fd ) && -> Process
inline

◆ with_file_open()

auto dius::system::Process::with_file_open ( i32 fd,
di::Path path,
OpenMode open_mode,
u16 create_mode = 0666 ) && -> Process
inline

◆ with_new_session()

auto dius::system::Process::with_new_session ( ) && -> Process
inline

◆ with_tty_window_size()

auto dius::system::Process::with_tty_window_size ( int fd,
tty::WindowSize const & size ) && -> Process
inline

The documentation for this class was generated from the following file: