aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* progress: Port for Linux and DarwinHEADtrunkCameron Katri2021-03-304-30/+47
|
* progress: handle EINTR in writes. PR/55914lukem2021-01-071-2/+6
|
* ftp: don't use restartable signalslukem2021-01-062-64/+11
| | | | | | | | | | | | | | 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
* Whitespace nit.simonb2020-04-251-3/+2
|
* Sync with 2019b (field name change)christos2019-07-031-9/+10
|
* make this compile again with -DNO_PROGRESSchristos2019-06-221-2/+6
|
* merge tzcode 2019achristos2019-04-041-1/+4
|
* updatre with latest from tzcode.christos2015-07-111-65/+77
|
* Retry read() on EINTR. Fixes premature exit ofgson2015-01-171-3/+9
| | | </dev/random progress -e cat >/dev/null
* Change some standard exit status text to ".Ex -std"snj2014-04-131-3/+2
| | | From Eitan Adler in PR bin/47790.
* Clean up #includes in progress(1).riastradh2012-06-272-16/+8
| | | | | | 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...
* Put a recursion limit to avoid DoS attacks (Maksymilian Arciemowicz)christos2011-10-221-24/+33
| | | While there do minor KNF, and do as the manual says: exit with EXIT_FAILURE
* 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.
* Fix numerous WARNS=4 issues (-Wcast-qual -Wsign-compare).lukem2009-04-122-8/+8
|
* update copyrightslukem2008-09-302-5/+5
|
* 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 TNF licenses to new 2 clause variantmartin2008-04-301-4/+1
|
* Convert to new 2 clause licensemartin2008-04-291-5/+2
|
* Remove clause 3 and 4 from TNF licensesmartin2008-04-283-26/+5
|
* Turn off the alarmtimer before resetting the SIGALRM handler back to SIG_DFL.lukem2008-01-211-4/+4
| | | | Fix from dieter roelants <dieter.NetBSD@pandora.be> Should fix PR 35630.
* Dynamically allocate the buffer used for reading data from the inputbriggs2007-06-062-9/+29
| | | | | 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.
* const-as-const-can: make the "suffixes" pointers const, as probably wasmartin2007-05-051-3/+3
| | | | intended, but done wrong originally (redundant const was removed per PR bin/36280)
* PR/36280: Christer Folkesson: Remove extra constchristos2007-05-051-3/+3
|
* * Implement -s srcaddr; uses srcaddr as the local IP address for alllukem2007-04-171-3/+3
| | | | | | | | 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.
* Use IEC 60027-2 prefixes for 2^n based prefixes.lukem2007-04-121-6/+6
|
* Update example to use KiB per recent change to ../ftp/progressbar.clukem2007-04-121-8/+8
|
* Use the IEC 60027-2 2^n based "KiB", "MiB", "GiB", (etc)lukem2007-04-121-19/+31
| | | | suffixes for byte displays since we're using 2^n scaling, instead of the SI 10^n based "KB", "MB", "GB" (etc).
* #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.
* Coverity CID 1447: Avoid buffer overflow.christos2006-05-011-2/+4
|
* Coverity CID 1448: Avoid static array overflow.christos2006-05-011-2/+4
|
* 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@
* Bump date for -e.wiz2006-01-121-2/+2
|
* Apply patch from PR bin/28717garbled2006-01-122-8/+13
| | | | | 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"
* Revert back to using an int (instead of size_t) for holding a value that maylukem2005-07-191-5/+4
| | | | | be negative. Fixes progressbar display on terminals <43 columns wide. Bug noted and solution suggested by Gavan Fantom.
* copyright maintenancelukem2005-06-091-3/+3
|
* Printf field widths and size_t don't always mix well, so cast to int.he2005-05-201-3/+3
| | | Fixes build problem for alpha.
* Use size_t instead of int where appropriate.lukem2005-05-191-5/+7
|
* gratuitous whitespace cleanup (before someone else jumps the gun...)lukem2005-04-111-4/+4
|
* 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)
* White space nitjmc2005-02-101-2/+1
|
* Fix compilation issues for NO_PROGRESSjmc2005-02-101-6/+6
|
* Support strsuftoll(3) suffixes for '-l length'.lukem2004-04-032-9/+25
| | | Provide an example of copying raw disks using dd, with a progress bar.
* -z actually passes the input file through gunzip(1).hubertf2004-03-251-2/+2
| | | Having an option to really pass it through gzip(1) would be nice...
* Drop trailing whitespace.wiz2004-03-091-2/+2
|
* Allow custom text printed before (left of) the progress bar from progress(1):hubertf2004-03-094-9/+24
| | | | | | | | | 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.
* Explicitly use base 10 when parsing numbers, to enforce the "decimal number"lukem2004-03-051-6/+8
| | | | semantics that the comments referred to and as per dd(1) (which was the origin of this functionality).
* print max rather than min in error message when numberdbj2004-01-171-3/+3
| | | parsed by strsuftollx is greater than max
* Overhaul how `build.sh tools' are used:lukem2003-10-271-6/+6
| | | | | | | | | | | | | | | | * 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).