new header, add adaptor, provide macros for splitting/making bootdev
[unix-history] / usr / src / usr.bin / telnet / externs.h
CommitLineData
ad54d2e3
GM
1#include <stdio.h>
2#include <setjmp.h>
3
4#define SUBBUFSIZE 100
5
6extern int errno; /* outside this world */
7
8extern int
ad54d2e3
GM
9 flushout, /* flush output */
10 connected, /* Are we connected to the other side? */
11 globalmode, /* Mode tty should be in */
12 In3270, /* Are we in 3270 mode? */
13 telnetport, /* Are we connected to the telnet port? */
14 localchars, /* we recognize interrupt/quit */
15 donelclchars, /* the user has set "localchars" */
16 showoptions,
ad54d2e3 17 net,
ad54d2e3
GM
18 crlf, /* Should '\r' be mapped to <CR><LF> (or <CR><NUL>)? */
19 autoflush, /* flush output when interrupting? */
20 autosynch, /* send interrupt characters with SYNCH? */
b307f09e 21 SYNCHing, /* Is the stream in telnet SYNCH mode? */
ad54d2e3
GM
22 donebinarytoggle, /* the user has put us in binary */
23 dontlecho, /* do we suppress local echoing right now? */
24 crmod,
25 netdata, /* Print out network data flow */
26 debug; /* Debug level */
27
28extern char
29 echoc, /* Toggle local echoing */
30 escape, /* Escape to command mode */
31 doopt[],
32 dont[],
33 will[],
34 wont[],
35 hisopts[],
36 myopts[],
ad54d2e3 37 *hostname, /* Who are we connected to? */
115a5494 38 *prompt; /* Prompt for command. */
ad54d2e3
GM
39
40extern FILE
41 *NetTrace; /* Where debugging output goes */
42
43extern jmp_buf
44 peerdied,
45 toplevel; /* For error conditions. */
46
47extern void
ad54d2e3 48 dosynch(),
ad54d2e3
GM
49 setconnmode(),
50 setcommandmode();
51
52extern char
53 termEofChar,
54 termEraseChar,
55 termFlushChar,
56 termIntChar,
57 termKillChar,
58 termLiteralNextChar,
59 termQuitChar;
115a5494
GM
60
61/* Ring buffer structures which are shared */
62
63extern Ring
64 netoring,
65 netiring,
66 ttyoring,
67 ttyiring;