Go to the source code of this file.
◆ kAbbreviatedMatchAllowed
#define kAbbreviatedMatchAllowed 0 |
◆ kAmbiguousCommand
◆ kBeepAfterCmdTime
◆ kCmdHidden
◆ kCmdMustBeConnected
#define kCmdMustBeConnected 00002 |
◆ kCmdMustBeDisconnected
#define kCmdMustBeDisconnected 00004 |
◆ kCompleteBookmark
#define kCompleteBookmark 00200 |
◆ kCompleteLocalDir
#define kCompleteLocalDir 00100 |
◆ kCompleteLocalFile
#define kCompleteLocalFile 00040 |
◆ kCompletePrefOpt
#define kCompletePrefOpt 00400 |
◆ kCompleteRemoteDir
#define kCompleteRemoteDir 00020 |
◆ kCompleteRemoteFile
#define kCompleteRemoteFile 00010 |
◆ kExactMatchRequired
◆ kIdleBatchLaunch
◆ kIdleInterval
◆ kNoCommand
◆ kNoMax
◆ kNoMin
◆ ArgvInfo
◆ ArgvInfoPtr
◆ CmdProc
◆ Command
◆ CommandPtr
◆ BackToTop()
Definition at line 452 of file shell.c.
463 }
else if (sigNum ==
SIGINT) {
468 #ifdef HAVE_SIGSETJMP struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
void SetXtermTitle(const char *const fmt,...)
void siglongjmp(sigjmp_buf buf, int val)
Referenced by CommandShell().
◆ Cancel()
◆ CommandShell()
Definition at line 499 of file shell.c.
505 #if defined(WIN32) || defined(_WINDOWS) 512 #if defined(WIN32) || defined(_WINDOWS) 514 #elif defined(HAVE_SIGSETJMP) 520 #if defined(WIN32) || defined(_WINDOWS) 525 (
void)
printf(
"\nRemote host was not responding, closing down the session.");
531 (
void)
printf(
"Closing down the current FTP session: ");
546 #if defined(WIN32) || defined(_WINDOWS) 562 if (lineRead ==
NULL) {
567 Trace(0,
"> %s\n", lineRead);
572 (
int) (
sizeof(ai.
cargv) /
sizeof(
char *)),
593 #if defined(WIN32) || defined(_WINDOWS)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
BOOL WINAPI MessageBeep(_In_ UINT uType)
INT cmdStart(INT argc, WCHAR **argv)
int __MINGW_NOTHROW __cdecl setjmp(jmp_buf _Buf)
void BackToTop(int sigNum)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
void SetXtermTitle(const char *const fmt,...)
static int DoCommand(const ArgvInfoPtr aip)
#define kBeepAfterCmdTime
int MakeArgv(char *line, int *cargc, const char **cargv, int cargcmax, char *dbuf, size_t dbufsize, int *noglobargv, int readlineHacks)
int sigsetjmp(sigjmp_buf buf, int savesigs)
void MakePrompt(char *dst, size_t dsize)
INT cmdStop(INT argc, WCHAR **argv)
void AddHistory(char *line)
void FTPShutdownHost(const FTPCIPtr cip)
char * Readline(char *prompt)
Referenced by main().
◆ GetCommandByIndex()
Definition at line 140 of file shell.c.
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by CommandCompletionFunction().
◆ GetCommandByName()
Definition at line 156 of file shell.c.
#define kAmbiguousCommand
static int CommandExactSearchCmp(const char *const key, const CommandPtr b)
static int CommandSubSearchCmp(const char *const key, const CommandPtr a)
int(* bsearch_proc_t)(const void *, const void *)
struct Command * CommandPtr
Referenced by CompletionFunction(), DoCommand(), and HelpCmd().
◆ InitCommandList()
Definition at line 90 of file shell.c.
void __cdecl qsort(_Inout_updates_bytes_(_NumOfElements *_SizeOfElements) void *_Base, _In_ size_t _NumOfElements, _In_ size_t _SizeOfElements, _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *))
int(* qsort_proc_t)(const void *, const void *)
static int CommandSortCmp(const CommandPtr a, const CommandPtr b)
Referenced by PreInit().
◆ MakeArgv()
Definition at line 221 of file shell.c.
232 dlim = dbuf + dbufsize - 1;
235 for (*cargc = 0; *cargc < cargcmax; ) {
243 if ((
c ==
';') || (
c ==
'\n')) {
252 noglobargv[*cargc] = 0;
256 if ((*cargc == 1) && (*scp ==
'!')) {
259 }
else if ((scp[1] !=
'\0') && (!
isspace((
int) scp[1]))) {
264 noglobargv[*cargc] = 0;
276 if ((
c ==
';') || (
c ==
'\n')) {
286 if (readlineHacks != 0)
305 noglobargv[*cargc - 1] = 1;
308 }
else if (
c ==
'"') {
312 if (readlineHacks != 0)
331 noglobargv[*cargc - 1] = 1;
335 #if defined(WIN32) || defined(_WINDOWS) 362 cargv[*cargc] =
NULL;
367 cargv[*cargc] =
NULL;
373 cargv[*cargc] =
NULL;
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
char * strchr(const char *String, int ch)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
Referenced by CommandShell(), and CompletionFunction().
◆ PrintCmdHelp()
Definition at line 200 of file shell.c.
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Referenced by HelpCmd().
◆ PrintCmdUsage()
Definition at line 210 of file shell.c.
212 if (
c->usage !=
NULL)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
Referenced by ChdirCmd(), DeleteCmd(), DoCommand(), GetCmd(), HelpCmd(), ListCmd(), LocalListCmd(), LookupCmd(), MkdirCmd(), MlsCmd(), OpenCmd(), PutCmd(), RmdirCmd(), SpoolGetCmd(), and SpoolPutCmd().
◆ XferCanceller()
Definition at line 419 of file shell.c.
423 #if defined(WIN32) || defined(_WINDOWS) 434 #ifdef HAVE_SIGSETJMP
void siglongjmp(sigjmp_buf buf, int val)
Referenced by GetCmd(), and PutCmd().