The NetBSD Project

CVS log for src/usr.bin/progress/progress.c

[BACK] Up to [cvs.netbsd.org] / src / usr.bin / progress

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Fri Sep 16 15:39:28 2011 UTC (4 months, 3 weeks ago) by joerg
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, HEAD
Changes since 1.18: +3 -4 lines
Diff to previous 1.18 (colored)

Use __dead

Revision 1.17.4.1 / (download) - annotate - [select for diffs], Sun Nov 21 18:40:44 2010 UTC (14 months, 2 weeks ago) by riz
Branch: netbsd-5
CVS Tags: matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) next main 1.18 (colored)

Pull up following revision(s) (requested by tron in ticket #1429):
	usr.bin/progress/progress.c: revision 1.18
Fix argument handling of the "-b" option on 64bit platforms. Using
"-b 1024k" would previously fail with this error message:
progress: buffer size 1048576 is greater than -1.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Jul 17 10:51:03 2010 UTC (18 months, 3 weeks ago) by tron
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Fix argument handling of the "-b" option on 64bit platforms. Using
"-b 1024k" would previously fail with this error message:

progress: buffer size 1048576 is greater than -1.

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:32:11 2008 UTC (3 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.16: +17 -3 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.15.10.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:59 2008 UTC (3 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.15.10.1: +17 -3 lines
Diff to previous 1.15.10.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

sync with head

Revision 1.17 / (download) - annotate - [select for diffs], Mon May 26 04:53:11 2008 UTC (3 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, 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, matt-premerge-20091211, 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, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend
Branch point for: netbsd-5
Changes since 1.16: +17 -3 lines
Diff to previous 1.16 (colored)

Cosmetic fix: don't exit without completing the progress bar, either on
write error or by receiving SIGPIPE. This avoids leaving the tty in a
mess. Probably addresses PR 30287.

Revision 1.15.10.1 / (download) - annotate - [select for diffs], Sun May 18 12:36:10 2008 UTC (3 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.15: +2 -5 lines
Diff to previous 1.15 (colored)

sync with head.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 29 06:53:03 2008 UTC (3 years, 9 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.15: +2 -5 lines
Diff to previous 1.15 (colored)

Convert to new 2 clause license

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jun 6 17:49:14 2007 UTC (4 years, 8 months ago) by briggs
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: yamt-pf42
Changes since 1.14: +21 -7 lines
Diff to previous 1.14 (colored)

Dynamically allocate the buffer used for reading data from the input
handle and default to 64k instead of the 1k (BUFSIZ) static buffer.
This makes a large difference in performance of some applications.
Make the buffer size tunable from the command line.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Feb 7 15:21:21 2007 UTC (5 years ago) by hubertf
Branch: MAIN
Changes since 1.13: +3 -2 lines
Diff to previous 1.13 (colored)

#include inttypes.h, for strtoimax(3).
Suggested by Slava Semushin <slava.semushin@gmail.com> in private email.

Revision 1.13 / (download) - annotate - [select for diffs], Wed Feb 7 14:06:57 2007 UTC (5 years ago) by hubertf
Branch: MAIN
Changes since 1.12: +8 -8 lines
Diff to previous 1.12 (colored)

* Remove unneeded ctype.h
* remove unneeded {}s
* add some whitespace for readability

Contributed by Slava Semushin <slava.semushin@gmail.com> in private mail.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Apr 20 23:20:55 2006 UTC (5 years, 9 months ago) by hubertf
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.11: +12 -4 lines
Diff to previous 1.11 (colored)

Don't try to determining the size of what's coming when reading from a pipe.
Instead of reporting some bogus values, print no progress at all.
(It's beyond me why stat(2) on a pipe returns funny values...
 see the PR below for some examples!)

Fixes PR bin/33207 by myself.

OK'd by mrg@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Jan 12 20:33:20 2006 UTC (6 years ago) by garbled
Branch: MAIN
Changes since 1.10: +9 -6 lines
Diff to previous 1.10 (colored)

Apply patch from PR bin/28717
This adds a -e option to progress which causes the progress bar to be
sent to stderr.  This allows using progress mid-pipe, such as:
tar -cf . | progress -e bzip -1c | ssh host "cat > file"

Revision 1.10 / (download) - annotate - [select for diffs], Wed Feb 23 22:32:31 2005 UTC (6 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: netbsd-3-base, 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, netbsd-3
Changes since 1.9: +29 -18 lines
Diff to previous 1.9 (colored)

Exit with any failure code from the cmd or gzip.
Decode gzip -l output with strtoimax() (not sscanf()) so we don't use an
uninitialised variable if the output format isn't what we expect.
This might fix some installation PRs (no error being reported)

Revision 1.9 / (download) - annotate - [select for diffs], Sat Apr 3 06:19:22 2004 UTC (7 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.8: +4 -3 lines
Diff to previous 1.8 (colored)

Support strsuftoll(3) suffixes for '-l length'.
Provide an example of copying raw disks using dd, with a progress bar.

Revision 1.8 / (download) - annotate - [select for diffs], Tue Mar 9 17:04:24 2004 UTC (7 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.7: +8 -4 lines
Diff to previous 1.7 (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.5.2.3 / (download) - annotate - [select for diffs], Mon Jun 2 14:33:57 2003 UTC (8 years, 8 months ago) by tron
Branch: netbsd-1-6
CVS Tags: 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
Changes since 1.5.2.2: +18 -6 lines
Diff to previous 1.5.2.2 (colored) to branchpoint 1.5 (colored) next main 1.6 (colored)

Pull up revision 1.7 (requested by ross):
Sigh, use an even more elaborate wait loop; it turns out we have a child
before we even start when run from sysinst. Thanks also Takao Shinohara.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Feb 12 00:58:34 2003 UTC (8 years, 11 months ago) by ross
Branch: MAIN
Changes since 1.6: +18 -6 lines
Diff to previous 1.6 (colored)

Sigh, use an even more elaborate wait loop; it turns out we have a child
before we even start when run from sysinst. Thanks also Takao Shinohara.

Revision 1.5.2.2 / (download) - annotate - [select for diffs], Mon Feb 10 09:39:12 2003 UTC (9 years ago) by jmc
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.5.2.1: +219 -0 lines
Diff to previous 1.5.2.1 (colored) to branchpoint 1.5 (colored)

Pullup rev 1.6 (requested by ross in ticket #1158)
 Fix wait call to loop which prevents a sysinst coredump. PR#20275

Revision 1.6 / (download) - annotate - [select for diffs], Mon Feb 10 09:10:01 2003 UTC (9 years ago) by ross
Branch: MAIN
Changes since 1.5: +4 -3 lines
Diff to previous 1.5 (colored)

Fix a race that can abort a sysinst run.
Closes bin/20275, thank you Takao Shinohara: good analysis.

This program appeared less than 3 weeks ago and it has already been
pulled up to 1.6.1?  At the last minute?  And with serious bugs?
ISTM that the release branch isn't supposed to work that way. It
isn't stable, it had 4 patches in 2 days, and has averaged a
patch every 4 days during its short lifetime.

Revision 1.5.2.1, Wed Jan 22 10:44:17 2003 UTC (9 years ago) by jmc
Branch: netbsd-1-6
Changes since 1.5: +0 -218 lines
FILE REMOVED

file progress.c was added on branch netbsd-1-6 on 2003-02-10 09:39:12 +0000

Revision 1.5 / (download) - annotate - [select for diffs], Wed Jan 22 10:44:17 2003 UTC (9 years ago) by agc
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

Make this build on non-i386 platforms.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Jan 22 04:11:34 2003 UTC (9 years ago) by jhawk
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)

Drop gratuitous warning for failure to get terminal width; it makes piping
progress' output ugly.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jan 22 03:24:21 2003 UTC (9 years ago) by christos
Branch: MAIN
Changes since 1.2: +9 -3 lines
Diff to previous 1.2 (colored)

not all windows have 80 columns.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 22 03:13:32 2003 UTC (9 years ago) by enami
Branch: MAIN
Changes since 1.1: +6 -5 lines
Diff to previous 1.1 (colored)

Advance a pointer correctly.

Revision 1.1 / (download) - annotate - [select for diffs], Wed Jan 22 00:14:12 2003 UTC (9 years ago) by jhawk
Branch: MAIN

progress(1) is a standalone version of lukemftp's progress bar
(pulled in via reachover makefile) suitable for measuring the
input to arbitrary pipes.
This is intended for use by sysinst.

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>