Commit | Line | Data |
---|---|---|
88648cc6 SL |
1 | /* ftp_var.h 4.1 83/01/15 */ |
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 */ | |
27 | ||
28 | char *hostname; /* name of host connected to */ | |
29 | ||
30 | struct servent *sp; /* service spec for tcp/ftp */ | |
31 | ||
32 | #include <setjmp.h> | |
33 | jmp_buf toplevel; /* non-local goto stuff for cmd scanner */ | |
34 | ||
35 | char line[200]; /* input line buffer */ | |
36 | char *stringbase; /* current scan point in line buffer */ | |
37 | char argbuf[200]; /* argument storage buffer */ | |
38 | char *argbase; /* current storage point in arg buffer */ | |
39 | int margc; /* count of arguments on input line */ | |
40 | char *margv[20]; /* args parsed from input line */ | |
41 | ||
42 | int options; /* used during socket creation */ | |
43 | ||
44 | /* | |
45 | * Format of command table. | |
46 | */ | |
47 | struct cmd { | |
48 | char *c_name; /* name of command */ | |
49 | char *c_help; /* help string */ | |
50 | char c_bell; /* give bell when command completes */ | |
51 | int (*c_handler)(); /* function to call */ | |
52 | }; | |
53 | ||
54 | extern char *tail(); | |
55 | extern char *index(); | |
56 | extern char *rindex(); | |
57 | extern int errno; |