Various utilities for interacting with lower-level system things.
Examples
| std::string paludis::get_group_name |
( |
const gid_t |
| ) |
|
Fetch the group name for a gid, or the gid as a string if not available.
| std::string paludis::get_user_name |
( |
const uid_t |
| ) |
|
Fetch the username for a uid, or the uid as a string if not available.
| std::string paludis::getenv_or_error |
( |
const std::string & |
key | ) |
|
Fetch the value of environment variable key, or throw a GetenvError if the variable is not defined.
| std::string paludis::getenv_with_default |
( |
const std::string & |
key, |
|
|
const std::string & |
def |
|
) |
| |
Fetch the value of environment variable key, or def if the variable is not defined.
| std::string paludis::kernel_version |
( |
| ) |
|
Fetch the kernel version, for $KV.