mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 01:15:07 +00:00
Rename FileHandle to FileDescriptor.
This commit is contained in:
parent
e088121b3a
commit
83172e6a4b
18 changed files with 160 additions and 154 deletions
|
@ -36,10 +36,10 @@ ByteBuffer procfs$pid_fds(Process& process)
|
|||
memset(buffer, 0, stringImpl->length());
|
||||
char* ptr = buffer;
|
||||
for (size_t i = 0; i < process.max_open_file_descriptors(); ++i) {
|
||||
auto* handle = process.file_descriptor(i);
|
||||
if (!handle)
|
||||
auto* descriptor = process.file_descriptor(i);
|
||||
if (!descriptor)
|
||||
continue;
|
||||
ptr += ksprintf(ptr, "% 3u %s\n", i, handle->absolute_path().characters());
|
||||
ptr += ksprintf(ptr, "% 3u %s\n", i, descriptor->absolute_path().characters());
|
||||
}
|
||||
*ptr = '\0';
|
||||
return ByteBuffer::copy((byte*)buffer, ptr - buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue