Rudiments
groupentry.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_GROUPENTRY_H
5#define RUDIMENTS_GROUPENTRY_H
6
7#include <rudiments/private/groupentryincludes.h>
8
11class RUDIMENTS_DLLSPEC groupentry : public object {
12 public:
13
16
19
22 bool open(const char *groupname);
23
26 bool open(gid_t groupid);
27
29 const char *getName();
30
41 gid_t getGroupId();
42
50 const char *getSidString();
51 const void *getSid();
52 uint64_t getSidSize();
53
56 const char * const *getMembers();
57
63 static gid_t getGroupId(const char *groupname);
64
72 static char *getName(gid_t groupid);
73
84 static char *getSidString(const char *groupname);
85
91 static bool supportsFormalSid();
92
95 static bool getNeedsMutex();
96
100 static void setMutex(threadmutex *mtx);
101
102 #include <rudiments/private/groupentry.h>
103};
104
105#endif
Definition groupentry.h:11
const char *const * getMembers()
static bool getNeedsMutex()
bool open(const char *groupname)
gid_t getGroupId()
static bool supportsFormalSid()
static void setMutex(threadmutex *mtx)
const char * getName()
static char * getSidString(const char *groupname)
const char * getSidString()
static gid_t getGroupId(const char *groupname)
static char * getName(gid_t groupid)
bool open(gid_t groupid)
Definition object.h:10
Definition threadmutex.h:11