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

Kernel: Make FIFO inherit from File.

This commit is contained in:
Andreas Kling 2019-04-29 04:55:54 +02:00
parent f254a84d17
commit 0a0d739e98
18 changed files with 96 additions and 72 deletions

View file

@ -281,8 +281,8 @@ private:
struct FileDescriptorAndFlags {
operator bool() const { return !!descriptor; }
void clear() { descriptor = nullptr; flags = 0; }
void set(Retained<FileDescriptor>&& d, dword f = 0) { descriptor = move(d); flags = f; }
void clear();
void set(Retained<FileDescriptor>&& d, dword f = 0);
RetainPtr<FileDescriptor> descriptor;
dword flags { 0 };
};