summaryrefslogtreecommitdiff
path: root/usr.bin/window/wwrint.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-26 18:00:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-26 18:00:42 +0000
commitb5ac7add8214b5b1d3a3557e63ece819dd1e7c56 (patch)
tree4f840a357fe1ddb27d0a850af958636843ab0179 /usr.bin/window/wwrint.c
parentbc349e2e6d187585cab3ce4d8d434fc87cced2a0 (diff)
from netbsd:
Use POSIX signals. Always set FNONBLOCK on the tty. Eliminate the use of SIGIO, and some other cleanup. We don't need non-blocking mode without SIGIO.
Diffstat (limited to 'usr.bin/window/wwrint.c')
-rw-r--r--usr.bin/window/wwrint.c16
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);