The NetBSD Project

CVS log for src/usr.bin/ftp/progressbar.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.bin / ftp

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.21.8.1 / (download) - annotate - [select for diffs], Tue Dec 17 21:07:59 2013 UTC (10 months ago) by bouyer
Branch: netbsd-6
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

Apply patch, requested by tron in ticket #997:
	usr.bin/ftp/Makefile				patch
	usr.bin/ftp/cmds.c				patch
	usr.bin/ftp/cmdtab.c				patch
	usr.bin/ftp/extern.h				patch
	usr.bin/ftp/fetch.c				patch
	usr.bin/ftp/ftp.1				patch
	usr.bin/ftp/ftp.c				patch
	usr.bin/ftp/ftp_var.h				patch
	usr.bin/ftp/main.c				patch
	usr.bin/ftp/progressbar.c			patch
	usr.bin/ftp/ssl.c				patch
	usr.bin/ftp/ssl.h				patch
	usr.bin/ftp/util.c				patch
	usr.bin/ftp/version.h				patch

Add HTTPS support to ftp(1).

Revision 1.21.6.1 / (download) - annotate - [select for diffs], Tue Oct 30 19:00:18 2012 UTC (23 months, 3 weeks ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored) next main 1.22 (colored)

sync with head

Revision 1.22 / (download) - annotate - [select for diffs], Wed Jun 27 22:07:36 2012 UTC (2 years, 3 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, netbsd-7, agc-symver-base, agc-symver, HEAD
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

Clean up #includes in progress(1).

Sort them, omit needless ones, and add omitted needful ones.

Omissions revealed by pilfering the code and trying to build it on
Mac OS X.  We ought to have a better way to reveal these omissions...

Revision 1.20.6.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:50 2009 UTC (5 years, 5 months ago) by jym
Branch: jym-xensuspend
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.21 / (download) - annotate - [select for diffs], Sun Apr 12 10:18:52 2009 UTC (5 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jym-xensuspend-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6
Changes since 1.20: +5 -5 lines
Diff to previous 1.20 (colored)

Fix numerous WARNS=4 issues (-Wcast-qual -Wsign-compare).

Revision 1.20 / (download) - annotate - [select for diffs], Tue Sep 30 03:41:53 2008 UTC (6 years ago) by lukem
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: jym-xensuspend
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

update copyrights

Revision 1.18.4.1 / (download) - annotate - [select for diffs], Sun May 18 12:36:05 2008 UTC (6 years, 5 months ago) by yamt
Branch: yamt-pf42
Changes since 1.18: +2 -9 lines
Diff to previous 1.18 (colored) next main 1.19 (colored)

sync with head.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:13 2008 UTC (6 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, hpcarm-cleanup-nbase
Changes since 1.18: +2 -9 lines
Diff to previous 1.18 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Sun Mar 23 00:49:01 2008 UTC (6 years, 7 months ago) by matt
Branch: matt-armv6
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

sync with HEAD

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jan 21 10:31:28 2008 UTC (6 years, 9 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base
Branch point for: yamt-pf42
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

Turn off the alarmtimer before resetting the SIGALRM handler back to SIG_DFL.
Fix from dieter roelants <dieter.NetBSD@pandora.be>
Should fix PR 35630.

Revision 1.17 / (download) - annotate - [select for diffs], Sat May 5 18:09:24 2007 UTC (7 years, 5 months ago) by martin
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: matt-armv6
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

const-as-const-can: make the "suffixes" pointers const, as probably was
intended, but done wrong originally (redundant const was removed
per PR bin/36280)

Revision 1.16 / (download) - annotate - [select for diffs], Sat May 5 16:57:54 2007 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

PR/36280: Christer Folkesson: Remove extra const

Revision 1.15 / (download) - annotate - [select for diffs], Tue Apr 17 05:52:03 2007 UTC (7 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored)

* Implement -s srcaddr; uses srcaddr as the local IP address for all
  connections.
  Based on code in the version of ftp that FreeBSD had before they
  replaced it with lukemftp.
* Move error message handling into ftp_connect() rather than in the
  caller, so that more specific error reporting can occur.
* Improve consistency of various warning and error messages.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Apr 12 06:13:02 2007 UTC (7 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.13: +31 -19 lines
Diff to previous 1.13 (colored)

Use the IEC 60027-2 2^n based "KiB", "MiB", "GiB", (etc)
suffixes for byte displays since we're using 2^n scaling,
instead of the SI 10^n based "KB", "MB", "GB" (etc).

Revision 1.13 / (download) - annotate - [select for diffs], Mon May 1 23:02:03 2006 UTC (8 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.12: +4 -2 lines
Diff to previous 1.12 (colored)

Coverity CID 1447: Avoid buffer overflow.

Revision 1.12 / (download) - annotate - [select for diffs], Mon May 1 23:00:33 2006 UTC (8 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.11: +4 -2 lines
Diff to previous 1.11 (colored)

Coverity CID 1448: Avoid static array overflow.

Revision 1.6.2.5 / (download) - annotate - [select for diffs], Sun Jul 24 10:36:11 2005 UTC (9 years, 3 months ago) by tron
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0
Changes since 1.6.2.4: +4 -5 lines
Diff to previous 1.6.2.4 (colored) to branchpoint 1.6 (colored) next main 1.7 (colored)

Pull up revision 1.11 (requested by lukem in ticket #606):
Revert back to using an int (instead of size_t) for holding a value that may
be negative.
Fixes progressbar display on terminals <43 columns wide.
Bug noted and solution suggested by Gavan Fantom.

Revision 1.6.2.4 / (download) - annotate - [select for diffs], Sun Jul 24 10:28:20 2005 UTC (9 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.6.2.3: +3 -3 lines
Diff to previous 1.6.2.3 (colored) to branchpoint 1.6 (colored)

Pull up revision 1.10 (requested by lukem in ticket #606):
copyright maintenance

Revision 1.6.2.3 / (download) - annotate - [select for diffs], Sun Jul 24 10:22:59 2005 UTC (9 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.6.2.2: +3 -3 lines
Diff to previous 1.6.2.2 (colored) to branchpoint 1.6 (colored)

Pull up revision 1.9 (requested by lukem in ticket #606):
Printf field widths and size_t don't always mix well, so cast to int.
Fixes build problem for alpha.

Revision 1.6.2.2 / (download) - annotate - [select for diffs], Sun Jul 24 10:20:30 2005 UTC (9 years, 3 months ago) by tron
Branch: netbsd-3
Changes since 1.6.2.1: +5 -3 lines
Diff to previous 1.6.2.1 (colored) to branchpoint 1.6 (colored)

Pull up revision 1.8 (requested by lukem in ticket #606):
Use size_t instead of int where appropriate.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 19 00:41:05 2005 UTC (9 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.10: +4 -5 lines
Diff to previous 1.10 (colored)

Revert back to using an int (instead of size_t) for holding a value that may
be negative.
Fixes progressbar display on terminals <43 columns wide.
Bug noted and solution suggested by Gavan Fantom.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Jun 9 16:38:29 2005 UTC (9 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

copyright maintenance

Revision 1.9 / (download) - annotate - [select for diffs], Fri May 20 07:26:01 2005 UTC (9 years, 5 months ago) by he
Branch: MAIN
Changes since 1.8: +3 -3 lines
Diff to previous 1.8 (colored)

Printf field widths and size_t don't always mix well, so cast to int.
Fixes build problem for alpha.

Revision 1.8 / (download) - annotate - [select for diffs], Thu May 19 03:05:04 2005 UTC (9 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.7: +7 -5 lines
Diff to previous 1.7 (colored)

Use size_t instead of int where appropriate.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Mon May 9 17:04:52 2005 UTC (9 years, 5 months ago) by tron
Branch: netbsd-3
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

Pull up revision 1.7 (requested by lukem in ticket #266):
gratuitous whitespace cleanup (before someone else jumps the gun...)

Revision 1.7 / (download) - annotate - [select for diffs], Mon Apr 11 01:49:31 2005 UTC (9 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.6: +4 -4 lines
Diff to previous 1.6 (colored)

gratuitous whitespace cleanup (before someone else jumps the gun...)

Revision 1.6 / (download) - annotate - [select for diffs], Thu Feb 10 16:00:28 2005 UTC (9 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: netbsd-3-base
Branch point for: netbsd-3
Changes since 1.5: +6 -6 lines
Diff to previous 1.5 (colored)

Fix compilation issues for NO_PROGRESS

Revision 1.5 / (download) - annotate - [select for diffs], Tue Mar 9 17:04:24 2004 UTC (10 years, 7 months ago) by hubertf
Branch: MAIN
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.4: +7 -2 lines
Diff to previous 1.4 (colored)

Allow custom text printed before (left of) the progress bar from progress(1):

	miyu# cat openoffice-linux-1.1.0.tgz | progress -z -p 'Bytes written: ' dd of=/dev/null bs=1m
	Bytes written:    193 MB   13.83 MB/s 0+195211 records in
and:
	miyu# progress -f openoffice-linux-1.1.0.tgz -z -p 'Bytes written: ' dd of=/dev/null bs=1m
	Bytes written:  28% |******                | 57919 KB   14.12 MB/s    00:09 ETA

OK'd by lukem.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 17 12:06:18 2003 UTC (11 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.3: +2 -6 lines
Diff to previous 1.3 (colored)

tweak copyright; the stuff jason did in util.c wasn't migrated to this file.

Revision 1.3 / (download) - annotate - [select for diffs], Fri Feb 28 09:53:49 2003 UTC (11 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.2: +2 -35 lines
Diff to previous 1.2 (colored)

Crank dates on TNF copyright.
Remove UCB & WIDE copyrights; the progressbar functionality was
written entirely by me under the TNF copyright.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Feb 12 15:18:28 2003 UTC (11 years, 8 months ago) by grant
Branch: MAIN
Changes since 1.1: +4 -7 lines
Diff to previous 1.1 (colored)

change a couple #ifdef's so /usr/bin/progress doesn't stomp all over
the tty if it's not in the foreground.

ok'd by jhawk.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Tue Jan 21 16:08:09 2003 UTC (11 years, 9 months ago) by jhawk
Branch: netbsd-1-6
Changes since 1.1.2.1: +496 -0 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Abstract out progress bar support into progressbar.[ch], for inclusion
in external programs (conditionalized on -DSTANDALONE_PROGRESS).

The following moved from util.c to progressbar.c:
  alarmtimer(), progressmeter(), psummary(), ptransfer(),
  xsignal(), xsignal_restart()

The following moved from extern.h and ftp_var.h to progressbar.h:
  STALLTIME, verbose, fromatty, progress, quit_time, ttywidth

Revision 1.1.2.1, Tue Jan 21 16:08:08 2003 UTC (11 years, 9 months ago) by jhawk
Branch: netbsd-1-6
Changes since 1.1: +0 -496 lines
FILE REMOVED

file progressbar.c was added on branch netbsd-1-6 on 2003-01-21 16:08:09 +0000

Revision 1.1 / (download) - annotate - [select for diffs], Tue Jan 21 16:08:08 2003 UTC (11 years, 9 months ago) by jhawk
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6

Abstract out progress bar support into progressbar.[ch], for inclusion
in external programs (conditionalized on -DSTANDALONE_PROGRESS).

The following moved from util.c to progressbar.c:
  alarmtimer(), progressmeter(), psummary(), ptransfer(),
  xsignal(), xsignal_restart()

The following moved from extern.h and ftp_var.h to progressbar.h:
  STALLTIME, verbose, fromatty, progress, quit_time, ttywidth

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>