24#ifndef MY_GETPWNAM_INCLUDED
25#define MY_GETPWNAM_INCLUDED
const char * p
Definition: ctype-mb.cc:1234
PasswdValue my_getpwnam(const char *)
Wrapper around the getpwnam_r() POSIX function which places the contents of the passwd struct into an...
Definition: my_getpwnam.cc:84
PasswdValue my_getpwuid(uid_t)
Wrapper around the getpwuid_r() POSIX function which places the contents of the passwd struct into an...
Definition: my_getpwnam.cc:102
Shadow struct for passwd which has proper value semantics, so that it can be safely copied and assign...
Definition: my_getpwnam.h:41
std::string pw_passwd
Definition: my_getpwnam.h:43
std::string pw_shell
Definition: my_getpwnam.h:48
PasswdValue()=default
Default constructor creates a void value.
std::string pw_gecos
Definition: my_getpwnam.h:46
std::string pw_dir
Definition: my_getpwnam.h:47
bool IsVoid() const
Returns true if this PasswdValue instance does not represent a real passwd entry.
Definition: my_getpwnam.h:67
std::string pw_name
Definition: my_getpwnam.h:42
PasswdValue(const passwd &p)
Constructs from a passwd instance.
Definition: my_getpwnam.h:51
uid_t pw_uid
Definition: my_getpwnam.h:44
gid_t pw_gid
Definition: my_getpwnam.h:45