Commit | Line | Data |
---|---|---|
897ce52e KB |
1 | /* |
2 | * Copyright (c) 1988 Regents of the University of California. | |
3 | * All rights reserved. | |
4 | * | |
5 | * Redistribution and use in source and binary forms are permitted | |
b36fc510 KB |
6 | * provided that the above copyright notice and this paragraph are |
7 | * duplicated in all such forms and that any documentation, | |
8 | * advertising materials, and other materials related to such | |
9 | * distribution and use acknowledge that the software was developed | |
10 | * by the University of California, Berkeley. The name of the | |
11 | * University may not be used to endorse or promote products derived | |
12 | * from this software without specific prior written permission. | |
13 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
897ce52e | 16 | * |
344def17 | 17 | * @(#)externs.h 1.13 (Berkeley) %G% |
897ce52e KB |
18 | */ |
19 | ||
ad54d2e3 GM |
20 | #include <stdio.h> |
21 | #include <setjmp.h> | |
22 | ||
23 | #define SUBBUFSIZE 100 | |
24 | ||
25 | extern int errno; /* outside this world */ | |
26 | ||
2e48960f GM |
27 | extern char |
28 | *strcat(), | |
29 | *strcpy(); /* outside this world */ | |
30 | ||
ad54d2e3 | 31 | extern int |
2e48960f GM |
32 | flushout, /* flush output */ |
33 | connected, /* Are we connected to the other side? */ | |
34 | globalmode, /* Mode tty should be in */ | |
35 | In3270, /* Are we in 3270 mode? */ | |
36 | telnetport, /* Are we connected to the telnet port? */ | |
37 | localchars, /* we recognize interrupt/quit */ | |
38 | donelclchars, /* the user has set "localchars" */ | |
39 | showoptions, | |
344def17 GM |
40 | net, /* Network file descriptor */ |
41 | tin, /* Terminal input file descriptor */ | |
2e48960f GM |
42 | tout, /* Terminal output file descriptor */ |
43 | crlf, /* Should '\r' be mapped to <CR><LF> (or <CR><NUL>)? */ | |
44 | autoflush, /* flush output when interrupting? */ | |
45 | autosynch, /* send interrupt characters with SYNCH? */ | |
46 | SYNCHing, /* Is the stream in telnet SYNCH mode? */ | |
47 | donebinarytoggle, /* the user has put us in binary */ | |
48 | dontlecho, /* do we suppress local echoing right now? */ | |
49 | crmod, | |
50 | netdata, /* Print out network data flow */ | |
51 | debug; /* Debug level */ | |
ad54d2e3 GM |
52 | |
53 | extern char | |
2e48960f GM |
54 | echoc, /* Toggle local echoing */ |
55 | escape, /* Escape to command mode */ | |
56 | doopt[], | |
57 | dont[], | |
58 | will[], | |
59 | wont[], | |
60 | hisopts[], | |
61 | myopts[], | |
62 | *hostname, /* Who are we connected to? */ | |
63 | *prompt; /* Prompt for command. */ | |
ad54d2e3 GM |
64 | |
65 | extern FILE | |
2e48960f | 66 | *NetTrace; /* Where debugging output goes */ |
ad54d2e3 GM |
67 | |
68 | extern jmp_buf | |
2e48960f GM |
69 | peerdied, |
70 | toplevel; /* For error conditions. */ | |
ad54d2e3 GM |
71 | |
72 | extern void | |
80a47e22 | 73 | command(), |
746dd3e1 | 74 | #if !defined(NOT43) |
2e48960f | 75 | dosynch(), |
746dd3e1 | 76 | #endif /* !defined(NOT43) */ |
80a47e22 GM |
77 | Dump(), |
78 | init_3270(), | |
79 | printoption(), | |
80 | printsub(), | |
2e48960f | 81 | setconnmode(), |
80a47e22 GM |
82 | setcommandmode(), |
83 | setneturg(), | |
84 | sys_telnet_init(), | |
85 | telnet(), | |
86 | TerminalFlushOutput(), | |
87 | TerminalNewMode(), | |
88 | TerminalRestoreState(), | |
89 | TerminalSaveState(), | |
90 | tninit(), | |
91 | upcase(), | |
92 | willoption(), | |
93 | wontoption(); | |
ad54d2e3 | 94 | |
746dd3e1 GM |
95 | #if defined(NOT43) |
96 | extern int | |
97 | dosynch(); | |
98 | #endif /* defined(NOT43) */ | |
99 | ||
ad54d2e3 GM |
100 | extern char |
101 | termEofChar, | |
102 | termEraseChar, | |
103 | termFlushChar, | |
104 | termIntChar, | |
105 | termKillChar, | |
106 | termLiteralNextChar, | |
107 | termQuitChar; | |
115a5494 GM |
108 | |
109 | /* Ring buffer structures which are shared */ | |
110 | ||
111 | extern Ring | |
2e48960f GM |
112 | netoring, |
113 | netiring, | |
114 | ttyoring, | |
115 | ttyiring; | |
116 | ||
117 | /* Tn3270 section */ | |
118 | #if defined(TN3270) | |
119 | ||
120 | extern int | |
121 | HaveInput, /* Whether an asynchronous I/O indication came in */ | |
4ad36dea GM |
122 | noasynchtty, /* Don't do signals on I/O (SIGURG, SIGIO) */ |
123 | noasynchnet, /* Don't do signals on I/O (SIGURG, SIGIO) */ | |
124 | sigiocount, /* Count of SIGIO receptions */ | |
2e48960f GM |
125 | shell_active; /* Subshell is active */ |
126 | ||
127 | extern char | |
128 | *Ibackp, /* Oldest byte of 3270 data */ | |
129 | Ibuf[], /* 3270 buffer */ | |
130 | *Ifrontp, /* Where next 3270 byte goes */ | |
131 | tline[], | |
132 | *transcom; /* Transparent command */ | |
133 | ||
134 | extern int | |
135 | settranscom(); | |
136 | ||
137 | extern void | |
138 | inputAvailable(); | |
139 | #endif /* defined(TN3270) */ |