summaryrefslogtreecommitdiff
path: root/Kernel/ProcessTracer.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-07 09:36:51 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-07 09:36:51 +0200
commit08cd75ac4baa2814bb6154c3ad127957b3b03b7c (patch)
tree87d8bcc40d4bd536c02cbef49c91e5520a44594a /Kernel/ProcessTracer.cpp
parent69a6ce90df7e0f074a714e0938cfd526076e38a3 (diff)
downloadserenity-08cd75ac4baa2814bb6154c3ad127957b3b03b7c.zip
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).
Diffstat (limited to 'Kernel/ProcessTracer.cpp')
-rw-r--r--Kernel/ProcessTracer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/ProcessTracer.cpp b/Kernel/ProcessTracer.cpp
index e81568b4a0..66aeb8ac49 100644
--- a/Kernel/ProcessTracer.cpp
+++ b/Kernel/ProcessTracer.cpp
@@ -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);
}