aboutsummaryrefslogtreecommitdiff
path: root/coreutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* dd: code shrinkDenys Vlasenko2013-08-201-2/+2
| | | | | | | function old new delta dd_main 1487 1475 -12 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: code shrinkDenys Vlasenko2013-08-201-5/+6
| | | | | | | | | | | function old new delta write_and_stats 78 99 +21 dd_main 1496 1487 -9 full_write_or_warn 42 - -42 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/1 up/down: 21/-51) Total: -30 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: remove FIXME comment which is fixed now. No code changesDenys Vlasenko2013-08-201-4/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: code shrinkDenys Vlasenko2013-08-201-12/+24
| | | | | | | function old new delta dd_main 1001 961 -40 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: fail if swab is attempted on odd-sized blockDenys Vlasenko2013-08-201-10/+21
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: fix example in a comment. No code changes.Denys Vlasenko2013-08-191-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: support conv=swabDenys Vlasenko2013-08-191-6/+23
| | | | | | | | | function old new delta dd_main 1482 1520 +38 static.conv_words 28 33 +5 packed_usage 29377 29375 -2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: do not reuse local variables for unrelated values.Denys Vlasenko2013-08-191-6/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Whitespace fixesDenys Vlasenko2013-07-301-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* catv: code shrinkDenys Vlasenko2013-07-301-6/+9
| | | | | | catv_main 250 227 -23 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Refactor catv. Move visible() from stty to libbb.Bartosz Golaszewski2013-07-302-54/+23
| | | | | | | | | | | | | | | | | | | | Fixes the following TODO: stty's visible() function and catv's guts are identical. Merge them into an appropriate libbb function. Also makes catv behave exactly like coreutils' cat -v e.g. it'll print 'M-^I' instead of 'M- '. function old new delta visible - 70 +70 do_display 431 379 -52 catv_main 306 250 -56 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 70/-108) Total: -38 bytes Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Commonalize typical [b,]k,m suffix structDenys Vlasenko2013-07-136-40/+11
| | | | | | | | | | | | | function old new delta bkm_suffixes - 32 +32 static.km_suffixes 24 - -24 suffixes 32 - -32 static.bkm 32 - -32 head_tail_suffixes 32 - -32 ------------------------------------------------------------------------------ (add/remove: 2/6 grow/shrink: 0/0 up/down: 72/-160) Total: -88 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: code shrinkDenys Vlasenko2013-07-081-16/+15
| | | | | | | | | | function old new delta tail_main 1548 1613 +65 tail_read 136 34 -102 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 65/-102) Total: -37 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* foo*sum: Correct syntax errorCristian Ionescu-Idbohrn2013-07-041-1/+1
| | | | | | | coreutils/md5_sha1_sum.c:156:3: error: expected '}' before 'else' Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* tail: track file size only in -f modeDenys Vlasenko2013-07-021-11/+15
| | | | | | This eliminates extra fstat and lseek calls on every read Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* foo*sum: report I/O errors, don't merely exit with 1.Denys Vlasenko2013-07-021-1/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: disable CIBAUD leak check - it is not necessary on LinuxDenys Vlasenko2013-05-171-1/+6
| | | | | | | function old new delta stty_main 1233 1196 -37 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: code shrinkDenys Vlasenko2013-05-171-30/+29
| | | | | | | function old new delta set_mode 759 725 -34 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: introduce and use strftime_[YYYYMMDD]HHMMSS()Denys Vlasenko2013-03-291-1/+1
| | | | | | | | | | | | | | | | | | function old new delta strftime_fmt - 53 +53 strftime_YYYYMMDDHHMMSS - 12 +12 strftime_HHMMSS - 12 +12 human_time 44 43 -1 fmtstr_t 9 - -9 step_time 361 345 -16 watch_main 261 232 -29 ------------------------------------------------------------------------------ (add/remove: 3/1 grow/shrink: 0/3 up/down: 77/-55) Total: 22 bytes text data bss dec hex filename 919203 932 17692 937827 e4f63 busybox_old 919209 932 17692 937833 e4f69 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* readlink: note that our -f is really -eMike Frysinger2013-03-121-1/+4
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* platform: use KERNEL_VERSION to simplify uClibc version checkingMike Frysinger2013-03-121-3/+1
| | | | | | | | This makes reading the logic (as well as adding new code) a lot simpler, and fixes one or two cases that were broken due to incorrect sub-version tests. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* hostid: do not output sign-extended host id. Closes 6056Denys Vlasenko2013-03-041-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: make help text for -n +N syntax more correctDenys Vlasenko2013-02-251-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* head: support -n -NUM and -c -NUMDenys Vlasenko2013-02-251-22/+128
| | | | | | | | | | function old new delta head_main 406 832 +426 packed_usage 29234 29252 +18 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 444/0) Total: 444 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* head,tail: use common suffix struct. simplify help text.Denys Vlasenko2013-02-255-27/+40
| | | | | | | | | | | | | | | | function old new delta head_tail_suffixes - 32 +32 head_main 415 406 -9 packed_usage 29252 29234 -18 tail_suffixes 32 - -32 head_suffixes 32 - -32 ------------------------------------------------------------------------------ (add/remove: 2/2 grow/shrink: 0/2 up/down: 32/-91) Total: -59 bytes text data bss dec hex filename 890474 497 7584 898555 db5fb busybox_old 890415 497 7584 898496 db5c0 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixes. no code changesDenys Vlasenko2013-01-155-9/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanup. no code changesDenys Vlasenko2013-01-146-34/+41
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sha3sum: new appletLauri Kasanen2013-01-143-3/+27
| | | | | | | | | | | | | | | | | | | | | | function old new delta KeccakF - 496 +496 KeccakF_RoundConstants - 192 +192 sha3_hash - 171 +171 sha3_end - 40 +40 hash_file 274 299 +25 KeccakF_RotationConstants - 25 +25 KeccakF_PiLane - 25 +25 packed_usage 29213 29232 +19 sha3_begin - 18 +18 KeccakF_Mod5 - 10 +10 applet_names 2445 2453 +8 applet_main 1420 1424 +4 applet_nameofs 710 712 +2 ------------------------------------------------------------------------------ (add/remove: 8/0 grow/shrink: 9/7 up/down: 1049/-54) Total: ~995 bytes Signed-off-by: Lauri Kasanen <curaga@operamail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace fixes. no code changesDenys Vlasenko2013-01-146-9/+9
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du: document incompatibility with standard toolDenys Vlasenko2012-12-141-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix unsafe bb_perror_msg(filename) callsDenys Vlasenko2012-09-271-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tweak help textDenys Vlasenko2012-06-191-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* android: fix 'stat', ifdef S_TYPEIS* in coreutiles/stat.cTias Guns2012-06-101-0/+6
| | | | | | | | patch modified from 'BusyBox Patch V1.0 (Vitaly Greck)' https://code.google.com/p/busybox-android/downloads/detail?name=patch_busybox Signed-off-by: Tias Guns <tias@ulyssis.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mv: accept but ignore -vSimon B2012-05-061-8/+11
| | | | | | | | function old new delta mv_longopts 36 46 +10 Signed-off-by: Simon B <sburnet@hotmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkdir,rmdir: accept and ignore -v, --verboseSimon B2012-05-062-4/+7
| | | | | | | | | function old new delta static.rmdir_longopts 38 48 +10 mkdir_longopts 18 28 +10 Signed-off-by: Simon B <sburnet@hotmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ln: support -T and -vSimon B2012-05-061-6/+22
| | | | | | | | | function old new delta ln_main 445 524 +79 packed_usage 29182 29179 -3 Signed-off-by: Simon B <sburnet@hotmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* who: fix typo in help textDenys Vlasenko2012-04-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* who,less: tweaked help textDenys Vlasenko2012-04-171-0/+1
| | | | | | | function old new delta packed_usage 29176 29173 -3 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test: "test !" was accessing argv past NULL - fix it. Closes 4832Denys Vlasenko2012-03-081-7/+8
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make xchroot do a chdir("/") after chrootDenys Vlasenko2012-03-081-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* printf: fix this case: printf "%b" '\0057usr\0057bin\n'Denys Vlasenko2012-03-071-2/+17
| | | | | | | | | It was not accepting \0NNN. Standard printf tool does. function old new delta printf_main 869 886 +17 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* printf: trim help textDenys Vlasenko2012-03-071-4/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uudecode: tweak help textDenys Vlasenko2012-03-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uuencode: tweak help textDenys Vlasenko2012-03-051-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cp: trim help textDenys Vlasenko2012-03-051-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du: trim help text a bit moreDenys Vlasenko2012-03-051-7/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du: remove stray whitespace in help textDenys Vlasenko2012-03-051-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: extend help text to explain compat date format. Closes 4820Denys Vlasenko2012-03-011-0/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* du: use long long for size fieldIan Wienand2012-02-281-5/+5
| | | | | | | | | | | | | | | | du has issues with files reporting large block counts on 32-bit systems with 4 byte longs. From looking at the stat.c code, it seems the preference is to use 'long long', rather than blkcnt_t. function old new delta du 420 444 +24 du_main 317 321 +4 print 43 41 -2 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/1 up/down: 28/-2) Total: 26 bytes Signed-off-by: Ian Wienand <ianw@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mkdir: fix permissions on 64-bit platformsTimo Teras2012-02-231-3/+4
| | | | | | | | | sizeof(long) != sizeof(mode_t), this causes the compare in bb_make_directory of (long)-1 != (mode_t)-1 to fail and mess up the permissions of final directory by doing chmod((mode_t) -1). Signed-off-by: Timo Teras <timo.teras@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>