mirror of
https://github.com/RGBCube/serenity
synced 2025-05-22 19:35:06 +00:00
Kernel+ProcessManager: Add some more info to /proc/PID/fds
- "seekable": whether the fd is seekable or sequential. - "class": which kernel C++ class implements this File. - "offset": the current implicit POSIX API file offset.
This commit is contained in:
parent
7f25959fa2
commit
f511421aaa
3 changed files with 24 additions and 0 deletions
|
@ -201,6 +201,9 @@ ByteBuffer procfs$pid_fds(InodeIdentifier identifier)
|
|||
JsonObject description_object;
|
||||
description_object.set("fd", i);
|
||||
description_object.set("absolute_path", description->absolute_path());
|
||||
description_object.set("seekable", description->file().is_seekable());
|
||||
description_object.set("class", description->file().class_name());
|
||||
description_object.set("offset", description->offset());
|
||||
array.append(move(description_object));
|
||||
}
|
||||
return array.serialized().to_byte_buffer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue