diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-17 15:28:08 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1996-06-17 15:28:08 +0000 |
commit | 92f6d791898b50cb7626ced0343b8fa7ce38dc9d (patch) | |
tree | 3184fbc957ff0a5fb13fb92211881f5bde510a92 /lib/libftpio/ftpio.h | |
parent | 5d1999ec5988ed7cc8b5cf513e8025db3de65684 (diff) | |
download | src-92f6d791898b50cb7626ced0343b8fa7ce38dc9d.tar.gz src-92f6d791898b50cb7626ced0343b8fa7ce38dc9d.zip |
Rethink and reimpliment the way RESTARTS are handled. The method I inheirited
from jmz was a hopeless kludge (sorry Jean-Marc :) and handled the problem
in the wrong way. ftpRestart() has now gone away and ftpGet() has grown a
new parameter.
Notes
Notes:
svn path=/head/; revision=16435
Diffstat (limited to 'lib/libftpio/ftpio.h')
-rw-r--r-- | lib/libftpio/ftpio.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libftpio/ftpio.h b/lib/libftpio/ftpio.h index fc24ad76b82b..40e2429b4880 100644 --- a/lib/libftpio/ftpio.h +++ b/lib/libftpio/ftpio.h @@ -20,7 +20,7 @@ * Turned inside out. Now returns xfers as new file ids, not as a special * `state' of FTP_t * - * $Id$ + * $Id: ftpio.h,v 1.1.1.1 1996/06/17 12:26:06 jkh Exp $ */ /* Internal housekeeping data structure for FTP sessions */ @@ -33,7 +33,6 @@ typedef struct { char *host; char *file; int errno; - int seek; } *FTP_t; /* Exported routines - deal only with FILE* type */ @@ -41,11 +40,10 @@ extern FILE *ftpLogin(char *host, char *user, char *passwd, int port); extern int ftpChdir(FILE *fp, char *dir); extern int ftpErrno(FILE *fp); extern size_t ftpGetSize(FILE *fp, char *file); -extern FILE *ftpGet(FILE *fp, char *file); +extern FILE *ftpGet(FILE *fp, char *file, int *seekto); extern FILE *ftpPut(FILE *fp, char *file); extern int ftpBinary(FILE *fp, int status); extern int ftpPassive(FILE *fp, int status); -extern int ftpRestart(FILE *fp, int where); extern FILE *ftpGetURL(char *url, char *user, char *passwd); extern FILE *ftpPutURL(char *url, char *user, char *passwd); extern time_t ftpModtime(FILE *fp, char *s); |