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:
Oliver Lehmann 2008-05-15 18:46:17 +00:00
parent a7eb169c94
commit 234614f85b
1 changed files with 4 additions and 5 deletions

View File

@ -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;
@ -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;
} }