|
sbuild
1.6.8
|
System passwd database entry. More...
#include <sbuild-util.h>
Inheritance diagram for sbuild::passwd:
Collaboration diagram for sbuild::passwd: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 | ( | ) |
Clear search result.
The query result is undefined following this operation.
Referenced by passwd().
Here is the caller graph for this function:| void passwd::query_name | ( | const char * | name | ) |
Query using a name.
| name | the user name to search for. |
Referenced by passwd().
Here is the caller graph for this function:| void passwd::query_name | ( | std::string const & | name | ) |
Query using a name.
| name | the user name to search for. |
| void passwd::query_uid | ( | uid_t | uid | ) |
Query using a UID.
| uid | the UID to search for. |
Referenced by passwd().
Here is the caller graph for this function:
1.8.6