git: dd(1): Sync with FreeBSD

Aaron LI aly at crater.dragonflybsd.org
Thu Feb 14 08:37:58 PST 2019


commit 0eeb0a9ed631ea08815777f3ff59e4e9c48dceee
Author: Aaron LI <aly at aaronly.me>
Date:   Fri Feb 15 00:12:06 2019 +0800

    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.

Summary of changes:
 bin/dd/Makefile       |  33 +++++-
 bin/dd/args.c         | 270 +++++++++++++++++++++++++++++++-------------------
 bin/dd/conv.c         |  29 +++---
 bin/dd/conv_tab.c     |   8 +-
 bin/dd/dd.1           |  70 +++++++++++--
 bin/dd/dd.c           | 246 +++++++++++++++++++++++++++++++--------------
 bin/dd/dd.h           |  97 ++++++++++--------
 bin/dd/extern.h       |  15 +--
 bin/dd/gen.c          |  24 +++++
 bin/dd/misc.c         |  22 ++--
 bin/dd/position.c     |  41 +++++++-
 bin/dd/ref.ascii      |  18 ++++
 bin/dd/ref.ebcdic     |  18 ++++
 bin/dd/ref.ibm        |  18 ++++
 bin/dd/ref.lcase      |  18 ++++
 bin/dd/ref.obs_zeroes |   3 +
 bin/dd/ref.oldascii   |  18 ++++
 bin/dd/ref.oldebcdic  |  18 ++++
 bin/dd/ref.oldibm     |  18 ++++
 bin/dd/ref.pareven    |  18 ++++
 bin/dd/ref.parnone    |  18 ++++
 bin/dd/ref.parodd     |  18 ++++
 bin/dd/ref.parset     |  18 ++++
 bin/dd/ref.swab       |  18 ++++
 bin/dd/ref.ucase      |  18 ++++
 25 files changed, 822 insertions(+), 270 deletions(-)
 create mode 100644 bin/dd/gen.c
 create mode 100644 bin/dd/ref.ascii
 create mode 100644 bin/dd/ref.ebcdic
 create mode 100644 bin/dd/ref.ibm
 create mode 100644 bin/dd/ref.lcase
 create mode 100644 bin/dd/ref.obs_zeroes
 create mode 100644 bin/dd/ref.oldascii
 create mode 100644 bin/dd/ref.oldebcdic
 create mode 100644 bin/dd/ref.oldibm
 create mode 100644 bin/dd/ref.pareven
 create mode 100644 bin/dd/ref.parnone
 create mode 100644 bin/dd/ref.parodd
 create mode 100644 bin/dd/ref.parset
 create mode 100644 bin/dd/ref.swab
 create mode 100644 bin/dd/ref.ucase

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0eeb0a9ed631ea08815777f3ff59e4e9c48dceee


-- 
DragonFly BSD source repository


More information about the Commits mailing list