4 #ifndef RUDIMENTS_PASSWDENTRY_H
5 #define RUDIMENTS_PASSWDENTRY_H
7 #include <rudiments/private/passwdentryincludes.h>
9 class passwdentryprivate;
32 bool initialize(
const char *username);
36 bool initialize(uid_t userid);
39 const char *getName()
const;
42 const char *getPassword()
const;
54 uid_t getUserId()
const;
63 const char *getSid()
const;
66 gid_t getPrimaryGroupId()
const;
69 const char *getRealName()
const;
72 const char *getHomeDirectory()
const;
75 const char *getShell()
const;
85 static char *getName(uid_t userid);
93 static uid_t getUserId(
const char *username);
104 static char *getSid(
const char *username);
111 static bool platformSupportsFormalSid();
115 static bool needsMutex();
122 #include <rudiments/private/passwdentry.h>