summaryrefslogtreecommitdiff
path: root/net/ztelnet/files/patch-an
blob: 985077342f0e485965d0cdf9623d3fe87feadbe2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
diff -uNr ../ztelnet/telnet/sys_bsd.c ./telnet/sys_bsd.c
--- ../ztelnet/telnet/sys_bsd.c	Tue Sep 19 23:35:50 1995
+++ ./telnet/sys_bsd.c	Wed Dec  3 02:35:18 1997
@@ -43,13 +43,16 @@
 #include "externs.h"
 #include "types.h"
 
-/* PMS: BYPMS is added */
-#if	defined(CRAY) || (defined(USE_TERMIO) && !defined(SYSV_TERMIO)) || defined(BYPMS)
+#if	defined(CRAY) || (defined(USE_TERMIO) && !defined(SYSV_TERMIO))
 #define	SIG_FUNC_RET	void
 #else
 #define	SIG_FUNC_RET	int
 #endif
 
+#ifdef  SIGINFO
+extern SIG_FUNC_RET ayt_status();
+#endif
+
 int
 	tout,			/* Output file descriptor */
 	tin,			/* Input file descriptor */
@@ -65,16 +68,9 @@
 # define old_tc ottyb
 
 #else	/* USE_TERMIO */
-
-#ifdef BYPMS
-struct	termios old_tc = { 0 };
-extern struct termios new_tc;
-#else
 struct	termio old_tc = { 0 };
 extern struct termio new_tc;
-#endif /* PMS */
 
-#ifndef BYPMS
 # ifndef	TCSANOW
 #  ifdef TCSETS
 #   define	TCSANOW		TCSETS
@@ -100,7 +96,6 @@
 #  endif
 # endif /* TCSANOW */
 #endif	/* USE_TERMIO */
-#endif /* PMS */
 
 static fd_set ibits, obits, xbits;
 
@@ -166,11 +161,11 @@
  *	1	Do add this character
  */
 
+void xmitAO(), xmitEL(), xmitEC(), intp(), sendbrk();
     int
 TerminalSpecialChars(c)
     int	c;
 {
-    void xmitAO(), xmitEL(), xmitEC(), intp(), sendbrk();
 
     if (c == termIntChar) {
 	intp();
@@ -382,11 +377,7 @@
     struct sgttyb sb;
     int lmode;
 #else	/* USE_TERMIO */
-#ifdef BYPMS
-    struct termios tmp_tc;
-#else
     struct termio tmp_tc;
-#endif /* PMS */
 #endif	/* USE_TERMIO */
     int onoff;
     int old;