Kernel: Handle TTY ioctls on all inodes not implementing it

This reduces debug spam while compiling software
This commit is contained in:
2026-05-20 16:55:08 +03:00
parent 6045726e41
commit 14aa28b043
3 changed files with 17 additions and 18 deletions

View File

@@ -268,19 +268,4 @@ namespace Kernel
return BAN::Error::from_errno(ENODEV);
}
BAN::ErrorOr<long> Pipe::ioctl_impl(int cmd, void* arg)
{
switch (cmd)
{
case TIOCGWINSZ:
case TIOCSWINSZ:
case TCGETS:
case TCSETS:
case TCSETSW:
case TCSETSF:
return BAN::Error::from_errno(EINVAL);
}
return Inode::ioctl_impl(cmd, arg);
}
}