|
|
1.1 root 1: /*
2: * Copyright (c) 1989 The Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms are permitted provided
6: * that: (1) source distributions retain this entire copyright notice and
7: * comment, and (2) distributions including binaries display the following
8: * acknowledgement: ``This product includes software developed by the
9: * University of California, Berkeley and its contributors'' in the
10: * documentation or other materials provided with the distribution and in
11: * all advertising materials mentioning features or use of this software.
12: * Neither the name of the University nor the names of its contributors may
13: * be used to endorse or promote products derived from this software without
14: * specific prior written permission.
15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
16: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
17: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18: *
19: * @(#)ext.h 5.6 (Berkeley) 6/28/90
20: */
21:
22: /*
23: * Telnet server variable declarations
24: */
25: extern char options[256];
26: extern char do_dont_resp[256];
27: extern char will_wont_resp[256];
28: extern int linemode; /* linemode on/off */
29: #ifdef LINEMODE
30: extern int uselinemode; /* what linemode to use (on/off) */
31: extern int editmode; /* edit modes in use */
32: extern int useeditmode; /* edit modes to use */
33: extern int alwayslinemode; /* command line option */
34: # ifdef KLUDGELINEMODE
35: extern int lmodetype; /* Client support for linemode */
36: # endif /* KLUDGELINEMODE */
37: #endif /* LINEMODE */
38: extern int flowmode; /* current flow control state */
39: #ifdef DIAGNOSTICS
40: extern int diagnostic; /* telnet diagnostic capabilities */
41: #endif /* DIAGNOSTICS */
42: #ifdef BFTPDAEMON
43: extern int bftpd; /* behave as bftp daemon */
44: #endif /* BFTPDAEMON */
45:
46: extern slcfun slctab[NSLC + 1]; /* slc mapping table */
47:
48: char *terminaltype;
49:
50: /*
51: * I/O data buffers, pointers, and counters.
52: */
53: extern char ptyobuf[BUFSIZ+NETSLOP], *pfrontp, *pbackp;
54:
55: extern char netibuf[BUFSIZ], *netip;
56:
57: extern char netobuf[BUFSIZ+NETSLOP], *nfrontp, *nbackp;
58: extern char *neturg; /* one past last bye of urgent data */
59:
60: extern int pcc, ncc;
61:
62: #if defined(CRAY2) && defined(UNICOS5)
63: extern int unpcc; /* characters left unprocessed by CRAY-2 terminal routine */
64: extern char *unptyip; /* pointer to remaining characters in buffer */
65: #endif
66:
67: extern int pty, net;
68: extern char *line;
69: extern int SYNCHing; /* we are in TELNET SYNCH mode */
70:
71: #ifdef DIAGNOSTICS
72: extern void printoption();
73: extern void printdata();
74: #endif
75:
76: /*
77: * The following are some clocks used to decide how to interpret
78: * the relationship between various variables.
79: */
80:
81: extern struct {
82: int
83: system, /* what the current time is */
84: echotoggle, /* last time user entered echo character */
85: modenegotiated, /* last time operating mode negotiated */
86: didnetreceive, /* last time we read data from network */
87: ttypesubopt, /* ttype subopt is received */
88: tspeedsubopt, /* tspeed subopt is received */
89: environsubopt, /* environ subopt is received */
90: xdisplocsubopt, /* xdisploc subopt is received */
91: baseline, /* time started to do timed action */
92: gotDM; /* when did we last see a data mark */
93: } clocks;
94:
95:
96: #if defined(CRAY2) && defined(UNICOS5)
97: extern int needtermstat;
98: #endif
99:
100: #ifndef CRAY
101: #define DEFAULT_IM "\r\n\r\n4.3 BSD UNIX (%h) (%t)\r\n\r\r\n\r"
102: #else
103: #define DEFAULT_IM "\r\n\r\nCray UNICOS (%h) (%t)\r\n\r\r\n\r"
104: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.