forked from Bananymous/banan-os
Kernel: OpenFileDescriptors can now store more than 8 bits of flags
This commit is contained in:
parent
65fa05f998
commit
1a1e584cba
|
@ -44,7 +44,7 @@ namespace Kernel
|
||||||
private:
|
private:
|
||||||
struct OpenFileDescription : public BAN::RefCounted<OpenFileDescription>
|
struct OpenFileDescription : public BAN::RefCounted<OpenFileDescription>
|
||||||
{
|
{
|
||||||
OpenFileDescription(BAN::RefPtr<Inode> inode, BAN::String path, off_t offset, uint8_t flags)
|
OpenFileDescription(BAN::RefPtr<Inode> inode, BAN::String path, off_t offset, int flags)
|
||||||
: inode(inode)
|
: inode(inode)
|
||||||
, path(BAN::move(path))
|
, path(BAN::move(path))
|
||||||
, offset(offset)
|
, offset(offset)
|
||||||
|
@ -54,7 +54,7 @@ namespace Kernel
|
||||||
BAN::RefPtr<Inode> inode;
|
BAN::RefPtr<Inode> inode;
|
||||||
BAN::String path;
|
BAN::String path;
|
||||||
off_t offset { 0 };
|
off_t offset { 0 };
|
||||||
uint8_t flags { 0 };
|
int flags { 0 };
|
||||||
|
|
||||||
friend class BAN::RefPtr<OpenFileDescription>;
|
friend class BAN::RefPtr<OpenFileDescription>;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue