sharedmemory.h
// Copyright (c) 1999-2002 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_SHAREDMEMORY_H
#define RUDIMENTS_SHAREDMEMORY_H
#include <rudiments/private/sharedmemoryincludes.h>
class sharedmemoryprivate;
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();
#include <rudiments/private/sharedmemory.h>
};
#endif
sharedmemory
Definition: sharedmemory.h:21
permissions
Definition: permissions.h:28