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.22.24.3 / (download) - annotate - [select for diffs], Mon Sep 12 17:08:13 2022 UTC (18 months, 2 weeks ago) by martin
Branch: netbsd-8
Changes since 1.22.24.2: +13 -61 lines
Diff to previous 1.22.24.2 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

Catch up to current, requested by christos in ticket #1763:

        usr.bin/ftp/Makefile                            up to 1.39
        usr.bin/ftp/cmds.c                              up to 1.141
        usr.bin/ftp/complete.c                          up to 1.47
        usr.bin/ftp/domacro.c                           up to 1.23
        usr.bin/ftp/extern.h                            up to 1.82
        usr.bin/ftp/fetch.c                             up to 1.235
        usr.bin/ftp/ftp.1                               up to 1.147
        usr.bin/ftp/ftp.c                               up to 1.174
        usr.bin/ftp/ftp_var.h                           up to 1.86
        usr.bin/ftp/main.c                              up to 1.128
        usr.bin/ftp/progressbar.c                       up to 1.24
        usr.bin/ftp/progressbar.h                       up to 1.9
        usr.bin/ftp/ssl.c                               up to 1.12
        usr.bin/ftp/ssl.h                               up to 1.5
        usr.bin/ftp/util.c                              up to 1.164
        usr.bin/ftp/version.h                           up to 1.94

ftp(1): validate address from PASV and LPSV response.
ftp(1): use raw write(2) instead of fwrite(3) to avoid stream
corruption because of the progress bar interrupts.
Fixes for PR 56219 and PR 55857.
PR 57003: Support relative redirects.

Revision 1.23.2.2 / (download) - annotate - [select for diffs], Mon Sep 12 17:06:56 2022 UTC (18 months, 2 weeks ago) by martin
Branch: netbsd-9
Changes since 1.23.2.1: +2 -2 lines
Diff to previous 1.23.2.1 (colored) to branchpoint 1.23 (colored) next main 1.24 (colored)

Catch up to current, requested by christos in ticket #1523

	usr.bin/ftp/Makefile				up to 1.39
	usr.bin/ftp/fetch.c				up to 1.235
	usr.bin/ftp/ftp.1				up to 1.147
	usr.bin/ftp/ftp_var.h				up to 1.86
	usr.bin/ftp/main.c				up to 1.128
	usr.bin/ftp/ssl.c				up to 1.12
	usr.bin/ftp/util.c				up to 1.164
	usr.bin/ftp/version.h				up to 1.94

PR 57003: Support relative redirects.

Revision 1.22.24.2 / (download) - annotate - [select for diffs], Mon Sep 12 15:05:21 2022 UTC (18 months, 2 weeks ago) by martin
Branch: netbsd-8
Changes since 1.22.24.1: +61 -13 lines
Diff to previous 1.22.24.1 (colored) to branchpoint 1.22 (colored)

Backout ticket #1763 for now - trust anchors are not solved.

Revision 1.22.24.1 / (download) - annotate - [select for diffs], Mon Sep 12 14:46:51 2022 UTC (18 months, 2 weeks ago) by martin
Branch: netbsd-8
Changes since 1.22: +13 -61 lines
Diff to previous 1.22 (colored)

Catch up to current, requested by christos in ticket #1763:

	usr.bin/ftp/Makefile                            up to 1.39
	usr.bin/ftp/cmds.c                              up to 1.141
	usr.bin/ftp/complete.c                          up to 1.47
	usr.bin/ftp/domacro.c                           up to 1.23
	usr.bin/ftp/extern.h                            up to 1.82
	usr.bin/ftp/fetch.c                             up to 1.235
	usr.bin/ftp/ftp.1                               up to 1.147
	usr.bin/ftp/ftp.c                               up to 1.174
	usr.bin/ftp/ftp_var.h                           up to 1.86
	usr.bin/ftp/main.c                              up to 1.128
	usr.bin/ftp/progressbar.c                       up to 1.24
	usr.bin/ftp/progressbar.h                       up to 1.9
	usr.bin/ftp/ssl.c                               up to 1.11
	usr.bin/ftp/ssl.h                               up to 1.5
	usr.bin/ftp/util.c                              up to 1.164
	usr.bin/ftp/version.h                           up to 1.94

