Kernel: Ignore optional_actions in SYS_TCSETATTR

Currently all terminals are syncronous, so the actions don't do anything
This commit is contained in:
Bananymous 2024-08-22 14:13:06 +03:00
parent 37cd4ed504
commit cba12efeb1
1 changed files with 6 additions and 3 deletions

View File

@ -375,8 +375,9 @@ namespace Kernel
BAN::ErrorOr<long> Process::sys_tcsetattr(int fildes, int optional_actions, const termios* termios)
{
if (optional_actions != TCSANOW)
return BAN::Error::from_errno(EINVAL);
//if (optional_actions != TCSANOW)
// return BAN::Error::from_errno(EINVAL);
(void)optional_actions;
LockGuard _(m_process_lock);
@ -1166,7 +1167,9 @@ namespace Kernel
if (!inode->mode().ifsock())
return BAN::Error::from_errno(ENOTSOCK);
dprintln("SYS_GETSOCKOPT {}, {}, {}, {}, {}", socket, level, option_name, option_value, option_len);
(void)level;
(void)option_name;
return BAN::Error::from_errno(ENOTSUP);
}