1: /* $Header: ftp_var.h,v 2.0 85/11/21 07:22:46 jqj Exp $ */
   2: /* $Log:	ftp_var.h,v $
   3:  * Revision 2.0  85/11/21  07:22:46  jqj
   4:  * 4.3BSD standard release
   5:  *
   6:  * Revision 1.1  85/05/27  06:30:59  jqj
   7:  * Initial revision
   8:  *
   9:  * Revision 1.1  85/05/27  06:30:59  jqj
  10:  * Initial revision
  11:  *
  12:  * based on Berkeley tcp/ftp
  13:  */
  14: /*	ftp_var.h	4.6	83/07/26	*/
  15: /*
  16:  * FTP global variables.
  17:  */
  18: #include "Filing4.h"
  19: 
  20: /*
  21:  * Options and other state info.
  22:  */
  23: int trace;          /* trace packets exchanged */
  24: int hash;           /* print # for each buffer transferred */
  25: int verbose;        /* print messages coming back from server */
  26: int fromatty;       /* input is from a terminal */
  27: int interactive;        /* interactively prompt on m* cmds */
  28: int debug;          /* debugging level */
  29: int bell;           /* ring bell on cmd completion */
  30: int doglob;         /* glob local file names */
  31: int autologin;      /* establish user account on connection */
  32: 
  33: char    typename[32];       /* name of file transfer type */
  34: int typevalue;      /* file transfer type */
  35: char    structname[32];     /* name of file transfer structure */
  36: int stru;           /* file transfer structure */
  37: char    formname[32];       /* name of file transfer format */
  38: int form;           /* file transfer format */
  39: char    modename[32];       /* name of file transfer mode */
  40: int mode;           /* file transfer mode */
  41: char    bytename[32];       /* local byte size in ascii */
  42: int bytesize;       /* local byte size in binary */
  43: 
  44: char    *hostname;      /* name of host connected to */
  45: 
  46: 
  47: 
  48: char    line[200];      /* input line buffer */
  49: char    *stringbase;        /* current scan point in line buffer */
  50: char    argbuf[200];        /* argument storage buffer */
  51: char    *argbase;       /* current storage point in arg buffer */
  52: int margc;          /* count of arguments on input line */
  53: char    *margv[20];     /* args parsed from input line */
  54: 
  55: /*
  56:  * Format of command table.
  57:  */
  58: struct cmd {
  59:     char    *c_name;    /* name of command */
  60:     char    *c_help;    /* help string */
  61:     char    c_bell;     /* give bell when command completes */
  62:     char    c_conn;     /* must be connected to use command */
  63:     int (*c_handler)(); /* function to call */
  64: };
  65: 
  66: extern  char *tail();
  67: extern  char *index();
  68: extern  char *rindex();
  69: extern  char *remglob();
  70: extern  int errno;
  71: 
  72: /*
  73:  * Connection information
  74:  */
  75: extern CourierConnection    *connected; /* connected to server */
  76: 
  77: /*
  78:  * stuff borrowed from <arpa/ftp.h> since we don't want all of that!
  79:  */
  80: 
  81: /*
  82:  * Type codes
  83:  */
  84: #define TYPE_A      1   /* ASCII -- map CR <=> LF */
  85: /* #define	TYPE_E		2	/* EBCDIC */
  86: #define TYPE_I      3   /* image */
  87: #define TYPE_L      4   /* local byte size */
  88: 
  89: /*
  90:  * Form codes
  91:  */
  92: #define FORM_N      1   /* non-print */
  93: /* #define	FORM_T		2	/* telnet format effectors */
  94: /* #define	FORM_C		3	/* carriage control (ASA) */
  95: 
  96: /*
  97:  * Structure codes
  98:  */
  99: #define STRU_F      1   /* file (no record structure) */
 100: /* #define	STRU_R		2	/* record structure */
 101: /* #define	STRU_P		3	/* page structure */
 102: 
 103: /*
 104:  * Mode types
 105:  */
 106: #define MODE_S      1   /* stream */
 107: /* #define	MODE_B		2	/* block */
 108: /* #define	MODE_C		3	/* compressed */

Defined variables

argbase defined in line 51; used 4 times
argbuf defined in line 50; used 1 times
bytename defined in line 41; used 1 times
bytesize defined in line 42; used 1 times
form defined in line 38; used 1 times
fromatty defined in line 26; used 3 times
line defined in line 48; used 58 times
stringbase defined in line 49; used 4 times
stru defined in line 36; used 1 times

Defined struct's

cmd defined in line 58; used 22 times

Defined macros

FORM_N defined in line 92; used 1 times
MODE_S defined in line 106; used 1 times
STRU_F defined in line 99; used 1 times
TYPE_I defined in line 86; used 2 times
TYPE_L defined in line 87; never used

Usage of this include

Last modified: 1986-03-13
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1118
Valid CSS Valid XHTML 1.0 Strict