ReactOS 0.4.16-dev-197-g92996da
|
#include "syshdrs.h"
#include "shell.h"
#include "util.h"
#include "ls.h"
#include "bookmark.h"
#include "cmds.h"
#include "main.h"
#include "trace.h"
#include "log.h"
#include "pref.h"
#include "spool.h"
#include "getline.h"
#include "readln.h"
#include "getopt.h"
Go to the source code of this file.
Macros | |
#define | ARGSUSED(x) x = (argc != 0) || (argv != 0) || (cmdp != 0) || (aip != 0) |
Variables | |
char | gStartDir [512] |
char | gRemoteCWD [512] |
char | gPrevRemoteCWD [512] |
char | gScratchCWD [512] |
int | gUnusedArg |
FTPConnectionInfo | gTmpURLConn |
int | gResumeAnswerAll |
FTPLibraryInfo | gLib |
FTPConnectionInfo | gConn |
char | gOurDirectoryPath [] |
Command | gCommands [] |
char | gVersion [] |
size_t | gNumCommands |
int | gDebug |
int | gDoneApplication |
char * | gOptArg |
int | gOptInd |
int | gGotSig |
int | gFirstTimeUser |
unsigned int | gFirewallPort |
int | gFirewallType |
char | gFirewallHost [64] |
char | gFirewallUser [32] |
char | gFirewallPass [32] |
char | gFirewallExceptionList [] |
char | gPager [] |
char | gHome [] |
char | gShell [] |
char | gOS [] |
int | gAutoResume |
int | gRedialDelay |
int | gAutoSaveChangesToExistingBookmarks |
Bookmark | gBm |
int | gLoadedBm |
int | gConfirmClose |
int | gSavePasswords |
int | gScreenColumns |
char | gLocalCWD [512] |
char | gPrevLocalCWD [512] |
char | gOurInstallationPath [] |
int | gMayCancelJmp |
jmp_buf | gCancelJmp |
void BGStartCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 3266 of file cmds.c.
void BookmarkCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 323 of file cmds.c.
void CatCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 356 of file cmds.c.
void ChdirCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 558 of file cmds.c.
Definition at line 504 of file cmds.c.
Referenced by ChdirCmd(), and DoOpen().
void ChmodCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 612 of file cmds.c.
void CloseCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 113 of file cmds.c.
Referenced by ListCmd(), LocalListCmd(), PageCmd(), and PrintHosts().
Definition at line 161 of file cmds.c.
Referenced by PwdCmd().
void DebugCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void DeleteCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 664 of file cmds.c.
Definition at line 2168 of file cmds.c.
Referenced by CShellLink::InvokeCommand(), MapDefaultKey(), OpenCmd(), and OpenURL().
void EchoCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 706 of file cmds.c.
void FillBookmarkInfo | ( | BookmarkPtr | bmp | ) |
Definition at line 194 of file cmds.c.
Referenced by SaveCurrentAsBookmark(), and SaveUnsavedBookmark().
void GetCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 916 of file cmds.c.
Definition at line 3165 of file cmds.c.
Referenced by SpoolGetCmd(), and SpoolPutCmd().
void HelpCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 1036 of file cmds.c.
void HostsCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 1329 of file cmds.c.
void JobsCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void ListCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 1371 of file cmds.c.
void LocalChdirCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void LocalChmodCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void LocalListCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 1552 of file cmds.c.
void LocalMkdirCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void LocalPageCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void LocalPwdCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void LocalRenameCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void LocalRmCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void LocalRmdirCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void LookupCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 1886 of file cmds.c.
void MkdirCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 2011 of file cmds.c.
void MlsCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 1937 of file cmds.c.
|
static |
Definition at line 371 of file cmds.c.
Referenced by nFTPChdirAndGetCWD().
|
static |
Definition at line 739 of file cmds.c.
Referenced by GetCmd().
|
static |
Definition at line 2569 of file cmds.c.
Referenced by PutCmd().
|
static |
|
static |
|
static |
|
static |
Definition at line 417 of file cmds.c.
Referenced by Chdirs().
void OpenCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 2317 of file cmds.c.
Referenced by HostsCmd().
Definition at line 2050 of file cmds.c.
Referenced by DoOpen(), NcFTPOnConnectMessageProc(), NcFTPOnLoginMessageProc(), and NcFTPRedialStatusProc().
Definition at line 95 of file cmds.c.
Referenced by ListCmd(), LocalListCmd(), PageCmd(), and PrintHosts().
void PageCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 2496 of file cmds.c.
Definition at line 1143 of file cmds.c.
Referenced by HostsCmd(), and OpenCmd().
void PrintResp | ( | LineListPtr | llp | ) |
Definition at line 396 of file cmds.c.
Referenced by NcFTPOnConnectMessageProc(), NcFTPOnLoginMessageProc(), NcFTPOpenPrintResponseProc(), QuoteCmd(), and SiteCmd().
int PromptForBookmarkName | ( | BookmarkPtr | bmp | ) |
Definition at line 135 of file cmds.c.
Referenced by BookmarkCmd(), and SaveUnsavedBookmark().
void PutCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 2768 of file cmds.c.
void PwdCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 2876 of file cmds.c.
void QuitCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void QuoteCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void RenameCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 2988 of file cmds.c.
void RGlobCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void RmdirCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 3007 of file cmds.c.
void RmtHelpCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 3041 of file cmds.c.
Definition at line 1187 of file cmds.c.
Referenced by HostsCmd(), and OpenCmd().
Definition at line 231 of file cmds.c.
Referenced by BookmarkCmd(), and SaveUnsavedBookmark().
Definition at line 270 of file cmds.c.
Referenced by CloseHost().
void SetCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void ShellCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 3094 of file cmds.c.
Referenced by shell().
void SiteCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 3240 of file cmds.c.
Referenced by BGStartCmd(), SpoolGetCmd(), and SpoolPutCmd().
void SpoolGetCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 3298 of file cmds.c.
void SpoolPutCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 3454 of file cmds.c.
void SymlinkCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
Definition at line 3609 of file cmds.c.
void TypeCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void UmaskCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
void VersionCmd | ( | const int | argc, |
const char **const | argv, | ||
const CommandPtr | cmdp, | ||
const ArgvInfoPtr | aip | ||
) |
|
extern |
Definition at line 30 of file pref.c.
Referenced by InitPrefs(), NcFTPConfirmResumeDownloadProc(), NcFTPConfirmResumeUploadProc(), and SetAutoResume().
|
extern |
Definition at line 36 of file pref.c.
Referenced by InitPrefs(), SaveUnsavedBookmark(), and SetAutoSaveChangesToExistingBookmarks().
|
extern |
Definition at line 24 of file bookmark.c.
Referenced by BookmarkCmd(), DoOpen(), GetCmd(), OpenCmd(), PutCmd(), SaveCurrentAsBookmark(), SaveUnsavedBookmark(), SpoolGetCmd(), SpoolPutCmd(), and TypeCmd().
|
extern |
int gConfirmClose |
Definition at line 78 of file cmds.c.
Referenced by SaveUnsavedBookmark().
|
extern |
Definition at line 37 of file main.c.
Referenced by BGStartCmd(), CatCmd(), ChdirCmd(), ChmodCmd(), CloseCmd(), CurrentURL(), DeleteCmd(), DoOpen(), EchoCmd(), FillBookmarkInfo(), GetCmd(), LocalRmCmd(), LocalRmdirCmd(), MkdirCmd(), MlsCmd(), NcFTPConfirmResumeDownloadProc(), NcFTPConfirmResumeUploadProc(), OpenCmd(), PageCmd(), PromptForBookmarkName(), PutCmd(), PwdCmd(), QuoteCmd(), RenameCmd(), RGlobCmd(), RmdirCmd(), RmtHelpCmd(), SiteCmd(), SpoolGetCmd(), SpoolPutCmd(), SymlinkCmd(), TypeCmd(), and UmaskCmd().
|
extern |
Definition at line 32 of file ls.c.
Referenced by DebugCmd().
|
extern |
|
extern |
Definition at line 17 of file preffw.c.
Referenced by FillBookmarkInfo(), and OpenCmd().
|
extern |
int gGotSig |
Definition at line 65 of file cmds.c.
Referenced by ListCmd(), LocalListCmd(), OpenControlConnection(), and PageCmd().
char gHome[] |
Definition at line 73 of file cmds.c.
Referenced by LocalChdirCmd().
|
extern |
|
extern |
Definition at line 25 of file bookmark.c.
Referenced by DoOpen(), OpenCmd(), SaveCurrentAsBookmark(), and SaveUnsavedBookmark().
|
extern |
Definition at line 43 of file main.c.
Referenced by DoOpen(), LocalChdirCmd(), LocalPwdCmd(), and PostInit().
|
extern |
|
extern |
Definition at line 16 of file getopt.c.
Referenced by OpenCmd(), SpoolGetCmd(), and SpoolPutCmd().
|
extern |
Definition at line 14 of file getopt.c.
Referenced by DeleteCmd(), GetCmd(), LookupCmd(), MkdirCmd(), MlsCmd(), OpenCmd(), PutCmd(), RmdirCmd(), SpoolGetCmd(), and SpoolPutCmd().
|
extern |
Definition at line 23 of file trace.c.
Referenced by DoOpen(), OpenTrace(), and VersionCmd().
|
extern |
Definition at line 17 of file util.c.
Referenced by BGStartCmd(), BookmarkCmd(), RunBookmarkEditor(), and SaveUnsavedBookmark().
char gOurInstallationPath[] |
Definition at line 79 of file cmds.c.
Referenced by RunBookmarkEditor().
|
extern |
Definition at line 21 of file pref.c.
Referenced by InitPrefs(), LocalPageCmd(), OpenPager(), and SetPager().
char gPrevLocalCWD[512] |
Definition at line 79 of file cmds.c.
Referenced by DoOpen(), and LocalChdirCmd().
char gPrevRemoteCWD[512] |
Definition at line 38 of file cmds.c.
Referenced by ChdirCmd().
char gRemoteCWD[512] |
Definition at line 33 of file cmds.c.
Referenced by ChdirCmd(), Chdirs(), CurrentURL(), DoOpen(), FillBookmarkInfo(), Ls(), MakePrompt(), nFTPChdirAndGetCWD(), OpenCmd(), OpenURL(), PrPhilBar(), PrSizeAndRateMeter(), PrStatBar(), PwdCmd(), RemoteCompletionFunction(), SpoolGetCmd(), and SpoolPutCmd().
int gResumeAnswerAll |
Definition at line 55 of file cmds.c.
Referenced by GetCmd(), NcFTPConfirmResumeDownloadProc(), NcFTPConfirmResumeUploadProc(), and PutCmd().
int gSavePasswords |
Definition at line 78 of file cmds.c.
Referenced by SaveCurrentAsBookmark(), SpoolGetCmd(), and SpoolPutCmd().
char gScratchCWD[512] |
Definition at line 41 of file cmds.c.
Referenced by nFTPChdirAndGetCWD().
char gShell[] |
Definition at line 73 of file cmds.c.
Referenced by ShellCmd().
char gStartDir[512] |
Definition at line 28 of file cmds.c.
Referenced by ChdirCmd(), CurrentURL(), DoOpen(), and FillBookmarkInfo().
FTPConnectionInfo gTmpURLConn |
int gUnusedArg |
Definition at line 46 of file cmds.c.
Referenced by BGStartCmd(), BookmarkCmd(), CatCmd(), ChdirCmd(), ChmodCmd(), CloseCmd(), DebugCmd(), DeleteCmd(), EchoCmd(), GetCmd(), HelpCmd(), HostsCmd(), JobsCmd(), ListCmd(), LocalChdirCmd(), LocalChmodCmd(), LocalListCmd(), LocalMkdirCmd(), LocalPageCmd(), LocalPwdCmd(), LocalRenameCmd(), LocalRmCmd(), LocalRmdirCmd(), LookupCmd(), MkdirCmd(), MlsCmd(), NcFTPCdResponseProc(), NcFTPOnConnectMessageProc(), NcFTPOnLoginMessageProc(), NcFTPOpenPrintResponseProc(), NcFTPRedialStatusProc(), OpenCmd(), PageCmd(), PutCmd(), PwdCmd(), QuitCmd(), QuoteCmd(), RenameCmd(), RGlobCmd(), RmdirCmd(), RmtHelpCmd(), SetCmd(), ShellCmd(), SiteCmd(), SpoolGetCmd(), SpoolPutCmd(), SymlinkCmd(), TypeCmd(), UmaskCmd(), and VersionCmd().
|
extern |
Definition at line 22 of file init.c.
Referenced by DoOpen(), and VersionCmd().