summaryrefslogtreecommitdiffstats
path: root/bin/dd
Commit message (Collapse)AuthorAgeFilesLines
* Teach dd(1) about an option to write sparse files. Can be useful forjoerg1997-10-114-7/+45
| | | | | | | things like diskless clients' swap files etc. Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many stylistic changes by me)
* Add <sys/errno.h>eivind1997-10-091-1/+2
|
* make signal handlers errno safeeivind1997-10-081-1/+3
| | | | Obtained from: OpenBSD (file rev 1.5) Theo de Raadt <deraadt@openbsd.org>
* Slightly improved fix compared to my insirationeivind1997-10-081-1/+3
| | | | | | | don't munge argv strings -- copy them first. avoids 'w' showing: deraadt p8 zeus.theos.com 8:26AM 3 dd if of bs Obtained from: OpenBSD (file rev 1.3) by Theo de Raadt <deraadt@openbsd.org>
* Pad the input buffer whenever sync is used, not just if the noerror flagjlemon1997-08-191-10/+12
| | | | | | | | | | is also set. Change osync to not to tack on an empty block if the input buffer is null, or an even multiple of the blocksize. Also change osync to pad the output with nulls/spaces depending whether this is a block-oriented conversion or not (same as sync). PR: 3818
* Fixed overflow for attempts to seek to offsets > ULONG_MAX. See thebde1997-04-301-2/+2
| | | | | | OpenBSD version for more complete fixes. E.g., to seek to offsets > INT_MAX using a block size of 1, block numbers need to be off_t's instead of u_long's.
* Change spelling of ECBDIC to EBCDIC. Closes PR #3402steve1997-04-281-2/+2
| | | | Submitted by: h-nokubi@nmit.mt.nec.co.jp
* Revert $FreeBSD$ to $Id$peter1997-02-2210-10/+10
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1410-10/+10
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* -Wall cleaning.steve1996-12-146-15/+15
|
* Bruce says: "You have been programming in the kernel for too long :-)."phk1996-11-135-40/+25
| | | | | | | | | | | | | | | | | and he's right ... I forgot about this floating point stuff you can use in user-land :-) Increase precision of duration to microseconds. No heuristics to avoid overflow in calculation needed - just depend on DBL_MAX being a bit larger than LONG_MAX. Use double instead of `struct timeval' in dd.h so that everything doesn't have to include <sys/time.h>. Fixed style bugs in recent and old FreeBSD changes. Reviewed by: phk Submitted by: bde
* Increase precision of duration to milliseconds.phk1996-11-125-14/+34
| | | | Some heuristics to avoid overflow in calculation attempted.
* Add setlocale LC_CTYPEache1995-10-231-1/+3
|
* More koshering [ul]case fix, don't use pre-initialized tables at all,ache1995-01-172-76/+14
| | | | treat 0xFF as valid character.
* Make conv=[lu]case works with localized ctype (8bit)ache1995-01-171-2/+12
|
* Added $Id$dg1994-09-2410-0/+16
|
* Applied patch to make -Wall and -Dlint shut up.phk1994-09-202-4/+5
| | | | | Reviewed by: phk Submitted by: Josef Grosch <joeg@gagme.wwa.com>
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-2610-0/+2179
OpenPOWER on IntegriCloud