1*11220Ssam /* ftp_var.h 4.2 83/02/21 */ 210298Ssam 310298Ssam /* 410298Ssam * FTP global variables. 510298Ssam */ 610298Ssam 710298Ssam /* 810298Ssam * Options and other state info. 910298Ssam */ 1010298Ssam int trace; /* trace packets exchanged */ 1110298Ssam int verbose; /* print messages coming back from server */ 1210298Ssam int connected; /* connected to server */ 1310298Ssam int fromatty; /* input is from a terminal */ 1410298Ssam int interactive; /* interactively prompt on m* cmds */ 1510298Ssam int debug; /* debugging level */ 1610298Ssam int bell; /* ring bell on cmd completion */ 1710298Ssam int autologin; /* establish user account on connection */ 1810298Ssam 1910298Ssam char typename[32]; /* name of file transfer type */ 2010298Ssam int type; /* file transfer type */ 2110298Ssam char structname[32]; /* name of file transfer structure */ 2210298Ssam int stru; /* file transfer structure */ 2310298Ssam char formname[32]; /* name of file transfer format */ 2410298Ssam int form; /* file transfer format */ 2510298Ssam char modename[32]; /* name of file transfer mode */ 2610298Ssam int mode; /* file transfer mode */ 27*11220Ssam char bytename[32]; /* local byte size in ascii */ 28*11220Ssam int bytesize; /* local byte size in binary */ 2910298Ssam 3010298Ssam char *hostname; /* name of host connected to */ 3110298Ssam 3210298Ssam struct servent *sp; /* service spec for tcp/ftp */ 3310298Ssam 3410298Ssam #include <setjmp.h> 3510298Ssam jmp_buf toplevel; /* non-local goto stuff for cmd scanner */ 3610298Ssam 3710298Ssam char line[200]; /* input line buffer */ 3810298Ssam char *stringbase; /* current scan point in line buffer */ 3910298Ssam char argbuf[200]; /* argument storage buffer */ 4010298Ssam char *argbase; /* current storage point in arg buffer */ 4110298Ssam int margc; /* count of arguments on input line */ 4210298Ssam char *margv[20]; /* args parsed from input line */ 4310298Ssam 4410298Ssam int options; /* used during socket creation */ 4510298Ssam 4610298Ssam /* 4710298Ssam * Format of command table. 4810298Ssam */ 4910298Ssam struct cmd { 5010298Ssam char *c_name; /* name of command */ 5110298Ssam char *c_help; /* help string */ 5210298Ssam char c_bell; /* give bell when command completes */ 5310298Ssam int (*c_handler)(); /* function to call */ 5410298Ssam }; 5510298Ssam 5610298Ssam extern char *tail(); 5710298Ssam extern char *index(); 5810298Ssam extern char *rindex(); 5910298Ssam extern int errno; 60