#
1.25 |
|
17-Aug-2021 |
gson |
Add missing check for error returns from read(). Found by inspection while reviewing the changes suggested by RVP in PR install/56303, but not believed to be the cause of the failure reported in that PR.
|
#
1.24 |
|
09-Aug-2021 |
gson |
Test errno when the return value from wait() indicates an error, not when it indicates success. PR install/56303.
|
Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
|
#
1.23 |
|
07-Jan-2021 |
lukem |
progress: handle EINTR in writes. PR/55914
|
#
1.22 |
|
25-Apr-2020 |
simonb |
Whitespace nit.
|
Revision tags: netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
|
#
1.21 |
|
17-Jan-2015 |
gson |
branches: 1.21.18; Retry read() on EINTR. Fixes premature exit of </dev/random progress -e cat >/dev/null
|
Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
|
#
1.20 |
|
27-Jun-2012 |
riastradh |
branches: 1.20.10; 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 tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.19 |
|
16-Sep-2011 |
joerg |
branches: 1.19.2; Use __dead
|
Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
|
#
1.18 |
|
17-Jul-2010 |
tron |
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 tags: 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 matt-nb5-mips64-premerge-20101231 netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
|
#
1.17 |
|
26-May-2008 |
dholland |
branches: 1.17.4; 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 tags: hpcarm-cleanup-nbase yamt-pf42-base2
|
#
1.16 |
|
29-Apr-2008 |
martin |
branches: 1.16.2; Convert to new 2 clause license
|
Revision tags: yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
|
#
1.15 |
|
06-Jun-2007 |
briggs |
branches: 1.15.10; 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.
|
#
1.14 |
|
07-Feb-2007 |
hubertf |
#include inttypes.h, for strtoimax(3). Suggested by Slava Semushin <slava.semushin@gmail.com> in private email.
|
#
1.13 |
|
07-Feb-2007 |
hubertf |
* Remove unneeded ctype.h * remove unneeded {}s * add some whitespace for readability
Contributed by Slava Semushin <slava.semushin@gmail.com> in private mail.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base abandoned-netbsd-4-base netbsd-4-base chap-midi-nbase chap-midi-base
|
#
1.12 |
|
20-Apr-2006 |
hubertf |
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@
|
#
1.11 |
|
12-Jan-2006 |
garbled |
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 tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE 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-base
|
#
1.10 |
|
23-Feb-2005 |
dsl |
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)
|
#
1.9 |
|
03-Apr-2004 |
lukem |
Support strsuftoll(3) suffixes for '-l length'. Provide an example of copying raw disks using dd, with a progress bar.
|
Revision tags: netbsd-2-0-3-RELEASE 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-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-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-base
|
#
1.8 |
|
09-Mar-2004 |
hubertf |
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.
|
#
1.7 |
|
12-Feb-2003 |
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.
|
#
1.6 |
|
10-Feb-2003 |
ross |
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 tags: netbsd-1-6-base
|
#
1.5 |
|
22-Jan-2003 |
agc |
branches: 1.5.2; Make this build on non-i386 platforms.
|
#
1.4 |
|
22-Jan-2003 |
jhawk |
Drop gratuitous warning for failure to get terminal width; it makes piping progress' output ugly.
|
#
1.3 |
|
22-Jan-2003 |
christos |
not all windows have 80 columns.
|
#
1.2 |
|
22-Jan-2003 |
enami |
Advance a pointer correctly.
|
#
1.1 |
|
22-Jan-2003 |
jhawk |
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.
|
#
1.24 |
|
09-Aug-2021 |
gson |
Test errno when the return value from wait() indicates an error, not when it indicates success. PR install/56303.
|
Revision tags: cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
|
#
1.23 |
|
07-Jan-2021 |
lukem |
progress: handle EINTR in writes. PR/55914
|
#
1.22 |
|
25-Apr-2020 |
simonb |
Whitespace nit.
|
Revision tags: netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
|
#
1.21 |
|
17-Jan-2015 |
gson |
branches: 1.21.18; Retry read() on EINTR. Fixes premature exit of </dev/random progress -e cat >/dev/null
|
Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base
|
#
1.20 |
|
27-Jun-2012 |
riastradh |
branches: 1.20.10; 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 tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 yamt-pagecache-base5 yamt-pagecache-base4 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
|
#
1.19 |
|
16-Sep-2011 |
joerg |
branches: 1.19.2; Use __dead
|
Revision tags: cherry-xenmp-base bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
|
#
1.18 |
|
17-Jul-2010 |
tron |
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 tags: 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 matt-nb5-mips64-premerge-20101231 netbsd-5-1-RELEASE netbsd-5-1-RC4 matt-nb5-mips64-k15 netbsd-5-1-RC3 netbsd-5-1-RC2 netbsd-5-1-RC1 netbsd-5-0-2-RELEASE matt-nb5-mips64-premerge-20091211 matt-premerge-20091211 matt-nb5-mips64-u2-k2-k4-k7-k8-k9 matt-nb4-mips64-k7-u2a-k9b matt-nb5-mips64-u1-k1-k5 netbsd-5-0-1-RELEASE jym-xensuspend-nbase netbsd-5-0-RELEASE netbsd-5-0-RC4 netbsd-5-0-RC3 netbsd-5-0-RC2 jym-xensuspend-base netbsd-5-0-RC1 netbsd-5-base matt-mips64-base2 wrstuden-revivesa-base-3 wrstuden-revivesa-base-2 wrstuden-revivesa-base-1 yamt-pf42-base4 yamt-pf42-base3 wrstuden-revivesa-base
|
#
1.17 |
|
26-May-2008 |
dholland |
branches: 1.17.4; 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 tags: hpcarm-cleanup-nbase yamt-pf42-base2
|
#
1.16 |
|
29-Apr-2008 |
martin |
branches: 1.16.2; Convert to new 2 clause license
|
Revision tags: yamt-pf42-baseX yamt-pf42-base keiichi-mipv6-nbase keiichi-mipv6-base matt-armv6-nbase matt-armv6-prevmlocking cube-autoconf-base matt-armv6-base matt-mips64-base hpcarm-cleanup-base
|
#
1.15 |
|
06-Jun-2007 |
briggs |
branches: 1.15.10; 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.
|
#
1.14 |
|
07-Feb-2007 |
hubertf |
#include inttypes.h, for strtoimax(3). Suggested by Slava Semushin <slava.semushin@gmail.com> in private email.
|
#
1.13 |
|
07-Feb-2007 |
hubertf |
* Remove unneeded ctype.h * remove unneeded {}s * add some whitespace for readability
Contributed by Slava Semushin <slava.semushin@gmail.com> in private mail.
|
Revision tags: netbsd-4-0-1-RELEASE wrstuden-fixsa-newbase wrstuden-fixsa-base-1 netbsd-4-0-RELEASE netbsd-4-0-RC5 netbsd-4-0-RC4 netbsd-4-0-RC3 netbsd-4-0-RC2 netbsd-4-0-RC1 wrstuden-fixsa-base abandoned-netbsd-4-base netbsd-4-base chap-midi-nbase chap-midi-base
|
#
1.12 |
|
20-Apr-2006 |
hubertf |
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@
|
#
1.11 |
|
12-Jan-2006 |
garbled |
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 tags: netbsd-3-1-1-RELEASE netbsd-3-0-3-RELEASE netbsd-3-1-RELEASE netbsd-3-0-2-RELEASE netbsd-3-1-RC4 netbsd-3-1-RC3 netbsd-3-1-RC2 netbsd-3-1-RC1 netbsd-3-0-1-RELEASE 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-base
|
#
1.10 |
|
23-Feb-2005 |
dsl |
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)
|
#
1.9 |
|
03-Apr-2004 |
lukem |
Support strsuftoll(3) suffixes for '-l length'. Provide an example of copying raw disks using dd, with a progress bar.
|
Revision tags: netbsd-2-0-3-RELEASE 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-0-2-RELEASE netbsd-2-0-1-RELEASE netbsd-2-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-base
|
#
1.8 |
|
09-Mar-2004 |
hubertf |
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.
|
#
1.7 |
|
12-Feb-2003 |
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.
|
#
1.6 |
|
10-Feb-2003 |
ross |
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 tags: netbsd-1-6-base
|
#
1.5 |
|
22-Jan-2003 |
agc |
branches: 1.5.2; Make this build on non-i386 platforms.
|
#
1.4 |
|
22-Jan-2003 |
jhawk |
Drop gratuitous warning for failure to get terminal width; it makes piping progress' output ugly.
|
#
1.3 |
|
22-Jan-2003 |
christos |
not all windows have 80 columns.
|
#
1.2 |
|
22-Jan-2003 |
enami |
Advance a pointer correctly.
|
#
1.1 |
|
22-Jan-2003 |
jhawk |
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.
|