summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-05-07 22:15:46 +0000
committerache <ache@FreeBSD.org>1995-05-07 22:15:46 +0000
commitc049e12311d7a815f5ead9e3c2381f0a836c5330 (patch)
tree9fe1429a4f7fc01a46c0d617979595b73fa4bfdf
parent94f877197cbee8bdaea5c941030cc177ed78209a (diff)
downloadFreeBSD-src-c049e12311d7a815f5ead9e3c2381f0a836c5330.zip
FreeBSD-src-c049e12311d7a815f5ead9e3c2381f0a836c5330.tar.gz
Enable sio driver and upcoming rc driver
Add more line disciplines
-rw-r--r--usr.sbin/pstat/pstat.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 1411b54..974075f 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -56,6 +56,7 @@ static char sccsid[] = "@(#)pstat.c 8.9 (Berkeley) 2/16/94";
#include <sys/stat.h>
#include <nfs/nfsnode.h>
#include <sys/ioctl.h>
+#include <sys/ioctl_compat.h> /* XXX NTTYDISC is too well hidden */
#include <sys/tty.h>
#include <sys/conf.h>
#include <sys/rlist.h>
@@ -129,6 +130,14 @@ struct nlist nl[] = {
{ "_sccons" },
#define NSCCONS (SNPTY+2)
{ "_nsccons" },
+#define SIO (SNPTY+3)
+ { "_sio_tty" },
+#define NSIO (SNPTY+4)
+ { "_nsio_tty" },
+#define RC (SNPTY+5)
+ { "_rc_tty" },
+#define NRC (SNPTY+6)
+ { "_nrc_tty" },
#endif
{ "" }
};
@@ -764,6 +773,10 @@ ttymode()
#ifdef __FreeBSD__
if (nl[NSCCONS].n_type != 0)
ttytype(tty, "vty", SCCONS, NSCCONS);
+ if (nl[NSIO].n_type != 0)
+ ttytype(tty, "sio", SIO, NSIO);
+ if (nl[NRC].n_type != 0)
+ ttytype(tty, "rc", RC, NRC);
#endif
if (nl[SNPTY].n_type != 0)
ttytype(tty, "pty", SPTY, SNPTY);
@@ -848,12 +861,18 @@ ttyprt(tp, line)
case TTYDISC:
(void)printf("term\n");
break;
+ case NTTYDISC:
+ (void)printf("ntty\n");
+ break;
case TABLDISC:
(void)printf("tab\n");
break;
case SLIPDISC:
(void)printf("slip\n");
break;
+ case PPPDISC:
+ (void)printf("ppp\n");
+ break;
default:
(void)printf("%d\n", tp->t_line);
break;
OpenPOWER on IntegriCloud