summaryrefslogtreecommitdiff
path: root/usr.bin/tip/tip.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-04-20 23:29:34 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-04-20 23:29:34 +0000
commit0ce00152883f9034116a966e66aa824759348016 (patch)
tree839ac7469a2f1dad6e025641d9440a8d3f8add86 /usr.bin/tip/tip.h
parent574abe5ac81d1c7d74b6329546def63982a2f172 (diff)
Incorporate some NetBSD changes:
tip.c getchar() returns an int [important since EOF == -1] (thorpej) Set CLOCAL if dc flag is set (mellon) tip.h Change booleans from char to short so that comparisons against negative values work as expected on systems with unsigned chars. (thorpej) Add boolean for dc flag (mellon) hunt.c Set O_NONBLOCK if dc flag set. Don't set HUPCL if dc flag is set. (mellon) remote.c Add boolean for dc flag (mellon)
Diffstat (limited to 'usr.bin/tip/tip.h')
-rw-r--r--usr.bin/tip/tip.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr.bin/tip/tip.h b/usr.bin/tip/tip.h
index 86d0e4a913c..2b5a8bda9fe 100644
--- a/usr.bin/tip/tip.h
+++ b/usr.bin/tip/tip.h
@@ -1,5 +1,5 @@
-/* $OpenBSD: tip.h,v 1.5 1997/04/02 01:47:03 millert Exp $ */
-/* $NetBSD: tip.h,v 1.5 1996/12/29 10:34:11 cgd Exp $ */
+/* $OpenBSD: tip.h,v 1.6 1997/04/20 23:29:33 millert Exp $ */
+/* $NetBSD: tip.h,v 1.7 1997/04/20 00:02:46 mellon Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -77,8 +77,8 @@ char *HO; /* host name */
long BR; /* line speed for conversation */
long FS; /* frame size for transfers */
-char DU; /* this host is dialed up */
-char HW; /* this device is hardwired, see hunt.c */
+short DU; /* this host is dialed up */
+short HW; /* this device is hardwired, see hunt.c */
char *ES; /* escape character */
char *EX; /* exceptions */
char *FO; /* force (literal next) char*/
@@ -88,7 +88,8 @@ char *PR; /* remote prompt */
long DL; /* line delay for file transfers to remote */
long CL; /* char delay for file transfers to remote */
long ET; /* echocheck timeout */
-char HD; /* this host is half duplex - do local echo */
+short HD; /* this host is half duplex - do local echo */
+short DC; /* this host is directly connected. */
/*
* String value table