Rudiments: /home/dmuse/temp/rudiments/include/rudiments/sharedmemory.h Source File

Rudiments

sharedmemory.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_SHAREDMEMORY_H
5 #define RUDIMENTS_SHAREDMEMORY_H
6
7 #include <rudiments/private/sharedmemoryincludes.h>
8
19 class RUDIMENTS_DLLSPEC sharedmemory {
20 public:
22 sharedmemory();
23
28 ~sharedmemory();
29
34 bool create(key_t key, size_t size, mode_t permissions);
35
38 bool attach(key_t key, size_t size);
39
43 bool createOrAttach(key_t key, size_t size,
44 mode_t permissions);
45
53 void dontRemove();
54
57 bool forceRemove();
58
61 int32_t getId() const;
62
66 void *getPointer() const;
67
75 bool setUserName(const char *username);
76
84 bool setGroupName(const char *groupname);
85
88 bool setUserId(uid_t uid);
89
92 bool setGroupId(gid_t gid);
93
96 bool setPermissions(mode_t permissions);
97
105 const char *getUserName();
106
114 const char *getGroupName();
115
118 uid_t getUserId();
119
122 gid_t getGroupId();
123
126 mode_t getPermissions();
127
130 static bool supported();
131
132 #include <rudiments/private/sharedmemory.h>
133 };
134
135 #endif
permissions
Definition: permissions.h:28
sharedmemory
Definition: sharedmemory.h:19
sharedmemory::create
bool create(key_t key, size_t size, mode_t permissions)
sharedmemory::dontRemove
void dontRemove()
sharedmemory::attach
bool attach(key_t key, size_t size)
sharedmemory::setPermissions
bool setPermissions(mode_t permissions)
sharedmemory::getUserId
uid_t getUserId()
sharedmemory::forceRemove
bool forceRemove()
sharedmemory::supported
static bool supported()
sharedmemory::getGroupName
const char * getGroupName()
sharedmemory::setGroupId
bool setGroupId(gid_t gid)
sharedmemory::setGroupName
bool setGroupName(const char *groupname)
sharedmemory::setUserId
bool setUserId(uid_t uid)
sharedmemory::~sharedmemory
~sharedmemory()
sharedmemory::createOrAttach
bool createOrAttach(key_t key, size_t size, mode_t permissions)
sharedmemory::sharedmemory
sharedmemory()
sharedmemory::getPointer
void * getPointer() const
sharedmemory::getId
int32_t getId() const
sharedmemory::setUserName
bool setUserName(const char *username)
sharedmemory::getGroupId
gid_t getGroupId()
sharedmemory::getUserName
const char * getUserName()
sharedmemory::getPermissions
mode_t getPermissions()