138905Sborman /* 238905Sborman * Copyright (c) 1989 The Regents of the University of California. 338905Sborman * All rights reserved. 438905Sborman * 5*42673Sbostic * %sccs.include.redist.c% 638905Sborman * 7*42673Sbostic * @(#)ext.h 5.5 (Berkeley) 06/01/90 838905Sborman */ 938905Sborman 1038905Sborman /* 1138905Sborman * Telnet server variable declarations 1238905Sborman */ 1338905Sborman extern char hisopts[256]; 1438905Sborman extern char myopts[256]; 1538905Sborman extern char hiswants[256]; 1638905Sborman extern char mywants[256]; 1739503Sborman extern char do_dont_resp[256]; 1839503Sborman extern char will_wont_resp[256]; 1938905Sborman extern int linemode; /* linemode on/off */ 2038905Sborman #ifdef LINEMODE 2138905Sborman extern int uselinemode; /* what linemode to use (on/off) */ 2238905Sborman extern int editmode; /* edit modes in use */ 2338905Sborman extern int useeditmode; /* edit modes to use */ 2438905Sborman extern int alwayslinemode; /* command line option */ 2538905Sborman # ifdef KLUDGELINEMODE 2638905Sborman extern int lmodetype; /* Client support for linemode */ 2738905Sborman # endif /* KLUDGELINEMODE */ 2838905Sborman #endif /* LINEMODE */ 2938905Sborman extern int flowmode; /* current flow control state */ 3038905Sborman 3138905Sborman extern slcfun slctab[NSLC + 1]; /* slc mapping table */ 3238905Sborman 3338905Sborman char *terminaltype; 3438905Sborman 3538905Sborman /* 3638905Sborman * I/O data buffers, pointers, and counters. 3738905Sborman */ 3838905Sborman extern char ptyobuf[BUFSIZ+NETSLOP], *pfrontp, *pbackp; 3938905Sborman 4038905Sborman extern char netibuf[BUFSIZ], *netip; 4138905Sborman 4238905Sborman extern char netobuf[BUFSIZ+NETSLOP], *nfrontp, *nbackp; 4338905Sborman extern char *neturg; /* one past last bye of urgent data */ 4438905Sborman 4538905Sborman extern int pcc, ncc; 4638905Sborman 4740242Sborman #if defined(CRAY2) && defined(UNICOS5) 4839531Sborman extern int unpcc; /* characters left unprocessed by CRAY-2 terminal routine */ 4939531Sborman extern char *unptyip; /* pointer to remaining characters in buffer */ 5039531Sborman #endif 5139531Sborman 5238905Sborman extern int pty, net; 5338905Sborman extern char *line; 5438905Sborman extern int SYNCHing; /* we are in TELNET SYNCH mode */ 5538905Sborman 5638905Sborman /* 5738905Sborman * The following are some clocks used to decide how to interpret 5838905Sborman * the relationship between various variables. 5938905Sborman */ 6038905Sborman 6138905Sborman extern struct { 6238905Sborman int 6338905Sborman system, /* what the current time is */ 6438905Sborman echotoggle, /* last time user entered echo character */ 6538905Sborman modenegotiated, /* last time operating mode negotiated */ 6638905Sborman didnetreceive, /* last time we read data from network */ 6738905Sborman ttypesubopt, /* ttype subopt is received */ 6838905Sborman tspeedsubopt, /* tspeed subopt is received */ 6938905Sborman baseline, /* time started to do timed action */ 7038905Sborman gotDM; /* when did we last see a data mark */ 7138905Sborman } clocks; 7238905Sborman 7338905Sborman 7440242Sborman #if defined(CRAY2) && defined(UNICOS5) 7538905Sborman extern int needtermstat; 7638905Sborman #endif 7738905Sborman 7838905Sborman #ifndef CRAY 7938905Sborman #define DEFAULT_IM "\r\n\r\n4.3 BSD UNIX (%h) (%t)\r\n\r\r\n\r" 8038905Sborman #else 8138905Sborman #define DEFAULT_IM "\r\n\r\nCray UNICOS (%h) (%t)\r\n\r\r\n\r" 8238905Sborman #endif 83