ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

ftp_var.h
Go to the documentation of this file.
00001 #include <winsock.h>
00002 #include "fake.h"
00003 #include "prototypes.h"
00004 #include <setjmp.h>
00005 #include <time.h>
00006 
00007 //typedef void (*Sig_t)(int);
00008 
00009 /* The following defines are from ftp.h and telnet.h from bsd.h */
00010 /* All relevent copyrights below apply.                         */
00011 
00012 #define IAC 255
00013 #define DONT    254
00014 #define DO  253
00015 #define WONT    252
00016 #define WILL    251
00017 #define SB  250
00018 #define GA  249
00019 #define EL  248
00020 #define EC  247
00021 #define AYT 246
00022 #define AO  245
00023 #define IP  244
00024 #define BREAK   243
00025 #define DM  242
00026 #define NOP 241
00027 #define SE  240
00028 #define EOR     239
00029 #define ABORT   238
00030 #define SUSP    237
00031 #define xEOF    236
00032 
00033 
00034 #define MAXPATHLEN 255
00035 #define TYPE_A 'A'
00036 #define TYPE_I 'I'
00037 #define TYPE_E 'E'
00038 #define TYPE_L 'L'
00039 
00040 #define PRELIM      1
00041 #define COMPLETE    2
00042 #define CONTINUE    3
00043 #define TRANSIENT   4
00044 
00045 #define MODE_S      1
00046 #define MODE_B      2
00047 #define MODE_C      3
00048 
00049 #define STRU_F      1
00050 #define STRU_R      2
00051 #define STRU_P      3
00052 
00053 #define FORM_N      1
00054 #define FORM_T      2
00055 #define FORM_C      3
00056 
00057 
00058 /*
00059  * Copyright (c) 1985 Regents of the University of California.
00060  * All rights reserved.
00061  *
00062  * Redistribution and use in source and binary forms are permitted
00063  * provided that the above copyright notice and this paragraph are
00064  * duplicated in all such forms and that any documentation,
00065  * advertising materials, and other materials related to such
00066  * distribution and use acknowledge that the software was developed
00067  * by the University of California, Berkeley.  The name of the
00068  * University may not be used to endorse or promote products derived
00069  * from this software without specific prior written permission.
00070  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
00071  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
00072  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00073  *
00074  *  @(#)ftp_var.h   5.5 (Berkeley) 6/29/88
00075  */
00076 
00077 /*
00078  * FTP global variables.
00079  */
00080 
00081 /*
00082  * Options and other state info.
00083  */
00084 extern int  trace;          /* trace packets exchanged */
00085 extern int  hash;           /* print # for each buffer transferred */
00086 extern int  sendport;       /* use PORT cmd for each data connection */
00087 extern int  verbose;        /* print messages coming back from server */
00088 extern int  connected;      /* connected to server */
00089 extern int  fromatty;       /* input is from a terminal */
00090 extern int  interactive;        /* interactively prompt on m* cmds */
00091 extern int  debug;          /* debugging level */
00092 extern int  bell;           /* ring bell on cmd completion */
00093 extern int  doglob;         /* glob local file names */
00094 extern int  proxy;          /* proxy server connection active */
00095 extern int  proxflag;       /* proxy connection exists */
00096 extern int  sunique;        /* store files on server with unique name */
00097 extern int  runique;        /* store local files with unique name */
00098 extern int  mcase;          /* map upper to lower case for mget names */
00099 extern int  ntflag;         /* use ntin ntout tables for name translation */
00100 extern int  mapflag;        /* use mapin mapout templates on file names */
00101 extern int  code;           /* return/reply code for ftp command */
00102 extern int  crflag;         /* if 1, strip car. rets. on ascii gets */
00103 extern char pasv[64];       /* passive port for proxy data connection */
00104 extern int  passivemode;        /* passive mode enabled */
00105 extern char *altarg;        /* argv[1] with no shell-like preprocessing  */
00106 extern char ntin[17];       /* input translation table */
00107 extern char ntout[17];      /* output translation table */
00108 
00109 extern char mapin[MAXPATHLEN];  /* input map template */
00110 extern char mapout[MAXPATHLEN]; /* output map template */
00111 extern char typename[32];       /* name of file transfer type */
00112 extern int  type;           /* file transfer type */
00113 extern char structname[32];     /* name of file transfer structure */
00114 extern int  stru;           /* file transfer structure */
00115 extern char formname[32];       /* name of file transfer format */
00116 extern int  form;           /* file transfer format */
00117 extern char modename[32];       /* name of file transfer mode */
00118 extern int  mode;           /* file transfer mode */
00119 extern char bytename[32];       /* local byte size in ascii */
00120 extern int  bytesize;       /* local byte size in binary */
00121 
00122 extern jmp_buf  toplevel;       /* non-local goto stuff for cmd scanner */
00123 
00124 extern char line[200];      /* input line buffer */
00125 extern char *stringbase;        /* current scan point in line buffer */
00126 extern char argbuf[200];        /* argument storage buffer */
00127 extern char *argbase;       /* current storage point in arg buffer */
00128 extern int  margc;          /* count of arguments on input line */
00129 extern const char   *margv[20]; /* args parsed from input line */
00130 extern int  cpend;          /* flag: if != 0, then pending server reply */
00131 extern int  mflag;          /* flag: if != 0, then active multi command */
00132 
00133 extern int  options;        /* used during socket creation */
00134 
00135 /*
00136  * Format of command table.
00137  */
00138 struct cmd {
00139     const char  *c_name;    /* name of command */
00140     const char  *c_help;    /* help string */
00141     char    c_bell;         /* give bell when command completes */
00142     char    c_conn;         /* must be connected to use command */
00143     char    c_proxy;        /* proxy server may execute */
00144     void    (*c_handler)(int argc, const char *argv[]); /* function to call */
00145 };
00146 
00147 struct macel {
00148     char mac_name[9];       /* macro name */
00149     char *mac_start;        /* start of macro in macbuf */
00150     char *mac_end;          /* end of macro in macbuf */
00151 };
00152 
00153 extern int macnum;          /* number of defined macros */
00154 extern struct macel macros[16];
00155 extern char macbuf[4096];
00156 
00157 #if defined(__ANSI__) || defined(sparc)
00158 typedef void sig_t;
00159 #else
00160 typedef int sig_t;
00161 #endif
00162 
00163 typedef int uid_t;
00164 

Generated on Sun May 27 2012 04:17:14 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.