|
|
1.1 ! root 1: /* ftp_var.h - FTP global variables */ ! 2: ! 3: /* ! 4: * $Header: /f/osi/ftam-ftp/RCS/ftp_var.h,v 7.0 89/11/23 21:55:07 mrose Rel $ ! 5: * ! 6: * ! 7: * $Log: ftp_var.h,v $ ! 8: * Revision 7.0 89/11/23 21:55:07 mrose ! 9: * Release 6.0 ! 10: * ! 11: */ ! 12: ! 13: /* ! 14: * NOTICE ! 15: * ! 16: * Acquisition, use, and distribution of this module and related ! 17: * materials are subject to the restrictions of a license agreement. ! 18: * Consult the Preface in the User's Manual for the full terms of ! 19: * this agreement. ! 20: * ! 21: */ ! 22: ! 23: ! 24: /* ! 25: * Shamelessly taken from UCB ! 26: */ ! 27: ! 28: /* ! 29: * Options and other state info. ! 30: */ ! 31: int trace; /* trace packets exchanged */ ! 32: int hash; /* print # for each buffer transferred */ ! 33: int verbose; /* print messages to/from server */ ! 34: int connected; /* connected to server */ ! 35: int fromatty; /* input is from a terminal */ ! 36: int interactive; /* interactively prompt on m* cmds */ ! 37: int debug; /* debugging level */ ! 38: int bell; /* ring bell on cmd completion */ ! 39: int doglob; /* glob local file names */ ! 40: int autologin; /* establish user account on connection */ ! 41: ! 42: char typename[32]; /* name of file transfer type */ ! 43: int type; /* file transfer type */ ! 44: char structname[32]; /* name of file transfer structure */ ! 45: int stru; /* file transfer structure */ ! 46: char formname[32]; /* name of file transfer format */ ! 47: int form; /* file transfer format */ ! 48: char modename[32]; /* name of file transfer mode */ ! 49: int mode; /* file transfer mode */ ! 50: char bytename[32]; /* local byte size in ascii */ ! 51: int bytesize; /* local byte size in binary */ ! 52: ! 53: char *hostname; /* name of host connected to */ ! 54: ! 55: struct servent *sp; /* service spec for tcp/ftp */ ! 56: ! 57: #include <setjmp.h> ! 58: jmp_buf toplevel; /* non-local goto stuff for cmd scanner */ ! 59: ! 60: char line[200]; /* input line buffer */ ! 61: char *stringbase; /* current scan point in line buffer */ ! 62: char argbuf[200]; /* argument storage buffer */ ! 63: char *argbase; /* current storage point in arg buffer */ ! 64: int margc; /* count of arguments on input line */ ! 65: char *margv[20]; /* args parsed from input line */ ! 66: ! 67: int options; /* used during socket creation */ ! 68: ! 69: /* ! 70: * Format of command table. ! 71: */ ! 72: struct cmd { ! 73: char *c_name; /* name of command */ ! 74: char *c_help; /* help string */ ! 75: char c_bell; /* give bell when command completes */ ! 76: char c_conn; /* must be connected to use command */ ! 77: int (*c_handler)(); /* function to call */ ! 78: }; ! 79: ! 80: extern char *tail(); ! 81: extern char *index(); ! 82: extern char *rindex(); ! 83: extern char *remglob(); ! 84: extern int errno; ! 85: extern int sys_nerr; ! 86: extern char *sys_errlist[]; ! 87: ! 88: /* global interface variables */ ! 89: int ftp_directory;/* TRUE if last ftp_exist was a multiple listing */ ! 90: char ftp_error_buffer[BUFSIZ]; ! 91: char *ftp_error; /* points to FTP diagnostic string */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.