History log of /freebsd-9.3-release/lib/libftpio/
Revision Date Author Comments
267654 20-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


225736 23-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


208291 19-May-2010 uqs

mdoc: consistently spell our email addresses <foo@FreeBSD.org>

Reviewed by: ru


201381 02-Jan-2010 ed

Build lib/ with WARNS=6 by default.

Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and
lower it when needed.

I'm setting WARNS?=0 for secure/. It seems secure/ includes the
Makefile.inc provided by lib/. I'm not going to touch that directory.
Most of the code there is contributed anyway.


195767 19-Jul-2009 kensmith

Bump the version of all non-symbol-versioned shared libraries in
preparation for 8.0-RELEASE. Add the previous version of those
libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.

Reviewed by: kib
Approved by: re (rwatson)


178857 08-May-2008 jhb

Don't set the _file member of the FILE when opening a FTP connection.
Nothing in libftpio uses _file, and the only consumer in the tree
(sysinstall) doesn't invoke fileno() on the FILE.

MFC after: 2 months


178790 05-May-2008 jhb

Revert back to accessing FILE internals directly.

(Sorry, forgot to commit this earlier.)


178747 03-May-2008 marcel

Unbreak build: libftpio gropes inside struct __sFILE. Implement
accessor functions for its benefit now thaat FILE is opaque.
I'm sure there's a better way. I leave that for people to work
on in a src tree that isn't broken.

Pointy hat: jhb


169807 21-May-2007 deischen

Bump library versions in preparation for 7.0.

Ok'd by: kan


160737 27-Jul-2006 yar

Respect MK_INET6_SUPPORT.


148297 22-Jul-2005 kensmith

Bump the shared library version number of all libraries that have not
been bumped since RELENG_5.

Reviewed by: ru
Approved by: re (not needed for commit check but in principle...)


141925 14-Feb-2005 stefanf

Fix typo.

Submitted by: Antoine Brodin


141921 14-Feb-2005 stefanf

Use socklen_t.


141851 13-Feb-2005 ru

Expand contractions.


140505 20-Jan-2005 ru

Sort sections.


131504 02-Jul-2004 ru

Mechanically kill hard sentence breaks.


116028 08-Jun-2003 charnier

The .Fn function


108317 27-Dec-2002 schweikh

english(4) police.


104073 28-Sep-2002 peter

Zap now-unused SHLIB_MINOR


99255 02-Jul-2002 ume

Cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach
scope identifier).

MFC after: 3 weeks


93149 25-Mar-2002 phk

Modernize my email address.


84306 01-Oct-2001 ru

mdoc(7) police: Use the new .In macro for #include statements.


84204 30-Sep-2001 dillon

Add __FBSDID()s to libftpio


79754 15-Jul-2001 dd

Remove whitespace at EOL.


75670 18-Apr-2001 ru

mdoc(7) police: normalize .Nd.


74870 27-Mar-2001 ru

MAN[1-9] -> MAN.


72063 05-Feb-2001 bde

Fixed wrong return type for ftpLoginAf() in synopsis.


71895 01-Feb-2001 ru

mdoc(7) police: split punctuation characters + misc fixes.


70481 29-Dec-2000 ru

Prepare for mdoc(7)NG.


64799 17-Aug-2000 archie

Fix two bugs:
- The ftpPassive()


62905 10-Jul-2000 ume

Separate parsing code of 229 replies from the code for 227 and 228.
Don't assume 227 and 228 replies enclose remote address with parentheses.


62686 06-Jul-2000 ume

Reduce shlib major that is bumped by my mistake.
We don't need bumping it in this time.


62649 05-Jul-2000 ume

IPv6 support.
This is required for forthcoming IPv6 ready installer.

Obtained from: KAME


60051 05-May-2000 billf

Put the FTP_PASSIVE_MODE issue to rest once and for all.

Reviewed by: des
Obtained from: FreeBSD's src/usr.bin/ftp/main.c


59579 23-Apr-2000 jkh

Make FTP_PASSIVE_MODE check more specific.
Suggested by: Eric D. Futch <efutch@nyct.net>


57686 02-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


55955 14-Jan-2000 rgrimes

Replace beforeinstall target with new variables used by .mk system.

