Annotation of researchv9/ipc/src/servers/ftp_var.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * FTP global variables.
                      3:  */
                      4: 
                      5: /*
                      6:  * Options and other state info.
                      7:  */
                      8: int    trace;                  /* trace packets exchanged */
                      9: int    verbose;                /* print messages coming back from server */
                     10: int    connected;              /* connected to server */
                     11: int    fromatty;               /* input is from a terminal */
                     12: int    interactive;            /* interactively prompt on m* cmds */
                     13: int    debug;                  /* debugging level */
                     14: int    bell;                   /* ring bell on cmd completion */
                     15: int    autologin;              /* establish user account on connection */
                     16: 
                     17: char   typename[32];           /* name of file transfer type */
                     18: int    type;                   /* file transfer type */
                     19: char   structname[32];         /* name of file transfer structure */
                     20: int    stru;                   /* file transfer structure */
                     21: char   formname[32];           /* name of file transfer format */
                     22: int    form;                   /* file transfer format */
                     23: char   modename[32];           /* name of file transfer mode */
                     24: int    mode;                   /* file transfer mode */
                     25: char   bytename[32];           /* local byte size in ascii */
                     26: int    bytesize;               /* local byte size in binary */
                     27: 
                     28: char   *hostname;              /* name of host connected to */
                     29: 
                     30: #include <sys/inet/in.h>
                     31: struct in_service *sp;         /* service spec for tcp/ftp */
                     32: 
                     33: #include <setjmp.h>
                     34: jmp_buf        toplevel;               /* non-local goto stuff for cmd scanner */
                     35: 
                     36: char   line[200];              /* input line buffer */
                     37: char   *stringbase;            /* current scan point in line buffer */
                     38: char   argbuf[200];            /* argument storage buffer */
                     39: char   *argbase;               /* current storage point in arg buffer */
                     40: int    margc;                  /* count of arguments on input line */
                     41: char   *margv[20];             /* args parsed from input line */
                     42: 
                     43: /*
                     44:  * Format of command table.
                     45:  */
                     46: struct cmd {
                     47:        char    *c_name;        /* name of command */
                     48:        char    *c_help;        /* help string */
                     49:        char    c_bell;         /* give bell when command completes */
                     50:        int     (*c_handler)(); /* function to call */
                     51: };
                     52: 
                     53: extern char *tail();
                     54: extern char *index();
                     55: extern char *rindex();
                     56: extern int errno;

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.