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.20.6.1 / (download) - annotate - [select for diffs], Wed May 13 19:19:50 2009 UTC (8 months, 4 weeks 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 (9 months, 4 weeks ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211, jym-xensuspend-nbase, jym-xensuspend-base, HEAD
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 (16 months, 1 week ago) by lukem
Branch: MAIN
CVS Tags: netbsd-5-base, 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, mjf-devfs2-base, mjf-devfs2, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, 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 (20 months, 3 weeks 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 (21 months, 1 week 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 (22 months, 2 weeks 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 (2 years 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 (2 years, 9 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 (2 years, 9 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 (2 years, 9 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 (2 years, 10 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 (3 years, 9 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 (3 years, 9 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 (4 years, 6 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 (4 years, 6 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 (4 years, 6 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 (4 years, 6 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 (4 years, 6 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 (4 years, 8 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 (4 years, 8 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 (4 years, 8 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 (4 years, 9 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 (4 years, 10 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 (5 years 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 (5 years, 11 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 (6 years, 6 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 (6 years, 11 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 (6 years, 11 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 / (download) - annotate - [select for diffs], Tue Jan 21 16:08:08 2003 UTC (7 years 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, 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>