|
Try< bool > | access (const std::string &path, int how) |
|
Option< int > | spawn (const std::string &file, const std::vector< std::string > &arguments) |
|
int | execvp (const char *file, char *const argv[]) |
|
int | execvpe (const char *file, char **argv, char **envp) |
|
Try< std::list< std::string > > | find (const std::string &directory, const std::string &pattern) |
|
Result< Process > | process (pid_t pid) |
|
Try< std::set< pid_t > > | pids () |
|
Try< Memory > | memory () |
|
pid_t | clone (const lambda::function< int()> &func, int flags) |
|
Try< Permissions > | permissions (const std::string &path) |
|
Try< std::string > | bootId () |
|
Try< Nothing > | chdir (const std::string &directory) |
|
Try< Nothing > | chown (uid_t uid, gid_t gid, const std::string &path, bool recursive) |
|
Try< Nothing > | chown (const std::string &user, const std::string &path, bool recursive=true) |
|
Try< Nothing > | chroot (const std::string &directory) |
|
Try< Nothing > | close (int fd) |
|
Try< Nothing > | copyfile (const std::string &source, const std::string &destination) |
|
Try< int > | dup (int fd) |
|
std::map< std::string, std::string > | environment () |
|
bool | exists (const std::string &path) |
|
bool | exists (pid_t pid) |
|
Try< Nothing > | cloexec (int fd) |
|
Try< Nothing > | unsetCloexec (int fd) |
|
Try< bool > | isCloexec (int fd) |
|
Try< Nothing > | nonblock (int fd) |
|
Try< bool > | isNonblock (int fd) |
|
Try< Nothing > | fsync (int fd) |
|
Try< Nothing > | fsync (const std::string &path) |
|
Try< Nothing > | ftruncate (int fd, off_t length) |
|
std::string | getcwd () |
|
Option< std::string > | getenv (const std::string &key) |
|
int | kill (pid_t pid, int sig) |
|
std::set< pid_t > | children (pid_t, const std::list< Process > &, bool) |
|
Option< Process > | process (pid_t, const std::list< Process > &) |
|
Try< std::list< Process > > | processes () |
|
Try< std::list< ProcessTree > > | pstrees (const std::set< pid_t > &, const std::list< Process > &) |
|
Try< std::list< ProcessTree > > | killtree (pid_t pid, int signal, bool groups=false, bool sessions=false) |
|
Try< std::list< std::string > > | ls (const std::string &directory) |
|
Try< off_t > | lseek (int_fd fd, off_t offset, int whence) |
|
Try< std::vector< int_fd > > | lsof () |
|
Try< Nothing > | mkdir (const std::string &directory, bool recursive=true, bool sync=false) |
|
Try< std::string > | mkdtemp (const std::string &path=path::join(os::temp(),"XXXXXX")) |
|
Try< std::string > | mktemp (const std::string &path=path::join(os::temp(),"XXXXXX")) |
|
Try< int_fd > | open (const std::string &path, int oflag, mode_t mode=0) |
|
size_t | pagesize () |
|
Try< std::array< int, 2 > > | pipe () |
|
Result< std::string > | realpath (const std::string &path) |
|
Try< Nothing > | rename (const std::string &from, const std::string &to, bool sync=false) |
|
Try< Nothing > | rm (const std::string &path) |
|
Try< Nothing > | rmdir (const std::string &directory, bool recursive=true, bool removeRoot=true, bool continueOnError=false) |
|
Try< ssize_t, SocketError > | sendfile (int s, int fd, off_t offset, size_t length) |
|
template<typename... T> |
Try< std::string > | shell (const std::string &fmt, const T &...t) |
|
Option< int > | system (const std::string &command) |
|
Result< uid_t > | getuid (const Option< std::string > &user=None()) |
|
Try< Nothing > | setuid (uid_t uid) |
|
Result< gid_t > | getgid (const Option< std::string > &user=None()) |
|
Try< Nothing > | setgid (gid_t gid) |
|
Try< std::vector< gid_t > > | getgrouplist (const std::string &user) |
|
Try< Nothing > | setgroups (const std::vector< gid_t > &gids, const Option< uid_t > &uid=None()) |
|
Result< std::string > | user (Option< uid_t > uid=None()) |
|
Try< Nothing > | su (const std::string &user) |
|
std::string | temp () |
|
Option< std::string > | which (const std::string &command, const Option< std::string > &_path=None()) |
|
Try< Nothing > | setxattr (const std::string &path, const std::string &name, const std::string &value, int flags) |
|
Try< std::string > | getxattr (const std::string &path, const std::string &name) |
|
Try< Nothing > | removexattr (const std::string &path, const std::string &name) |
|
std::ostream & | operator<< (std::ostream &stream, const ProcessTree &tree) |
|
Try< ProcessTree > | pstree (pid_t pid, const std::list< Process > &processes) |
|
Try< ProcessTree > | pstree (Option< pid_t > pid=None()) |
|
Result< std::string > | read (int_fd fd, size_t size) |
|
Try< std::string > | read (const std::string &path) |
|
std::string | strerror (int errno_) |
| A thread-safe version of strerror. More...
|
|
template<typename T > |
| sysctl::Table::operator Try< std::vector< T >> () |
|
Try< Nothing > | touch (const std::string &path) |
|
Try< Nothing > | utime (const std::string &path) |
|
Try< Nothing > | close (const int_fd &fd) |
|
Try< int_fd > | dup (const int_fd &fd) |
|
Option< int > | spawn (const std::string &command, const std::vector< std::string > &arguments, const Option< std::map< std::string, std::string >> &environment=None()) |
|
int | execvp (const std::string &file, const std::vector< std::string > &argv) |
|
int | execvpe (const std::string &file, const std::vector< std::string > &argv, const std::map< std::string, std::string > &envp) |
|
Try< Nothing > | cloexec (const int_fd &fd) |
|
Try< Nothing > | unsetCloexec (const int_fd &fd) |
|
Try< bool > | isCloexec (const int_fd &fd) |
|
Try< Nothing > | nonblock (const int_fd &fd) |
|
Try< bool > | isNonblock (const int_fd &fd) |
|
std::ostream & | operator<< (std::ostream &stream, const WindowsFD::Type &fd) |
|
std::ostream & | operator<< (std::ostream &stream, const WindowsFD &fd) |
|
bool | operator< (int left, const WindowsFD &right) |
|
bool | operator< (const WindowsFD &left, int right) |
|
bool | operator> (int left, const WindowsFD &right) |
|
bool | operator> (const WindowsFD &left, int right) |
|
bool | operator<= (int left, const WindowsFD &right) |
|
bool | operator<= (const WindowsFD &left, int right) |
|
bool | operator>= (int left, const WindowsFD &right) |
|
bool | operator>= (const WindowsFD &left, int right) |
|
bool | operator== (int left, const WindowsFD &right) |
|
bool | operator== (const WindowsFD &left, int right) |
|
bool | operator!= (int left, const WindowsFD &right) |
|
bool | operator!= (const WindowsFD &left, int right) |
|
bool | operator== (const WindowsFD &left, const WindowsFD &right) |
|
Try< Nothing > | fsync (const int_fd &fd) |
|
Try< Nothing > | ftruncate (const int_fd &fd, off_t length) |
|
Try< std::wstring > | name_job (pid_t pid) |
|
Try< SharedHandle > | open_job (const DWORD desired_access, const BOOL inherit_handles, const std::wstring &name) |
|
Try< SharedHandle > | open_job (const DWORD desired_access, const BOOL inherit_handles, const pid_t pid) |
|
Try< SharedHandle > | create_job (const std::wstring &name) |
|
Try< JOBOBJECT_BASIC_ACCOUNTING_INFORMATION > | get_job_info (pid_t pid) |
|
template<size_t max_pids> |
Result< std::set< Process > > | _get_job_processes (const SharedHandle &job_handle) |
|
Try< std::set< Process > > | get_job_processes (pid_t pid) |
|
Try< Bytes > | get_job_mem (pid_t pid) |
|
Try< Nothing > | set_job_kill_on_close_limit (pid_t pid) |
|
Try< Nothing > | set_job_cpu_limit (pid_t pid, double cpus) |
|
Try< Nothing > | set_job_mem_limit (pid_t pid, Bytes limit) |
|
Try< Nothing > | assign_job (SharedHandle job_handle, pid_t pid) |
|
Try< Nothing > | kill_job (SharedHandle job_handle) |
|
Try< std::array< int_fd, 2 > > | pipe (bool read_overlapped=true, bool write_overlapped=true) |
|
Result< size_t > | read_async (const int_fd &fd, void *data, size_t size, OVERLAPPED *overlapped) |
|
ssize_t | read (const int_fd &fd, void *data, size_t size) |
|
Result< size_t > | sendfile_async (const int_fd &s, const int_fd &fd, size_t length, OVERLAPPED *overlapped) |
|
Try< ssize_t, SocketError > | sendfile (const int_fd &s, const int_fd &fd, off_t offset, size_t length) |
|
Result< size_t > | write_async (const int_fd &fd, const void *data, size_t size, OVERLAPPED *overlapped) |
|
ssize_t | write (const int_fd &fd, const void *data, size_t size) |
|
Try< Nothing > | write (int_fd fd, const std::string &message) |
| Performs a series of asynchronous writes, until all of data has been written. More...
|
|
Try< Nothing > | write (const std::string &path, const std::string &message, bool sync=false) |
|
Try< Nothing > | write (const char *path, const std::string &message, bool sync=false) |
|
Try< std::string > | sysname () |
|
Try< std::set< pid_t > > | children (pid_t pid, bool recursive=true) |
|
Result< pid_t > | waitpid (pid_t pid, int *status, int options) |
|
void | setenv (const std::string &key, const std::string &value, bool overwrite=true) |
|
void | unsetenv (const std::string &key) |
|
void | eraseenv (const std::string &key) |
|
Try< Nothing > | chmod (const std::string &path, int mode) |
|
Try< Nothing > | mknod (const std::string &path, mode_t mode, dev_t dev) |
|
Try< Nothing > | sleep (const Duration &duration) |
|
Try< std::list< std::string > > | glob (const std::string &pattern) |
|
Try< long > | cpus () |
|
Try< Load > | loadavg () |
|
Try< UTSInfo > | uname () |
|
Try< std::set< pid_t > > | pids (Option< pid_t > group, Option< pid_t > session) |
|
Try< Nothing > | tar (const std::string &path, const std::string &archive) |
|
Try< Version > | release () |
|
Try< std::string > | var () |
|
Try< Nothing > | dup2 (int oldFd, int newFd) |
|
Try< std::string > | ptsname (int master) |
|
Try< Nothing > | setctty (int fd) |
|
Try< Nothing > | setWindowSize (int fd, unsigned short rows, unsigned short columns) |
|
std::string | host_default_path () |
|
Result< pid_t > | waitpid (long pid, int *status, int options) |
|
std::string | hstrerror (int err)=delete |
|
tm * | gmtime_r (const time_t *timep, tm *result) |
|
Result< PROCESSENTRY32W > | process_entry (pid_t pid) |
|
int | random () |
|