summaryrefslogtreecommitdiffstats
path: root/bin/dd/dd.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC r295749:thomas2016-04-191-0/+1
| | | | | | | | | Reorganize the handling all-zeroes terminal block in sparse mode PR: 189284 (original PR whose fix introduced this bug) PR: 207092
* MFC r264059+264067:delphij2014-04-171-27/+30
| | | | | | | | | | | | Implement GNU's extension of 'status' operand. The GNU syntax is borrowed where syntax status=noxfer means no transfer statistics and status=none means no status information at all. This feature is useful because the statistics information can sometimes be annoying, and redirecting stderr to /dev/null would mean error messages also gets silenced. Obtained from: OpenBSD
* Add a "fillchar" command line argument to dd(1) that permits the userrwatson2004-08-151-0/+1
| | | | | | | to specify an alternative padding character when using a conversion mode, or when using noerror with sync and an input error occurs. This facilities reading old and error-prone media by allowing the user to more effectively mark error blocks in the output stream.
* Remove clause 3 from the UCB licenses.markm2004-04-061-4/+0
| | | | OK'ed by: imp, core
* Fixed some style bugs (mainly unsorting and tab lossage in previous commit).bde2004-03-061-16/+15
|
* Teach dd(1) about parity bits.phk2004-03-051-0/+6
|
* WARNS=4 fixes. This would be WARNS=9 if we were -std=99 instead ofmarkm2003-02-271-7/+7
| | | | | | -ansi, due to 'long long'. Reviewed by: green (slightly earlier version)
* Fix warnings inspired by lint, a commercial lint and WARNS=4.markm2002-02-221-4/+0
|
* Various cleanups are made to reduce warnings and make code prettier :)green2000-07-011-2/+3
| | | | | Also, check for ftruncate() return value and die on failure, but only try to ftruncate() when the file is a regular file.
* Even more dd(1) cleanups! Thanks to Bruce for staying on my case untilgreen1999-09-131-12/+13
| | | | we're done (not yet!) :)
* ISDISK -> ISSEEKgreen1999-09-121-1/+1
| | | | Allow a device type of D_DISK or D_MEM to be ISSEEK.
* Even more cleanups to dd(1). This is probably the culmination of thegreen1999-09-121-14/+14
| | | | | | | | | | | | | BDEification process of dd(1). Most of the changes are from BDE's archive. Support for negative offsets is gone again, but the case where you lseek() onto byte -1 of something from a negative offset using seek/skip is fixed; if you end up on -1, you won't get a false positive lseek failure. The biggest changes are to data types (more size_t, for instance) and argument parsing. skip/seek on /dev/{,k}mem now occurs (instead of "read until you reach the offset") due to mem devices now being D_DISK. Some const things are now correctly declared as such, and the "case table" building is better. The only thing that seems to be left to make dd(1) everything TOG wants it to be is l10n.
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* Implement seekability for disk devices (not just regular files).green1999-07-131-2/+3
| | | | | | Also, fix pos_out() to do the same checks pos_in() did. Done for: jdp, luigi, the good of the world
* This is the second round of dd(1) changes. Some changes made/reversed bygreen1999-06-201-16/+14
| | | | | | | | request of Bruce. More changes may follow later. 'g' multiplier has been added (i.e. dd seek=5g if=bigfile.) Some minor corrections were made as well. Noticed by: bde
* Miscellaneous dd(1) changes: mainly fixing variable types (size_t, ssize_t,green1999-06-191-16/+18
| | | | | off_t, int, u_int64_t, etc.). dd(1) should now work properly with REALLY big amounts of data.
* Fix printing for bytes read > 4G.asami1998-02-111-2/+2
| | | | Reviewed by: bde
* Teach dd(1) about an option to write sparse files. Can be useful forjoerg1997-10-111-1/+2
| | | | | | | things like diskless clients' swap files etc. Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many stylistic changes by me)
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Bruce says: "You have been programming in the kernel for too long :-)."phk1996-11-131-2/+2
| | | | | | | | | | | | | | | | | 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-121-2/+2
| | | | Some heuristics to avoid overflow in calculation attempted.
* Added $Id$dg1994-09-241-0/+1
|
* BSD 4.4 Lite bin Sourcesrgrimes1994-05-261-0/+96
OpenPOWER on IntegriCloud