BSD 4_3_Net_2 development
[unix-history] / usr / src / contrib / isode / ftam-ftp / ftp_var.h
CommitLineData
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 */
34int trace; /* trace packets exchanged */
35int hash; /* print # for each buffer transferred */
36int verbose; /* print messages to/from server */
37int connected; /* connected to server */
38int fromatty; /* input is from a terminal */
39int interactive; /* interactively prompt on m* cmds */
40int debug; /* debugging level */
41int bell; /* ring bell on cmd completion */
42int doglob; /* glob local file names */
43int autologin; /* establish user account on connection */
44
45char typename[32]; /* name of file transfer type */
46int type; /* file transfer type */
47char structname[32]; /* name of file transfer structure */
48int stru; /* file transfer structure */
49char formname[32]; /* name of file transfer format */
50int form; /* file transfer format */
51char modename[32]; /* name of file transfer mode */
52int mode; /* file transfer mode */
53char bytename[32]; /* local byte size in ascii */
54int bytesize; /* local byte size in binary */
55
56char *hostname; /* name of host connected to */
57
58struct servent *sp; /* service spec for tcp/ftp */
59
60#include <setjmp.h>
61jmp_buf toplevel; /* non-local goto stuff for cmd scanner */
62
63char line[200]; /* input line buffer */
64char *stringbase; /* current scan point in line buffer */
65char argbuf[200]; /* argument storage buffer */
66char *argbase; /* current storage point in arg buffer */
67int margc; /* count of arguments on input line */
68char *margv[20]; /* args parsed from input line */
69
70int options; /* used during socket creation */
71
72/*
73 * Format of command table.
74 */
75struct 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
83extern char *tail();
84extern char *index();
85extern char *rindex();
86extern char *remglob();
87extern int errno;
88extern int sys_nerr;
89extern char *sys_errlist[];
90
91/* global interface variables */
92int ftp_directory;/* TRUE if last ftp_exist was a multiple listing */
93char ftp_error_buffer[BUFSIZ];
94char *ftp_error; /* points to FTP diagnostic string */