dd(1): Sync with FreeBSD
authorAaron LI <aly@aaronly.me>
Thu, 14 Feb 2019 16:12:06 +0000 (00:12 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 14 Feb 2019 16:37:12 +0000 (00:37 +0800)
commit0eeb0a9ed631ea08815777f3ff59e4e9c48dceee
treea14186444b3a8e672eecbbb8bc95c62c2e154851
parent739ce91049ab07d70253b3620f65eba5ac171cd8
dd(1): Sync with FreeBSD

Some highlights:
* Add the "fillchar" operand.
* Add the "speed" operand to limit the speed.
* Support to specify the output data parity in the "conv" operand.
* Add tests, which can be run with "make test".

I adjusted the device names in the examples of the man page.  Some minor
tweaks (e.g., styles, function prototypes, comments) were also applied.
25 files changed:
bin/dd/Makefile
bin/dd/args.c
bin/dd/conv.c
bin/dd/conv_tab.c
bin/dd/dd.1
bin/dd/dd.c
bin/dd/dd.h
bin/dd/extern.h
bin/dd/gen.c [new file with mode: 0644]
bin/dd/misc.c
bin/dd/position.c
bin/dd/ref.ascii [new file with mode: 0644]
bin/dd/ref.ebcdic [new file with mode: 0644]
bin/dd/ref.ibm [new file with mode: 0644]
bin/dd/ref.lcase [new file with mode: 0644]
bin/dd/ref.obs_zeroes [new file with mode: 0644]
bin/dd/ref.oldascii [new file with mode: 0644]
bin/dd/ref.oldebcdic [new file with mode: 0644]
bin/dd/ref.oldibm [new file with mode: 0644]
bin/dd/ref.pareven [new file with mode: 0644]
bin/dd/ref.parnone [new file with mode: 0644]
bin/dd/ref.parodd [new file with mode: 0644]
bin/dd/ref.parset [new file with mode: 0644]
bin/dd/ref.swab [new file with mode: 0644]
bin/dd/ref.ucase [new file with mode: 0644]