mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Kernel: More work towards POSIX SHM, also add ftruncate().
This commit is contained in:
parent
99f3cc26c3
commit
26a06f3fcd
10 changed files with 92 additions and 1 deletions
22
Kernel/SharedMemory.h
Normal file
22
Kernel/SharedMemory.h
Normal file
|
@ -0,0 +1,22 @@
|
|||
#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;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue