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

cmdtab.c
Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 1985, 1989 Regents of the University of California.
00003  * All rights reserved.
00004  *
00005  * Redistribution and use in source and binary forms are permitted
00006  * provided that the above copyright notice and this paragraph are
00007  * duplicated in all such forms and that any documentation,
00008  * advertising materials, and other materials related to such
00009  * distribution and use acknowledge that the software was developed
00010  * by the University of California, Berkeley.  The name of the
00011  * University may not be used to endorse or promote products derived
00012  * from this software without specific prior written permission.
00013  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
00014  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
00015  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00016  */
00017 
00018 #ifndef lint
00019 static char sccsid[] = "@(#)cmdtab.c    5.9 (Berkeley) 3/21/89";
00020 #endif /* not lint */
00021 
00022 #include "precomp.h"
00023 
00024 /*
00025  * User FTP -- Command Tables.
00026  */
00027 
00028 char    accounthelp[] = "send account command to remote server";
00029 char    appendhelp[] =  "append to a file";
00030 char    asciihelp[] =   "set ascii transfer type";
00031 char    beephelp[] =    "beep when command completed";
00032 char    binaryhelp[] =  "set binary transfer type";
00033 char    casehelp[] =    "toggle mget upper/lower case id mapping";
00034 char    cdhelp[] =  "change remote working directory";
00035 char    cduphelp[] =    "change remote working directory to parent directory";
00036 char    chmodhelp[] =   "change file permissions of remote file";
00037 char    connecthelp[] = "connect to remote tftp";
00038 char    crhelp[] =  "toggle carriage return stripping on ascii gets";
00039 char    deletehelp[] =  "delete remote file";
00040 char    debughelp[] =   "toggle/set debugging mode";
00041 char    dirhelp[] = "list contents of remote directory";
00042 char    disconhelp[] =  "terminate ftp session";
00043 char    domachelp[] =   "execute macro";
00044 char    formhelp[] =    "set file transfer format";
00045 char    globhelp[] =    "toggle metacharacter expansion of local file names";
00046 char    hashhelp[] =    "toggle printing `#' for each buffer transferred";
00047 char    helphelp[] =    "print local help information";
00048 char    idlehelp[] =    "get (set) idle timer on remote side";
00049 char    lcdhelp[] = "change local working directory";
00050 char    lshelp[] =  "list contents of remote directory";
00051 char    macdefhelp[] =  "define a macro";
00052 char    mdeletehelp[] = "delete multiple files";
00053 char    mdirhelp[] =    "list contents of multiple remote directories";
00054 char    mgethelp[] =    "get multiple files";
00055 char    mkdirhelp[] =   "make directory on the remote machine";
00056 char    mlshelp[] = "list contents of multiple remote directories";
00057 char    modtimehelp[] = "show last modification time of remote file";
00058 char    modehelp[] =    "set file transfer mode";
00059 char    mputhelp[] =    "send multiple files";
00060 char    newerhelp[] =   "get file if remote file is newer than local file ";
00061 char    nlisthelp[] =   "nlist contents of remote directory";
00062 char    nmaphelp[] =    "set templates for default file name mapping";
00063 char    ntranshelp[] =  "set translation table for default file name mapping";
00064 char    porthelp[] =    "toggle use of PORT cmd for each data connection";
00065 char    prompthelp[] =  "force interactive prompting on multiple commands";
00066 char    proxyhelp[] =   "issue command on alternate connection";
00067 char    pwdhelp[] = "print working directory on remote machine";
00068 char    quithelp[] =    "terminate ftp session and exit";
00069 char    quotehelp[] =   "send arbitrary ftp command";
00070 char    receivehelp[] = "receive file";
00071 char    regethelp[] =   "get file restarting at end of local file";
00072 char    remotehelp[] =  "get help from remote server";
00073 char    renamehelp[] =  "rename file";
00074 char    restarthelp[]=  "restart file transfer at bytecount";
00075 char    rmdirhelp[] =   "remove directory on the remote machine";
00076 char    rmtstatushelp[]="show status of remote machine";
00077 char    runiquehelp[] = "toggle store unique for local files";
00078 char    resethelp[] =   "clear queued command replies";
00079 char    sendhelp[] =    "send one file";
00080 char    passivehelp[] = "enter passive transfer mode";
00081 char    sitehelp[] =    "send site specific command to remote server\n\t\tTry \"rhelp site\" or \"site help\" for more information";
00082 char    shellhelp[] =   "escape to the shell";
00083 char    sizecmdhelp[] = "show size of remote file";
00084 char    statushelp[] =  "show current status";
00085 char    structhelp[] =  "set file transfer structure";
00086 char    suniquehelp[] = "toggle store unique on remote machine";
00087 char    systemhelp[] =  "show remote system type";
00088 char    tenexhelp[] =   "set tenex file transfer type";
00089 char    tracehelp[] =   "toggle packet tracing";
00090 char    typehelp[] =    "set file transfer type";
00091 char    umaskhelp[] =   "get (set) umask on remote side";
00092 char    userhelp[] =    "send new user information";
00093 char    verbosehelp[] = "toggle verbose mode";
00094 
00095 struct cmd cmdtab[] = {
00096     { "!",      shellhelp,  0,  0,  0,  shell },
00097     { "$",      domachelp,  1,  0,  0,  domacro },
00098     { "account",    accounthelp,    0,  1,  1,  account},
00099     { "append", appendhelp, 1,  1,  1,  put },
00100     { "ascii",  asciihelp,  0,  1,  1,  setascii },
00101     { "bell",   beephelp,   0,  0,  0,  setbell },
00102     { "binary", binaryhelp, 0,  1,  1,  setbinary },
00103     { "bye",    quithelp,   0,  0,  0,  quit },
00104     { "case",   casehelp,   0,  0,  1,  setcase },
00105     { "cd",     cdhelp,     0,  1,  1,  cd },
00106     { "cdup",   cduphelp,   0,  1,  1,  cdup },
00107     { "chmod",  chmodhelp,  0,  1,  1,  do_chmod },
00108     { "close",  disconhelp, 0,  1,  1,  disconnect },
00109     { "cr",     crhelp,     0,  0,  0,  setcr },
00110     { "delete", deletehelp, 0,  1,  1,  delete },
00111     { "debug",  debughelp,  0,  0,  0,  setdebug },
00112     { "dir",    dirhelp,    1,  1,  1,  ls },
00113     { "disconnect", disconhelp, 0,  1,  1,  disconnect },
00114     { "form",   formhelp,   0,  1,  1,  setform },
00115     { "get",    receivehelp,    1,  1,  1,  get },
00116     { "glob",   globhelp,   0,  0,  0,  setglob },
00117     { "hash",   hashhelp,   0,  0,  0,  sethash },
00118     { "help",   helphelp,   0,  0,  1,  help },
00119     { "idle",   idlehelp,   0,  1,  1,  idle },
00120     { "image",  binaryhelp, 0,  1,  1,  setbinary },
00121     { "lcd",    lcdhelp,    0,  0,  0,  lcd },
00122     { "ls",     lshelp,     1,  1,  1,  ls },
00123     { "macdef", macdefhelp, 0,  0,  0,  macdef },
00124     { "mdelete",    mdeletehelp,    1,  1,  1,  mdelete },
00125     { "mdir",   mdirhelp,   1,  1,  1,  mls },
00126     { "mget",   mgethelp,   1,  1,  1,  mget },
00127     { "mkdir",  mkdirhelp,  0,  1,  1,  makedir },
00128     { "mls",    mlshelp,    1,  1,  1,  mls },
00129     { "mode",   modehelp,   0,  1,  1,  fsetmode },
00130     { "modtime",    modtimehelp,    0,  1,  1,  modtime },
00131     { "mput",   mputhelp,   1,  1,  1,  mput },
00132     { "newer",  newerhelp,  1,  1,  1,  newer },
00133     { "nmap",   nmaphelp,   0,  0,  1,  setnmap },
00134     { "nlist",  nlisthelp,  1,  1,  1,  ls },
00135     { "ntrans", ntranshelp, 0,  0,  1,  setntrans },
00136     { "open",   connecthelp,    0,  0,  1,  setpeer },
00137     { "passive",passivehelp,0,  0,  0,  setpassive },
00138     { "prompt", prompthelp, 0,  0,  0,  setprompt },
00139     { "proxy",  proxyhelp,  0,  0,  1,  doproxy },
00140     { "sendport",   porthelp,   0,  0,  0,  setport },
00141     { "put",    sendhelp,   1,  1,  1,  put },
00142     { "pwd",    pwdhelp,    0,  1,  1,  pwd },
00143     { "quit",   quithelp,   0,  0,  0,  quit },
00144     { "quote",  quotehelp,  1,  1,  1,  quote },
00145     { "recv",   receivehelp,    1,  1,  1,  get },
00146     { "reget",  regethelp,  1,  1,  1,  reget },
00147     { "rstatus",    rmtstatushelp,  0,  1,  1,  rmtstatus },
00148     { "rhelp",  remotehelp, 0,  1,  1,  rmthelp },
00149     { "rename", renamehelp, 0,  1,  1,  renamefile },
00150     { "reset",  resethelp,  0,  1,  1,  reset },
00151     { "restart",    restarthelp,    1,  1,  1,  restart },
00152     { "rmdir",  rmdirhelp,  0,  1,  1,  removedir },
00153     { "runique",    runiquehelp,    0,  0,  1,  setrunique },
00154     { "send",   sendhelp,   1,  1,  1,  put },
00155     { "site",   sitehelp,   0,  1,  1,  site },
00156     { "size",   sizecmdhelp,    1,  1,  1,  sizecmd },
00157     { "status", statushelp, 0,  0,  1,  status },
00158     { "struct", structhelp, 0,  1,  1,  setstruct },
00159     { "system", systemhelp, 0,  1,  1,  syst },
00160     { "sunique",    suniquehelp,    0,  0,  1,  setsunique },
00161     { "tenex",  tenexhelp,  0,  1,  1,  settenex },
00162     { "trace",  tracehelp,  0,  0,  0,  settrace },
00163     { "type",   typehelp,   0,  1,  1,  settype },
00164     { "user",   userhelp,   0,  1,  1,  user },
00165     { "umask",  umaskhelp,  0,  1,  1,  do_umask },
00166     { "verbose",    verbosehelp,    0,  0,  0,  setverbose },
00167     { "?",      helphelp,   0,  0,  1,  help },
00168     { 0 },
00169 };
00170 
00171 int NCMDS = (sizeof (cmdtab) / sizeof (cmdtab[0])) - 1;

Generated on Sat May 26 2012 04:16:08 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.