summaryrefslogtreecommitdiff
path: root/Kernel/Syscalls/open.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-07 13:41:27 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-07 13:53:14 +0200
commit213b8868af6028c98cf96b0a668fc3dda8ba5958 (patch)
tree963f56fa4fa4a6ce3e5ada4316825513562a72fc /Kernel/Syscalls/open.cpp
parent4a9c18afb9b9c7fde698e93700e661d66e3ed34d (diff)
downloadserenity-213b8868af6028c98cf96b0a668fc3dda8ba5958.zip
Kernel: Rename file_description(fd) => open_file_description(fd)
To go with the class rename.
Diffstat (limited to 'Kernel/Syscalls/open.cpp')
-rw-r--r--Kernel/Syscalls/open.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Syscalls/open.cpp b/Kernel/Syscalls/open.cpp
index 100a077931..9dd7061505 100644
--- a/Kernel/Syscalls/open.cpp
+++ b/Kernel/Syscalls/open.cpp
@@ -46,7 +46,7 @@ KResultOr<FlatPtr> Process::sys$open(Userspace<const Syscall::SC_open_params*> u
if (dirfd == AT_FDCWD) {
base = current_directory();
} else {
- auto base_description = TRY(fds().file_description(dirfd));
+ auto base_description = TRY(fds().open_file_description(dirfd));
if (!base_description->is_directory())
return ENOTDIR;
if (!base_description->custody())
@@ -68,7 +68,7 @@ KResultOr<FlatPtr> Process::sys$close(int fd)
{
VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this)
REQUIRE_PROMISE(stdio);
- auto description = TRY(fds().file_description(fd));
+ auto description = TRY(fds().open_file_description(fd));
auto result = description->close();
m_fds[fd] = {};
return result;