aboutsummaryrefslogtreecommitdiffstats
path: root/progress.1
diff options
context:
space:
mode:
authorbriggs <briggs@NetBSD.org>2007-06-06 17:49:14 +0000
committerbriggs <briggs@NetBSD.org>2007-06-06 17:49:14 +0000
commit55b8a30049a0797789c8929094bbb074cfd7469d (patch)
treeb9bdc8210bb0dd0571d029141f0d1c3af78d1e27 /progress.1
parentcf25235c9be0863486788bf1e4b6dbde3c6f5476 (diff)
downloadbsd-progress-55b8a30049a0797789c8929094bbb074cfd7469d.tar.gz
bsd-progress-55b8a30049a0797789c8929094bbb074cfd7469d.tar.zst
bsd-progress-55b8a30049a0797789c8929094bbb074cfd7469d.zip
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.
Diffstat (limited to 'progress.1')
-rw-r--r--progress.110
1 files changed, 8 insertions, 2 deletions
diff --git a/progress.1 b/progress.1
index 3a19ab1..ac35bd3 100644
--- a/progress.1
+++ b/progress.1
@@ -1,4 +1,4 @@
-.\" $NetBSD: progress.1,v 1.12 2007/04/12 06:31:20 lukem Exp $
+.\" $NetBSD: progress.1,v 1.13 2007/06/06 17:49:14 briggs Exp $
.\"
.\" Copyright (c) 2003-2007 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -30,7 +30,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd April 12, 2007
+.Dd June 6, 2007
.Dt PROGRESS 1
.Os
.Sh NAME
@@ -39,6 +39,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl ez
+.Op Fl b Ar buffersize
.Op Fl f Ar file
.Op Fl l Ar length
.Op Fl p Ar prefix
@@ -65,6 +66,11 @@ simply displays a count of the data and the data rate.
.Pp
The options are as follows:
.Bl -tag -width XlXlengthXX
+.It Fl b Ar buffersize
+Read in buffers of the specified size (default 64k).
+An optional suffix (per
+.Xr strsuftoll 3 )
+may be given.
.It Fl e
Display progress to standard error instead of standard output.
.It Fl f Ar file