summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem
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 /Kernel/FileSystem
parentc14de7da99b76837c6c59d5a0351a648f163d440 (diff)
downloadserenity-5444cabd395994b8e095e1da4fe90304146405df.zip
Kernel: Rename FileDescription::fstat() => stat()
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r--Kernel/FileSystem/FileDescription.cpp2
-rw-r--r--Kernel/FileSystem/FileDescription.h2
2 files changed, 2 insertions, 2 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);