sbuild
1.6.10
|
System passwd database entry. More...
#include <sbuild-util.h>
Public Types | |
typedef std::vector< char > | buffer_type |
A buffer for reentrant passwd functions. | |
Public Member Functions | |
passwd () | |
The contructor. | |
passwd (uid_t uid) | |
The constructor. More... | |
passwd (const char *name) | |
The constructor. More... | |
passwd (std::string const &name) | |
The constructor. More... | |
void | clear () |
Clear search result. More... | |
void | query_uid (uid_t uid) |
Query using a UID. More... | |
void | query_name (const char *name) |
Query using a name. More... | |
void | query_name (std::string const &name) |
Query using a name. More... | |
bool | operator! () const |
Check if the query result is valid. | |
Private Attributes | |
buffer_type | buffer |
Query result buffer. | |
bool | valid |
Object validity. | |
System passwd database entry.
passwd::passwd | ( | uid_t | uid | ) |
passwd::passwd | ( | const char * | name | ) |
passwd::passwd | ( | std::string const & | name | ) |
void passwd::clear | ( | ) |
void passwd::query_name | ( | const char * | name | ) |
Query using a name.
name | the user name to search for. |
Referenced by passwd(), and query_name().
void passwd::query_name | ( | std::string const & | name | ) |
void passwd::query_uid | ( | uid_t | uid | ) |