[BACK]Return to externs.h CVS log [TXT][DIR] Up to [local] / src / usr.bin / telnet

Diff for /src/usr.bin/telnet/externs.h between version 1.17 and 1.18

version 1.17, 2013/10/26 21:33:29 version 1.18, 2014/07/19 23:50:38
Line 32 
Line 32 
  *      @(#)externs.h   8.3 (Berkeley) 5/30/95   *      @(#)externs.h   8.3 (Berkeley) 5/30/95
  */   */
   
 #ifndef BSD  
 # define BSD 43  
 #endif  
   
 #ifndef _POSIX_VDISABLE  
 # ifdef sun  
 #  include <sys/param.h>        /* pick up VDISABLE definition, mayby */  
 # endif  
 # ifdef VDISABLE  
 #  define _POSIX_VDISABLE VDISABLE  
 # else  
 #  define _POSIX_VDISABLE ((cc_t)'\377')  
 # endif  
 #endif  
   
 #define SUBBUFSIZE      256  #define SUBBUFSIZE      256
   
 extern int  extern int
Line 59 
Line 44 
     connected,          /* Are we connected to the other side? */      connected,          /* Are we connected to the other side? */
     globalmode,         /* Mode tty should be in */      globalmode,         /* Mode tty should be in */
     telnetport,         /* Are we connected to the telnet port? */      telnetport,         /* Are we connected to the telnet port? */
     In3270,            /* Are we in 3270 mode? */  
     localflow,          /* Flow control handled locally */      localflow,          /* Flow control handled locally */
     restartany,         /* If flow control, restart output on any character */      restartany,         /* If flow control, restart output on any character */
     localchars,         /* we recognize interrupt/quit */      localchars,         /* we recognize interrupt/quit */
Line 78 
Line 62 
     crmod,      crmod,
     netdata,            /* Print out network data flow */      netdata,            /* Print out network data flow */
     prettydump,         /* Print "netdata" output in user readable format */      prettydump,         /* Print "netdata" output in user readable format */
 #if    defined(TN3270)  
     cursesdata,         /* Print out curses data flow */  
     apitrace,           /* Trace API transactions */  
 #endif /* defined(TN3270) */  
     termdata,           /* Print out terminal data flow */      termdata,           /* Print out terminal data flow */
     debug;              /* Debug level */      debug;              /* Debug level */
   
Line 103 
Line 83 
     wont[],      wont[],
     options[],          /* All the little options */      options[],          /* All the little options */
     *hostname;          /* Who are we connected to? */      *hostname;          /* Who are we connected to? */
 #if     defined(ENCRYPTION)  
 extern void (*encrypt_output) (unsigned char *, int);  
 extern int (*decrypt_input) (int);  
 #endif  
   
 extern int      rtableid;       /* routing table to use */  extern int      rtableid;       /* routing table to use */
   
Line 184 
Line 160 
     peerdied,      peerdied,
     toplevel;           /* For error conditions. */      toplevel;           /* For error conditions. */
   
 /* authenc.c */  
   
 #if     defined(AUTHENTICATION) || defined(ENCRYPTION)  
 int net_write(unsigned char *str, int len);  
 void net_encrypt(void);  
 int telnet_spin(void);  
 char *telnet_getenv(const char *val);  
 char *telnet_gets(char *prompt, char *result, int length, int echo);  
 int Scheduler(int block);  
 #endif  
   
 /* commands.c */  /* commands.c */
   
 struct env_lst *env_define (unsigned char *, unsigned char *);  struct env_lst *env_define (unsigned char *, unsigned char *);
Line 211 
Line 176 
 void set_escape_char(char *s);  void set_escape_char(char *s);
 unsigned long sourceroute(char *arg, char **cpp, int *lenp);  unsigned long sourceroute(char *arg, char **cpp, int *lenp);
   
 #if     defined(AUTHENTICATION)  
 int auth_enable (char *);  
 int auth_disable (char *);  
 int auth_status (void);  
 #endif  
   
 #if defined(ENCRYPTION)  
 int     EncryptEnable (char *, char *);  
 int     EncryptDisable (char *, char *);  
 int     EncryptType (char *, char *);  
 int     EncryptStart (char *);  
 int     EncryptStartInput (void);  
 int     EncryptStartOutput (void);  
 int     EncryptStop (char *);  
 int     EncryptStopInput (void);  
 int     EncryptStopOutput (void);  
 int     EncryptStatus (void);  
 #endif  
   
 #ifdef SIGINFO  #ifdef SIGINFO
 void ayt_status(void);  void ayt_status(void);
 #endif  #endif
Line 290 
Line 236 
   
 void     Dump (char, unsigned char *, int);  void     Dump (char, unsigned char *, int);
 void     printoption (char *, int, int);  void     printoption (char *, int, int);
 void     printsub (int, unsigned char *, int);  
 void     sendnaws (void);  void     sendnaws (void);
 void     setconnmode (int);  void     setconnmode (int);
 void     setcommandmode (void);  void     setcommandmode (void);
Line 347 
Line 292 
   
 int quit (void);  int quit (void);
   
   /* genget.c */
   
   char    **genget(char *name, char **table, int stlen);
   int     isprefix(char *s1, char *s2);
   int     Ambiguous(void *s);
   
 /* terminal.c */  /* terminal.c */
   
 void init_terminal(void);  void init_terminal(void);
Line 355 
Line 306 
   
 /* utilities.c */  /* utilities.c */
   
 int SetSockOpt(int fd, int level, int option, int yesno);  
 void SetNetTrace(char *file);  void SetNetTrace(char *file);
 void Dump(char direction, unsigned char *buffer, int length);  void Dump(char direction, unsigned char *buffer, int length);
 void printoption(char *direction, int cmd, int option);  void printoption(char *direction, int cmd, int option);
Line 435 
Line 385 
     netiring,      netiring,
     ttyoring,      ttyoring,
     ttyiring;      ttyiring;
   
 /* Tn3270 section */  
 #if    defined(TN3270)  
   
 extern int  
     HaveInput,         /* Whether an asynchronous I/O indication came in */  
     noasynchtty,       /* Don't do signals on I/O (SIGURG, SIGIO) */  
     noasynchnet,       /* Don't do signals on I/O (SIGURG, SIGIO) */  
     sigiocount,                /* Count of SIGIO receptions */  
     shell_active;      /* Subshell is active */  
   
 extern char  
     *Ibackp,           /* Oldest byte of 3270 data */  
     Ibuf[],            /* 3270 buffer */  
     *Ifrontp,          /* Where next 3270 byte goes */  
     tline[200],  
     *transcom;         /* Transparent command */  
   
 extern int  
     settranscom(int, char**);  
   
 extern void  
     inputAvailable(int);  
 #endif /* defined(TN3270) */  

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18