diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-22 11:51:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-22 11:51:26 +0000 |
commit | c98193747a5da419275cda2301c7f01e45fbaebd (patch) | |
tree | 69744034ced8dcacd9a6405d08d54b19eb98e72e /sys | |
parent | c52bc69f82d7405b0b4620c73bb00a73abf2b952 (diff) |
+ strip
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/tty_conf.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/sys/kern/tty_conf.c b/sys/kern/tty_conf.c index 6e3b0ba09f9..c882764e0eb 100644 --- a/sys/kern/tty_conf.c +++ b/sys/kern/tty_conf.c @@ -1,5 +1,5 @@ -/* $OpenBSD: tty_conf.c,v 1.2 1996/03/03 17:20:11 niklas Exp $ */ -/* $NetBSD: tty_conf.c,v 1.17 1996/02/04 02:17:22 christos Exp $ */ +/* $OpenBSD: tty_conf.c,v 1.3 1996/05/22 11:51:25 deraadt Exp $ */ +/* $NetBSD: tty_conf.c,v 1.18 1996/05/19 17:17:55 jonathan Exp $ */ /*- * Copyright (c) 1982, 1986, 1991, 1993 @@ -89,6 +89,16 @@ int pppread __P((struct tty *tp, struct uio *uio, int flag)); int pppwrite __P((struct tty *tp, struct uio *uio, int flag)); #endif +#include "strip.h" +#if NSTRIP > 0 +int stripopen __P((dev_t dev, struct tty *tp)); +int stripclose __P((struct tty *tp, int flags)); +int striptioctl __P((struct tty *tp, u_long cmd, caddr_t data, + int flag, struct proc *p)); +int stripinput __P((int c, struct tty *tp)); +int stripstart __P((struct tty *tp)); +#endif + struct linesw linesw[] = { { ttyopen, ttylclose, ttread, ttwrite, nullioctl, @@ -128,6 +138,14 @@ struct linesw linesw[] = { ttynodisc, ttyerrclose, ttyerrio, ttyerrio, nullioctl, ttyerrinput, ttyerrstart, nullmodem }, #endif + +#if NSTRIP > 0 + { stripopen, stripclose, ttyerrio, ttyerrio, striptioctl, + stripinput, stripstart, nullmodem }, /* 6- STRIPIPDISC */ +#else + { ttynodisc, ttyerrclose, ttyerrio, ttyerrio, nullioctl, + ttyerrinput, ttyerrstart, nullmodem }, +#endif }; int nlinesw = sizeof (linesw) / sizeof (linesw[0]); |