diff options
author | jbj <devnull@localhost> | 1999-11-10 22:09:49 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-11-10 22:09:49 +0000 |
commit | e0b1d0be3607ef673555ca17078bfff6f854267e (patch) | |
tree | 828541f8c102a7b9adddc19b0cf623cdedc0fb44 /lib/rpmurl.h | |
parent | aeab1e959d1fb383a0ff21924bff0edd01404fab (diff) | |
download | rpm-e0b1d0be3607ef673555ca17078bfff6f854267e.tar.gz rpm-e0b1d0be3607ef673555ca17078bfff6f854267e.tar.bz2 rpm-e0b1d0be3607ef673555ca17078bfff6f854267e.zip |
Swap 2nd and 3rd arg to Fread/Fwrite to preserve read/write type return.
Use Fstrerror to retrieve fd->syserrno.
Make ftpFileDoneNeeded per-fd rather than per-url.
Make data fd unique rather than per-url.
Use appropriate protocol commands for ufdio writing.
CVS patchset: 3421
CVS date: 1999/11/10 22:09:49
Diffstat (limited to 'lib/rpmurl.h')
-rw-r--r-- | lib/rpmurl.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rpmurl.h b/lib/rpmurl.h index ff09868cb..c021205c7 100644 --- a/lib/rpmurl.h +++ b/lib/rpmurl.h @@ -51,7 +51,6 @@ typedef /*@abstract@*/ /*@refcounted@*/ struct urlinfo { FD_t data; /* per-xfer data channel */ int bufAlloced; /* sizeof I/O buffer */ char *buf; /* I/O buffer */ - int ftpFileDoneNeeded; int openError; /* Type of open failure */ int httpVersion; int httpHasRange; @@ -69,8 +68,8 @@ int ftpCommand(urlinfo u, ...); int httpOpen(urlinfo u, const char * httpcmd); int ftpOpen(urlinfo u); -int ftpFileDone(urlinfo u); -int ftpFileDesc(urlinfo u, const char * cmd); +int ftpFileDone(urlinfo u, FD_t fd); +int ftpFileDesc(urlinfo u, const char * cmd, FD_t fd); urlinfo urlLink(urlinfo u, const char * msg); urlinfo XurlLink(urlinfo u, const char * msg, const char * file, unsigned line); |