summaryrefslogtreecommitdiffstats
path: root/lib/libftpio
Commit message (Collapse)AuthorAgeFilesLines
* Sanitize and extend SIGALRM timeout handling.jkh1996-12-171-34/+59
|
* Oops, back out previous optimization, don't work as I expectache1996-11-141-4/+12
| | | | (lack of sleep)
* Since ftpPutURL not use hostname cache, optimize it by always closingache1996-11-141-13/+5
| | | | | connection at the end of operation, so it not leave opened file without a reason.
* For functions ftpGetURL, ftpPutURL, ftpLogin it was impossible to knowache1996-11-144-20/+44
| | | | | | | | | | | | | | | | | | | | FTP error return code because 1) They return NULL, it means that ftpErrno can't be used because it takes file pointer 2) They don't have FILE-type argument as f.e. ftpGet/ftpPut to use it for ftpErrno instead. For that functions I add yet one int* type argument to store FTP error return code. It is impossible to add some global variable for that reason, because user can have multiply FTP connections opened at the same time. So, interface changed, major number bumped. Userland changes will follows. Minor bugfixes, the code: Forget to close file in few places, when failure occurse Forget to NULL cached host name, multiply free is possible
* Oops, forget the fact that several ftp connections can be activeache1996-11-142-10/+6
| | | | | | at the same time, so add new con_state to avoid QUIT recursion Still should go to 2.2
* 1) Don't allow endless recursion in ftp_close when it attempts toache1996-11-141-2/+8
| | | | | | | | send QUIT to closed connection. 2) Preserve login failure code, don't overwrite it with ftp_close code Should go to 2.2
* Send PASV instead of PASSIVE.jkh1996-10-101-2/+2
| | | | Submitted-By: Archie Cobbs <archie@whistle.com>
* delete doubled words, e.g.: "the the" -> "the"wosch1996-10-051-1/+2
|
* Make libftpio 64-bit clean.peter1996-09-193-25/+36
| | | | | | | Major version bumped (by me) since the ftpGet() public interface has changed (an "int *" becomes and "off_t *") Submitted by: Jason Thorpe <thorpej@nas.nasa.gov>, PR#1640
* Intelligently cache previous connection to host if we can stilljkh1996-08-311-10/+32
| | | | | | | use it. Correct a typo bogon that had REST mistyped as RETR. No wonder fetch's restart command didn't work! :-(
* cmp -s || install -c ==> install -Cpeter1996-08-301-2/+2
|
* D'oh! verbose output should go to stderr.jkh1996-08-241-2/+2
|
* Implement a change suggested by Archie Cobbs - the seekto argument shouldjkh1996-08-212-3/+4
| | | | | be zero'd only if the operation *fails*, indicating that the file starting offset is effectively zero. This makes more sense.
* Add an ftpErrString() function for returning human readable failurejkh1996-08-215-6/+88
| | | | | codes. Submitted-By: Archie Cobbs <archie@whistle.com>
* 1. Add verbose flag to ftp_login()jkh1996-08-035-306/+16
| | | | | | 2. Remove pkg_* support - tcl7.5's channel interface has rendered this almost entirely unsupportable (at least in the way it currently stands). Submitted-By: jmz & jkh
* Implement an ftpVerbose() hook.jkh1996-07-043-2/+22
| | | | Submitted by: jmz
* Makefile:gpalmer1996-06-262-3/+3
| | | | | | | Add -Wall to CFLAGS ftpio.h: It's ftpGetModTime, not ftpModTime
* Adjust docs to match reality.jkh1996-06-241-4/+8
|
* Adjust the reference to ftpBinary() in the (unused) TCL wrappers.jkh1996-06-241-4/+4
|
* Fix a bug in the way binary/ascii settings were being done. Newjkh1996-06-222-42/+78
| | | | ftpAscii() call sets connection to ascii as counterpart to ftpBinary().
* Make certain small things more consistent with the other stdio man pages.jkh1996-06-201-10/+10
|
* Manage control connections a little better for the URL routines.jkh1996-06-171-5/+13
| | | | | | This will do as a stop-gap until I figure out a more fault-tolerant way of having deferred closes against the control connection work without blocking.
* Make binary mode the default.jkh1996-06-171-1/+2
|
* Stamp out a potential memory leak.jkh1996-06-172-10/+17
| | | | Make ftpChdir return the server status again - it was more convenient.
* Rethink and reimpliment the way RESTARTS are handled. The method I inheiritedjkh1996-06-173-53/+33
| | | | | | 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.
* Add a feature: If the environment variable FTP_PASSIVE_MODE is definedjkh1996-06-171-1/+3
| | | | | (the convention as established by pkg_install(1)), select passive mode FTP automatically.
* Whoops, give the authors all proper credit.jkh1996-06-171-0/+2
|
* Bring in a new library `libftpio', so named to avoid clashes with olderjkh1996-06-176-0/+1226
packages and also sort of give the (correct) impression that this basically sits on top of stdio and deals with stream pointers (FILE*).
OpenPOWER on IntegriCloud