diff options
author | dd <dd@FreeBSD.org> | 2001-05-22 22:16:18 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-05-22 22:16:18 +0000 |
commit | adab6d99db6304bfe1c5b58b5f713fe93d7c65a1 (patch) | |
tree | 146fd95a4ddef3f10be224c3a8061f11187f1ed0 /sys/kern/tty.c | |
parent | 3ad1483a6ba4ca396604b778ef6c8b21b7caa56d (diff) | |
download | FreeBSD-src-adab6d99db6304bfe1c5b58b5f713fe93d7c65a1.zip FreeBSD-src-adab6d99db6304bfe1c5b58b5f713fe93d7c65a1.tar.gz |
Unifdef DEV_SNP; snp(4) no longer requires these ugly hacks.
Silence by: -hackers, -audit
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index ee152b7..4086acd 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -67,7 +67,6 @@ * only when _all_ openers leave open(). */ -#include "opt_snp.h" #include "opt_compat.h" #include "opt_uconsole.h" @@ -93,9 +92,6 @@ #include <sys/resourcevar.h> #include <sys/malloc.h> #include <sys/filedesc.h> -#ifdef DEV_SNP -#include <sys/snoop.h> -#endif #include <sys/sysctl.h> #include <vm/vm.h> @@ -259,11 +255,6 @@ ttyclose(tp) clist_free_cblocks(&tp->t_outq); clist_free_cblocks(&tp->t_rawq); -#ifdef DEV_SNP - if (ISSET(tp->t_state, TS_SNOOP) && tp->t_sc != NULL) - snpdown((struct snoop *)tp->t_sc); -#endif - tp->t_gen++; tp->t_line = TTYDISC; tp->t_pgrp = NULL; @@ -1716,11 +1707,6 @@ read: * XXX if there was an error then we should ungetc() the * unmoved chars and reduce icc here. */ -#ifdef DEV_SNP - if (ISSET(tp->t_lflag, ECHO) && - ISSET(tp->t_state, TS_SNOOP) && tp->t_sc != NULL) - snpin((struct snoop *)tp->t_sc, ibuf, icc); -#endif if (error) break; if (uio->uio_resid == 0) @@ -1763,15 +1749,6 @@ slowcase: if (error) /* XXX should ungetc(c, qp). */ break; -#ifdef DEV_SNP - /* - * Only snoop directly on input in echo mode. Non-echoed - * input will be snooped later iff the application echoes it. - */ - if (ISSET(tp->t_lflag, ECHO) && - ISSET(tp->t_state, TS_SNOOP) && tp->t_sc != NULL) - snpinc((struct snoop *)tp->t_sc, (char)c); -#endif if (uio->uio_resid == 0) break; /* @@ -1916,10 +1893,6 @@ loop: cc = 0; break; } -#ifdef DEV_SNP - if (ISSET(tp->t_state, TS_SNOOP) && tp->t_sc != NULL) - snpin((struct snoop *)tp->t_sc, cp, cc); -#endif } /* * If nothing fancy need be done, grab those characters we |