diff options
Diffstat (limited to 'usr.bin/window/wwrint.c')
-rw-r--r-- | usr.bin/window/wwrint.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/usr.bin/window/wwrint.c b/usr.bin/window/wwrint.c index 10b70561dd1..c7ef28ed6ec 100644 --- a/usr.bin/window/wwrint.c +++ b/usr.bin/window/wwrint.c @@ -1,4 +1,4 @@ -/* $NetBSD: wwrint.c,v 1.3 1995/09/28 10:35:52 tls Exp $ */ +/* $NetBSD: wwrint.c,v 1.4 1995/12/21 10:46:24 mycroft Exp $ */ /* * Copyright (c) 1983, 1993 @@ -40,15 +40,12 @@ #if 0 static char sccsid[] = "@(#)wwrint.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$NetBSD: wwrint.c,v 1.3 1995/09/28 10:35:52 tls Exp $"; +static char rcsid[] = "$NetBSD: wwrint.c,v 1.4 1995/12/21 10:46:24 mycroft Exp $"; #endif #endif /* not lint */ #include "ww.h" #include "tt.h" -#if defined(OLD_TTY) || defined(VMIN_BUG) -#include <fcntl.h> -#endif /* * Tty input interrupt handler. @@ -65,17 +62,8 @@ wwrint() { register n; - if (wwibp == wwibq) - wwibp = wwibq = wwib; wwnread++; -#if defined(OLD_TTY) || defined(VMIN_BUG) - /* we have set c_cc[VMIN] to 0 */ - (void) fcntl(0, F_SETFL, O_NONBLOCK|wwnewtty.ww_fflags); -#endif n = read(0, wwibq, wwibe - wwibq); -#if defined(OLD_TTY) || defined(VMIN_BUG) - (void) fcntl(0, F_SETFL, wwnewtty.ww_fflags); -#endif if (n > 0) { if (tt.tt_rint) n = (*tt.tt_rint)(wwibq, n); |