1: /* $Header: ftp_var.h,v 2.0 85/11/21 07:22:46 jqj Exp $ */
2: /* $Log: ftp_var.h,v $
3: * Revision 2.0 85/11/21 07:22:46 jqj
4: * 4.3BSD standard release
5: *
6: * Revision 1.1 85/05/27 06:30:59 jqj
7: * Initial revision
8: *
9: * Revision 1.1 85/05/27 06:30:59 jqj
10: * Initial revision
11: *
12: * based on Berkeley tcp/ftp
13: */
14: /* ftp_var.h 4.6 83/07/26 */
15: /*
16: * FTP global variables.
17: */
18: #include "Filing4.h"
19:
20: /*
21: * Options and other state info.
22: */
23: int trace; /* trace packets exchanged */
24: int hash; /* print # for each buffer transferred */
25: int verbose; /* print messages coming back from server */
26: int fromatty; /* input is from a terminal */
27: int interactive; /* interactively prompt on m* cmds */
28: int debug; /* debugging level */
29: int bell; /* ring bell on cmd completion */
30: int doglob; /* glob local file names */
31: int autologin; /* establish user account on connection */
32:
33: char typename[32]; /* name of file transfer type */
34: int typevalue; /* file transfer type */
35: char structname[32]; /* name of file transfer structure */
36: int stru; /* file transfer structure */
37: char formname[32]; /* name of file transfer format */
38: int form; /* file transfer format */
39: char modename[32]; /* name of file transfer mode */
40: int mode; /* file transfer mode */
41: char bytename[32]; /* local byte size in ascii */
42: int bytesize; /* local byte size in binary */
43:
44: char *hostname; /* name of host connected to */
45:
46:
47:
48: char line[200]; /* input line buffer */
49: char *stringbase; /* current scan point in line buffer */
50: char argbuf[200]; /* argument storage buffer */
51: char *argbase; /* current storage point in arg buffer */
52: int margc; /* count of arguments on input line */
53: char *margv[20]; /* args parsed from input line */
54:
55: /*
56: * Format of command table.
57: */
58: struct cmd {
59: char *c_name; /* name of command */
60: char *c_help; /* help string */
61: char c_bell; /* give bell when command completes */
62: char c_conn; /* must be connected to use command */
63: int (*c_handler)(); /* function to call */
64: };
65:
66: extern char *tail();
67: extern char *index();
68: extern char *rindex();
69: extern char *remglob();
70: extern int errno;
71:
72: /*
73: * Connection information
74: */
75: extern CourierConnection *connected; /* connected to server */
76:
77: /*
78: * stuff borrowed from <arpa/ftp.h> since we don't want all of that!
79: */
80:
81: /*
82: * Type codes
83: */
84: #define TYPE_A 1 /* ASCII -- map CR <=> LF */
85: /* #define TYPE_E 2 /* EBCDIC */
86: #define TYPE_I 3 /* image */
87: #define TYPE_L 4 /* local byte size */
88:
89: /*
90: * Form codes
91: */
92: #define FORM_N 1 /* non-print */
93: /* #define FORM_T 2 /* telnet format effectors */
94: /* #define FORM_C 3 /* carriage control (ASA) */
95:
96: /*
97: * Structure codes
98: */
99: #define STRU_F 1 /* file (no record structure) */
100: /* #define STRU_R 2 /* record structure */
101: /* #define STRU_P 3 /* page structure */
102:
103: /*
104: * Mode types
105: */
106: #define MODE_S 1 /* stream */
107: /* #define MODE_B 2 /* block */
108: /* #define MODE_C 3 /* compressed */
Defined variables
bell
defined in line
29; used 5 times
debug
defined in line
28; used 7 times
form
defined in line
38; used 1 times
hash
defined in line
24; used 13 times
line
defined in line
48; used 58 times
- in /usr/src/new/xns/examples/filing/cmds.c line
57-59(3),
210-212(3),
223-225(3),
248-250(3),
292-294(3),
305-307(3),
346-348(3),
536-538(3),
582-584(3),
605-607(3),
629-631(3),
642-644(3),
687-689(3),
695-697(3),
795-797(3),
829-831(3),
851-853(3),
894,
903-904(3)
- in /usr/src/new/xns/examples/filing/main.c line
179,
186,
249
margc
defined in line
52; used 20 times
- in /usr/src/new/xns/examples/filing/cmds.c line
61,
214,
227,
252,
296,
309,
350,
540,
586,
609,
633,
646,
691,
699,
799,
833,
855
- in /usr/src/new/xns/examples/filing/main.c line
202,
247-252(2)
margv
defined in line
53; used 20 times
- in /usr/src/new/xns/examples/filing/cmds.c line
62,
215,
228,
253,
297,
310,
351,
541,
587,
610,
634,
647,
692,
700,
800,
834,
856
- in /usr/src/new/xns/examples/filing/main.c line
189,
202,
248
mode
defined in line
40; used 11 times
stru
defined in line
36; used 1 times
trace
defined in line
23; used 4 times
Defined struct's
cmd
defined in line
58; used 22 times
Defined macros
Usage of this include