| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
| |
</dev/random progress -e cat >/dev/null
|
|
|
| |
From Eitan Adler in PR bin/47790.
|
|
|
|
|
|
| |
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...
|
|
|
| |
While there do minor KNF, and do as the manual says: exit with EXIT_FAILURE
|
| |
|
|
|
|
|
| |
"-b 1024k" would previously fail with this error message:
progress: buffer size 1048576 is greater than -1.
|
| |
|
| |
|
|
|
|
| |
write error or by receiving SIGPIPE. This avoids leaving the tty in a
mess. Probably addresses PR 30287.
|
| |
|
| |
|
| |
|
|
|
|
| |
Fix from dieter roelants <dieter.NetBSD@pandora.be>
Should fix PR 35630.
|
|
|
|
|
| |
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.
|
|
|
|
| |
intended, but done wrong originally (redundant const was removed
per PR bin/36280)
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
suffixes for byte displays since we're using 2^n scaling,
instead of the SI 10^n based "KB", "MB", "GB" (etc).
|
|
|
| |
Suggested by Slava Semushin <slava.semushin@gmail.com> in private email.
|
|
|
|
|
|
| |
* remove unneeded {}s
* add some whitespace for readability
Contributed by Slava Semushin <slava.semushin@gmail.com> in private mail.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
|
|
|
|
| |
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"
|
|
|
|
|
| |
be negative.
Fixes progressbar display on terminals <43 columns wide.
Bug noted and solution suggested by Gavan Fantom.
|
| |
|
|
|
| |
Fixes build problem for alpha.
|
| |
|
| |
|
|
|
|
|
| |
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)
|
| |
|
| |
|
|
|
| |
Provide an example of copying raw disks using dd, with a progress bar.
|
|
|
| |
Having an option to really pass it through gzip(1) would be nice...
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
semantics that the comments referred to and as per dd(1) (which was the
origin of this functionality).
|
|
|
| |
parsed by strsuftollx is greater than max
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
|