From owner-cvs-lib Wed Nov 13 22:59:56 1996 Return-Path: owner-cvs-lib Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA18926 for cvs-lib-outgoing; Wed, 13 Nov 1996 22:59:56 -0800 (PST) Received: (from ache@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id WAA18911; Wed, 13 Nov 1996 22:59:43 -0800 (PST) Date: Wed, 13 Nov 1996 22:59:43 -0800 (PST) From: "Andrey A. Chernov" Message-Id: <199611140659.WAA18911@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-lib Subject: cvs commit: src/lib/libftpio Makefile ftpio.3 ftpio.c ftpio.h Sender: owner-cvs-lib@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk ache 96/11/13 22:59:42 Modified: lib/libftpio Makefile ftpio.3 ftpio.c ftpio.h Log: For functions ftpGetURL, ftpPutURL, ftpLogin it was impossible to know 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 Revision Changes Path 1.6 +1 -1 src/lib/libftpio/Makefile 1.12 +6 -6 src/lib/libftpio/ftpio.3 1.18 +33 -9 src/lib/libftpio/ftpio.c 1.10 +4 -4 src/lib/libftpio/ftpio.h