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)
221 MakeArgv(
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) 434 #ifdef HAVE_SIGSETJMP 447 #if defined(WIN32) || defined(_WINDOWS) 463 }
else if (sigNum ==
SIGINT) {
468 #ifdef HAVE_SIGSETJMP 486 #ifdef HAVE_SIGSETJMP 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)
CommandPtr GetCommandByName(const char *const name, int wantExactMatch)
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
#define kAmbiguousCommand
void PrintCmdUsage(CommandPtr c)
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 __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 kCmdMustBeConnected
void SetXtermTitle(const char *const fmt,...)
static int DoCommand(const ArgvInfoPtr aip)
#define kCmdMustBeDisconnected
int(* qsort_proc_t)(const void *, const void *)
void siglongjmp(sigjmp_buf buf, int val)
GLboolean GLboolean GLboolean b
#define kBeepAfterCmdTime
static int CommandSortCmp(const CommandPtr a, const CommandPtr b)
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 InitCommandList(void)
static int CommandExactSearchCmp(const char *const key, const CommandPtr b)
void MakePrompt(char *dst, size_t dsize)
INT cmdStop(INT argc, WCHAR **argv)
static int CommandSubSearchCmp(const char *const key, const CommandPtr a)
BOOL WINAPI MessageBeep(_In_ UINT)
int(* bsearch_proc_t)(const void *, const void *)
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
LineList gStartupURLCdList
void XferCanceller(int sigNum)
char * strchr(const char *String, int ch)
void AddHistory(char *line)
int strcmp(const char *String1, const char *String2)
struct Command * CommandPtr
GLboolean GLboolean GLboolean GLboolean a
int gStartupUrlParameterGiven
void PrintCmdHelp(CommandPtr c)
void FTPShutdownHost(const FTPCIPtr cip)
CommandPtr GetCommandByIndex(const int i)
char * Readline(char *prompt)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *