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;

View File

@ -27,7 +27,7 @@ namespace vfs
debug("Operation not handled for %s(%#lx)",
this->FullPath, this);
return -ENODEV;
return -ENOSYS;
}
int Node::close()
@ -37,7 +37,7 @@ namespace vfs
debug("Operation not handled for %s(%#lx)",
this->FullPath, this);
return -ENODEV;
return -ENOSYS;
}
size_t Node::read(uint8_t *Buffer, size_t Size, off_t Offset)
@ -47,7 +47,7 @@ namespace vfs
debug("Operation not handled for %s(%#lx)",
this->FullPath, this);
return -ENODEV;
return -ENOSYS;
}
size_t Node::write(uint8_t *Buffer, size_t Size, off_t Offset)
@ -57,7 +57,7 @@ namespace vfs
debug("Operation not handled for %s(%#lx)",
this->FullPath, this);
return -ENODEV;
return -ENOSYS;
}
int Node::ioctl(unsigned long Request, void *Argp)
@ -67,7 +67,7 @@ namespace vfs
debug("Operation not handled for %s(%#lx)",
this->FullPath, this);
return -ENODEV;
return -ENOSYS;
}
RefNode *Node::CreateReference()