summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1995-02-28 00:21:11 +0000
committerpst <pst@FreeBSD.org>1995-02-28 00:21:11 +0000
commit9b98fb36dc05ba21e4898c983c58bc0eb8f669b4 (patch)
tree91c6a33544eb4628383ab7c05b8571d00b6f35d3 /sys/kern/tty.c
parent2b514bef5110bbe670f032770ac8769b1f371b4c (diff)
downloadFreeBSD-src-9b98fb36dc05ba21e4898c983c58bc0eb8f669b4.zip
FreeBSD-src-9b98fb36dc05ba21e4898c983c58bc0eb8f669b4.tar.gz
Incorporate bde's code-review comments.
(a) bring back ttselect, now that we have xxxdevtotty() it isn't dangerous. (b) remove all of the wrappers that have been replaced by ttselect (c) fix formatting in syscons.c and definition in syscons.h (d) add cxdevtotty NOT DONE: (e) make pcvt work... it was already broken...when someone fixes pcvt to link properly, just rename get_pccons to xxxdevtotty and we're done
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index e516ec2..2020d7d 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)tty.c 8.8 (Berkeley) 1/21/94
- * $Id: tty.c,v 1.32 1995/02/25 20:09:29 pst Exp $
+ * $Id: tty.c,v 1.33 1995/02/27 19:47:31 ugen Exp $
*/
#include "snp.h"
@@ -988,6 +988,19 @@ win: splx(s);
}
/*
+ * This is a wrapper for compatibility with the select vector used by
+ * cdevsw. It relies on a proper xxxdevtotty routine.
+ */
+int
+ttselect(dev, rw, p)
+ dev_t dev;
+ int rw;
+ struct proc *p;
+{
+ return ttyselect((*cdevsw[major(dev)].d_devtotty)(dev), rw, p);
+}
+
+/*
* This is now exported to the cy driver as well; if you hack this code,
* then be sure to keep /sys/i386/isa/cy.c properly advised! -jkh
*/
OpenPOWER on IntegriCloud