|
|
1.1 ! root 1: /* ftp_var.h 4.6 83/07/26 */ ! 2: ! 3: /* ! 4: * FTP global variables. ! 5: */ ! 6: ! 7: /* ! 8: * Options and other state info. ! 9: */ ! 10: int trace; /* trace packets exchanged */ ! 11: int hash; /* print # for each buffer transferred */ ! 12: int sendport; /* use PORT cmd for each data connection */ ! 13: int verbose; /* print messages coming back from server */ ! 14: int connected; /* connected to server */ ! 15: int fromatty; /* input is from a terminal */ ! 16: int interactive; /* interactively prompt on m* cmds */ ! 17: int debug; /* debugging level */ ! 18: int bell; /* ring bell on cmd completion */ ! 19: int doglob; /* glob local file names */ ! 20: int autologin; /* establish user account on connection */ ! 21: ! 22: char typename[32]; /* name of file transfer type */ ! 23: int type; /* file transfer type */ ! 24: char structname[32]; /* name of file transfer structure */ ! 25: int stru; /* file transfer structure */ ! 26: char formname[32]; /* name of file transfer format */ ! 27: int form; /* file transfer format */ ! 28: char modename[32]; /* name of file transfer mode */ ! 29: int mode; /* file transfer mode */ ! 30: char bytename[32]; /* local byte size in ascii */ ! 31: int bytesize; /* local byte size in binary */ ! 32: ! 33: char *hostname; /* name of host connected to */ ! 34: ! 35: struct servent *sp; /* service spec for tcp/ftp */ ! 36: ! 37: #include <setjmp.h> ! 38: jmp_buf toplevel; /* non-local goto stuff for cmd scanner */ ! 39: ! 40: char line[200]; /* input line buffer */ ! 41: char *stringbase; /* current scan point in line buffer */ ! 42: char argbuf[200]; /* argument storage buffer */ ! 43: char *argbase; /* current storage point in arg buffer */ ! 44: int margc; /* count of arguments on input line */ ! 45: char *margv[20]; /* args parsed from input line */ ! 46: ! 47: int options; /* used during socket creation */ ! 48: ! 49: /* ! 50: * Format of command table. ! 51: */ ! 52: struct cmd { ! 53: char *c_name; /* name of command */ ! 54: char *c_help; /* help string */ ! 55: char c_bell; /* give bell when command completes */ ! 56: char c_conn; /* must be connected to use command */ ! 57: int (*c_handler)(); /* function to call */ ! 58: }; ! 59: ! 60: extern char *tail(); ! 61: extern char *index(); ! 62: extern char *rindex(); ! 63: extern char *remglob(); ! 64: extern int errno;
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.