From 234614f85b07b0ccfafefd0edb7d91b53ae10628 Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Thu, 15 May 2008 18:46:17 +0000 Subject: [PATCH] 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 --- WEGA/src/uts/dev/tty.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/WEGA/src/uts/dev/tty.c b/WEGA/src/uts/dev/tty.c index f51dffc..7b935e2 100644 --- a/WEGA/src/uts/dev/tty.c +++ b/WEGA/src/uts/dev/tty.c @@ -134,10 +134,10 @@ register struct tty *tp; /* * common ioctl tty code */ -ttiocmd(tp, cmd, arg, mode) +ttiocom(tp, cmd, arg, mode) register struct tty *tp; -caddr_t arg; int cmd; +caddr_t arg; { register ushort cflg; register int tmod; @@ -217,7 +217,7 @@ int cmd; break; default: u.u_error = EINVAL; - } + } break; case TCSBRK: ttywait(tp); @@ -233,9 +233,8 @@ int cmd; case 0: case 1: case 2: - ttyflush(tp, arg); + ttyflush(tp, ((int)arg - FOPEN)&(FREAD|FWRITE)); break; - default: u.u_error = EINVAL; }