paludis Version 3.0.2
The one true package mangler
System

Files

file  /var/tmp/paludis/build/sys-apps-paludis-scm-r1/work/paludis-scm/paludis/util/channel.hh
file  /var/tmp/paludis/build/sys-apps-paludis-scm-r1/work/paludis-scm/paludis/util/pipe.hh
file  /var/tmp/paludis/build/sys-apps-paludis-scm-r1/work/paludis-scm/paludis/util/pty.hh
file  /var/tmp/paludis/build/sys-apps-paludis-scm-r1/work/paludis-scm/paludis/util/system.hh

Classes

class  paludis::Channel
class  paludis::Pipe
class  paludis::PtyError
class  paludis::Pty
class  paludis::GetenvError

Functions

std::string paludis::getenv_with_default (const std::string &key, const std::string &def) PALUDIS_VISIBLE
std::string paludis::getenv_or_error (const std::string &key) PALUDIS_VISIBLE
std::string paludis::kernel_version () PALUDIS_VISIBLE
std::string paludis::get_user_name (const uid_t) PALUDIS_VISIBLE
std::string paludis::get_group_name (const gid_t) PALUDIS_VISIBLE

Detailed Description

Various utilities for interacting with lower-level system things.

Examples

  • None at this time.

Function Documentation

◆ get_group_name()

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.

References get_group_name(), and PALUDIS_VISIBLE.

Referenced by get_group_name().

◆ get_user_name()

std::string paludis::get_user_name ( const uid_t )

Fetch the username for a uid, or the uid as a string if not available.

References get_user_name(), and PALUDIS_VISIBLE.

Referenced by get_user_name().

◆ getenv_or_error()

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.

References getenv_or_error(), and PALUDIS_VISIBLE.

Referenced by getenv_or_error().

◆ getenv_with_default()

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.

References getenv_with_default(), and PALUDIS_VISIBLE.

Referenced by getenv_with_default().

◆ kernel_version()

std::string paludis::kernel_version ( )

Fetch the kernel version, for $KV.

References kernel_version(), and PALUDIS_VISIBLE.

Referenced by kernel_version().