#include "precomp.h"
#include <ctype.h>
Go to the source code of this file.
Defines |
| #define | L_SET SEEK_SET |
| #define | L_INCR SEEK_CUR |
| #define | caddr_t void * |
| #define | MAXHOSTNAMELEN 64 |
| #define | HASHBYTES 1024 |
| #define | UC(b) (((int)b)&0xff) |
| #define | nz(x) ((x) == 0 ? 1 : (x)) |
Typedefs |
| typedef void(* | Sig_t )(int) |
Functions |
| uid_t | getuid () |
| sig_t | lostpeer () |
| int | dataconn (const char *mode) |
| int | command (const char *fmt,...) |
| void | psabort (int sig) |
| char * | hookup (const char *host, int port) |
| int | login (const char *host) |
| static void | cmdabort (int sig) |
| int | getreply (int expecteof) |
| static int | empty (struct fd_set *mask, int sec) |
| void | sendrequest (const char *cmd, const char *local, const char *remote, int printnames) |
| void | recvrequest (const char *cmd, const char *local, const char *remote, const char *mode, int printnames) |
| int | initconn () |
| void | ptransfer (char *direction, long bytes, struct timeval *t0, struct timeval *t1) const |
| void | tvsub (struct timeval *tdiff, struct timeval *t1, struct timeval *t0) |
| void | pswitch (int flag) |
| void | proxtrans (char *cmd, char *local, char *remote) const |
| void | reset (int argc, const char *argv[]) |
| int | null (void) |
Variables |
| static char | sccsid [] = "@(#)ftp.c 5.28 (Berkeley) 4/20/89" |
| struct sockaddr_in | hisctladdr |
| struct sockaddr_in | data_addr |
| int | data = -1 |
| int | abrtflag = 0 |
| int | ptflag = 0 |
| int | allbinary |
| struct sockaddr_in | myctladdr |
| off_t | restart_point = 0 |
| SOCKET | cin |
| SOCKET | cout |
| char * | hostname |
| char | reply_string [BUFSIZ] |
| jmp_buf | sendabort |
| jmp_buf | recvabort |
| jmp_buf | ptabort |
| int | ptabflg |