History log of /netbsd-src/usr.bin/progress/progress.c (Results 1 – 25 of 25)
Revision Date Author Comments
# e1d1003b 17-Aug-2021 gson <gson@NetBSD.org>

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 tha

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.

show more ...


# a016b984 09-Aug-2021 gson <gson@NetBSD.org>

Test errno when the return value from wait() indicates an error, not
when it indicates success. PR install/56303.


# 0de2ffcf 07-Jan-2021 lukem <lukem@NetBSD.org>

progress: handle EINTR in writes. PR/55914


# d8e1fd5f 25-Apr-2020 simonb <simonb@NetBSD.org>

Whitespace nit.


# 7a9652e2 17-Jan-2015 gson <gson@NetBSD.org>

Retry read() on EINTR. Fixes premature exit of
</dev/random progress -e cat >/dev/null


# 9a313cc5 27-Jun-2012 riastradh <riastradh@NetBSD.org>

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 bett

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...

show more ...


# 6818646a 16-Sep-2011 joerg <joerg@NetBSD.org>

Use __dead


# 40771355 17-Jul-2010 tron <tron@NetBSD.org>

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.


# 89a35a0e 26-May-2008 dholland <dholland@NetBSD.org>

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.


# 3028e483 29-Apr-2008 martin <martin@NetBSD.org>

Convert to new 2 clause license


# ac798ebc 06-Jun-2007 briggs <briggs@NetBSD.org>

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 applicati

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.

show more ...


# 79b63fa6 07-Feb-2007 hubertf <hubertf@NetBSD.org>

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


# 1a7e106b 07-Feb-2007 hubertf <hubertf@NetBSD.org>

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

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


# ce8f04b1 20-Apr-2006 hubertf <hubertf@NetBSD.org>

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 valu

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@

show more ...


# ddd39082 12-Jan-2006 garbled <garbled@NetBSD.org>

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 | s

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"

show more ...


# 8d3b64e3 23-Feb-2005 dsl <dsl@NetBSD.org>

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

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)

show more ...


# f9f551db 03-Apr-2004 lukem <lukem@NetBSD.org>

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


# 849866f9 09-Mar-2004 hubertf <hubertf@NetBSD.org>

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

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.

show more ...


# 0328c523 12-Feb-2003 ross <ross@NetBSD.org>

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.


# 182f33ad 10-Feb-2003 ross <ross@NetBSD.org>

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 l

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.

show more ...


# 24b68838 22-Jan-2003 agc <agc@NetBSD.org>

Make this build on non-i386 platforms.


# 252f8847 22-Jan-2003 jhawk <jhawk@NetBSD.org>

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


# 18350cdf 22-Jan-2003 christos <christos@NetBSD.org>

not all windows have 80 columns.


# 23066b7f 22-Jan-2003 enami <enami@NetBSD.org>

Advance a pointer correctly.


# 98f6cccb 22-Jan-2003 jhawk <jhawk@NetBSD.org>

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.