Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
sf::group_t Struct Reference

#include <lnx_utils.h>

Inheritance diagram for sf::group_t:
Collaboration diagram for sf::group_t:

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)
 

Detailed Description

Extends struct group and auto allocates needed memory. Used as a result type with auto memory cleanup .

Constructor & Destructor Documentation

◆ group_t()

sf::group_t::group_t ( )

Constructor allocating the right amount of memory.

◆ ~group_t()

sf::group_t::~group_t ( )

Destructor

Member Function Documentation

◆ operator bool()

sf::group_t::operator bool ( ) const
inlineexplicit

Boolean operator returning validity.

Friends And Related Symbol Documentation

◆ proc_getgrgid

bool proc_getgrgid ( gid_t  gid,
group_t grp 
)
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.

◆ proc_getgrnam

bool proc_getgrnam ( const std::string &  name,
group_t grp 
)
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.


The documentation for this struct was generated from the following file: