Changeset 3621 in MondoRescue for branches/3.3/mindi-busybox/coreutils/split.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/coreutils/split.c
r3232 r3621 23 23 24 24 #include "libbb.h" 25 #include "common_bufsiz.h" 25 26 26 static const struct suffix_mult split_suffices[] = {27 27 #if ENABLE_FEATURE_SPLIT_FANCY 28 static const struct suffix_mult split_suffixes[] = { 28 29 { "b", 512 }, 29 #endif30 30 { "k", 1024 }, 31 31 { "m", 1024*1024 }, 32 #if ENABLE_FEATURE_SPLIT_FANCY33 32 { "g", 1024*1024*1024 }, 34 #endif35 33 { "", 0 } 36 34 }; 35 #endif 37 36 38 37 /* Increment the suffix part of the filename. … … 81 80 char *src; 82 81 82 setup_common_bufsiz(); 83 83 84 opt_complementary = "?2:a+"; /* max 2 args; -a N */ 84 85 opt = getopt32(argv, "l:b:a:", &count_p, &count_p, &suffix_len); … … 87 88 cnt = XATOOFF(count_p); 88 89 if (opt & SPLIT_OPT_b) // FIXME: also needs XATOOFF 89 cnt = xatoull_sfx(count_p, split_suffices); 90 cnt = xatoull_sfx(count_p, 91 IF_FEATURE_SPLIT_FANCY(split_suffixes) 92 IF_NOT_FEATURE_SPLIT_FANCY(km_suffixes) 93 ); 90 94 sfx = "x"; 91 95
Note:
See TracChangeset
for help on using the changeset viewer.