summaryrefslogtreecommitdiff
path: root/bin/dd/Makefile
AgeCommit message (Collapse)Author
2019-10-04copy libc's swab.c into dd as dd_swab(), and remove the restrict.mrg
our implementation was fine, but the restrict marker is problematic as gcc 8 is now more strict about checking for restrict issues. this is the only actual consumer of swab(3) in our tree, though, besides the test for it. oh well.
2019-09-15Drop -D_INCOMPLETE_XOPEN_C063 from dd(1)kamil
2015-03-18Add iflag and oflag operands to dd(1)manu
Like GNU dd(1) similar operands, iflag and oflag allow specifying the O_* flags given to open(2) for the input and the output file. The values are comma-sepratated, lower-case, O_ prefix-stripped constants documented in open(2). Since iflag and oflag override default values, specifying oflag means O_CREATE is not set by default and must be specified explicitely. Some values do not make sense (e.g.: iflag=directory) but are still used and will raise a warning. For oflag, values rdonly, rdwr and wronly are filtered out with a warning (dd(1) attempts open(2) with O_RDWR and then O_WRONLY on failure). Specifying oflag=trunc along with (seek, oseek or conv=notrunc) is contradictory and will raise an error. iflag and oflag are disabled if building with -DMALLPROG
2012-08-08let the standard rules deal with librumpclientchristos
2011-11-06Add a new command to dd(1): msgfmt. The command modifies thejym
output of the information summary returned by dd(1). This can be used to specify messages in a more usable (or parseable) format like human-readable values. My intent is to re-use this for building image files and quick I/O benchmarking. Reviewed by tsutsui@ on tech-userlevel. See also http://mail-index.netbsd.org/tech-userlevel/2010/12/03/msg004179.html Some examples: $ dd if=/dev/zero of=/dev/null bs=1m count=1 msgfmt=human 1+0 records in 1+0 records out 1048576 bytes (1,0 MB) transferred in 0.001 secs (1048576000 bytes/sec - 1,0 GB/sec) $ dd if=/dev/zero of=/dev/null count=1 msgfmt=' > <speed>%E</speed> > <time>%s</time> > <bytes>%b</bytes> > ' <speed>500 KB/sec</speed> <time>0.001</time> <bytes>512</bytes>
2011-02-04Remove the rif/rof options and add rump.dd. This makes usagepooka
consistent with other rump clients. Copying between kernels is done using the host pipe, e.g.: dd if=foo rof=bar skip=1 seek=1 => dd if=foo skip=1 | rump.dd of=bar seek=1 Also, the pipe idiom extends to copying between different rump kernels, e.g.: env RUMP_SERVER=unix://srv1 rump.dd if=thefile \ | env RUMP_SERVER=unix://srv2 rump.dd of=thefile Pipe approach suggested by yamt (thanks!)
2010-11-22extra crunchgen hoopspooka
2010-11-22Add two new operands: "rif" and "rof". They operate exactly likepooka
"if" and "of" with the exception that the communicate with a rump kernel instead of the host kernel. For example, to write stdout to /tmp/file.txt in a rump kernel namespace: dd rof=/tmp/file.txt copy /file1 to /file2 inside a rump kernel: dd rif=/file1 rof=/file2 copy a snippet from /dev/rmd0d on the rump kernel to the host fs: dd rif=/dev/rmd0d of=save seek=1000 count=3 Eat that, usermode OS. (I'll document the operands one I have some manpage to refer to for rump client use).
2007-10-05Convert to using raise_default_signal(3).lukem
2005-06-26sprinkle a little const, and now everything compiles with WARNS=3christos
2002-11-29convert to using strsuftoll(3) from libclukem
2002-02-02.ifdef SMALLPROG, compile with -DNO_CONV and don't compile in conv_tab.olukem
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-25- ANSI KNFlukem
- WARNS=2 (mainly converting some "char *" -> "const char *")
1997-07-20Remove WARNS=1 from all the subdirectory Makefiles, and add it to Makefile.incchristos
now that all /bin has been cleaned.
1997-07-20Fix compiler warnings.christos
Add WARNS=1
1995-03-21convert to new RCS id conventions.cgd
1994-09-22Merge 4.4-Lite version.mycroft
1993-08-01Add RCS identifiers.mycroft
1993-05-04added dd(1) from ftp.uu.net:bsd-sources; torching GNU ddglass