summaryrefslogtreecommitdiffstats
path: root/bin/dd
Commit message (Collapse)AuthorAgeFilesLines
* First set of fixes to keep egcs happy. These include {} around singleimp1999-04-251-5/+6
| | | | | | | | | | statement if blocks[*] when the else could be ambiguous, not defaulting to int type and removal of some unused variables. [*] This is explicitly allowed by style(9) when the single statement spans more than one line. Reviewed by: obrien, chuckr
* Fixed printf format errors.bde1998-12-071-4/+4
|
* Describe `bs=n' more precisely. Fixed some English errors.bde1998-11-291-6/+8
| | | | Obtained from: OpenBSD
* Restore Lite-2 sccsid. Restore include of sys/types.h.charnier1998-05-136-12/+14
|
* Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.charnier1998-05-067-34/+33
|
* Exit with a nonzero status if we get killed by a SIGINT. POSIX.2bde1998-02-241-4/+5
| | | | | | | | | specifies exiting with a zero status if the file was copied successfully, and with a nonzero status if an error occurred. We are too sloppy to tell if the file was copied successfully when we get killed by a SIGINT, but it is unlikely to have been. Added a comment about related sloppiness (calling exit() from a signal handler).
* Fix printing for bytes read > 4G.asami1998-02-112-4/+4
| | | | Reviewed by: bde
* Oops, back out rev 1.5, it wasn't my intention to also commit thejoerg1998-01-071-2/+1
| | | | -g. ;)
* Use the correct value in the call to swab(3) with conv=swab. Previously,joerg1998-01-072-3/+4
| | | | | | | | | | dd if=/dev/zero of=/dev=null obs=23520 conv=swab coredumped. Please somebody review it, i'm not 105 % sure i'm understanding all this mess correctly. Detected by: Holm Tiffe <holm@geophysik.tu-freiberg.de>
* It's more portable to use <errno.h> than <sys/errno.h>eivind1997-12-151-2/+2
| | | | Pointed-out-by: bde (a long while ago)
* Sort "sparse" into alphabetical order, since dd's `conv' options needjoerg1997-11-111-2/+2
| | | | to be sorted. This temporarily broke the "osync" option.
* 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