ReactOS 0.4.16-dev-319-g6cf4263
|
Go to the source code of this file.
Macros | |
#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 |
Definition at line 254 of file ftp.c.
Referenced by command(), and getreply().
Definition at line 266 of file ftp.c.
Definition at line 1240 of file ftp.c.
Referenced by recvrequest(), and sendrequest().
Definition at line 416 of file ftp.c.
Definition at line 314 of file ftp.c.
Referenced by command(), hookup(), proxtrans(), quote(), recvrequest(), reset(), sendrequest(), and site().
uid_t getuid | ( | ) |
Definition at line 27 of file uid.c.
Referenced by eaccess(), generate_random(), get_username_and_hostname(), GetHomeDir(), GetUsrName(), gl_set_home_dir(), init_fstatbuf(), and main().
Definition at line 96 of file ftp.c.
Referenced by setpeer().
Definition at line 1125 of file ftp.c.
Referenced by recvrequest(), and sendrequest().
Definition at line 189 of file ftp.c.
Referenced by setpeer().
Definition at line 263 of file main.c.
Referenced by getreply(), proxtrans(), recvrequest(), and reset().
Definition at line 1794 of file ftp.c.
Referenced by ImageAddCertificate(), main(), proxtrans(), recvrequest(), s_check_null(), sendrequest(), SetupLogErrorA(), test_basics(), test_null_device(), and test_PropVariantCompare().
Definition at line 1418 of file ftp.c.
Referenced by recvrequest(), and sendrequest().
Definition at line 1310 of file ftp.c.
Referenced by doproxy(), lostpeer(), proxtrans(), quit(), remglob(), and status().
Definition at line 1264 of file ftp.c.
Referenced by recvrequest(), and sendrequest().
void recvrequest | ( | const char * | cmd, |
const char * | local, | ||
const char * | remote, | ||
const char * | mode, | ||
int | printnames | ||
) |
Definition at line 717 of file ftp.c.
Definition at line 443 of file ftp.c.
int abrtflag = 0 |
Definition at line 71 of file ftp.c.
Referenced by cmdabort(), command(), getreply(), psabort(), and pswitch().
int allbinary |
Definition at line 73 of file ftp.c.
Referenced by recvrequest(), and setpeer().
SOCKET cin |
Definition at line 83 of file ftp.c.
Referenced by getreply(), hookup(), pswitch(), and recvrequest().
SOCKET cout |
Definition at line 83 of file ftp.c.
Referenced by command(), getreply(), hookup(), proxtrans(), pswitch(), and recvrequest().
struct sockaddr_in data_addr |
Definition at line 69 of file ftp.c.
Referenced by initconn().
struct sockaddr_in hisctladdr |
char* hostname |
Definition at line 88 of file ftp.c.
Referenced by _test_anchor_hostname(), build_wpad_url(), cldap_openA(), cldap_openW(), clnt_create(), clnt_create_timed(), clnt_create_vers(), clnt_create_vers_timed(), clnt_tp_create(), clnt_tp_create_timed(), dns_resolve(), DnsHostnameToComputerNameW(), do_host_lookup(), download_script(), enter_dns_host(), getdomainname(), getreply(), handle_redirect(), hookup(), host2netname(), HTMLLocation_get_hostname(), InternetGetProxyInfo(), ldap_initA(), ldap_initW(), ldap_openA(), ldap_openW(), ldap_sslinitA(), ldap_sslinitW(), local_rpcb(), mstsc_ProtocolIOThread(), netconn_resolve(), netconn_secure_connect(), netname2host(), networkconfig_GetProxyHostName(), networkconfig_SetProxyHostName(), nfs41_server_resolve(), NSP_GetHostNameHeapAllocW(), SEALED_::ProtocolLoop(), pswitch(), rdp_connect(), rdp_reconnect(), reverse_lookup(), run_script(), ruserpass(), sec_connect(), sec_out_mcs_data(), sec_reconnect(), setpeer(), status(), url_matches(), UserLoginThread(), winhttp_request_Open(), and WinHttpCrackUrl().
struct sockaddr_in myctladdr |
Definition at line 74 of file ftp.c.
Referenced by hookup(), initconn(), and pswitch().
int ptabflg |
Definition at line 1403 of file ftp.c.
Referenced by proxtrans().
jmp_buf ptabort |
Definition at line 1402 of file ftp.c.
Referenced by cmdabort(), and proxtrans().
int ptflag = 0 |
Definition at line 72 of file ftp.c.
Referenced by cmdabort(), and proxtrans().
jmp_buf recvabort |
Definition at line 703 of file ftp.c.
Referenced by recvrequest().
off_t restart_point = 0 |
Definition at line 81 of file ftp.c.
Referenced by get(), getit(), recvrequest(), restart(), and sendrequest().
jmp_buf sendabort |
Definition at line 427 of file ftp.c.
Referenced by sendrequest().