BSD 4_1c_2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Mon, 21 Feb 1983 12:39:05 +0000 (04:39 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Mon, 21 Feb 1983 12:39:05 +0000 (04:39 -0800)
Work on file usr/src/ucb/netser/ftp/ftp_var.h

Synthesized-from: CSRG/cd1/4.1c.2

usr/src/ucb/netser/ftp/ftp_var.h [new file with mode: 0644]

diff --git a/usr/src/ucb/netser/ftp/ftp_var.h b/usr/src/ucb/netser/ftp/ftp_var.h
new file mode 100644 (file)
index 0000000..1d3e9d7
--- /dev/null
@@ -0,0 +1,59 @@
+/*     ftp_var.h       4.2     83/02/21        */
+
+/*
+ * FTP global variables.
+ */
+
+/*
+ * Options and other state info.
+ */
+int    trace;                  /* trace packets exchanged */
+int    verbose;                /* print messages coming back from server */
+int    connected;              /* connected to server */
+int    fromatty;               /* input is from a terminal */
+int    interactive;            /* interactively prompt on m* cmds */
+int    debug;                  /* debugging level */
+int    bell;                   /* ring bell on cmd completion */
+int    autologin;              /* establish user account on connection */
+
+char   typename[32];           /* name of file transfer type */
+int    type;                   /* file transfer type */
+char   structname[32];         /* name of file transfer structure */
+int    stru;                   /* file transfer structure */
+char   formname[32];           /* name of file transfer format */
+int    form;                   /* file transfer format */
+char   modename[32];           /* name of file transfer mode */
+int    mode;                   /* file transfer mode */
+char   bytename[32];           /* local byte size in ascii */
+int    bytesize;               /* local byte size in binary */
+
+char   *hostname;              /* name of host connected to */
+
+struct servent *sp;            /* service spec for tcp/ftp */
+
+#include <setjmp.h>
+jmp_buf        toplevel;               /* non-local goto stuff for cmd scanner */
+
+char   line[200];              /* input line buffer */
+char   *stringbase;            /* current scan point in line buffer */
+char   argbuf[200];            /* argument storage buffer */
+char   *argbase;               /* current storage point in arg buffer */
+int    margc;                  /* count of arguments on input line */
+char   *margv[20];             /* args parsed from input line */
+
+int    options;                /* used during socket creation */
+
+/*
+ * Format of command table.
+ */
+struct cmd {
+       char    *c_name;        /* name of command */
+       char    *c_help;        /* help string */
+       char    c_bell;         /* give bell when command completes */
+       int     (*c_handler)(); /* function to call */
+};
+
+extern char *tail();
+extern char *index();
+extern char *rindex();
+extern int errno;