Reviewed by: marcel, and make world


51903 03-Oct-1999 marcel

Fix style bugs and ordering

Submitted by: bde


51794 29-Sep-1999 marcel

sigset_t change (part 5 of 5)
-----------------------------

Most of the userland changes are in libc. For both the alpha
and the i386 setjmp has been changed to accomodate for the
new sigset_t. Internally, libc is mostly rewritten to use the
new syscalls. The exception is in compat-43/sigcompat.c

The POSIX thread library has also been rewritten to use the
new sigset_t. Except, that it currently only handles NSIG
signals instead of the maximum _SIG_MAXSIG. This should not
be a problem because current applications don't use any
signals higher than NSIG.

There are version bumps for the following libraries:
libdialog
libreadline
libc
libc_r
libedit
libftpio
libss

These libraries either a) have one of the modified structures
visible in the interface, or b) use sigset_t internally and
may cause breakage if new binaries are used against libraries
that don't have the sigset_t change. This not an immediate
issue, but will be as soon as applications start using the
new range to its fullest.

NOTE: libncurses already had an version bump and has not been
given one now.

NOTE: doscmd is a real casualty and has been disconnected for
the moment. Reconnection will eventually happen after
doscmd has been fixed. I'm aware that being the last one
to touch it, I'm automaticly promoted to being maintainer.
According to good taste this means that I will receive a
badge which either will be glued or mechanically stapled,
drilled or otherwise violently forced onto me :-)

NOTE: pcvt/vttest cannot be compiled with -traditional. The
change cause sys/types to be included along the way which
contains the const and volatile modifiers. I don't consider
this a solution, but more a workaround.


51760 28-Sep-1999 marcel

Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags added so that the 'struct sigaction'
can be declared local in both functions that use the global
(static) declaration. Remove the global declaration.


51457 20-Sep-1999 phantom

Correct spelling : ascii -> ASCII

PR: docs/13702
Submitted by: Stephen J. Roznowski <sjr@home.com>
Reviewed by: mpp


50476 28-Aug-1999 peter

$Id$ -> $FreeBSD$


49828 15-Aug-1999 mpp

Various man page cleanup:

- Sort xrefs
- FreeBSD.ORG -> FreeBSD.org
- Be consistent with section names as outlines in mdoc(7)
- Other misc mdoc cleanup.

PR: doc/13144
Submitted by: Alexy M. Zelkin <phantom@cris.net>


45163 30-Mar-1999 nsayer

Cause PORT commands to use the high IP port range. This makes fetch
(and its friends) more firewall friendly.

PR: 10580
Submitted by: nsayer


35126 11-Apr-1998 phk

Correctly figure out that the remove cannot do passive mode.

PR: 6259
Reviewed & slightly modified by: phk
Submitted by: Archie Cobbs <archie@whistle.com>


34669 19-Mar-1998 charnier

.Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq


33212 10-Feb-1998 jkh

environment variables missing from ftpio(3) man page

PR: 5691
Submitted by: archie@whistle.com


31892 20-Dec-1997 jb

Change errno usage as a field in a structure and as an argument to a
function from 'errno' to 'error' so that there is no conflict with the
thread-safe definition of errno in errno.h.


30065 02-Oct-1997 fenner

Teach ftpErrString to format UNIX errnos, since at least ftpLogin()
can return UNIX errnos. When UNIX errnos catch up with FTP status
codes (e.g. at 100) a new way will have to be found to tell which
is which.

This allows fetch to print errors like
fetch: ftp.fu-berlin.de: No route to host
instead of
fetch: ftp.fu-berlin.de: Unknown error


30030 01-Oct-1997 jkh

Correct an ancient bogon which involved trying to read() from a
nuked file descriptor. This is probably why sysinstall's ftp xfer
occasionally SEGV'd if you left things alone for a long time and
the timeout code got called. Whoops!


29574 18-Sep-1997 phk

Many places in the code NULL is used in integer context, where
plain 0 should be used. This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.

PR: 2752
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>


25487 05-May-1997 jkh

Make this C++ safe.
Submitted by: Nadav Eiron <nadav@barcode.co.il>


25028 19-Apr-1997 bde

