diff options
| author | cvs2svn <cvs2svn@FreeBSD.org> | 1995-08-30 17:42:29 +0000 |
|---|---|---|
| committer | cvs2svn <cvs2svn@FreeBSD.org> | 1995-08-30 17:42:29 +0000 |
| commit | 09adf59b71be5536e90072a21ff0a298de13b31e (patch) | |
| tree | 5472a1168e90c3da5a19b92d4eec77fdec82325a /usr.sbin/pkg_install/lib/ftp.h | |
| parent | 11ae5136afc310ef71c58826e0faa94cc2b415f4 (diff) | |
Notes
Diffstat (limited to 'usr.sbin/pkg_install/lib/ftp.h')
| -rw-r--r-- | usr.sbin/pkg_install/lib/ftp.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/lib/ftp.h b/usr.sbin/pkg_install/lib/ftp.h new file mode 100644 index 000000000000..9275dd4f35c6 --- /dev/null +++ b/usr.sbin/pkg_install/lib/ftp.h @@ -0,0 +1,26 @@ +#ifndef _FTP_H_INCLUDE +#define _FTP_H_INCLUDE + +typedef struct { + enum {init, isopen, xfer} state; + int fd_ctrl; + int fd_xfer; + int fd_debug; + int binary; + int passive; + int addrtype; + char *host; + char *file; +} *FTP_t; + +FTP_t FtpInit(); +int FtpOpen(FTP_t, char *host, char *user, char *passwd); +#define FtpBinary(ftp,bool) { (ftp)->binary = (bool); } +#define FtpPassive(ftp,bool) { (ftp)->passive = (bool); } +int FtpChdir(FTP_t, char *); +int FtpGet(FTP_t, char *); +int FtpEOF(FTP_t); +void FtpClose(FTP_t); + +#endif +/* _FTP_H_INCLUDE */ |
