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
commit 08926e59b3
Notes: sideshowbarker 2024-07-19 13:50:22 +09:00
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; }