aboutsummaryrefslogtreecommitdiffstats
path: root/progress.c
Commit message (Collapse)AuthorAgeFilesLines
* progress: Port for Linux and DarwinHEADtrunkCameron Katri2021-03-301-4/+12
|
* progress: handle EINTR in writes. PR/55914lukem2021-01-071-2/+6
|
* Whitespace nit.simonb2020-04-251-3/+2
|
* Retry read() on EINTR. Fixes premature exit ofgson2015-01-171-3/+9
| | | </dev/random progress -e cat >/dev/null
* Clean up #includes in progress(1).riastradh2012-06-271-13/+4
| | | | | | 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...
* Use __deadjoerg2011-09-161-4/+3
|
* Fix argument handling of the "-b" option on 64bit platforms. Usingtron2010-07-171-3/+3
| | | | | "-b 1024k" would previously fail with this error message: progress: buffer size 1048576 is greater than -1.
* Cosmetic fix: don't exit without completing the progress bar, either ondholland2008-05-261-3/+17
| | | | write error or by receiving SIGPIPE. This avoids leaving the tty in a mess. Probably addresses PR 30287.
* Convert to new 2 clause licensemartin2008-04-291-5/+2
|
* Dynamically allocate the buffer used for reading data from the inputbriggs2007-06-061-7/+21
| | | | | 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.
* #include inttypes.h, for strtoimax(3).hubertf2007-02-071-2/+3
| | | Suggested by Slava Semushin <slava.semushin@gmail.com> in private email.
* * Remove unneeded ctype.hhubertf2007-02-071-8/+8
| | | | | | * remove unneeded {}s * add some whitespace for readability Contributed by Slava Semushin <slava.semushin@gmail.com> in private mail.
* Don't try to determining the size of what's coming when reading from a pipe.hubertf2006-04-201-4/+12
| | | | | | | | | 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@
* Apply patch from PR bin/28717garbled2006-01-121-6/+9
| | | | | 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"
* Exit with any failure code from the cmd or gzip.dsl2005-02-231-18/+29
| | | | | 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)
* Support strsuftoll(3) suffixes for '-l length'.lukem2004-04-031-3/+4
| | | Provide an example of copying raw disks using dd, with a progress bar.
* Allow custom text printed before (left of) the progress bar from progress(1):hubertf2004-03-091-4/+8
| | | | | | | | | 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.
* Sigh, use an even more elaborate wait loop; it turns out we have a childross2003-02-121-6/+18
| | | before we even start when run from sysinst. Thanks also Takao Shinohara.
* Fix a race that can abort a sysinst run.ross2003-02-101-3/+4
| | | | | | | | | 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.
* Make this build on non-i386 platforms.agc2003-01-221-3/+4
|
* Drop gratuitous warning for failure to get terminal width; it makes pipingjhawk2003-01-221-3/+2
| | | progress' output ugly.
* not all windows have 80 columns.christos2003-01-221-3/+9
|
* Advance a pointer correctly.enami2003-01-221-5/+6
|
* progress(1) is a standalone version of lukemftp's progress barjhawk2003-01-221-0/+211
(pulled in via reachover makefile) suitable for measuring the input to arbitrary pipes. This is intended for use by sysinst.