1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:17:44 +00:00

Kernel: Add InodeFile, a File subclass for regular files.

Finally everything that can be held by a FileDescriptor actually inherits
from the File class.
This commit is contained in:
Andreas Kling 2019-05-30 13:39:17 +02:00
parent 66c1a9be3b
commit 08926e59b3
9 changed files with 151 additions and 133 deletions

View file

@ -16,7 +16,7 @@ public:
virtual ~SharedMemory() override;
String name() const { return m_name; }
KResult truncate(off_t);
virtual KResult truncate(off_t) override;
VMObject* vmo() { return m_vmo.ptr(); }
const VMObject* vmo() const { return m_vmo.ptr(); }
uid_t uid() const { return m_uid; }