summaryrefslogtreecommitdiff
path: root/sys/compat/sunos/sunos_ioctl.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 11:03:05 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 11:03:05 +0000
commitd809c9dd2f94efcc536a82f63fed3364141b462b (patch)
treed3edfd669c103607c7d440cd87bae84eafa9d09f /sys/compat/sunos/sunos_ioctl.c
parent1b482dc28eb6a7215b18e09684ae0037899606f2 (diff)
add SUNOS_TCFLSH, fix SUNOS_S_FLUSH*
Diffstat (limited to 'sys/compat/sunos/sunos_ioctl.c')
-rw-r--r--sys/compat/sunos/sunos_ioctl.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/sys/compat/sunos/sunos_ioctl.c b/sys/compat/sunos/sunos_ioctl.c
index d4796c502d2..abafec3d19f 100644
--- a/sys/compat/sunos/sunos_ioctl.c
+++ b/sys/compat/sunos/sunos_ioctl.c
@@ -478,6 +478,9 @@ sunos_sys_ioctl(p, v, retval)
case _IO('t', 132):
SCARG(uap, com) = TIOCSCTTY;
break;
+ case SUNOS_TCFLSH:
+ /* XXX: fixme */
+ return (0);
case SUNOS_TCGETA:
case SUNOS_TCGETS:
{
@@ -766,15 +769,22 @@ sunos_sys_ioctl(p, v, retval)
{
int tmp = 0;
switch ((int)SCARG(uap, data)) {
- case SUNOS_S_FLUSHR: tmp = FREAD;
- case SUNOS_S_FLUSHW: tmp = FWRITE;
- case SUNOS_S_FLUSHRW: tmp = FREAD|FWRITE;
+ case SUNOS_S_FLUSHR:
+ tmp = FREAD;
+ break;
+ case SUNOS_S_FLUSHW:
+ tmp = FWRITE;
+ break;
+ case SUNOS_S_FLUSHRW:
+ tmp = FREAD|FWRITE;
+ break;
}
return (*ctl)(fp, TIOCFLUSH, (caddr_t)&tmp, p);
}
case _IO('S', 9): /* I_SIGSET */
{
int on = 1;
+
if (((int)SCARG(uap, data) & (SUNOS_S_HIPRI|SUNOS_S_INPUT)) ==
SUNOS_S_HIPRI)
return EOPNOTSUPP;