cmdtab.c revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* University Copyright- Copyright (c) 1982, 1986, 1988
* The Regents of the University of California
* All Rights Reserved
*
* University Acknowledgment- Portions of this document are derived from
* software developed by the University of California, Berkeley, and its
* contributors.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include "ftp_var.h"
/*
* User FTP -- Command Tables.
*/
static char accounthelp[] = "send account command to remote server";
static char appendhelp[] = "append to a file";
static char asciihelp[] = "set ascii transfer type";
static char beephelp[] = "beep when command completed";
static char binaryhelp[] = "set binary transfer type";
static char ccchelp[] = "set clear protection level for commands";
static char cdhelp[] = "change remote working directory";
static char cduphelp[] = "change remote working directory to parent "
"directory";
static char clearhelp[] = "set clear protection level for data";
static char connecthelp[] = "connect to remote tftp";
static char crhelp[] = "toggle carriage return stripping on ascii "
"gets";
static char deletehelp[] = "delete remote file";
static char dirhelp[] = "list contents of remote directory";
static char disconhelp[] = "terminate ftp session";
static char domachelp[] = "execute macro";
static char formhelp[] = "set file transfer format";
static char globhelp[] = "toggle metacharacter expansion of local file "
"names";
static char hashhelp[] = "toggle printing `#' for each buffer "
"transferred";
static char helphelp[] = "print local help information";
static char lcdhelp[] = "change local working directory";
static char lshelp[] = "display contents of remote directory";
static char macdefhelp[] = "define a macro";
static char mdeletehelp[] = "delete multiple files";
static char mdirhelp[] = "list contents of multiple remote directories";
static char mechhelp[] = "set mechanism type";
static char mgethelp[] = "get multiple files";
static char mkdirhelp[] = "make directory on the remote machine";
static char mlshelp[] = "nlist contents of multiple remote directories";
static char modehelp[] = "set file transfer mode";
static char mputhelp[] = "send multiple files";
static char nlisthelp[] = "nlist contents of remote directory";
static char nmaphelp[] = "set templates for default file name mapping";
static char ntranshelp[] = "set translation table for default file name "
"mapping";
static char passivehelp[] = "toggle passive transfer mode";
static char porthelp[] = "toggle use of PORT cmd for each data "
"connection";
static char privatehelp[] = "set private protection level for data";
static char prompthelp[] = "force interactive prompting on multiple "
"commands";
static char protecthelp[] = "set protection level for data";
static char proxyhelp[] = "issue command on alternate connection";
static char pwdhelp[] = "print working directory on remote machine";
static char quithelp[] = "terminate ftp session and exit";
static char quotehelp[] = "send arbitrary ftp command";
static char receivehelp[] = "receive file";
static char regethelp[] = "get file restarting at end of local file";
static char remotehelp[] = "get help from remote server";
static char renamehelp[] = "rename file";
static char resethelp[] = "clear queued command replies";
static char restarthelp[] = "restart file transfer at bytecount";
static char rmdirhelp[] = "remove directory on the remote machine";
static char runiquehelp[] = "toggle store unique for local files";
static char safehelp[] = "set safe protection level for data";
static char sendhelp[] = "send one file";
static char shellhelp[] = "escape to the shell";
static char sitehelp[] = "send site specific command to remote server\n"
"\t\tTry \"remotehelp site\" or \"site help\" "
"for more information";
static char statushelp[] = "show current status";
static char structhelp[] = "set file transfer structure";
static char suniquehelp[] = "toggle store unique on remote machine";
static char tenexhelp[] = "set tenex file transfer type";
static char tracehelp[] = "toggle packet tracing";
static char typehelp[] = "set file transfer type";
static char userhelp[] = "send new user information";
static char verbosehelp[] = "toggle verbose mode";
static char windowhelp[] = "set TCP window size for the data connection";
/*
* NOTE : The BUFSIZE defined in ftp_var.h includes MAXCMDLEN chars to
* accomodate the longest command in the cmdtab[] defined below.
* If anyone plans to add a new command that is longer than the MAXCMDLEN
* make sure to update it in ftp_var.h.
*/
{ 0 },
};