ST_UNIX,
ST_VMS,
ST_WINNT,
+ ST_MACOS,
ST_OTHER
};
};
/* Commands for FTP functions. */
-enum command
+enum wget_ftp_command
{
DO_LOGIN = 0x0001, /* Connect and login to the server. */
DO_CWD = 0x0002, /* Change current directory. */
DO_RETR = 0x0004, /* Retrieve the file. */
DO_LIST = 0x0008, /* Retrieve the directory list. */
- LEAVE_PENDING = 0x0010 /* Do not close the socket. */
+ LEAVE_PENDING = 0x0010, /* Do not close the socket. */
+ NO_TRUNCATE = 0x0020 /* Don't truncate the file if REST
+ malfunctions. */
};
-enum fstatus
+enum wget_ftp_fstatus
{
NOTHING = 0x0000, /* Nothing done yet. */
ON_YOUR_OWN = 0x0001, /* The ftp_loop_internal sets the
int cmd; /* command code */
struct rbuf rbuf; /* control connection buffer */
long dltime; /* time of the download */
+ enum stype rs; /* remote system reported by ftp server */
+ char *id; /* initial directory */
} ccon;
struct fileinfo *ftp_parse_ls PARAMS ((const char *, enum stype));