summaryrefslogtreecommitdiffstats
path: root/sys/gnu
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/gnu
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/gnu')
-rw-r--r--sys/gnu/isdn/iitty.c23
1 files changed, 11 insertions, 12 deletions
diff --git a/sys/gnu/isdn/iitty.c b/sys/gnu/isdn/iitty.c
index 0ca62f5..a58793b 100644
--- a/sys/gnu/isdn/iitty.c
+++ b/sys/gnu/isdn/iitty.c
@@ -1,6 +1,6 @@
-static char _ittyid[] = "@(#)$Id: iitty.c,v 1.2 1995/02/15 06:28:28 jkh Exp $";
+static char _ittyid[] = "@(#)$Id: iitty.c,v 1.3 1995/02/25 20:08:52 pst Exp $";
/*******************************************************************************
- * II - Version 0.1 $Revision: 1.2 $ $State: Exp $
+ * II - Version 0.1 $Revision: 1.3 $ $State: Exp $
*
* Copyright 1994 Dietmar Friede
*******************************************************************************
@@ -10,6 +10,15 @@ static char _ittyid[] = "@(#)$Id: iitty.c,v 1.2 1995/02/15 06:28:28 jkh Exp
*
*******************************************************************************
* $Log: iitty.c,v $
+ * Revision 1.3 1995/02/25 20:08:52 pst
+ * (a) remove the pointer to each driver's tty structure array from cdevsw
+ * (b) add a function callback vector to tty drivers that will return a pointer
+ * to a valid tty structure based upon a dev_t
+ * (c) make syscons structures the same size whether or not APM is enabled so
+ * utilities don't crash if NAPM changes (and make the damn kernel compile!)
+ * (d) rewrite /dev/snp ioctl interface so that it is device driver and i386
+ * independant
+ *
* Revision 1.2 1995/02/15 06:28:28 jkh
* Fix up include paths, nuke some warnings.
*
@@ -334,14 +343,4 @@ itydevtotty(dev_t dev)
return (&ity_tty[unit]);
}
-int
-ityselect(dev_t dev, int rw, struct proc *p)
-{
- register int unit = UNIT(dev);
- if (unit >= next_if)
- return (ENXIO);
-
- return (ttyselect(&ity_tty[unit], rw, p));
-}
-
#endif
OpenPOWER on IntegriCloud