truncate: new applet
function old new delta truncate_main - 161 +161 cwbkMG_suffixes - 128 +128 packed_usage 30443 30459 +16 applet_names 2512 2521 +9 applet_main 1456 1460 +4 parse_command 1460 1463 +3 applet_nameofs 728 730 +2 applet_install_loc 182 183 +1 dd_suffixes 112 - -112 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 10/3 up/down: 337/-133) Total: 204 bytes Signed-off-by: Ari Sundholm <ari@tuxera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
8893023ba2
commit
911db16229
@ -863,6 +863,7 @@ struct suffix_mult {
|
|||||||
extern const struct suffix_mult bkm_suffixes[];
|
extern const struct suffix_mult bkm_suffixes[];
|
||||||
#define km_suffixes (bkm_suffixes + 1)
|
#define km_suffixes (bkm_suffixes + 1)
|
||||||
extern const struct suffix_mult cwbkMG_suffixes[];
|
extern const struct suffix_mult cwbkMG_suffixes[];
|
||||||
|
#define kMG_suffixes (cwbkMG_suffixes + 3)
|
||||||
|
|
||||||
#include "xatonum.h"
|
#include "xatonum.h"
|
||||||
/* Specialized: */
|
/* Specialized: */
|
||||||
|
@ -83,7 +83,9 @@ const struct suffix_mult cwbkMG_suffixes[] = {
|
|||||||
{ "kB", 1000 },
|
{ "kB", 1000 },
|
||||||
{ "kD", 1000 },
|
{ "kD", 1000 },
|
||||||
{ "k", 1024 },
|
{ "k", 1024 },
|
||||||
{ "K", 1024 }, /* compat with coreutils dd (it also accepts KB and KD, TODO?) */
|
{ "KB", 1000 }, /* compat with coreutils dd */
|
||||||
|
{ "KD", 1000 }, /* compat with coreutils dd */
|
||||||
|
{ "K", 1024 }, /* compat with coreutils dd */
|
||||||
{ "MB", 1000000 },
|
{ "MB", 1000000 },
|
||||||
{ "MD", 1000000 },
|
{ "MD", 1000000 },
|
||||||
{ "M", 1024*1024 },
|
{ "M", 1024*1024 },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user