aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22280, verified by myself.
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-6/+2
| | | Patches provided by Joel Baker in PR 22270, verified by myself.
* 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-282-102/+4
| | | | Remove UCB & WIDE copyrights; the progressbar functionality was written entirely by me under the TNF copyright.
* The correct capitalisation of 'NetBSD.org' is (yougrant2003-02-141-2/+3
| | | | | guessed it) 'NetBSD.org'. some mdoc fixes.
* change a couple #ifdef's so /usr/bin/progress doesn't stomp all overgrant2003-02-122-9/+6
| | | | | the tty if it's not in the foreground. ok'd by jhawk.
* 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.
* remove section name comments -- they're in the template.grant2003-02-101-6/+1
|
* 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.
* Use definition in "namespace.h" to rename functions, not home grown.itohy2003-02-081-10/+5
|
* 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.
* Remove second item in BUGS section; it is fixed in progress.c rev. 1.2.enami2003-01-221-13/+1
|
* not all windows have 80 columns.christos2003-01-221-3/+9
|
* Advance a pointer correctly.enami2003-01-221-5/+6
|
* use ftp(1) instead of lukemftplukem2003-01-221-2/+2
|
* need bsd.own.mk for NETBSDSRCDIRlukem2003-01-221-4/+7
|
* progress(1) is a standalone version of lukemftp's progress barjhawk2003-01-223-0/+359
| | | | | (pulled in via reachover makefile) suitable for measuring the input to arbitrary pipes. This is intended for use by sysinst.
* Abstract out progress bar support into progressbar.[ch], for inclusionjhawk2003-01-212-0/+660
| | | | | | | | | | 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
* add strsuftoll(3) and strsuftollx(3) - parse a string for a numberlukem2002-11-291-0/+254
| | | | with an optional suffix, product (two numbers separated by `x'), and provide range checking
* Merge in recent changes from the private version of this header distributedkleink1998-07-301-3/+12
| | | with tzcode.
* merge lite-2perry1998-02-021-4/+4
|
* add parens in isleap() for gcc -Wallmikel1997-07-251-2/+2
|