mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
22 lines
376 B
C++
22 lines
376 B
C++
#pragma once
|
|
|
|
#include <AK/Retainable.h>
|
|
#include <AK/RetainPtr.h>
|
|
#include <Kernel/KResult.h>
|
|
|
|
class VMObject;
|
|
|
|
class SharedMemory : public Retainable<SharedMemory> {
|
|
public:
|
|
static Retained<SharedMemory> create();
|
|
~SharedMemory();
|
|
|
|
KResult truncate(int);
|
|
|
|
private:
|
|
SharedMemory();
|
|
|
|
int m_uid { 0 };
|
|
int m_gid { 0 };
|
|
RetainPtr<VMObject> m_vmo;
|
|
};
|