mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +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
5 changed files with 44 additions and 5 deletions
|
@ -136,6 +136,9 @@ public:
|
|||
InodeIdentifier executableInode() const { return m_executable ? m_executable->inode : InodeIdentifier(); }
|
||||
|
||||
size_t number_of_open_file_descriptors() const;
|
||||
size_t max_open_file_descriptors() const { return m_max_open_file_descriptors; }
|
||||
FileHandle* file_descriptor(size_t i) { return m_file_descriptors[i].ptr(); }
|
||||
const FileHandle* file_descriptor(size_t i) const { return m_file_descriptors[i].ptr(); }
|
||||
|
||||
private:
|
||||
friend class MemoryManager;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue