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