Fixed #include and/or prototype bugs in synopsis.


22993 22-Feb-1997 peter

Revert $FreeBSD$ to $Id$


21930 21-Jan-1997 jkh

Only send QUIT if the last operation didn't time out (otherwise you're
just going to hang forever on the close).


21797 17-Jan-1997 jkh

Yow! Is my face red... I just noticed (duh) that signal() always installs
the handler with SA_RESTART set, so the system calls I wanted to have the
timeout effect will just restart instead (which is NOT what I wanted).
Sheepishly use sigaction() like a good boy and make timeouts actually do
something.

Also pass errors out more effectively so that fetch(1) actually understands
what went wrong.


21673 14-Jan-1997 jkh

Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore. This update would have been
insane otherwise.


20602 17-Dec-1996 jkh

Sanitize and extend SIGALRM timeout handling.


19739 14-Nov-1996 ache

Oops, back out previous optimization, don't work as I expect
(lack of sleep)


19738 14-Nov-1996 ache

Since ftpPutURL not use hostname cache, optimize it by always closing
connection at the end of operation, so it not leave opened
file without a reason.


19731 14-Nov-1996 ache

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


19728 14-Nov-1996 ache

Oops, forget the fact that several ftp connections can be active
at the same time, so add new con_state to avoid QUIT recursion

Still should go to 2.2


19727 14-Nov-1996 ache

1) Don't allow endless recursion in ftp_close when it attempts to
send QUIT to closed connection.
2) Preserve login failure code, don't overwrite it with ftp_close
code

Should go to 2.2


18851 10-Oct-1996 jkh

Send PASV instead of PASSIVE.
Submitted-By: Archie Cobbs <archie@whistle.com>


18718 05-Oct-1996 wosch

delete doubled words, e.g.: "the the" -> "the"


18394 19-Sep-1996 peter

Make libftpio 64-bit clean.

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


17978 31-Aug-1996 jkh

Intelligently cache previous connection to host if we can still
use it.

Correct a typo bogon that had REST mistyped as RETR. No wonder fetch's
restart command didn't work! :-(


17930 30-Aug-1996 peter

cmp -s || install -c ==> install -C


17810 24-Aug-1996 jkh

D'oh! verbose output should go to stderr.


17733 21-Aug-1996 jkh

Implement a change suggested by Archie Cobbs - the seekto argument should
be zero'd only if the operation *fails*, indicating that the file
starting offset is effectively zero. This makes more sense.


17732 21-Aug-1996 jkh

Add an ftpErrString() function for returning human readable failure
codes.
Submitted-By: Archie Cobbs <archie@whistle.com>


17405 03-Aug-1996 jkh

1. Add verbose flag to ftp_login()
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


16955 04-Jul-1996 jkh

Implement an ftpVerbose() hook.
Submitted by: jmz


16781 26-Jun-1996 gpalmer

Makefile:
Add -Wall to CFLAGS

ftpio.h:
It's ftpGetModTime, not ftpModTime


16659 24-Jun-1996 jkh

Adjust docs to match reality.


16658 24-Jun-1996 jkh

Adjust the reference to ftpBinary() in the (unused) TCL wrappers.


16599 22-Jun-1996 jkh

Fix a bug in the way binary/ascii settings were being done. New
ftpAscii() call sets connection to ascii as counterpart to ftpBinary().


16543 20-Jun-1996 jkh

Make certain small things more consistent with the other stdio man pages.


16470 17-Jun-1996 jkh

Manage control connections a little better for the URL routines.
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.


16464 17-Jun-1996 jkh

Make binary mode the default.


16459 17-Jun-1996 jkh

Stamp out a potential memory leak.
Make ftpChdir return the server status again - it was more convenient.


16435 17-Jun-1996 jkh

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.


16426 17-Jun-1996 jkh

Add a feature: If the environment variable FTP_PASSIVE_MODE is defined
(the convention as established by pkg_install(1)), select passive mode
FTP automatically.


16424 17-Jun-1996 jkh

Whoops, give the authors all proper credit.


16421 17-Jun-1996 jkh

This commit was generated by cvs2svn to compensate for changes in r16420,
which included commits to RCS files with non-trunk default branches.