ftp(1): validate address from PASV and LPSV response.
ftp(1): use raw write(2) instead of fwrite(3) to avoid stream
corruption because of the progress bar interrupts.
Fixes for PR 56219 and PR 55857.
PR 57003: Support relative redirects.

Revision 1.23.2.1 / (download) - annotate - [select for diffs], Fri Jan 29 20:58:19 2021 UTC (3 years, 1 month ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE
Changes since 1.23: +9 -61 lines
Diff to previous 1.23 (colored)

Pull up following revision(s) (requested by lukem in ticket #1190):

	usr.bin/ftp/progressbar.c: revision 1.24
	usr.bin/ftp/ssl.c: revision 1.9
	usr.bin/ftp/progressbar.h: revision 1.9
	usr.bin/ftp/ftp.c: revision 1.171
	usr.bin/ftp/version.h: revision 1.92

ftp: don't use restartable signals

Refactor to not rely upon restartable signals (SA_RESTART),
possibly fixing intermittent failures with -q QUITTIME.
ftp transfers: handle EINTR/EAGAIN in copy_bytes(),
instead of relying upon restartable signals.

http/https transfers: Explicitly print an error similar to
progressmeter() when timing-out for -Q QUITTIME in fetch_wait(),
and set errno to ETIMEDOUT so that the warn() in fetch_url()
prints a more accurate error message.

PR/55857

Revision 1.24 / (download) - annotate - [select for diffs], Wed Jan 6 04:43:14 2021 UTC (3 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, HEAD
Changes since 1.23: +9 -61 lines
Diff to previous 1.23 (colored)

ftp: don't use restartable signals

Refactor to not rely upon restartable signals (SA_RESTART),
possibly fixing intermittent failures with -q QUITTIME.

ftp transfers: handle EINTR/EAGAIN in copy_bytes(),
instead of relying upon restartable signals.

http/https transfers: Explicitly print an error similar to
progressmeter() when timing-out for -Q QUITTIME in fetch_wait(),
and set errno to ETIMEDOUT so that the warn() in fetch_url()
prints a more accurate error message.

PR/55857

Revision 1.22.32.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:42 2020 UTC (3 years, 11 months ago) by martin
Branch: phil-wifi
Changes since 1.22: +6 -2 lines
Diff to previous 1.22 (colored) next main 1.23 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.23 / (download) - annotate - [select for diffs], Sat Jun 22 23:40:33 2019 UTC (4 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-9-base, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp
Branch point for: netbsd-9
Changes since 1.22: +6 -2 lines
Diff to previous 1.22 (colored)

make this compile again with -DNO_PROGRESS

Revision 1.21.8.1 / (download) - annotate - [select for diffs], Tue Dec 17 21:07:59 2013 UTC (10 years, 3 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 (11 years, 4 months 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 (11 years, 9 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, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20190609, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: phil-wifi, netbsd-8
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 (14 years, 10 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 (14 years, 11 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 (15 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, 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-5-RELEASE, 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 (15 years, 10 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 (15 years, 11 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 (16 years 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 (16 years, 2 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 (16 years, 10 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 (16 years, 10 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 (16 years, 11 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 (16 years, 11 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 (17 years, 11 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 (17 years, 11 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 (18 years, 8 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 (18 years, 8 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 (18 years, 8 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 (18 years, 8 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 (18 years, 8 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 (18 years, 9 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 (18 years, 10 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 (18 years, 10 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 (18 years, 10 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 (18 years, 11 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 (19 years, 1 month 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 (20 years 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 (20 years, 8 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 (21 years, 1 month 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 (21 years, 1 month 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 (21 years, 2 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 (21 years, 2 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 (21 years, 2 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>