mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 15:45:25 +00:00
Add a /proc/PID/fds text files that lists all the fds open in a process.
This commit is contained in:
@@ -175,3 +175,15 @@ const TTY* FileHandle::tty() const
|
||||
return static_cast<const TTY*>(device);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int FileHandle::close()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
String FileHandle::absolute_path() const
|
||||
{
|
||||
if (isTTY())
|
||||
return tty()->ttyName();
|
||||
return VirtualFileSystem::the().absolutePath(m_vnode->inode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user