#
4ed95537 |
| 25-Jan-2002 |
Brian Feldman <green@FreeBSD.org> |
Commit general cleanups (separate get_num() and get_off_t() functions to debogosify some of the command-line string-number conversions into an unsigned and signed variant.)
|
Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0 |
|
#
53885065 |
| 23-Oct-2000 |
Brian Feldman <green@FreeBSD.org> |
Allow negative seek offsets for files that can be seeked upon. It makes dd(1) a more complete "filter", even if this functionality is limited to seekable streams.
|
Revision tags: release/4.1.1_cvs, release/4.1.0 |
|
#
c15c898e |
| 01-Jul-2000 |
Brian Feldman <green@FreeBSD.org> |
Various cleanups are made to reduce warnings and make code prettier :) Also, check for ftruncate() return value and die on failure, but only try to ftruncate() when the file is a regular file.
|
Revision tags: release/3.5.0_cvs, release/4.0.0_cvs |
|
#
a6d413e7 |
| 26-Feb-2000 |
Brian Feldman <green@FreeBSD.org> |
Add iseek= and oseek= aliases for the preexisting skip= and seek= operands. Can _YOU_ tell skip= and seek= apart with 100% accuracy every time?
This also seems to make us option-for-option compatib
Add iseek= and oseek= aliases for the preexisting skip= and seek= operands. Can _YOU_ tell skip= and seek= apart with 100% accuracy every time?
This also seems to make us option-for-option compatible with the Solaris dd(1).
Approved by: jkh Suggested by: peter
show more ...
|
Revision tags: release/3.4.0_cvs |
|
#
dd923702 |
| 08-Dec-1999 |
Brian Feldman <green@FreeBSD.org> |
I've been Brucified! I did evil things with typedefs, but I'll do it the correct (but less aesthetic) way, now. New lesson: correctness and aestheticity may be mutually exclusive at times.
Brucifi
I've been Brucified! I did evil things with typedefs, but I'll do it the correct (but less aesthetic) way, now. New lesson: correctness and aestheticity may be mutually exclusive at times.
Brucified by: bde
show more ...
|
#
67f80d12 |
| 07-Dec-1999 |
Brian Feldman <green@FreeBSD.org> |
Do proper constification in args.c. This shuts up -Wcast-qual (thanks, bfumerola for that pointer!) in GCC complaining about losing a const.
While I'm here, might as well mark in the Makefile that
Do proper constification in args.c. This shuts up -Wcast-qual (thanks, bfumerola for that pointer!) in GCC complaining about losing a const.
While I'm here, might as well mark in the Makefile that I'm the ${MAINTAINER}. It seems like that's what everyone's doing these days.
show more ...
|
#
5ff6541e |
| 16-Sep-1999 |
Brian Feldman <green@FreeBSD.org> |
Make count=0 set cpy_cnt to -1, which is slight overloading, but makes what I was trying to do work much better (ie at all. I could have sworn it was working...) Fix a SEEK_SET to be SEEK_CUR, and m
Make count=0 set cpy_cnt to -1, which is slight overloading, but makes what I was trying to do work much better (ie at all. I could have sworn it was working...) Fix a SEEK_SET to be SEEK_CUR, and make Bruce's lseek() test work correctly.
show more ...
|
Revision tags: release/3.3.0_cvs |
|
#
1838cf56 |
| 16-Sep-1999 |
Brian Feldman <green@FreeBSD.org> |
Let count=-something fail, while count=0 may succeed, thus making dd(1) useful as a seeking-tool as well as its many other uses. Previously, dd(1) would succeed with count=0, but wouldn't get to the
Let count=-something fail, while count=0 may succeed, thus making dd(1) useful as a seeking-tool as well as its many other uses. Previously, dd(1) would succeed with count=0, but wouldn't get to the point that blocks were to be read/written. This is a more useful behavior, and this specific case doesn't seem to be handled by POSIX.
show more ...
|
#
7599187e |
| 13-Sep-1999 |
Brian Feldman <green@FreeBSD.org> |
Even more dd(1) cleanups! Thanks to Bruce for staying on my case until we're done (not yet!) :)
|
#
58687472 |
| 12-Sep-1999 |
Brian Feldman <green@FreeBSD.org> |
Even more cleanups to dd(1). This is probably the culmination of the BDEification process of dd(1). Most of the changes are from BDE's archive. Support for negative offsets is gone again, but the cas
Even more cleanups to dd(1). This is probably the culmination of the 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.
show more ...
|
#
e14f7e78 |
| 11-Sep-1999 |
Brian Feldman <green@FreeBSD.org> |
Make a bit more headway with dd's argument parsing, etc. get_bsz() is renamed get_num() since it's not just about block sizes. skip and seek can be any offset, including negative, now. Some style bog
Make a bit more headway with dd's argument parsing, etc. get_bsz() is renamed get_num() since it's not just about block sizes. skip and seek can be any offset, including negative, now. Some style bogons are fixed.
show more ...
|
#
2a456239 |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
#
54946e00 |
| 20-Jun-1999 |
Brian Feldman <green@FreeBSD.org> |
This is the second round of dd(1) changes. Some changes made/reversed by request of Bruce. More changes may follow later. 'g' multiplier has been added (i.e. dd seek=5g if=bigfile.) Some minor correc
This is the second round of dd(1) changes. Some changes made/reversed by 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
show more ...
|
#
767bc8ad |
| 19-Jun-1999 |
Brian Feldman <green@FreeBSD.org> |
Miscellaneous dd(1) changes: mainly fixing variable types (size_t, ssize_t, off_t, int, u_int64_t, etc.). dd(1) should now work properly with REALLY big amounts of data.
|
Revision tags: release/3.2.0 |
|
#
46be34b9 |
| 08-May-1999 |
Kris Kennaway <kris@FreeBSD.org> |
Various spelling/formatting changes.
Submitted by: Philippe Charnier <charnier@xp11.frmug.org>
|
Revision tags: release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7 |
|
#
1ba0e048 |
| 13-May-1998 |
Philippe Charnier <charnier@FreeBSD.org> |
Restore Lite-2 sccsid. Restore include of sys/types.h.
|
#
cbf6f7d3 |
| 06-May-1998 |
Philippe Charnier <charnier@FreeBSD.org> |
Correct use of .Nm and other cosmetics. Add rcsid. Remove unused #inc.
|
Revision tags: release/2.2.6 |
|
#
1898febe |
| 11-Nov-1997 |
Joerg Wunsch <joerg@FreeBSD.org> |
Sort "sparse" into alphabetical order, since dd's `conv' options need to be sorted. This temporarily broke the "osync" option.
|
Revision tags: release/2.2.5_cvs |
|
#
4ddfeabd |
| 11-Oct-1997 |
Joerg Wunsch <joerg@FreeBSD.org> |
Teach dd(1) about an option to write sparse files. Can be useful for things like diskless clients' swap files etc.
Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many st
Teach dd(1) about an option to write sparse files. Can be useful for things like diskless clients' swap files etc.
Submitted by: pascal@zuo.dec.com (Pascal Pederiva) (ages ago, with many stylistic changes by me)
show more ...
|
#
4c339742 |
| 08-Oct-1997 |
Eivind Eklund <eivind@FreeBSD.org> |
Slightly improved fix compared to my insiration
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 (f
Slightly improved fix compared to my insiration
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>
show more ...
|
Revision tags: release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs |
|
#
b97fa2ef |
| 22-Feb-1997 |
Peter Wemm <peter@FreeBSD.org> |
Revert $FreeBSD$ to $Id$
|
Revision tags: release/2.1.6_cvs, release/2.1.6.1 |
|
#
1130b656 |
| 14-Jan-1997 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
Make the long-awaited change from $Id$ to $FreeBSD$
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
Make the long-awaited change from $Id$ to $FreeBSD$
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.
show more ...
|
#
78b09ffe |
| 14-Dec-1996 |
Steve Price <steve@FreeBSD.org> |
-Wall cleaning.
|
#
ad66f7ee |
| 13-Nov-1996 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Bruce says: "You have been programming in the kernel for too long :-)."
and he's right ... I forgot about this floating point stuff you can use in user-land :-)
Increase precision of duration to mi
Bruce says: "You have been programming in the kernel for too long :-)."
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
show more ...
|
#
77dfecce |
| 13-Nov-1996 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Increase precision of duration to milliseconds. Some heuristics to avoid overflow in calculation attempted.
|