|
|
1.1 root 1: /* $Header: ftp_var.h,v 2.4 87/04/01 13:53:05 ed Exp $ */
2: /* $Log: ftp_var.h,v $
3: * Revision 2.4 87/04/01 13:53:05 ed
4: * include FilingSubset1.h from standard include/xnscourier directory.
5: *
6: * Revision 2.3 87/01/09 16:48:41 ed
7: * Use FilingSubset Protocol
8: * file types moved to filetypes.h to share with server code
9: *
10: * Revision 2.2 86/12/15 11:41:12 jqj
11: * Added support for more ViewPoint file types (no other attributes, though)
12: *
13: * Revision 2.1 86/12/11 06:12:10 jqj
14: * Eliminated form, mode, and struct commands. Started adding support for
15: * more file types.
16: *
17: * Revision 2.0 85/11/21 07:22:46 jqj
18: * 4.3BSD standard release
19: *
20: * Revision 1.1 85/05/27 06:30:59 jqj
21: * Initial revision
22: *
23: * Revision 1.1 85/05/27 06:30:59 jqj
24: * Initial revision
25: *
26: * based on Berkeley tcp/ftp
27: */
28: /* ftp_var.h 4.6 83/07/26 */
29: /*
30: * FTP global variables.
31: */
32: #include <xnscourier/FilingSubset1.h>
33: #include <xnscourier/filetypes.h>
34:
35: /*
36: * Options and other state info.
37: */
38: int trace; /* trace packets exchanged */
39: int hash; /* print # for each buffer transferred */
40: int verbose; /* print messages coming back from server */
41: int fromatty; /* input is from a terminal */
42: int interactive; /* interactively prompt on m* cmds */
43: int debug; /* debugging level */
44: int bell; /* ring bell on cmd completion */
45: int doglob; /* glob local file names */
46: int autologin; /* establish user account on connection */
47: int usefiling; /* use Filing instead of FilingSubset */
48:
49: char typename[32]; /* name of file transfer type */
50: LongCardinal typevalue; /* file transfer type */
51:
52: char *hostname; /* name of host connected to */
53:
54:
55:
56: char line[200]; /* input line buffer */
57: char *stringbase; /* current scan point in line buffer */
58: char argbuf[200]; /* argument storage buffer */
59: char *argbase; /* current storage point in arg buffer */
60: int margc; /* count of arguments on input line */
61: char *margv[20]; /* args parsed from input line */
62:
63: /*
64: * Format of command table.
65: */
66: struct cmd {
67: char *c_name; /* name of command */
68: char *c_help; /* help string */
69: char c_bell; /* give bell when command completes */
70: char c_conn; /* must be connected to use command */
71: int (*c_handler)(); /* function to call */
72: };
73:
74: extern char *tail();
75: extern char *index();
76: extern char *rindex();
77: extern char *remglob();
78: extern int errno;
79:
80: /*
81: * Connection information
82: */
83: extern CourierConnection *connected; /* connected to server */
84:
85: /*
86: * Type codes
87: * Server needed access to the types also, so they were moved to
88: * ../filing_common/filetypes.h ed 1/9/87
89: */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.