1*11349Ssam /* ftp_var.h 4.3 83/03/01 */ 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 */ 17*11349Ssam int doglob; /* glob local file names */ 1810298Ssam int autologin; /* establish user account on connection */ 1910298Ssam 2010298Ssam char typename[32]; /* name of file transfer type */ 2110298Ssam int type; /* file transfer type */ 2210298Ssam char structname[32]; /* name of file transfer structure */ 2310298Ssam int stru; /* file transfer structure */ 2410298Ssam char formname[32]; /* name of file transfer format */ 2510298Ssam int form; /* file transfer format */ 2610298Ssam char modename[32]; /* name of file transfer mode */ 2710298Ssam int mode; /* file transfer mode */ 2811220Ssam char bytename[32]; /* local byte size in ascii */ 2911220Ssam int bytesize; /* local byte size in binary */ 3010298Ssam 3110298Ssam char *hostname; /* name of host connected to */ 3210298Ssam 3310298Ssam struct servent *sp; /* service spec for tcp/ftp */ 3410298Ssam 3510298Ssam #include <setjmp.h> 3610298Ssam jmp_buf toplevel; /* non-local goto stuff for cmd scanner */ 3710298Ssam 3810298Ssam char line[200]; /* input line buffer */ 3910298Ssam char *stringbase; /* current scan point in line buffer */ 4010298Ssam char argbuf[200]; /* argument storage buffer */ 4110298Ssam char *argbase; /* current storage point in arg buffer */ 4210298Ssam int margc; /* count of arguments on input line */ 4310298Ssam char *margv[20]; /* args parsed from input line */ 4410298Ssam 4510298Ssam int options; /* used during socket creation */ 4610298Ssam 4710298Ssam /* 4810298Ssam * Format of command table. 4910298Ssam */ 5010298Ssam struct cmd { 5110298Ssam char *c_name; /* name of command */ 5210298Ssam char *c_help; /* help string */ 5310298Ssam char c_bell; /* give bell when command completes */ 5410298Ssam int (*c_handler)(); /* function to call */ 5510298Ssam }; 5610298Ssam 5710298Ssam extern char *tail(); 5810298Ssam extern char *index(); 5910298Ssam extern char *rindex(); 6010298Ssam extern int errno; 61