95 {
"show-status-in-xterm-titlebar",
SetXtTitle, 1 },
109 {
"yes-i-know-about-NcFTPd",
SetNoAds, 1 },
430Set(
const char *
const tok1,
const char *
const tok2)
434 if ((tok1 ==
NULL) || (
ISTREQ(tok1,
"all"))) {
440 }
else if (tok2 ==
NULL) {
445 (
void)
printf(
"The \"%s\" option is obselete or not implemented.\n", tok1);
453 (
void)
printf(
"Unknown option \"%s\" -- try \"show all\" to list available options.\n", tok1);
460 (
void)
printf(
"The \"%s\" option is obselete or not implemented.\n", tok1);
469 (
void)
printf(
"Unknown option \"%s\" -- try \"show all\" to list available options.\n", tok1);
529 if ((tok1 ==
NULL) || (tok1[0] ==
'#'))
634 STRNCPY(
gAutoAscii,
"|.txt|.asc|.html|.htm|.css|.xml|.ini|.sh|.pl|.hqx|.cfg|.c|.h|.cpp|.hpp|.bat|.m3u|.pls|");
644#if (defined(WIN32) || defined(_WINDOWS)) && defined(_CONSOLE)
656 if ((tok1 !=
NULL) && (tok1[0] !=
'\0')) {
713 perror(
"could not save preferences file");
715 (
void)
fprintf(fp,
"%s",
"# NcFTP 3 preferences file\n# This file is loaded and overwritten each time NcFTP is run.\n#\n");
725 if (
rename(pathName2, pathName) < 0) {
726 perror(
"could not finish saving preferences file");
759 (
void)
fprintf(fp,
"# NcFTP uses this file to mark that you have run it before, and that you do not\n# need any special first-time instructions or setup.\n#\nruns=%d\n",
gNumProgramRuns);
786 (
void)
fprintf(fp,
"# NcFTP uses this file to mark that you have run it before, and that you do not\n# need any special first-time instructions or setup.\n#\nruns=%d\n",
gNumProgramRuns);
int strcmp(const char *String1, const char *String2)
char * strstr(char *String1, char *String2)
int strncmp(const char *String1, const char *String2, ACPI_SIZE Count)
char * strtok(char *String, const char *Delimiters)
#define STRNCPY(dst, src, n)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
GLboolean GLboolean GLboolean b
GLenum GLuint GLenum GLsizei const GLchar * buf
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
_CRTIMP void __cdecl perror(_In_opt_z_ const char *_ErrMsg)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_Check_return_opt_ _CRTIMP char *__cdecl fgets(_Out_writes_z_(_MaxCount) char *_Buf, _In_ int _MaxCount, _Inout_ FILE *_File)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP int __cdecl sscanf(_In_z_ const char *_Src, _In_z_ _Scanf_format_string_ const char *_Format,...)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
_Check_return_ char *__cdecl getenv(_In_z_ const char *_VarName)
#define memcpy(s1, s2, n)
FTPProgressMeterProc gProgressMeter
void PrStatBar(const FTPCIPtr cip, int mode)
void PrSizeAndRateMeter(const FTPCIPtr cip, int mode)
void PrPhilBar(const FTPCIPtr cip, int mode)
int StrToBool(const char *const s)
char * OurDirectoryPath(char *const dst, const size_t siz, const char *const fname)
#define sprintf(buf, format,...)
#define kDefaultRedialDelay
void FTPInitializeAnonPassword(const FTPLIPtr)
#define kFallBackToSendPortMode
void(* FTPProgressMeterProc)(const FTPCIPtr, int)
#define LIBNCFTP_USE_VAR(a)
void SetSeenOneTimeMessage(const char *const msg)
void SetSOBufsize(int UNUSED(t), const char *const val, FILE *const fp)
void SetAnonPass(int UNUSED(t), const char *const val, FILE *const fp)
void ProcessPrefsFile(FILE *const fp)
void SetSavePasswords(int UNUSED(t), const char *const val, FILE *const fp)
void SetPassive(int UNUSED(t), const char *const val, FILE *const fp)
void SetConnTimeout(int UNUSED(t), const char *const val, FILE *const fp)
void SetOneTimeMessages(int UNUSED(t), const char *const val, FILE *const fp)
void SetLogSize(int UNUSED(t), const char *const val, FILE *const fp)
void SetProgressMeter(int UNUSED(t), const char *const UNUSED(val), FILE *const UNUSED(fp))
void SetRedialDelay(int UNUSED(t), const char *const val, FILE *const fp)
char gOneTimeMessagesSeen[256]
void SetAutoResume(int UNUSED(t), const char *const val, FILE *const fp)
void SetPager(int UNUSED(t), const char *const val, FILE *const fp)
void SetCtrlTimeout(int UNUSED(t), const char *const val, FILE *const fp)
void SetAutoAscii(int UNUSED(t), const char *const val, FILE *const fp)
int gAutoSaveChangesToExistingBookmarks
void CheckForNewV3User(void)
int HasSeenOneTimeMessage(const char *const msg)
void SetConfirmClose(int UNUSED(t), const char *const val, FILE *const fp)
void SetXtTitle(int UNUSED(t), const char *const val, FILE *const fp)
void SetXferTimeout(int UNUSED(t), const char *const val, FILE *const fp)
void SetAutoSaveChangesToExistingBookmarks(int UNUSED(t), const char *const val, FILE *const fp)
void SetNoAds(int UNUSED(t), const char *const val, FILE *const fp)
int OneTimeMessage(const char *const msg)
#define kGlobalFixedPrefFileName
void(* PrefProc)(int i, const char *const, FILE *const fp)
#define kPrefOptInvisible
#define kGlobalPrefFileName
_Check_return_ int __cdecl rename(_In_z_ const char *_OldFilename, _In_z_ const char *_NewFilename)
size_t dataSocketRBufSize
FTPProgressMeterProc progress
const char * asciiFilenameExtensions
size_t dataSocketSBufSize
char defaultAnonPassword[80]