~ubuntu-branches/ubuntu/lucid/wget/lucid

« back to all changes in this revision

Viewing changes to src/ftp.h

  • Committer: Bazaar Package Importer
  • Author(s): Noèl Köthe
  • Date: 2005-06-26 16:46:25 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050626164625-jjcde8hyztx7xq7o
Tags: 1.10-2
* wget-fix_error--save-headers patch from upstream
  (closes: Bug#314728)
* don't pattern-match server redirects patch from upstream
  (closes: Bug#163243)
* correct de.po typos
  (closes: Bug#313883)
* wget-E_html_behind_file_counting fix problem with adding the
  numbers after the html extension
* updated Standards-Version: to 3.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#ifndef FTP_H
31
31
#define FTP_H
32
32
 
33
 
/* Need it for struct rbuf.  */
34
 
#include "rbuf.h"
35
 
 
36
33
#include "host.h"
37
34
 
38
35
/* System types. */
46
43
  ST_OTHER
47
44
};
48
45
  
49
 
uerr_t ftp_response PARAMS ((struct rbuf *, char **));
50
 
uerr_t ftp_login PARAMS ((struct rbuf *, const char *, const char *));
51
 
uerr_t ftp_port PARAMS ((struct rbuf *));
52
 
uerr_t ftp_pasv PARAMS ((struct rbuf *, ip_address *, unsigned short *));
 
46
uerr_t ftp_response PARAMS ((int, char **));
 
47
uerr_t ftp_login PARAMS ((int, const char *, const char *));
 
48
uerr_t ftp_port PARAMS ((int, int *));
 
49
uerr_t ftp_pasv PARAMS ((int, ip_address *, int *));
53
50
#ifdef ENABLE_IPV6
54
 
uerr_t ftp_epsv PARAMS ((struct rbuf *, ip_address *, unsigned short *,
55
 
                         char *));
56
 
#endif
57
 
uerr_t ftp_type PARAMS ((struct rbuf *, int));
58
 
uerr_t ftp_cwd PARAMS ((struct rbuf *, const char *));
59
 
uerr_t ftp_retr PARAMS ((struct rbuf *, const char *));
60
 
uerr_t ftp_rest PARAMS ((struct rbuf *, long));
61
 
uerr_t ftp_list PARAMS ((struct rbuf *, const char *));
62
 
uerr_t ftp_syst PARAMS ((struct rbuf *, enum stype *));
63
 
uerr_t ftp_pwd PARAMS ((struct rbuf *, char **));
64
 
uerr_t ftp_size PARAMS ((struct rbuf *, const char *, long int *));
 
51
uerr_t ftp_lprt PARAMS ((int, int *));
 
52
uerr_t ftp_lpsv PARAMS ((int, ip_address *, int *));
 
53
uerr_t ftp_eprt PARAMS ((int, int *));
 
54
uerr_t ftp_epsv PARAMS ((int, ip_address *, int *));
 
55
#endif
 
56
uerr_t ftp_type PARAMS ((int, int));
 
57
uerr_t ftp_cwd PARAMS ((int, const char *));
 
58
uerr_t ftp_retr PARAMS ((int, const char *));
 
59
uerr_t ftp_rest PARAMS ((int, wgint));
 
60
uerr_t ftp_list PARAMS ((int, const char *));
 
61
uerr_t ftp_syst PARAMS ((int, enum stype *));
 
62
uerr_t ftp_pwd PARAMS ((int, char **));
 
63
uerr_t ftp_size PARAMS ((int, const char *, wgint *));
 
64
 
 
65
#ifdef ENABLE_OPIE
 
66
const char *skey_response PARAMS ((int, const char *, const char *));
 
67
#endif
65
68
 
66
69
struct url;
67
70
 
78
81
/* Globbing (used by ftp_retrieve_glob).  */
79
82
enum
80
83
{
81
 
  GLOBALL, GETALL, GETONE
 
84
  GLOB_GLOBALL, GLOB_GETALL, GLOB_GETONE
82
85
};
83
86
 
84
87
/* Information about one filename in a linked list.  */
86
89
{
87
90
  enum ftype type;              /* file type */
88
91
  char *name;                   /* file name */
89
 
  long size;                    /* file size */
 
92
  wgint size;                   /* file size */
90
93
  long tstamp;                  /* time-stamp */
91
94
  int perms;                    /* file permissions */
92
95
  char *linkto;                 /* link to which file points */
101
104
  DO_CWD        = 0x0002,       /* Change current directory.  */
102
105
  DO_RETR       = 0x0004,       /* Retrieve the file.  */
103
106
  DO_LIST       = 0x0008,       /* Retrieve the directory list.  */
104
 
  LEAVE_PENDING = 0x0010,       /* Do not close the socket.  */
105
 
  NO_TRUNCATE   = 0x0020        /* Don't truncate the file if REST
106
 
                                   malfunctions. */
 
107
  LEAVE_PENDING = 0x0010        /* Do not close the socket.  */
107
108
};
108
109
 
109
110
enum wget_ftp_fstatus