1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 22:47:44 +00:00

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

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

View file

@ -75,7 +75,7 @@ FileDescription::~FileDescription()
m_inode = nullptr; m_inode = nullptr;
} }
KResult FileDescription::fstat(stat& buffer) KResult FileDescription::stat(::stat& buffer)
{ {
if (is_fifo()) { if (is_fifo()) {
memset(&buffer, 0, sizeof(buffer)); memset(&buffer, 0, sizeof(buffer));

View file

@ -62,7 +62,7 @@ public:
off_t seek(off_t, int whence); off_t seek(off_t, int whence);
KResultOr<size_t> read(u8*, size_t); KResultOr<size_t> read(u8*, size_t);
KResultOr<size_t> write(const u8* data, size_t); KResultOr<size_t> write(const u8* data, size_t);
KResult fstat(stat&); KResult stat(::stat&);
KResult chmod(mode_t); KResult chmod(mode_t);

View file

@ -40,7 +40,7 @@ int Process::sys$fstat(int fd, Userspace<stat*> user_statbuf)
if (!description) if (!description)
return -EBADF; return -EBADF;
stat buffer = {}; stat buffer = {};
int rc = description->fstat(buffer); int rc = description->stat(buffer);
copy_to_user(user_statbuf, &buffer); copy_to_user(user_statbuf, &buffer);
return rc; return rc;
} }