diff options
author | Andreas Kling <kling@serenityos.org> | 2021-09-07 13:41:27 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-07 13:53:14 +0200 |
commit | 213b8868af6028c98cf96b0a668fc3dda8ba5958 (patch) | |
tree | 963f56fa4fa4a6ce3e5ada4316825513562a72fc /Kernel/Syscalls/dup2.cpp | |
parent | 4a9c18afb9b9c7fde698e93700e661d66e3ed34d (diff) | |
download | serenity-213b8868af6028c98cf96b0a668fc3dda8ba5958.zip |
Kernel: Rename file_description(fd) => open_file_description(fd)
To go with the class rename.
Diffstat (limited to 'Kernel/Syscalls/dup2.cpp')
-rw-r--r-- | Kernel/Syscalls/dup2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Syscalls/dup2.cpp b/Kernel/Syscalls/dup2.cpp index 72d6aa7438..22cd74123a 100644 --- a/Kernel/Syscalls/dup2.cpp +++ b/Kernel/Syscalls/dup2.cpp @@ -13,7 +13,7 @@ KResultOr<FlatPtr> Process::sys$dup2(int old_fd, int new_fd) { VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this); REQUIRE_PROMISE(stdio); - auto description = TRY(fds().file_description(old_fd)); + auto description = TRY(fds().open_file_description(old_fd)); if (old_fd == new_fd) return new_fd; if (new_fd < 0 || static_cast<size_t>(new_fd) >= fds().max_open()) |