summaryrefslogtreecommitdiff
path: root/usr.bin/window/ww.h
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/ww.h
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/ww.h')
-rw-r--r--usr.bin/window/ww.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/window/ww.h b/usr.bin/window/ww.h
index 51a7abca719..cea40105d05 100644
--- a/usr.bin/window/ww.h
+++ b/usr.bin/window/ww.h
@@ -1,4 +1,4 @@
-/* $NetBSD: ww.h,v 1.3 1995/09/28 10:35:07 tls Exp $ */
+/* $NetBSD: ww.h,v 1.5 1995/12/21 11:05:58 mycroft Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -97,7 +97,7 @@ struct ww {
char ww_hascursor; /* has fake cursor */
/* things for the window process and io */
- char ww_ispty; /* ww_pty is really a pty, not socket pair */
+ char ww_type; /* ww_pty is really a pty, not socket pair */
char ww_stopped; /* output stopped */
int ww_pty; /* file descriptor of pty or socket pair */
int ww_socket; /* other end of socket pair */
@@ -128,7 +128,6 @@ struct ww_tty {
#else
struct termios ww_termios;
#endif
- int ww_fflags;
};
union ww_char {
@@ -182,6 +181,11 @@ struct ww_update {
#define WWF_LABEL 0x40
#define WWF_TOP 0x80
+ /* ww_type values */
+#define WWT_PTY 0 /* pty */
+#define WWT_SOCKET 1 /* socket pair */
+#define WWT_INTERNAL 2
+
/* flags to wwopen() */
#define WWO_PTY 0x01 /* want pty */
#define WWO_SOCKET 0x02 /* want socket pair */