version 1.55, 2003/12/16 21:46:22 |
version 1.56, 2004/07/20 03:50:25 |
|
|
FILE *cin, *cout; |
FILE *cin, *cout; |
|
|
char * |
char * |
hookup(host, port) |
hookup(char *host, char *port) |
char *host; |
|
char *port; |
|
{ |
{ |
int s, len, tos, error; |
int s, len, tos, error; |
static char hostnamebuf[MAXHOSTNAMELEN]; |
static char hostnamebuf[MAXHOSTNAMELEN]; |
|
|
} |
} |
|
|
void |
void |
cmdabort(notused) |
cmdabort(int notused) |
int notused; |
|
{ |
{ |
|
|
alarmtimer(0); |
alarmtimer(0); |
|
|
char reply_string[BUFSIZ]; /* first line of previous reply */ |
char reply_string[BUFSIZ]; /* first line of previous reply */ |
|
|
int |
int |
getreply(expecteof) |
getreply(int expecteof) |
int expecteof; |
|
{ |
{ |
char current_line[BUFSIZ]; /* last line of previous reply */ |
char current_line[BUFSIZ]; /* last line of previous reply */ |
int c, n, line; |
int c, n, line; |
|
|
jmp_buf sendabort; |
jmp_buf sendabort; |
|
|
void |
void |
abortsend(notused) |
abortsend(int notused) |
int notused; |
|
{ |
{ |
|
|
alarmtimer(0); |
alarmtimer(0); |
|
|
} |
} |
|
|
void |
void |
sendrequest(cmd, local, remote, printnames) |
sendrequest(const char *cmd, const char *local, const char *remote, |
const char *cmd, *local, *remote; |
int printnames) |
int printnames; |
|
{ |
{ |
struct stat st; |
struct stat st; |
int c, d; |
int c, d; |
|
|
jmp_buf recvabort; |
jmp_buf recvabort; |
|
|
void |
void |
abortrecv(notused) |
abortrecv(int notused) |
int notused; |
|
{ |
{ |
|
|
alarmtimer(0); |
alarmtimer(0); |
|
|
} |
} |
|
|
void |
void |
recvrequest(cmd, local, remote, lmode, printnames, ignorespecial) |
recvrequest(const char *cmd, const char * volatile local, const char *remote, |
const char *cmd, * volatile local, *remote, *lmode; |
const char *lmode, int printnames, int ignorespecial) |
int printnames, ignorespecial; |
|
{ |
{ |
FILE * volatile fout, * volatile din; |
FILE * volatile fout, * volatile din; |
int (* volatile closefunc)(FILE *); |
int (* volatile closefunc)(FILE *); |
|
|
* otherwise the server's connect may fail. |
* otherwise the server's connect may fail. |
*/ |
*/ |
int |
int |
initconn() |
initconn(void) |
{ |
{ |
char *p, *a; |
char *p, *a; |
int result = ERROR, len, tmpno = 0; |
int result = ERROR, len, tmpno = 0; |
|
|
} |
} |
|
|
FILE * |
FILE * |
dataconn(lmode) |
dataconn(const char *lmode) |
const char *lmode; |
|
{ |
{ |
union sockunion from; |
union sockunion from; |
int s, fromlen = myctladdr.su_len; |
int s, fromlen = myctladdr.su_len; |
|
|
} |
} |
|
|
void |
void |
psummary(notused) |
psummary(int notused) |
int notused; |
|
{ |
{ |
int save_errno = errno; |
int save_errno = errno; |
|
|
|
|
} |
} |
|
|
void |
void |
psabort(notused) |
psabort(int notused) |
int notused; |
|
{ |
{ |
|
|
alarmtimer(0); |
alarmtimer(0); |
|
|
} |
} |
|
|
void |
void |
pswitch(flag) |
pswitch(int flag) |
int flag; |
|
{ |
{ |
sig_t oldintr; |
sig_t oldintr; |
static struct comvars { |
static struct comvars { |
|
|
} |
} |
|
|
void |
void |
abortpt(notused) |
abortpt(int notused) |
int notused; |
|
{ |
{ |
|
|
alarmtimer(0); |
alarmtimer(0); |
|
|
} |
} |
|
|
void |
void |
proxtrans(cmd, local, remote) |
proxtrans(const char *cmd, const char *local, const char *remote) |
const char *cmd, *local, *remote; |
|
{ |
{ |
volatile sig_t oldintr; |
volatile sig_t oldintr; |
int prox_type, nfnd; |
int prox_type, nfnd; |
|
|
} |
} |
|
|
void |
void |
reset(argc, argv) |
reset(int argc, char *argv[]) |
int argc; |
|
char *argv[]; |
|
{ |
{ |
struct pollfd pfd[1]; |
struct pollfd pfd[1]; |
int nfnd = 1; |
int nfnd = 1; |
|
|
} |
} |
|
|
char * |
char * |
gunique(local) |
gunique(const char *local) |
const char *local; |
|
{ |
{ |
static char new[MAXPATHLEN]; |
static char new[MAXPATHLEN]; |
char *cp = strrchr(local, '/'); |
char *cp = strrchr(local, '/'); |
|
|
} |
} |
|
|
void |
void |
abort_remote(din) |
abort_remote(FILE *din) |
FILE *din; |
|
{ |
{ |
char buf[BUFSIZ]; |
char buf[BUFSIZ]; |
int nfnd; |
int nfnd; |