summaryrefslogtreecommitdiff
path: root/bin/dd
AgeCommit message (Collapse)Author
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-04after dd has opened it's files and done the tape positioning ioctl, weTheo de Raadt
can tame "stdio" it. ok semarie
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2015-01-15remove .Tn; from Jan Stary <hans at stare dot cz>Ingo Schwarze
2015-01-05use the correct read count when determining how swabbing is necessary.Ted Unangst
bug report from Martin Wolters
2014-12-11use a local swapbytes function instead of relying on undefinedTed Unangst
overlapping swab behavior. vaguely ok kettenis
2014-09-14Error out when negative values are given for sizes on the command line.Ingo Schwarze
Do not error out when the maximum permissible value is given, but only when it is exceeded. Patch from William Orr <will at worrbase dot com> using feedback from tedu@. ok millert@
2014-05-21Use errc/warnc to simplify code.Philip Guenther
ok jca@ krw@
2014-03-27The "old" conversions are not mandated by any standard and areTed Unangst
underspecified. The man page offers little guidance as to their use. Remove them and spare people the (likely poor) decision to use them. ok deraadt jmc millert
2014-03-24support gigabytes. also update some comments and make goto label nicer.Ted Unangst
ok deraadt jmc
2014-02-14use .At where appropriate; from Jan Stary <hans at stare dot cz>Ingo Schwarze
2014-02-12tweak previous;Jason McIntyre
2014-02-12Add an operand to /bin/dd that suppresses the status lines printedAlexander Bluhm
to stderr after transfer. Use the GNU syntax status=noxfer and status=none to make dd quiet. The output is annoying in some situations, so people redirect stderr to /dev/null. This approach also suppresses the error messages and bugs in shell scripts remain undetected. The new feature status=none is the better alternative. OK mpf@
2014-02-02expand STANDARDS; ok sobradoJason McIntyre
2013-11-11unused prototypeTheo de Raadt
2013-06-01fiddle with the NO_CONV code to allow notrunc and noerror to still work.Ted Unangst
ok halex
2013-06-01consolidate ifdef blocks by moving a variableTed Unangst
2013-04-16handle larger tv_sec typesTheo de Raadt
2012-12-04remove some unnecessary sys/cdefs.h inclusionsTheo de Raadt
2012-07-12Use S_ISFIFO and S_ISSOCK instead of lseek() to determine whetherTodd C. Miller
an fd is a socket, pipe or named pipe. OK deraadt@ matthew@
2011-10-18Support K and M as well as k and m for sizes. From Thomas Pfaff.Nicholas Marriott
ok millert jmc
2010-09-03add an EXIT STATUS section for /bin;Jason McIntyre
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-05-12The conversions ascii, ebcdic and ibm are XPG4, not POSIX.Ingo Schwarze
The size multipliers m and w are BSD extensions, not POSIX. While here, sort the conversions alphabetically. help and OK jmc@, sobrado@; and sthen@ on an earlier version
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2008-10-05the ellipsis allow more than one operand being specified.Igor Sobrado
ok jmc@
2007-11-10remove "unused variable" warning appearing when building releaseCharles Longeau
ok millert@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29- consistent STANDARDS blurbJason McIntyre
- note which options are extensions to POSIX discussed w/ deraadt otto millert
2006-11-07It is better to use isatty() to see if a dev is seekable, becauseOtto Moerbeek
skipping blocks on a raw disk device with bad sectors should be possible. Noted by Geoff Steckel; ok tom@ deraadt@
2006-11-07fix skipping when reading from a tty; reported by Karel KulhavyOtto Moerbeek
<clock at twibright dot com>; ok deraadt@
2006-11-01Fix range checking for in.dbsz and out.dbsz.Ray Lai
Add range checking for cbsz. Change type in format string to %zd and cast SSIZE_MAX to ssize_t. Fixes PR 5278 submitted by malaler at gmail dot com. OK otto@ and millert@.
2006-06-01add another exmaple; stolen from a nick holland email...Jason McIntyre
2006-05-31- use .ExJason McIntyre
- standard EXAMPLES
2006-03-22change %u to %zu to correctly print size_tDavid Hill
ok ray@ jaredy@ moritz@
2005-05-27include sys/time.h to get struct timevalTodd C. Miller
2005-04-08Correct comment about using m in blocksize (multiplies by 1048576 not 512).Jonathan Gray
2004-03-18typo from Jared Yanovich;Jason McIntyre
2003-07-28sync floppy dd example with the real worldTodd T. Fries
ok deraadt@ jmc@
2003-06-25fix protosTheo de Raadt
2003-06-11ansification, art okTheo de Raadt
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-03-12more .LiTheo de Raadt
2002-10-28Seeking on a character device works fine.Todd C. Miller
2002-05-29Add a cast to keep time from overflowing. Checked by millert.Hugh Graham
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2002-02-11Initial patch.Mike Pechkin
When you give command examples in a manual page prefix them with $ command or # command deraadt@ ok
2001-10-06Fix ``echo foo |dd'' which was broken by the last commit.Todd C. Miller
2001-10-04Move check for count=0 into dd's main. We want to do normal setupTodd C. Miller
in this case and just don't want to actually copy any data. Fixes a problem noted by aaron@ where the time portion of the summary would be wrong and also gives us sane behavior when seek is non-zero but count is 0.
2001-08-07Modify timekeeping in an effort to produce a sane bandwidth measureHugh Graham
for a short running dd process. Some floating point is used so that microsecond precision can be kept without shortening the off_t excessively. millert says ok.