mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
Kernel: Rename FileDescriptor to FileDescription.
After reading a bunch of POSIX specs, I've learned that a file descriptor is the number that refers to a file description, not the description itself. So this patch renames FileDescriptor to FileDescription, and Process now has FileDescription* file_description(int fd).
This commit is contained in:
parent
69a6ce90df
commit
08cd75ac4b
70 changed files with 373 additions and 373 deletions
|
@ -18,7 +18,7 @@ void ProcessTracer::did_syscall(dword function, dword arg1, dword arg2, dword ar
|
|||
m_calls.enqueue(data);
|
||||
}
|
||||
|
||||
int ProcessTracer::read(FileDescriptor&, byte* buffer, int buffer_size)
|
||||
int ProcessTracer::read(FileDescription&, byte* buffer, int buffer_size)
|
||||
{
|
||||
if (m_calls.is_empty())
|
||||
return 0;
|
||||
|
@ -29,7 +29,7 @@ int ProcessTracer::read(FileDescriptor&, byte* buffer, int buffer_size)
|
|||
return sizeof(data);
|
||||
}
|
||||
|
||||
String ProcessTracer::absolute_path(const FileDescriptor&) const
|
||||
String ProcessTracer::absolute_path(const FileDescription&) const
|
||||
{
|
||||
return String::format("tracer:%d", m_pid);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue