paludis  Version 2.6.0
Files | Classes | Functions

Files

file  channel.hh
 
file  pipe.hh
 
file  pty.hh
 
file  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

Function Documentation

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.