Rename struct "stat" to "kstat"

This commit is contained in:
EnderIce2
2024-04-01 04:49:06 +03:00
parent 7b5a486391
commit 91ca38fd77
5 changed files with 67 additions and 114 deletions

View File

@ -472,7 +472,7 @@ namespace vfs
}
int FileDescriptorTable::_stat(const char *pathname,
struct stat *statbuf)
struct kstat *statbuf)
{
if (pathname == nullptr)
return -EINVAL;
@ -505,7 +505,7 @@ namespace vfs
return 0;
}
int FileDescriptorTable::_fstat(int _fd, struct stat *statbuf)
int FileDescriptorTable::_fstat(int _fd, struct kstat *statbuf)
{
Fildes &fd = this->GetDescriptor(_fd);
if (fd == nullfd)
@ -533,7 +533,7 @@ namespace vfs
}
int FileDescriptorTable::_lstat(const char *pathname,
struct stat *statbuf)
struct kstat *statbuf)
{
if (pathname == nullptr)
return -EINVAL;