summaryrefslogtreecommitdiff
path: root/Shell/main.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 /Shell/main.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 'Shell/main.cpp')
-rw-r--r--Shell/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Shell/main.cpp b/Shell/main.cpp
index 769e88273c..b5e26767dc 100644
--- a/Shell/main.cpp
+++ b/Shell/main.cpp
@@ -189,10 +189,10 @@ static bool handle_builtin(int argc, char** argv, int& retval)
return false;
}
-class FileDescriptorCollector {
+class FileDescriptionCollector {
public:
- FileDescriptorCollector() { }
- ~FileDescriptorCollector() { collect(); }
+ FileDescriptionCollector() { }
+ ~FileDescriptionCollector() { collect(); }
void collect()
{
@@ -302,7 +302,7 @@ static int run_command(const String& cmd)
if (subcommands.is_empty())
return 0;
- FileDescriptorCollector fds;
+ FileDescriptionCollector fds;
for (int i = 0; i < subcommands.size(); ++i) {
auto& subcommand = subcommands[i];