version 1.7, 1997/03/14 04:32:12 |
version 1.8, 1997/03/21 20:59:27 |
|
|
/* $OpenBSD$ */ |
/* $OpenBSD$ */ |
/* $NetBSD: cmdtab.c,v 1.13 1997/03/13 06:23:12 lukem Exp $ */ |
/* $NetBSD: cmdtab.c,v 1.14 1997/03/14 01:39:34 christos Exp $ */ |
|
|
/* |
/* |
* Copyright (c) 1985, 1989, 1993, 1994 |
* Copyright (c) 1985, 1989, 1993, 1994 |
|
|
char dirhelp[] = "list contents of remote directory"; |
char dirhelp[] = "list contents of remote directory"; |
char disconhelp[] = "terminate ftp session"; |
char disconhelp[] = "terminate ftp session"; |
char domachelp[] = "execute macro"; |
char domachelp[] = "execute macro"; |
#ifndef SMALLFTP |
#ifndef SMALL |
char edithelp[] = "toggle command line editing"; |
char edithelp[] = "toggle command line editing"; |
#endif /* !SMALLFTP */ |
#endif /* !SMALL */ |
char formhelp[] = "set file transfer format"; |
char formhelp[] = "set file transfer format"; |
char globhelp[] = "toggle metacharacter expansion of local file names"; |
char globhelp[] = "toggle metacharacter expansion of local file names"; |
char hashhelp[] = "toggle printing `#' marks; specify number to set size"; |
char hashhelp[] = "toggle printing `#' marks; specify number to set size"; |
|
|
char userhelp[] = "send new user information"; |
char userhelp[] = "send new user information"; |
char verbosehelp[] = "toggle verbose mode"; |
char verbosehelp[] = "toggle verbose mode"; |
|
|
#ifdef SMALLFTP |
#ifdef SMALL |
#define CMPL(x) |
#define CMPL(x) |
#define CMPL0 |
#define CMPL0 |
#else /* !SMALLFTP */ |
#else /* !SMALL */ |
#define CMPL(x) __STRING(x), |
#define CMPL(x) __STRING(x), |
#define CMPL0 "", |
#define CMPL0 "", |
#endif /* !SMALLFTP */ |
#endif /* !SMALL */ |
|
|
struct cmd cmdtab[] = { |
struct cmd cmdtab[] = { |
{ "!", shellhelp, 0, 0, 0, CMPL0 shell }, |
{ "!", shellhelp, 0, 0, 0, CMPL0 shell }, |
|
|
{ "delete", deletehelp, 0, 1, 1, CMPL(r) delete }, |
{ "delete", deletehelp, 0, 1, 1, CMPL(r) delete }, |
{ "dir", dirhelp, 1, 1, 1, CMPL(rl) ls }, |
{ "dir", dirhelp, 1, 1, 1, CMPL(rl) ls }, |
{ "disconnect", disconhelp, 0, 1, 1, CMPL0 disconnect }, |
{ "disconnect", disconhelp, 0, 1, 1, CMPL0 disconnect }, |
#ifndef SMALLFTP |
#ifndef SMALL |
{ "edit", edithelp, 0, 0, 0, CMPL0 setedit }, |
{ "edit", edithelp, 0, 0, 0, CMPL0 setedit }, |
#endif /* !SMALLFTP */ |
#endif /* !SMALL */ |
{ "exit", quithelp, 0, 0, 0, CMPL0 quit }, |
{ "exit", quithelp, 0, 0, 0, CMPL0 quit }, |
{ "form", formhelp, 0, 1, 1, CMPL0 setform }, |
{ "form", formhelp, 0, 1, 1, CMPL0 setform }, |
{ "ftp", connecthelp, 0, 0, 1, CMPL0 setpeer }, |
{ "ftp", connecthelp, 0, 0, 1, CMPL0 setpeer }, |