pty: handle tty ioctl

This commit is contained in:
Matheus
2024-05-08 15:59:40 -03:00
parent 09e36bdd4e
commit ae47efa87d
4 changed files with 26 additions and 12 deletions
+2 -3
View File
@@ -198,14 +198,13 @@ static int ioctl(int minor, unsigned long request, void *_arg, int *result) {
return ENODEV;
switch (request) {
case TIOCGPTN:
{
case TIOCGPTN: {
int *arg = _arg;
*arg = pty->minor;
break;
}
default:
return ENOTTY;
return tty_ioctl(pty->tty, request, _arg, result);
}
return 0;