mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
Kernel: Rename FileDescription::fstat() => stat()
This commit is contained in:
parent
c14de7da99
commit
5444cabd39
Notes:
sideshowbarker
2024-07-19 02:53:09 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5444cabd395
3 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue