extern char options[256];
extern char do_dont_resp[256];
extern char will_wont_resp[256];
extern int linemode;
#ifdef LINEMODE
extern int uselinemode;
extern int editmode;
extern int useeditmode;
extern int alwayslinemode;
# ifdef KLUDGELINEMODE
extern int lmodetype;
# endif
#endif
extern int flowmode;
extern int restartany;
#ifdef DIAGNOSTICS
extern int diagnostic;
#endif
#ifdef BFTPDAEMON
extern int bftpd;
#endif
#if defined(SecurID)
extern int require_SecurID;
#endif
#if defined(AUTHENTICATION)
extern int auth_level;
#endif
extern int auth_negotiated;
extern slcfun slctab[NSLC + 1];
extern char terminaltype[41];
extern char ptyobuf[BUFSIZ+NETSLOP], *pfrontp, *pbackp;
extern char netibuf[BUFSIZ], *netip;
extern char netobuf[BUFSIZ+NETSLOP], *nfrontp, *nbackp;
extern char *neturg;
extern int pcc, ncc;
#if defined(CRAY2) && defined(UNICOS5)
extern int unpcc;
extern char *unptyip;
#endif
extern int pty, net;
extern int SYNCHing;
#ifdef ENCRYPTION
extern int must_encrypt;
#endif
extern void
_termstat (void),
add_slc (int, int, int),
check_slc (void),
change_slc (int, int, int),
cleanup (int),
clientstat (int, int, int),
copy_termbuf (char *, int),
deferslc (void),
defer_terminit (void),
do_opt_slc (unsigned char *, int),
doeof (void),
dooption (int),
dontoption (int),
edithost (char *, char *),
fatal (int, const char *),
fatalperror (int, const char *),
get_slc_defaults (void),
init_env (void),
init_termbuf (void),
interrupt (void),
localstat (void),
flowstat (void),
netclear (void),
netflush (void),
#ifdef DIAGNOSTICS
printoption (char *, int),
printdata (char *, char *, int),
printsub (int, unsigned char *, int),
#endif
ptyflush (void),
putchr (int),
putf (char *, char *),
recv_ayt (void),
send_do (int, int),
send_dont (int, int),
send_slc (void),
send_status (void),
send_will (int, int),
send_wont (int, int),
sendbrk (void),
sendsusp (void),
set_termbuf (void),
start_login (char *, int, char *),
start_slc (int),
startslave (char *, int, char *),
suboption (void),
telrcv (void),
ttloop (void),
tty_binaryin (int),
tty_binaryout (int);
extern int
end_slc (unsigned char **),
getnpty (void),
#ifndef convex
getpty (int *),
#endif
login_tty (int),
spcset (int, cc_t *, cc_t **),
stilloob (int),
terminit (void),
termstat (void),
tty_flowmode (void),
tty_restartany (void),
tty_isbinaryin (void),
tty_isbinaryout (void),
tty_iscrnl (void),
tty_isecho (void),
tty_isediting (void),
tty_islitecho (void),
tty_isnewmap (void),
tty_israw (void),
tty_issofttab (void),
tty_istrapsig (void),
tty_linemode (void);
extern void
tty_rspeed (int),
tty_setecho (int),
tty_setedit (int),
tty_setlinemode (int),
tty_setlitecho (int),
tty_setsig (int),
tty_setsofttab (int),
tty_tspeed (int),
willoption (int),
wontoption (int);
extern void netprintf (const char *, ...);
extern void netprintf_urg (const char *fmt, ...);
extern void netprintf_noflush (const char *fmt, ...);
extern int netwrite (const unsigned char *, size_t);
extern void netputs (const char *);
#ifdef ENCRYPTION
extern char *nclearto;
#endif
extern struct {
int
system,
echotoggle,
modenegotiated,
didnetreceive,
ttypesubopt,
tspeedsubopt,
environsubopt,
oenvironsubopt,
xdisplocsubopt,
baseline,
gotDM;
} clocks;
#if defined(CRAY2) && defined(UNICOS5)
extern int needtermstat;
#endif
#ifdef NEED_UNSETENV_PROTO
extern void unsetenv(const char *);
#endif
#ifdef NEED_SETENV_PROTO
extern void setenv(const char *, const char *, int);
#endif