diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-07 13:39:11 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-07 13:53:14 +0200 |
commit | 4a9c18afb9b9c7fde698e93700e661d66e3ed34d (patch) | |
tree | be50cd7629139e1c3d6c7df5bcffa7a0d5a1e898 /Kernel/TTY/PTYMultiplexer.cpp | |
parent | dbd639a2d8d288691e6cffd29e4ff2ec0bae6982 (diff) | |
download | serenity-4a9c18afb9b9c7fde698e93700e661d66e3ed34d.zip |
Kernel: Rename FileDescription => OpenFileDescription
Dr. POSIX really calls these "open file description", not just
"file description", so let's call them exactly that. :^)
Diffstat (limited to 'Kernel/TTY/PTYMultiplexer.cpp')
-rw-r--r-- | Kernel/TTY/PTYMultiplexer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Kernel/TTY/PTYMultiplexer.cpp b/Kernel/TTY/PTYMultiplexer.cpp index 271f1af1f2..537831b74d 100644 --- a/Kernel/TTY/PTYMultiplexer.cpp +++ b/Kernel/TTY/PTYMultiplexer.cpp @@ -6,7 +6,7 @@ #include <AK/Singleton.h> #include <Kernel/Debug.h> -#include <Kernel/FileSystem/FileDescription.h> +#include <Kernel/FileSystem/OpenFileDescription.h> #include <Kernel/Sections.h> #include <Kernel/TTY/MasterPTY.h> #include <Kernel/TTY/PTYMultiplexer.h> @@ -35,9 +35,9 @@ UNMAP_AFTER_INIT PTYMultiplexer::~PTYMultiplexer() { } -KResultOr<NonnullRefPtr<FileDescription>> PTYMultiplexer::open(int options) +KResultOr<NonnullRefPtr<OpenFileDescription>> PTYMultiplexer::open(int options) { - return m_freelist.with_exclusive([&](auto& freelist) -> KResultOr<NonnullRefPtr<FileDescription>> { + return m_freelist.with_exclusive([&](auto& freelist) -> KResultOr<NonnullRefPtr<OpenFileDescription>> { if (freelist.is_empty()) return EBUSY; @@ -46,7 +46,7 @@ KResultOr<NonnullRefPtr<FileDescription>> PTYMultiplexer::open(int options) if (!master) return ENOMEM; dbgln_if(PTMX_DEBUG, "PTYMultiplexer::open: Vending master {}", master->index()); - auto description = TRY(FileDescription::try_create(*master)); + auto description = TRY(OpenFileDescription::try_create(*master)); description->set_rw_mode(options); description->set_file_flags(options); return description; |