summaryrefslogtreecommitdiff
path: root/bin/dd
AgeCommit message (Collapse)Author
2004-01-04remove unused code left from printescaped() backput as pointed out by Jeffjschauma
Ito in PR bin/23969 and PR bin/23970.
2003-11-15Optimise previous change, using fcntl(F_DUPFD) to locate a free descriptordsainty
for us, rather than iterating until satisfied. Suggested by David Laight.
2003-11-15Avoid corrupting the dd(1) IO streams. This would happen by accidentallydsainty
outputting to the files being manipulated by opening a file in the standard IO descriptor space. In particular, an output file unlucky enough to be sitting on descriptor 2 (stderr) is certain to be corrupted. Addresses PR bin/8521, and passes the recently committed regression test "bin/dd".
2003-09-14Following private discussion with kleink@ and hubertf@ and public discussionjschauma
on tech-userlevel@, back out printescaped() functionality. kleink: ``We sell rope.''
2003-08-20Fix memory leak noted by Hubert Feyrer in private email.jschauma
Patch by Hubert Feyrer as well, OK by kleink. (I'm just fixing it b/c it's my fault to begin with.)
2003-08-20Minor KNF nit from rev. 1.13.kleink
2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc
Patches provided by Joel Baker in PR 22249, verified by myself.
2003-08-05Include stdlib.h so EXIT_FAILURE is defined.erh
2003-08-04As discusses a little while back on tech-userlevel:jschauma
If stdout is a tty, use vis(3) to print any filenames to prevent garbage from being printed if the filename contains control- or other non-printable characters. While here, sprinkle some EXIT_FAILURE and NOTREACHED where appropriate.
2003-02-25.Nm does not need a dummy argument ("") before punctuation orwiz
for correct formatting of the SYNOPSIS any longer.
2002-11-29convert to using strsuftoll(3) from libclukem
2002-09-04Add comment about my rev. 1.27 change.enami
2002-09-03Ignore EINVAL returned from fsync(2) because it is the expected error codetron
if we try to use it on a pipe.
2002-09-01Detect the last nfs write error.enami
2002-06-09Add LL to 1099511627776 since it won't fit in a long on ILP32 systems.matt
2002-02-08Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross
2002-02-02.ifdef SMALLPROG, compile with -DNO_CONV and don't compile in conv_tab.olukem
2002-01-31Roll in fixes to permit cross-compiling from non-NetBSD hosts. Thistv
round has been tested on Solaris/x86 and Linux hosts. * Add host tools cap_mkdb, ctags, m4, uudecode. * Protect __RCSID() and __COPYRIGHT() better. * Reduce the number of places that need to include "config.h", to keep sources closer to their "vanilla" versions. * Add more compat #defines and autoconf-checked functions.
2002-01-29Blah, oversight. Revert previous; clean up to proper syntax, and addtv
conditional for <err.h>.
2002-01-29This doesn't appear to be used in src/tools any longer; remove the config.htv
glue bits.
2002-01-22add config.h when compiled as host tool.is
2002-01-10Convert some variables that were signed ints before my update to 64 bit sizeslukem
from uint64_t to int64_t. Fixes [bin/15187]
2001-11-30Deal with LP64 printf format issues.thorpej
2001-11-26a bit more cosmetic changes.enami
2001-11-26Replace {u_,}longlong_t usage with {u,}int64_t, as the former haslukem
"issues" and really shouldn't be used outside of the Sun XDR stuff. Thanks again to Chuck Silvers for reminding me.
2001-11-25Drop a space and an unnecessary .Pp.wiz
2001-11-25fix conv= descriptionlukem
2001-11-25- Use u_longlong_t instead of u_quad_t, u_long, or int for various buffer sizeslukem
- Add strsuftoull(), which parses a number into a u_longlong_t, with multiplication support, and support for 'g' (GB) and 't' (TB) suffices. If an error occurs, print to stderr and exit. Based on get_blk() from args.c and strsufto*() (in other programs) - Add strsuftoullx(), which acts as per strsuftoull() but returns the error in the supplied buffer instead (if the returned buffer != "", an error occurred) - Replace get_bsz() use with strsuftoull() - Remove (now) unnecessary argument validation - Remove unused {f,p,s,t}_stats fields in struct IO
2001-11-25fix WARNS=2 for -DNO_CONVlukem
2001-11-25- ANSI KNFlukem
- WARNS=2 (mainly converting some "char *" -> "const char *")
2001-07-22seperate -> separatewiz
2001-04-28In the words of Our Fearless Leader, I am "utterly sick" of dd(1)ross
lying to me about transfer rates. Do some fixed point frobbing to get stuff like: 2486864 bytes transferred in 0.272 secs (9142882 bytes/sec)
2001-01-16avoid C sequence point issues warned about by development version of gcc.cgd
2001-01-04use more standard %ll_ in favour of %q_lukem
2000-10-25KNF nit in previous.kleink
2000-10-16Make sure we accept the getopt(3) 'last option' delimiter;kleink
fixes PR standards/11229.
2000-09-04For commands and utilities, use EXIT STATUS rather than RETURN VALUES askleink
appropriate (and documented in mdoc(7)).
2000-08-28Add 'RETURN VALUE' section header.hubertf
2000-08-25Fix conv=swab. Don't swab the entire input buffer every time we readmatt
another block, just swab the block we just read.
2000-08-02rename nset to infoset from jhawk.christos
2000-08-02block siginfo during writes.christos
2000-07-07errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsditojun
1999-11-09Since our gcc doesn't warn about NULL format strings anymore, we candrochner
fix the incorrect err(1, "%s", "") et al. Closes PR bin/7592 by cgd.
1999-10-09fix comment regarding when we attempt to seekjtk
1999-10-04Use lseek(2) on character devices, damn it.mycroft
1999-07-29Add "progress=1" switch to show a sign of life by printing a '.' forhubertf
every block written to the output file.
1998-08-19Add some braces to make egcs happy.thorpej
1998-07-28Delint.mycroft
1998-07-28Delint.mycroft
1998-07-28Delint.mycroft