dd: support iflag=skip_bytes
authorRafał Miłecki <zajec5@gmail.com>
Mon, 1 Feb 2016 01:17:28 +0000 (02:17 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 1 Feb 2016 01:17:28 +0000 (02:17 +0100)
commitc30a5b13731919367ec2d781a107706fd00f21bc
tree36491cc56ce6a8d7fa7ca0548212deb1e72f529e
parent40eea690c7eabbf4d12e1e0c30c31f40125ca996
dd: support iflag=skip_bytes

It allows specifying amount of bytes directly (not only amount of
blocks) is also supported by GNU's Coreutils.

function                                             old     new   delta
parse_comma_flags                                      -      93     +93
static.iflag_words                                     -      12     +12
dd_main                                             1569    1580     +11
packed_usage                                       30591   30600      +9
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 2/0 up/down: 125/0)             Total: 125 bytes

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/dd.c
docs/posix_conformance.txt