userentry.h
// Copyright (c) 2002-2014 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_USERENTRY_H
#define RUDIMENTS_USERENTRY_H
#include <rudiments/private/userentryincludes.h>
class userentryprivate;
class RUDIMENTS_DLLSPEC userentry {
public:
userentry();
userentry(const userentry &u);
userentry &operator=(const userentry &u);
~userentry();
bool initialize(const char *username);
bool initialize(uid_t userid);
const char *getName() const;
const char *getPassword() const;
uid_t getUserId() const;
const char *getSidString() const;
const void *getSid() const;
uint64_t getSidSize() const;
gid_t getPrimaryGroupId() const;
const char *getRealName() const;
const char *getHomeDirectory() const;
const char *getShell() const;
const char *getEncryptedPassword() const;
long getLastChangeDate() const;
int32_t getDaysBeforeChangeAllowed() const;
int32_t getDaysBeforeChangeRequired() const;
int32_t getDaysBeforeExpirationWarning() const;
int32_t getDaysOfInactivityAllowed() const;
int32_t getExpirationDate() const;
int32_t getFlag() const;
static char *getName(uid_t userid);
static uid_t getUserId(const char *username);
static char *getSidString(const char *username);
static bool platformSupportsFormalSid();
static bool needsMutex();
static void setMutex(threadmutex *mtx);
#include <rudiments/private/userentry.h>
};
#endif
threadmutex
Definition: threadmutex.h:13
userentry
Definition: userentry.h:13