Functions | |
| void | detachFromTTY () |
| Close stdin, stdout and stderr and detach from the tty. | |
| string | formatStatus (int status) |
| Pretty-print the return value of a process into a string. | |
| void | chdir (const string &dir) |
| std::string | getcwd () |
| Get the absolute path of the current working directory. | |
| void | chroot (const string &dir) |
| mode_t | umask (mode_t mask) |
| Change umask (always succeeds and returns the previous umask). | |
| struct passwd * | getUserInfo (const string &user) |
| struct group * | getGroupInfo (const string &group) |
| void | initGroups (const string &name, gid_t gid) |
| void | setPerms (const string &user) |
| void | setPerms (const string &user, const string &group) |
| void | setPerms (uid_t user) |
| void | setPerms (uid_t user, gid_t group) |
| int | getCPUTimeLimit (int *max=0) |
| Get current resource limits; store also maximum resource limits in max if nonzero. | |
| int | getFileSizeLimit (int *max) |
| int | getDataMemoryLimit (int *max) |
| int | getCoreSizeLimit (int *max) |
| int | getChildrenLimit (int *max) |
| int | getOpenFilesLimit (int *max) |
| void | setCPUTimeLimit (int value) |
| Set resource limits. | |
| void | setFileSizeLimit (int value) |
| void | setDataMemoryLimit (int value) |
| void | setCoreSizeLimit (int value) |
| void | setChildrenLimit (int value) |
| void | setOpenFilesLimit (int value) |
| void | chdir (const std::string &dir) |
| Change working directory. | |
| void | chroot (const std::string &dir) |
| Change root directory. | |
| void | setPerms (const std::string &user) |
| Set user and group permissions. | |
| void | setPerms (const std::string &user, const std::string &group) |
| void wibble::sys::process::chdir | ( | const std::string & | dir | ) |
| void wibble::sys::process::chdir | ( | const string & | dir | ) |
| void wibble::sys::process::chroot | ( | const std::string & | dir | ) |
Change root directory.
| void wibble::sys::process::chroot | ( | const string & | dir | ) |
| void wibble::sys::process::detachFromTTY | ( | ) |
Close stdin, stdout and stderr and detach from the tty.
| std::string wibble::sys::process::formatStatus | ( | int | status | ) |
Pretty-print the return value of a process into a string.
| int wibble::sys::process::getChildrenLimit | ( | int * | max | ) |
| int wibble::sys::process::getCoreSizeLimit | ( | int * | max | ) |
| int wibble::sys::process::getCPUTimeLimit | ( | int * | max | ) |
Get current resource limits; store also maximum resource limits in max if nonzero.
| std::string wibble::sys::process::getcwd | ( | ) |
Get the absolute path of the current working directory.
Referenced by wibble::sys::fs::abspath(), and TestProcess::getcwdAndChdir().
| int wibble::sys::process::getDataMemoryLimit | ( | int * | max | ) |
| int wibble::sys::process::getFileSizeLimit | ( | int * | max | ) |
| struct group* wibble::sys::process::getGroupInfo | ( | const string & | group | ) | [read] |
Referenced by setPerms().
| int wibble::sys::process::getOpenFilesLimit | ( | int * | max | ) |
| struct passwd* wibble::sys::process::getUserInfo | ( | const string & | user | ) | [read] |
Referenced by setPerms().
| void wibble::sys::process::initGroups | ( | const string & | name, | |
| gid_t | gid | |||
| ) |
| void wibble::sys::process::setChildrenLimit | ( | int | value | ) |
| void wibble::sys::process::setCoreSizeLimit | ( | int | value | ) |
| void wibble::sys::process::setCPUTimeLimit | ( | int | value | ) |
Set resource limits.
| void wibble::sys::process::setDataMemoryLimit | ( | int | value | ) |
| void wibble::sys::process::setFileSizeLimit | ( | int | value | ) |
| void wibble::sys::process::setOpenFilesLimit | ( | int | value | ) |
| void wibble::sys::process::setPerms | ( | const std::string & | user, | |
| const std::string & | group | |||
| ) |
| void wibble::sys::process::setPerms | ( | const std::string & | user | ) |
Set user and group permissions.
| void wibble::sys::process::setPerms | ( | uid_t | user, | |
| gid_t | group | |||
| ) |
| void wibble::sys::process::setPerms | ( | uid_t | user | ) |
| void wibble::sys::process::setPerms | ( | const string & | user, | |
| const string & | group | |||
| ) |
References getGroupInfo(), and getUserInfo().
| void wibble::sys::process::setPerms | ( | const string & | user | ) |
References getUserInfo().
| mode_t wibble::sys::process::umask | ( | mode_t | mask | ) |
1.5.6