mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
Add a /proc/PID/fds text files that lists all the fds open in a process.
This commit is contained in:
parent
065f0aee35
commit
fd03776443
Notes:
sideshowbarker
2024-07-19 18:34:52 +09:00
Author: https://github.com/awesomekling
Commit: fd03776443
5 changed files with 44 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue