Kernel/LibC: Implement super basic select

This does not really even block but it works... :D
This commit is contained in:
2024-02-12 17:26:33 +02:00
parent f50b4be162
commit 3fc1edede0
34 changed files with 285 additions and 41 deletions

View File

@@ -201,10 +201,22 @@ namespace Kernel
return chown_impl(uid, gid);
}
bool Inode::has_data() const
bool Inode::can_read() const
{
LockGuard _(m_lock);
return has_data_impl();
return can_read_impl();
}
bool Inode::can_write() const
{
LockGuard _(m_lock);
return can_write_impl();
}
bool Inode::has_error() const
{
LockGuard _(m_lock);
return has_error_impl();
}
BAN::ErrorOr<long> Inode::ioctl(int request, void* arg)