use sccs
[unix-history] / usr / src / usr.bin / ftp / ftp_var.h
CommitLineData
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 */
10int trace; /* trace packets exchanged */
11int verbose; /* print messages coming back from server */
12int connected; /* connected to server */
13int fromatty; /* input is from a terminal */
14int interactive; /* interactively prompt on m* cmds */
15int debug; /* debugging level */
16int bell; /* ring bell on cmd completion */
17int autologin; /* establish user account on connection */
18
19char typename[32]; /* name of file transfer type */
20int type; /* file transfer type */
21char structname[32]; /* name of file transfer structure */
22int stru; /* file transfer structure */
23char formname[32]; /* name of file transfer format */
24int form; /* file transfer format */
25char modename[32]; /* name of file transfer mode */
26int mode; /* file transfer mode */
27
28char *hostname; /* name of host connected to */
29
30struct servent *sp; /* service spec for tcp/ftp */
31
32#include <setjmp.h>
33jmp_buf toplevel; /* non-local goto stuff for cmd scanner */
34
35char line[200]; /* input line buffer */
36char *stringbase; /* current scan point in line buffer */
37char argbuf[200]; /* argument storage buffer */
38char *argbase; /* current storage point in arg buffer */
39int margc; /* count of arguments on input line */
40char *margv[20]; /* args parsed from input line */
41
42int options; /* used during socket creation */
43
44/*
45 * Format of command table.
46 */
47struct 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
54extern char *tail();
55extern char *index();
56extern char *rindex();
57extern int errno;