Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/libbb/xatonum.c
- Timestamp:
- Dec 20, 2016, 4:07:32 PM (7 years ago)
- Location:
- branches/3.3
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3/mindi-busybox/libbb/xatonum.c
r2725 r3621 69 69 return xatou_range(numstr, 0, 0xffff); 70 70 } 71 72 const struct suffix_mult bkm_suffixes[] = { 73 { "b", 512 }, 74 { "k", 1024 }, 75 { "m", 1024*1024 }, 76 { "", 0 } 77 }; 78 79 const struct suffix_mult cwbkMG_suffixes[] = { 80 { "c", 1 }, 81 { "w", 2 }, 82 { "b", 512 }, 83 { "kB", 1000 }, 84 { "kD", 1000 }, 85 { "k", 1024 }, 86 { "KB", 1000 }, /* compat with coreutils dd */ 87 { "KD", 1000 }, /* compat with coreutils dd */ 88 { "K", 1024 }, /* compat with coreutils dd */ 89 { "MB", 1000000 }, 90 { "MD", 1000000 }, 91 { "M", 1024*1024 }, 92 { "GB", 1000000000 }, 93 { "GD", 1000000000 }, 94 { "G", 1024*1024*1024 }, 95 /* "D" suffix for decimal is not in coreutils manpage, looks like it's deprecated */ 96 /* coreutils also understands TPEZY suffixes for tera- and so on, with B suffix for decimal */ 97 { "", 0 } 98 };
Note:
See TracChangeset
for help on using the changeset viewer.