diff options
author | Mike Heffner <mikeh@FreeBSD.org> | 2003-06-16 02:36:38 +0000 |
---|---|---|
committer | Mike Heffner <mikeh@FreeBSD.org> | 2003-06-16 02:36:38 +0000 |
commit | 1796d6118b58b3fde2859c2646c2cbfef5dc6431 (patch) | |
tree | fe7476d6e4129e7a835cd3c91bbef8b7b0b35a14 /contrib/lukemftp/src/ftp.c | |
parent | 2e0951ee2da24c3bd16b4edded44a579c3cffe90 (diff) | |
download | src-1796d6118b58b3fde2859c2646c2cbfef5dc6431.tar.gz src-1796d6118b58b3fde2859c2646c2cbfef5dc6431.zip |
Import the June 15, 2003 CVS version of NetBSD's ftp + patchset to fixvendor/tnftp/20030615vendor/NetBSD/lukemftp/20030615
header file differences between FBSD and NBSD. Like lukemftpd, the
portable version of lukemftp lags too far behind CVS.
This import includes several big fixes plus a cleaned up manpage.
Notes
Notes:
svn path=/vendor/lukemftp/dist/; revision=116424
svn path=/vendor/tnftp/20030615/; revision=223303; tag=vendor/tnftp/20030615
Diffstat (limited to 'contrib/lukemftp/src/ftp.c')
-rw-r--r-- | contrib/lukemftp/src/ftp.c | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/contrib/lukemftp/src/ftp.c b/contrib/lukemftp/src/ftp.c index 6dcc530f80a3..88a7713be0a9 100644 --- a/contrib/lukemftp/src/ftp.c +++ b/contrib/lukemftp/src/ftp.c @@ -98,10 +98,41 @@ * SUCH DAMAGE. */ -#include "lukemftp.h" - +#include <sys/cdefs.h> +#ifndef lint +#if 0 +static char sccsid[] = "@(#)ftp.c 8.6 (Berkeley) 10/27/94"; +#else +__RCSID("$NetBSD: ftp.c,v 1.120 2002/06/05 10:20:49 lukem Exp $"); +#endif +#endif /* not lint */ + +#include <sys/types.h> +#include <sys/stat.h> +#include <sys/socket.h> +#include <sys/time.h> + +#include <netinet/in.h> +#include <netinet/in_systm.h> +#include <netinet/ip.h> +#include <arpa/inet.h> +#include <arpa/ftp.h> #include <arpa/telnet.h> +#include <ctype.h> +#include <err.h> +#include <errno.h> +#include <netdb.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <time.h> +#include <unistd.h> +#include <stdarg.h> +#ifndef USE_SELECT +#include <poll.h> +#endif + #include "ftp_var.h" volatile int abrtflag = 0; |