25#ifndef MY_GETPWNAM_INCLUDED
26#define MY_GETPWNAM_INCLUDED
const char * p
Definition: ctype-mb.cc:1225
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:85
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:103
Shadow struct for passwd which has proper value semantics, so that it can be safely copied and assign...
Definition: my_getpwnam.h:42
std::string pw_passwd
Definition: my_getpwnam.h:44
std::string pw_shell
Definition: my_getpwnam.h:49
PasswdValue()=default
Default constructor creates a void value.
std::string pw_gecos
Definition: my_getpwnam.h:47
std::string pw_dir
Definition: my_getpwnam.h:48
bool IsVoid() const
Returns true if this PasswdValue instance does not represent a real passwd entry.
Definition: my_getpwnam.h:68
std::string pw_name
Definition: my_getpwnam.h:43
PasswdValue(const passwd &p)
Constructs from a passwd instance.
Definition: my_getpwnam.h:52
uid_t pw_uid
Definition: my_getpwnam.h:45
gid_t pw_gid
Definition: my_getpwnam.h:46