sharedmemory.h
// Copyright (c) 1999-2018 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_SHAREDMEMORY_H
#define RUDIMENTS_SHAREDMEMORY_H
#include <rudiments/private/sharedmemoryincludes.h>
class RUDIMENTS_DLLSPEC sharedmemory {
public:
sharedmemory();
~sharedmemory();
bool create(key_t key, size_t size, mode_t permissions);
bool attach(key_t key, size_t size);
bool createOrAttach(key_t key, size_t size,
mode_t permissions);
void dontRemove();
bool forceRemove();
int32_t getId() const;
void *getPointer() const;
bool setUserName(const char *username);
bool setGroupName(const char *groupname);
bool setUserId(uid_t uid);
bool setGroupId(gid_t gid);
bool setPermissions(mode_t permissions);
const char *getUserName();
const char *getGroupName();
uid_t getUserId();
gid_t getGroupId();
mode_t getPermissions();
static bool supported();
#include <rudiments/private/sharedmemory.h>
};
#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()