summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-06 18:17:07 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-06 18:17:07 +0200
commit5444cabd395994b8e095e1da4fe90304146405df (patch)
treecdfc8c36590f1062c934f46be2d0bba7c83dcb04
parentc14de7da99b76837c6c59d5a0351a648f163d440 (diff)
downloadserenity-5444cabd395994b8e095e1da4fe90304146405df.zip
Kernel: Rename FileDescription::fstat() => stat()
-rw-r--r--Kernel/FileSystem/FileDescription.cpp2
-rw-r--r--Kernel/FileSystem/FileDescription.h2
-rw-r--r--Kernel/Syscalls/stat.cpp2
3 files changed, 3 insertions, 3 deletions
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<size_t> read(u8*, size_t);
KResultOr<size_t> 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<stat*> 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;
}