| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
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).
|
|
|
| |
Patches provided by Joel Baker in PR 22280, verified by myself.
|
|
|
| |
Patches provided by Joel Baker in PR 22270, verified by myself.
|
| |
|
|
|
|
| |
Remove UCB & WIDE copyrights; the progressbar functionality was
written entirely by me under the TNF copyright.
|
|
|
|
|
| |
guessed it) 'NetBSD.org'.
some mdoc fixes.
|
|
|
|
|
| |
the tty if it's not in the foreground.
ok'd by jhawk.
|
|
|
| |
before we even start when run from sysinst. Thanks also Takao Shinohara.
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
| |
progress' output ugly.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
(pulled in via reachover makefile) suitable for measuring the
input to arbitrary pipes.
This is intended for use by sysinst.
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
with an optional suffix, product (two numbers separated by `x'), and
provide range checking
|
|
|
| |
with tzcode.
|
| |
|
| |
|