version 1.39, 2000/10/18 06:53:24 |
version 1.40, 2001/06/23 22:48:44 |
|
|
{ |
{ |
struct stat st; |
struct stat st; |
int c, d; |
int c, d; |
FILE *fin, *dout; |
FILE * volatile fin, * volatile dout; |
int (*closefunc) __P((FILE *)); |
int (* volatile closefunc) __P((FILE *)); |
sig_t oldinti, oldintr, oldintp; |
volatile sig_t oldinti, oldintr, oldintp; |
volatile off_t hashbytes; |
volatile off_t hashbytes; |
char *lmode, buf[BUFSIZ], *bufp; |
char * volatile lmode; |
|
char buf[BUFSIZ], *bufp; |
int oprogress; |
int oprogress; |
|
|
#ifdef __GNUC__ /* XXX: to shut up gcc warnings */ |
|
(void)&fin; |
|
(void)&dout; |
|
(void)&closefunc; |
|
(void)&oldinti; |
|
(void)&oldintr; |
|
(void)&oldintp; |
|
(void)&lmode; |
|
#endif |
|
|
|
hashbytes = mark; |
hashbytes = mark; |
direction = "sent"; |
direction = "sent"; |
dout = NULL; |
dout = NULL; |
|
|
|
|
void |
void |
recvrequest(cmd, local, remote, lmode, printnames, ignorespecial) |
recvrequest(cmd, local, remote, lmode, printnames, ignorespecial) |
const char *cmd, *local, *remote, *lmode; |
const char *cmd, * volatile local, *remote, *lmode; |
int printnames, ignorespecial; |
int printnames, ignorespecial; |
{ |
{ |
FILE *fout, *din; |
FILE * volatile fout, * volatile din; |
int (*closefunc) __P((FILE *)); |
int (* volatile closefunc) __P((FILE *)); |
sig_t oldinti, oldintr, oldintp; |
volatile sig_t oldinti, oldintr, oldintp; |
int c, d; |
int c, d; |
volatile int is_retr, tcrflag, bare_lfs; |
volatile int is_retr, tcrflag, bare_lfs; |
static size_t bufsize; |
static size_t bufsize; |
|
|
int oprogress; |
int oprogress; |
int opreserve; |
int opreserve; |
|
|
#ifdef __GNUC__ /* XXX: to shut up gcc warnings */ |
|
(void)&local; |
|
(void)&fout; |
|
(void)&din; |
|
(void)&closefunc; |
|
(void)&oldinti; |
|
(void)&oldintr; |
|
(void)&oldintp; |
|
#endif |
|
|
|
fout = NULL; |
fout = NULL; |
din = NULL; |
din = NULL; |
oldinti = NULL; |
oldinti = NULL; |
|
|
proxtrans(cmd, local, remote) |
proxtrans(cmd, local, remote) |
const char *cmd, *local, *remote; |
const char *cmd, *local, *remote; |
{ |
{ |
sig_t oldintr; |
volatile sig_t oldintr; |
int prox_type, nfnd; |
int prox_type, nfnd; |
volatile int secndflag; |
volatile int secndflag; |
char *cmd2; |
char * volatile cmd2; |
fd_set mask; |
fd_set mask; |
|
|
#ifdef __GNUC__ /* XXX: to shut up gcc warnings */ |
|
(void)&oldintr; |
|
(void)&cmd2; |
|
#endif |
|
|
|
oldintr = NULL; |
oldintr = NULL; |
secndflag = 0; |
secndflag = 0; |