diff --git a/Kernel/FileSystem/FileDescription.cpp b/Kernel/FileSystem/FileDescription.cpp index 09a286b215..fae9868250 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 3b7d36d202..3427ad1e18 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 2ea70a1ab5..a5ad5882c5 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; }