133685Sbostic /* 233685Sbostic * Copyright (c) 1988 Regents of the University of California. 333685Sbostic * All rights reserved. 433685Sbostic * 533685Sbostic * Redistribution and use in source and binary forms are permitted 633685Sbostic * provided that this notice is preserved and that due credit is given 733685Sbostic * to the University of California at Berkeley. The name of the University 833685Sbostic * may not be used to endorse or promote products derived from this 933685Sbostic * software without specific prior written permission. This software 1033685Sbostic * is provided ``as is'' without express or implied warranty. 1133685Sbostic * 12*34313Sminshall * @(#)externs.h 1.9 (Berkeley) 05/15/88 1333685Sbostic */ 1433685Sbostic 1532141Sminshall #include <stdio.h> 1632141Sminshall #include <setjmp.h> 1732141Sminshall 1832141Sminshall #define SUBBUFSIZE 100 1932141Sminshall 2032141Sminshall extern int errno; /* outside this world */ 2132141Sminshall 2233802Sminshall extern char 2333802Sminshall *strcat(), 2433802Sminshall *strcpy(); /* outside this world */ 2533802Sminshall 2632141Sminshall extern int 2733802Sminshall flushout, /* flush output */ 2833802Sminshall connected, /* Are we connected to the other side? */ 2933802Sminshall globalmode, /* Mode tty should be in */ 3033802Sminshall In3270, /* Are we in 3270 mode? */ 3133802Sminshall telnetport, /* Are we connected to the telnet port? */ 3233802Sminshall localchars, /* we recognize interrupt/quit */ 3333802Sminshall donelclchars, /* the user has set "localchars" */ 3433802Sminshall showoptions, 3533802Sminshall net, 3633802Sminshall tout, /* Terminal output file descriptor */ 3733802Sminshall crlf, /* Should '\r' be mapped to <CR><LF> (or <CR><NUL>)? */ 3833802Sminshall autoflush, /* flush output when interrupting? */ 3933802Sminshall autosynch, /* send interrupt characters with SYNCH? */ 4033802Sminshall SYNCHing, /* Is the stream in telnet SYNCH mode? */ 4133802Sminshall donebinarytoggle, /* the user has put us in binary */ 4233802Sminshall dontlecho, /* do we suppress local echoing right now? */ 4333802Sminshall crmod, 4433802Sminshall netdata, /* Print out network data flow */ 4533802Sminshall debug; /* Debug level */ 4632141Sminshall 4732141Sminshall extern char 4833802Sminshall echoc, /* Toggle local echoing */ 4933802Sminshall escape, /* Escape to command mode */ 5033802Sminshall doopt[], 5133802Sminshall dont[], 5233802Sminshall will[], 5333802Sminshall wont[], 5433802Sminshall hisopts[], 5533802Sminshall myopts[], 5633802Sminshall *hostname, /* Who are we connected to? */ 5733802Sminshall *prompt; /* Prompt for command. */ 5832141Sminshall 5932141Sminshall extern FILE 6033802Sminshall *NetTrace; /* Where debugging output goes */ 6132141Sminshall 6232141Sminshall extern jmp_buf 6333802Sminshall peerdied, 6433802Sminshall toplevel; /* For error conditions. */ 6532141Sminshall 6632141Sminshall extern void 67*34313Sminshall #if !defined(NOT43) 6833802Sminshall dosynch(), 69*34313Sminshall #endif /* !defined(NOT43) */ 7033802Sminshall setconnmode(), 7133802Sminshall setcommandmode(); 7232141Sminshall 73*34313Sminshall #if defined(NOT43) 74*34313Sminshall extern int 75*34313Sminshall dosynch(); 76*34313Sminshall #endif /* defined(NOT43) */ 77*34313Sminshall 7832141Sminshall extern char 7932141Sminshall termEofChar, 8032141Sminshall termEraseChar, 8132141Sminshall termFlushChar, 8232141Sminshall termIntChar, 8332141Sminshall termKillChar, 8432141Sminshall termLiteralNextChar, 8532141Sminshall termQuitChar; 8632381Sminshall 8732381Sminshall /* Ring buffer structures which are shared */ 8832381Sminshall 8932381Sminshall extern Ring 9033802Sminshall netoring, 9133802Sminshall netiring, 9233802Sminshall ttyoring, 9333802Sminshall ttyiring; 9433802Sminshall 9533802Sminshall /* Tn3270 section */ 9633802Sminshall #if defined(TN3270) 9733802Sminshall 9833802Sminshall extern int 9933802Sminshall HaveInput, /* Whether an asynchronous I/O indication came in */ 10033802Sminshall noasynch, /* Don't do signals on I/O (SIGURG, SIGIO) */ 10133802Sminshall shell_active; /* Subshell is active */ 10233802Sminshall 10333802Sminshall extern char 10433802Sminshall *Ibackp, /* Oldest byte of 3270 data */ 10533802Sminshall Ibuf[], /* 3270 buffer */ 10633802Sminshall *Ifrontp, /* Where next 3270 byte goes */ 10733802Sminshall tline[], 10833802Sminshall *transcom; /* Transparent command */ 10933802Sminshall 11033802Sminshall extern int 11133802Sminshall settranscom(); 11233802Sminshall 11333802Sminshall extern void 11433802Sminshall inputAvailable(); 11533802Sminshall #endif /* defined(TN3270) */ 116