← Commit list

911db1622

Ari Sundholm
Ari Sundholm
2015-03-22
SUCCESS Duration: 145s

Subject

truncate: new applet

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

include/libbb.h+1 -0
@@ -863,6 +863,7 @@ struct suffix_mult {
extern const struct suffix_mult bkm_suffixes[];
#define km_suffixes (bkm_suffixes + 1)
extern const struct suffix_mult cwbkMG_suffixes[];
+#define kMG_suffixes (cwbkMG_suffixes + 3)
#include "xatonum.h"
/* Specialized: */
libbb/xatonum.c+3 -1
@@ -83,7 +83,9 @@ const struct suffix_mult cwbkMG_suffixes[] = {
{ "kB", 1000 },
{ "kD", 1000 },
{ "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 },
{ "MD", 1000000 },
{ "M", 1024*1024 },