aboutsummaryrefslogtreecommitdiffstats
path: root/progressbar.c
Commit message (Collapse)AuthorAgeFilesLines
* ftp: don't use restartable signalslukem2021-01-061-61/+9
| | | | | | | | | | | | | | 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
* make this compile again with -DNO_PROGRESSchristos2019-06-221-2/+6
|
* Clean up #includes in progress(1).riastradh2012-06-271-3/+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...
* Fix numerous WARNS=4 issues (-Wcast-qual -Wsign-compare).lukem2009-04-121-5/+5
|
* update copyrightslukem2008-09-301-3/+3
|
* Remove clause 3 and 4 from TNF licensesmartin2008-04-281-9/+2
|
* 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.
* 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 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).
* Coverity CID 1447: Avoid buffer overflow.christos2006-05-011-2/+4
|
* Coverity CID 1448: Avoid static array overflow.christos2006-05-011-2/+4
|
* 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
|
* Fix compilation issues for NO_PROGRESSjmc2005-02-101-6/+6
|
* Allow custom text printed before (left of) the progress bar from progress(1):hubertf2004-03-091-2/+7
| | | | | | | | | 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.
* tweak copyright; the stuff jason did in util.c wasn't migrated to this file.lukem2003-07-171-6/+2
|
* Crank dates on TNF copyright.lukem2003-02-281-35/+2
| | | | Remove UCB & WIDE copyrights; the progressbar functionality was written entirely by me under the TNF copyright.
* change a couple #ifdef's so /usr/bin/progress doesn't stomp all overgrant2003-02-121-7/+4
| | | | | the tty if it's not in the foreground. ok'd by jhawk.
* Abstract out progress bar support into progressbar.[ch], for inclusionjhawk2003-01-211-0/+496
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