Mercurial > gftp.yaz
diff lib/gftp.h @ 244:afbbc72b73e2
2003-8-3 Brian Masney <masneyb@gftp.org>
* lib/local.c (local_put_file) - specify an initial file creation mode
of 0644
* lib/misc.c lib/gftp.h - added gftp_parse_file_size(). This function
works correctly for files greater than 2.1GB
* lib/rfc959.c (rfc959_get_file) lib/protocols.c lib/rfc2068.c
lib/rfc959.c - use gftp_parse_file_size()
* lib/protocols.c lib/gftp.h (gftp_get_file, gftp_put_file,
gftp_transfer_file) - changed type of startsize paramter from size_t
to off_t
author | masneyb |
---|---|
date | Sun, 03 Aug 2003 18:44:29 +0000 |
parents | b42e7233533a |
children | 41af60bc1f88 |
line wrap: on
line diff
--- a/lib/gftp.h Fri Aug 01 01:47:54 2003 +0000 +++ b/lib/gftp.h Sun Aug 03 18:44:29 2003 +0000 @@ -727,6 +727,8 @@ #endif +off_t gftp_parse_file_size ( char *str ); + /* protocols.c */ #define GFTP_FTP_NUM 0 #define GFTP_HTTP_NUM 1 @@ -785,22 +787,22 @@ off_t gftp_get_file ( gftp_request * request, const char *filename, int fd, - size_t startsize ); + off_t startsize ); int gftp_put_file ( gftp_request * request, const char *filename, int fd, - size_t startsize, - size_t totalsize ); + off_t startsize, + off_t totalsize ); long gftp_transfer_file ( gftp_request *fromreq, const char *fromfile, int fromfd, - size_t fromsize, + off_t fromsize, gftp_request *toreq, const char *tofile, int tofd, - size_t tosize ); + off_t tosize ); ssize_t gftp_get_next_file_chunk ( gftp_request * request, char *buf,