![]() |
Scanframe Modular Application 0.1.0
|
#include <lnx_utils.h>
Public Member Functions | |
group_t () | |
~group_t () | |
operator bool () const | |
Friends | |
bool | proc_getgrnam (const std::string &name, group_t &grp) |
bool | proc_getgrgid (gid_t gid, group_t &grp) |
Extends struct group and auto allocates needed memory. Used as a result type with auto memory cleanup .
sf::group_t::group_t | ( | ) |
Constructor allocating the right amount of memory.
sf::group_t::~group_t | ( | ) |
Destructor
|
inlineexplicit |
Boolean operator returning validity.
|
friend |
Wrapper for getpwuid_r() but simplified using group_t. Returns true when an entry was found. In case of an error it throws en exception.
|
friend |
Wrapper for getgrnam_r() but simplified using group_t. Returns true when an entry was found. In case of an error it throws en exception.