projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UPAGES 8; dumpstack 96; msgbufmap; kernacc rounding bug fixed
[unix-history]
/
usr
/
src
/
sys
/
kern
/
tty.c
diff --git
a/usr/src/sys/kern/tty.c
b/usr/src/sys/kern/tty.c
index
f525093
..
2d61be7
100644
(file)
--- a/
usr/src/sys/kern/tty.c
+++ b/
usr/src/sys/kern/tty.c
@@
-1,4
+1,4
@@
-/* tty.c
3.19
%G% */
+/* tty.c
4.3
%G% */
/*
* TTY subroutines common to more than one line discipline
/*
* TTY subroutines common to more than one line discipline
@@
-197,10
+197,12
@@
register struct tty *tp;
/*
* Common code for tty ioctls.
*/
/*
* Common code for tty ioctls.
*/
-ttioctl(com, tp, addr, dev, flag)
+/*ARGSUSED*/
+ttioctl(tp, com, addr, flag)
register struct tty *tp;
caddr_t addr;
{
register struct tty *tp;
caddr_t addr;
{
+ int dev;
unsigned t;
struct sgttyb iocb;
struct clist tq;
unsigned t;
struct sgttyb iocb;
struct clist tq;
@@
-217,6
+219,7
@@
caddr_t addr;
return (1);
}
return (1);
}
+ dev = tp->t_dev;
/*
* If the ioctl involves modification,
* insist on being able to write the device,
/*
* If the ioctl involves modification,
* insist on being able to write the device,
@@
-315,6
+318,9
@@
caddr_t addr;
wflushtty(tp);
while (canon(tp)>=0)
;
wflushtty(tp);
while (canon(tp)>=0)
;
+#ifdef notdef
+ wakeup((caddr_t)&tp->t_rawq);
+#endif
} else if (tp->t_line == NTTYDISC) {
if (tp->t_flags&RAW || iocb.sg_flags&RAW ||
com == TIOCSETP)
} else if (tp->t_line == NTTYDISC) {
if (tp->t_flags&RAW || iocb.sg_flags&RAW ||
com == TIOCSETP)
@@
-329,9
+335,11
@@
caddr_t addr;
tp->t_local |= LPENDIN;
if (tp->t_canq.c_cc)
panic("ioccom canq");
tp->t_local |= LPENDIN;
if (tp->t_canq.c_cc)
panic("ioccom canq");
+#ifdef notdef
if (tp->t_chan)
(void) sdata(tp->t_chan);
else
if (tp->t_chan)
(void) sdata(tp->t_chan);
else
+#endif
wakeup((caddr_t)&tp->t_rawq);
}
}
wakeup((caddr_t)&tp->t_rawq);
}
}
@@
-370,15
+378,6
@@
caddr_t addr;
flushtty(tp, FREAD|FWRITE);
break;
flushtty(tp, FREAD|FWRITE);
break;
- /*
- * Ioctl entries to line discipline
- */
- case DIOCSETP:
- case DIOCGETP:
- if ((*linesw[tp->t_line].l_ioctl)(com, tp, addr))
- u.u_error = ENOTTY;
- break;
-
/*
* Set and fetch special characters
*/
/*
* Set and fetch special characters
*/