mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:07:45 +00:00
Kernel: Customize absolute_path() for more file types
This commit is contained in:
parent
1d03391488
commit
dadf6337ef
7 changed files with 91 additions and 15 deletions
|
@ -102,3 +102,8 @@ int MasterPTY::ioctl(FileDescription& description, unsigned request, unsigned ar
|
|||
return m_slave->ioctl(description, request, arg);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
String MasterPTY::absolute_path(const FileDescription&) const
|
||||
{
|
||||
return String::format("ptm:%s", m_pts_name.characters());
|
||||
}
|
||||
|
|
|
@ -18,6 +18,8 @@ public:
|
|||
void notify_slave_closed(Badge<SlavePTY>);
|
||||
bool is_closed() const { return m_closed; }
|
||||
|
||||
virtual String absolute_path(const FileDescription&) const override;
|
||||
|
||||
private:
|
||||
// ^CharacterDevice
|
||||
virtual ssize_t read(FileDescription&, u8*, ssize_t) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue