mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-10 23:09:18 +00:00
Rename struct "stat" to "kstat"
This commit is contained in:
@ -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;
|
||||
|
@ -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()
|
||||
|
Reference in New Issue
Block a user