Kernel: Add basic support for O_NONBLOCK (only for tty)

This commit is contained in:
2023-09-04 12:57:52 +03:00
parent 6f002c926a
commit b2139c0b1e
4 changed files with 11 additions and 1 deletions

View File

@@ -679,6 +679,12 @@ flush:
return count;
}
bool TTY::has_data() const
{
LockGuard _(m_lock);
return m_output.flush;
}
void TTY::putchar_current(uint8_t ch)
{
ASSERT(s_tty);