From 5444cabd395994b8e095e1da4fe90304146405df Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 6 Sep 2020 18:17:07 +0200 Subject: [PATCH] Kernel: Rename FileDescription::fstat() => stat() --- Kernel/FileSystem/FileDescription.cpp | 2 +- Kernel/FileSystem/FileDescription.h | 2 +- Kernel/Syscalls/stat.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/FileSystem/FileDescription.cpp b/Kernel/FileSystem/FileDescription.cpp index 09a286b2151..fae98682502 100644 --- a/Kernel/FileSystem/FileDescription.cpp +++ b/Kernel/FileSystem/FileDescription.cpp @@ -75,7 +75,7 @@ FileDescription::~FileDescription() m_inode = nullptr; } -KResult FileDescription::fstat(stat& buffer) +KResult FileDescription::stat(::stat& buffer) { if (is_fifo()) { memset(&buffer, 0, sizeof(buffer)); diff --git a/Kernel/FileSystem/FileDescription.h b/Kernel/FileSystem/FileDescription.h index 3b7d36d202d..3427ad1e185 100644 --- a/Kernel/FileSystem/FileDescription.h +++ b/Kernel/FileSystem/FileDescription.h @@ -62,7 +62,7 @@ public: off_t seek(off_t, int whence); KResultOr read(u8*, size_t); KResultOr write(const u8* data, size_t); - KResult fstat(stat&); + KResult stat(::stat&); KResult chmod(mode_t); diff --git a/Kernel/Syscalls/stat.cpp b/Kernel/Syscalls/stat.cpp index 2ea70a1ab57..a5ad5882c5e 100644 --- a/Kernel/Syscalls/stat.cpp +++ b/Kernel/Syscalls/stat.cpp @@ -40,7 +40,7 @@ int Process::sys$fstat(int fd, Userspace user_statbuf) if (!description) return -EBADF; stat buffer = {}; - int rc = description->fstat(buffer); + int rc = description->stat(buffer); copy_to_user(user_statbuf, &buffer); return rc; }