Kernel: Rename FileDescription::fstat() => stat()

This commit is contained in:
Andreas Kling 2020-09-06 18:17:07 +02:00
parent c14de7da99
commit 5444cabd39
Notes: sideshowbarker 2024-07-19 02:53:09 +09:00
3 changed files with 3 additions and 3 deletions

View file

@ -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));

View file

@ -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);

View file

@ -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;
}