1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

Kernel: Track time-of-last-write in SlavePTY and report it as mtime

This commit is contained in:
Andreas Kling 2020-09-06 18:48:24 +02:00
parent ae9c5bf216
commit 4527d9852a
4 changed files with 17 additions and 5 deletions

View file

@ -64,7 +64,7 @@ public:
virtual ~DevPtsFSInode() override;
private:
DevPtsFSInode(DevPtsFS&, unsigned index);
DevPtsFSInode(DevPtsFS&, unsigned index, SlavePTY*);
// ^Inode
virtual ssize_t read_bytes(off_t, ssize_t, u8* buffer, FileDescription*) const override;
@ -80,6 +80,7 @@ private:
virtual KResult chmod(mode_t) override;
virtual KResult chown(uid_t, gid_t) override;
WeakPtr<SlavePTY> m_pty;
InodeMetadata m_metadata;
};