Kernel: Implement FIONREAD for tty and pty

This commit is contained in:
2025-11-24 18:13:54 +02:00
parent 9d0990e5e8
commit 6a924db68c
2 changed files with 18 additions and 4 deletions

View File

@@ -202,6 +202,11 @@ namespace Kernel
TRY(set_font(BAN::move(new_font)));
return 0;
}
case FIONREAD:
{
*static_cast<int*>(argument) = m_output.flush ? m_output.bytes : 0;
return 0;
}
case TIOCGWINSZ:
{
auto* winsize = static_cast<struct winsize*>(argument);