From 1a1e584cbae55cc2e58e5ec4802588a6f6bd10ed Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 10 Jul 2023 16:06:36 +0300 Subject: [PATCH] Kernel: OpenFileDescriptors can now store more than 8 bits of flags --- kernel/include/kernel/OpenFileDescriptorSet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/include/kernel/OpenFileDescriptorSet.h b/kernel/include/kernel/OpenFileDescriptorSet.h index a5fa50675..2c4a8a58d 100644 --- a/kernel/include/kernel/OpenFileDescriptorSet.h +++ b/kernel/include/kernel/OpenFileDescriptorSet.h @@ -44,7 +44,7 @@ namespace Kernel private: struct OpenFileDescription : public BAN::RefCounted { - OpenFileDescription(BAN::RefPtr inode, BAN::String path, off_t offset, uint8_t flags) + OpenFileDescription(BAN::RefPtr inode, BAN::String path, off_t offset, int flags) : inode(inode) , path(BAN::move(path)) , offset(offset) @@ -54,7 +54,7 @@ namespace Kernel BAN::RefPtr inode; BAN::String path; off_t offset { 0 }; - uint8_t flags { 0 }; + int flags { 0 }; friend class BAN::RefPtr; };