diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-11-26 19:59:19 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-11-26 19:59:19 +0000 |
commit | 32d18cdb5603ba71a27661cc59d78bfaf43a36cc (patch) | |
tree | cbef628263c93aba4f3dbb99573f0dc538db714f /loader2/ftp.h | |
parent | 48ad552b63a95aec286aba9cd91ec0a745152e95 (diff) | |
download | anaconda-32d18cdb5603ba71a27661cc59d78bfaf43a36cc.tar.gz anaconda-32d18cdb5603ba71a27661cc59d78bfaf43a36cc.tar.xz anaconda-32d18cdb5603ba71a27661cc59d78bfaf43a36cc.zip |
restructuring and clean up of some of the older unused code in the loader.
still a lot to do, but this gets to stage2 for cd, nfs, http, and ftp booting
from either the cd initrd or the pxe initrd
Diffstat (limited to 'loader2/ftp.h')
-rw-r--r-- | loader2/ftp.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/loader2/ftp.h b/loader2/ftp.h new file mode 100644 index 000000000..2c7052312 --- /dev/null +++ b/loader2/ftp.h @@ -0,0 +1,25 @@ +#ifndef H_FTP +#define H_FTP + +const char * ftpStrerror(int ftpErrno); + +#define FTPERR_BAD_SERVER_RESPONSE -1 +#define FTPERR_SERVER_IO_ERROR -2 +#define FTPERR_SERVER_TIMEOUT -3 +#define FTPERR_BAD_HOST_ADDR -4 +#define FTPERR_BAD_HOSTNAME -5 +#define FTPERR_FAILED_CONNECT -6 +#define FTPERR_FILE_IO_ERROR -7 +#define FTPERR_PASSIVE_ERROR -8 +#define FTPERR_FAILED_DATA_CONNECT -9 +#define FTPERR_FILE_NOT_FOUND -10 +#define FTPERR_UNKNOWN -100 + +int ftpOpen(char * host, char * name, char * password, char * proxy, int port); +int ftpGetFile(int sock, char * remotename, int dest); +int ftpGetFileDesc(int sock, char * remotename); +int ftpGetFileDone(int sock); + +int httpGetFileDesc(char * hostname, int port, char * remotename); + +#endif |