32 FileSize(
const double size,
const char **uStr0,
double *
const uMult0)
51 }
else if (
size > 999.5) {
76 static const char *uStr;
95 if ((cip->
usingTAR) && (
strlen(localName) < (
sizeof(localName) - 6))) {
105 Note: NcFTP is using on-the-fly TAR on the remote server, which retrieves the\n\ 106 entire directory as one operation. This allows you to preserve exact file\n\ 107 timestamps, ownerships, and permissions, as well as a slight performance\n\ 110 If you would rather retrieve each file individually, use the \"-T\" flag with\n\ 111 \"get\". TAR mode cannot be resumed if the transfer fails, so if that happens\n\ 112 try \"get -T\" to resume the directory transfer.\n\n");
127 if ((cip->
usingTAR) && (
strlen(localName) < (
sizeof(localName) - 6))) {
133 #if defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_LLD) 140 #elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_QD) 147 #elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_I64D) 174 #if defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_LLD) 176 #elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_QD) 178 #elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_I64D) 206 int secLeft, minLeft;
208 static const char *uStr;
209 static double uTotal, uMult;
239 minLeft = secLeft / 60;
240 secLeft = secLeft - (minLeft * 60);
263 (
void)
sprintf(
line,
"%-32s ETA: %3d:%02d %6.2f/%6.2f %.2s %6.2f %.2s/s %.1s",
353 static int maxBarLen;
354 char spec1[64], spec3[64];
355 static char bar[256];
357 int secsLeft, minLeft;
358 static const char *uStr;
377 for (
i=0;
i < (
int)
sizeof(
bar) - 1;
i++)
391 #if defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_LLD) 392 (
void)
sprintf(spec1,
" 0 %%%ds %%lld bytes. ETA: --:--", maxBarLen);
398 #elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_QD) 399 (
void)
sprintf(spec1,
" 0 %%%ds %%qd bytes. ETA: --:--", maxBarLen);
401 #elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_I64D) 402 (
void)
sprintf(spec1,
" 0 %%%ds %%I64d bytes. ETA: --:--", maxBarLen);
405 (
void)
sprintf(spec1,
" 0 %%%ds %%ld bytes. ETA: --:--", maxBarLen);
422 bar[curBarLen - 1] =
'>';
423 bar[curBarLen] =
'\0';
428 #if defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_LLD) 429 (
void)
sprintf(spec3,
"%%%ds %%lld bytes. %s%%3d:%%02d",
430 maxBarLen - curBarLen,
433 #elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_QD) 434 (
void)
sprintf(spec3,
"%%%ds %%qd bytes. %s%%3d:%%02d",
435 maxBarLen - curBarLen,
438 #elif defined(HAVE_LONG_LONG) && defined(PRINTF_LONG_LONG_I64D) 439 (
void)
sprintf(spec3,
"%%%ds %%I64d bytes. %s%%3d:%%02d",
440 maxBarLen - curBarLen,
444 (
void)
sprintf(spec3,
"%%%ds %%ld bytes. %s%%3d:%%02d",
445 maxBarLen - curBarLen,
453 minLeft = secsLeft / 60;
454 secsLeft = secsLeft - (minLeft * 60);
470 bar[curBarLen - 1] =
'=';
471 bar[curBarLen] =
'=';
483 ((
long) cip->
sec / 60
L) % 60
L,
484 ((
long) cip->
sec % 60
L),
struct png_info_def **typedef void(__cdecl typeof(png_destroy_read_struct))(struct png_struct_def **
ACPI_SIZE strlen(const char *String)
const char * tcap_reverse
void AbbrevStr(char *dst, const char *src, size_t max, int mode)
#define STRNCPY(dst, src, n)
FTPProgressMeterProc progress
void PrSizeAndRateMeter(const FTPCIPtr cip, int mode)
#define sprintf(buf, format,...)
char * FileToURL(char *url, size_t urlsize, const char *const fn, const char *const rcwd, const char *const startdir, const char *const user, const char *const pass, const char *const hname, const unsigned int port)
int OneTimeMessage(const char *const msg)
_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 const char mbstate_t *static wchar_t const char mbstate_t *static const wchar_t int *static double
void PrPhilBar(const FTPCIPtr cip, int mode)
const char * tcap_boldface
char * startingWorkingDirectory
longest_int bytesTransferred
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 fflush(_Inout_opt_ FILE *_File)
void PrStatBar(const FTPCIPtr cip, int mode)
void LogXfer(const char *const mode, const char *const url)
double FileSize(const double size, const char **uStr0, double *const uMult0)
const char * tcap_underline
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *