TODO: the TCXONC case is still not identical with the original ASM code
bit more work - rename ttiocmd to ttiocom and fix the TCFLSH case
This commit is contained in:
parent
a7eb169c94
commit
234614f85b
|
|
@ -134,10 +134,10 @@ register struct tty *tp;
|
||||||
/*
|
/*
|
||||||
* common ioctl tty code
|
* common ioctl tty code
|
||||||
*/
|
*/
|
||||||
ttiocmd(tp, cmd, arg, mode)
|
ttiocom(tp, cmd, arg, mode)
|
||||||
register struct tty *tp;
|
register struct tty *tp;
|
||||||
caddr_t arg;
|
|
||||||
int cmd;
|
int cmd;
|
||||||
|
caddr_t arg;
|
||||||
{
|
{
|
||||||
register ushort cflg;
|
register ushort cflg;
|
||||||
register int tmod;
|
register int tmod;
|
||||||
|
|
@ -217,7 +217,7 @@ int cmd;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
u.u_error = EINVAL;
|
u.u_error = EINVAL;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TCSBRK:
|
case TCSBRK:
|
||||||
ttywait(tp);
|
ttywait(tp);
|
||||||
|
|
@ -233,9 +233,8 @@ int cmd;
|
||||||
case 0:
|
case 0:
|
||||||
case 1:
|
case 1:
|
||||||
case 2:
|
case 2:
|
||||||
ttyflush(tp, arg);
|
ttyflush(tp, ((int)arg - FOPEN)&(FREAD|FWRITE));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
u.u_error = EINVAL;
|
u.u_error = EINVAL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue