mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
Kernel: Track time-of-last-write in SlavePTY and report it as mtime
This commit is contained in:
parent
ae9c5bf216
commit
4527d9852a
4 changed files with 17 additions and 5 deletions
|
@ -40,6 +40,8 @@ public:
|
|||
void on_master_write(const u8*, ssize_t);
|
||||
unsigned index() const { return m_index; }
|
||||
|
||||
time_t time_of_last_write() const { return m_time_of_last_write; }
|
||||
|
||||
private:
|
||||
// ^TTY
|
||||
virtual String tty_name() const override;
|
||||
|
@ -57,7 +59,8 @@ private:
|
|||
SlavePTY(MasterPTY&, unsigned index);
|
||||
|
||||
RefPtr<MasterPTY> m_master;
|
||||
unsigned m_index;
|
||||
time_t m_time_of_last_write { 0 };
|
||||
unsigned m_index { 0 };
|
||||
char m_tty_name[32];
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue