passwdentry.h
// Copyright (c) 2002 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_PASSWDENTRY_H
#define RUDIMENTS_PASSWDENTRY_H
#include <rudiments/private/passwdentryincludes.h>
class passwdentryprivate;
class RUDIMENTS_DLLSPEC passwdentry {
public:
passwdentry();
passwdentry(const passwdentry &p);
passwdentry &operator=(const passwdentry &p);
~passwdentry();
bool initialize(const char *username);
bool initialize(uid_t userid);
const char *getName() const;
const char *getPassword() const;
uid_t getUserId() const;
const char *getSid() const;
gid_t getPrimaryGroupId() const;
const char *getRealName() const;
const char *getHomeDirectory() const;
const char *getShell() const;
static char *getName(uid_t userid);
static uid_t getUserId(const char *username);
static char *getSid(const char *username);
static bool platformSupportsFormalSid();
static bool needsMutex();
static void setMutex(threadmutex *mtx);
#include <rudiments/private/passwdentry.h>
};
#endif