Kernel: Add bareboness possibility to set termios

This commit is contained in:
2023-05-16 19:22:10 +03:00
parent 496adb61a4
commit 9e0abbc2f0
8 changed files with 198 additions and 2 deletions

View File

@@ -90,6 +90,18 @@ long syscall(long syscall, ...)
ret = Kernel::syscall(SYS_TELL, fd);
break;
}
case SYS_GET_TERMIOS:
{
struct termios* termios = va_arg(args, struct termios*);
ret = Kernel::syscall(SYS_GET_TERMIOS, (uintptr_t)termios);
break;
}
case SYS_SET_TERMIOS:
{
const struct termios* termios = va_arg(args, const struct termios*);
ret = Kernel::syscall(SYS_SET_TERMIOS, (uintptr_t)termios);
break;
}
default:
puts("LibC: Unhandeled syscall");
ret = -ENOSYS;