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