version 1.6, 1996/10/31 14:36:56 |
version 1.7, 1996/11/09 19:57:46 |
|
|
longjmp(sendabort, 1); |
longjmp(sendabort, 1); |
} |
} |
|
|
#define HASHBYTES 1024 |
|
|
|
void |
void |
sendrequest(cmd, local, remote, printnames) |
sendrequest(cmd, local, remote, printnames) |
char *cmd, *local, *remote; |
char *cmd, *local, *remote; |
|
|
FILE *fin, *dout = 0, *popen(); |
FILE *fin, *dout = 0, *popen(); |
int (*closefunc) __P((FILE *)); |
int (*closefunc) __P((FILE *)); |
sig_t oldintr, oldintp; |
sig_t oldintr, oldintp; |
long bytes = 0, hashbytes = HASHBYTES; |
long bytes = 0, hashbytes = mark; |
char *lmode, buf[BUFSIZ], *bufp; |
char *lmode, buf[BUFSIZ], *bufp; |
|
|
if (verbose && printnames) { |
if (verbose && printnames) { |
|
|
if (hash) { |
if (hash) { |
while (bytes >= hashbytes) { |
while (bytes >= hashbytes) { |
(void) putchar('#'); |
(void) putchar('#'); |
hashbytes += HASHBYTES; |
hashbytes += mark; |
} |
} |
(void) fflush(stdout); |
(void) fflush(stdout); |
} |
} |
} |
} |
if (hash && bytes > 0) { |
if (hash && bytes > 0) { |
if (bytes < HASHBYTES) |
if (bytes < mark) |
(void) putchar('#'); |
(void) putchar('#'); |
(void) putchar('\n'); |
(void) putchar('\n'); |
(void) fflush(stdout); |
(void) fflush(stdout); |
|
|
while (hash && (bytes >= hashbytes)) { |
while (hash && (bytes >= hashbytes)) { |
(void) putchar('#'); |
(void) putchar('#'); |
(void) fflush(stdout); |
(void) fflush(stdout); |
hashbytes += HASHBYTES; |
hashbytes += mark; |
} |
} |
if (ferror(dout)) |
if (ferror(dout)) |
break; |
break; |
|
|
int c, d, is_retr, tcrflag, bare_lfs = 0; |
int c, d, is_retr, tcrflag, bare_lfs = 0; |
static int bufsize; |
static int bufsize; |
static char *buf; |
static char *buf; |
long bytes = 0, hashbytes = HASHBYTES; |
long bytes = 0, hashbytes = mark; |
struct timeval start, stop; |
struct timeval start, stop; |
struct stat st; |
struct stat st; |
|
|
|
|
if (hash) { |
if (hash) { |
while (bytes >= hashbytes) { |
while (bytes >= hashbytes) { |
(void) putchar('#'); |
(void) putchar('#'); |
hashbytes += HASHBYTES; |
hashbytes += mark; |
} |
} |
(void) fflush(stdout); |
(void) fflush(stdout); |
} |
} |
} |
} |
if (hash && bytes > 0) { |
if (hash && bytes > 0) { |
if (bytes < HASHBYTES) |
if (bytes < mark) |
(void) putchar('#'); |
(void) putchar('#'); |
(void) putchar('\n'); |
(void) putchar('\n'); |
(void) fflush(stdout); |
(void) fflush(stdout); |
|
|
while (hash && (bytes >= hashbytes)) { |
while (hash && (bytes >= hashbytes)) { |
(void) putchar('#'); |
(void) putchar('#'); |
(void) fflush(stdout); |
(void) fflush(stdout); |
hashbytes += HASHBYTES; |
hashbytes += mark; |
} |
} |
bytes++; |
bytes++; |
if ((c = getc(din)) != '\n' || tcrflag) { |
if ((c = getc(din)) != '\n' || tcrflag) { |