30#if defined(WIN32) || defined(_WINDOWS)
31#elif defined(HAVE_SIGSETJMP)
82 return (
strcmp((*a).name, (*b).name));
118 register const char *kcp, *
cp;
121 for (
cp = (*a).name, kcp =
key; ; ) {
212 if (
c->usage !=
NULL)
221MakeArgv(
char *
line,
int *cargc,
const char **cargv,
int cargcmax,
char *dbuf,
size_t dbufsize,
int *noglobargv,
int readlineHacks)
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;
403 (
void)
printf(
"%s: must be disconnected to do that.\n", aip->
cargv[0]);
409 (*cmdp->
proc)(cargc, aip->
cargv, cmdp, aip);
423#if defined(WIN32) || defined(_WINDOWS)
447#if defined(WIN32) || defined(_WINDOWS)
463 }
else if (sigNum ==
SIGINT) {
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)
int strcmp(const char *String1, const char *String2)
char * strchr(const char *String, int ch)
INT cmdStart(INT argc, WCHAR **argv)
INT cmdStop(INT argc, WCHAR **argv)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
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
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
void PrintCmdHelp(CommandPtr c)
int MakeArgv(char *line, int *cargc, const char **cargv, int cargcmax, char *dbuf, size_t dbufsize, int *noglobargv, int readlineHacks)
CommandPtr GetCommandByName(const char *const name, int wantExactMatch)
void PrintCmdUsage(CommandPtr c)
LineList gStartupURLCdList
static int CommandExactSearchCmp(const char *const key, const CommandPtr b)
static int CommandSortCmp(const CommandPtr a, const CommandPtr b)
static int CommandSubSearchCmp(const char *const key, const CommandPtr a)
CommandPtr GetCommandByIndex(const int i)
void BackToTop(int sigNum)
void XferCanceller(int sigNum)
static int DoCommand(const ArgvInfoPtr aip)
void InitCommandList(void)
int gStartupUrlParameterGiven
int(* qsort_proc_t)(const void *, const void *)
int(* bsearch_proc_t)(const void *, const void *)
int sigsetjmp(sigjmp_buf buf, int savesigs)
void siglongjmp(sigjmp_buf buf, int val)
void FTPShutdownHost(const FTPCIPtr cip)
void AddHistory(char *line)
char * Readline(char *prompt)
void SetXtermTitle(const char *const fmt,...)
void MakePrompt(char *dst, size_t dsize)
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 *))
#define kAmbiguousCommand
struct Command * CommandPtr
#define kCmdMustBeConnected
#define kCmdMustBeDisconnected
#define kBeepAfterCmdTime
BOOL WINAPI MessageBeep(_In_ UINT uType)