mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-16 05:51:55 +00:00
Add an fd field to FileHandle in Kernel builds.
This commit is contained in:
parent
9d5de91cf3
commit
e86cadc7af
Notes:
sideshowbarker
2024-07-19 18:46:33 +09:00
Author: https://github.com/awesomekling
Commit: e86cadc7af
3 changed files with 20 additions and 0 deletions
|
@ -14,11 +14,20 @@ public:
|
|||
|
||||
ByteBuffer readEntireFile();
|
||||
|
||||
#ifdef SERENITY_KERNEL
|
||||
int fd() const { return m_fd; }
|
||||
void setFD(int fd) { m_fd = fd; }
|
||||
#endif
|
||||
|
||||
private:
|
||||
friend class VirtualFileSystem;
|
||||
|
||||
RetainPtr<VirtualFileSystem::Node> m_vnode;
|
||||
|
||||
Unix::off_t m_currentOffset { 0 };
|
||||
|
||||
#ifdef SERENITY_KERNEL
|
||||
int m_fd { -1 };
|
||||
#endif
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue