aboutsummaryrefslogtreecommitdiff
path: root/coreutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* install: fix help textDenys Vlasenko2014-09-241-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* install: implement -t DIRAaro Koskinen2014-09-241-15/+22
| | | | | | | | | | | | | | | Some packages want to install themselves using "-t" to specify the directory (as supported by GNU coreutils). Add support for the option for compatibility reasons. function old new delta install_longopts 76 95 +19 install_main 769 777 +8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 27/0) Total: 27 bytes Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df: fix -T option when ENABLE_FEATURE_HUMAN_READABLE=0Ari Sundholm2014-09-201-8/+7
| | | | | Signed-off-by: Ari Sundholm <ari@tuxera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df: implement -T optionAri Sundholm2014-09-171-2/+23
| | | | | | | | | | | function old new delta df_main 863 998 +135 packed_usage 29827 29861 +34 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 169/0) Total: 169 bytes Signed-off-by: Ari Sundholm <ari@tuxera.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test: fix mishandling of "test '(' = '('" and similarDenys Vlasenko2014-07-011-34/+35
| | | | | | | function old new delta test_main 246 350 +104 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stat: fix printing selinux context and null-dereferenceMichael Gernoth2014-06-271-2/+3
| | | | | | | | | | | | busybox stat tries to always print the selinux context, even if it is not requested which leads to a segmentation fault due to dereferencing a null-pointer. This also changes the format-string used to print the context to so it actually produces useful output. Signed-off-by: Michael Gernoth <michael@gernoth.net> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* unlink: new appletIsaac Dunham2014-06-221-0/+34
| | | | | | | | | function old new delta unlink_main - 45 +45 packed_usage 29667 29686 +19 Signed-off-by: Isaac Dunham <ibid.ag@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Add conditional support for -v / --verboseDenys Vlasenko2014-05-197-10/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With FEATURE_VERBOSE off, practically no size change. With it on: function old new delta remove_file 493 556 +63 install_main 719 765 +46 bb_make_directory 383 419 +36 rmdir_main 162 191 +29 copy_file 1516 1544 +28 mv_main 502 525 +23 cmp_main 677 693 +16 bbconfig_config_bz2 5264 5279 +15 mkdir_main 158 168 +10 install_longopts 66 76 +10 rm_main 167 175 +8 nexpr 840 846 +6 scan_tree 275 280 +5 fsck_main 1807 1811 +4 ed_main 2541 2545 +4 expand_one_var 1574 1575 +1 swap_on_off_main 420 418 -2 parse_command 1443 1440 -3 redirect 1279 1274 -5 do_load 946 918 -28 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 16/4 up/down: 304/-38) Total: 266 bytes Based on the patch by Igor Živković. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shuf: trim help textDenys Vlasenko2014-03-071-4/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shuf: do not use strings for -i RANGE caseDenys Vlasenko2014-03-071-3/+5
| | | | | | | function old new delta shuf_main 482 496 +14 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shuf: improve help textBartosz Golaszewski2014-03-071-3/+3
| | | | | Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shuf: fix a segfault on 'shuf -e'Bartosz Golaszewski2014-03-071-1/+2
| | | | | Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* shuf: new appletDenys Vlasenko2014-03-051-0/+150
| | | | | | | | | | | | | | | function old new delta shuf_main - 478 +478 packed_usage 29571 29719 +148 applet_names 2460 2465 +5 applet_main 1428 1432 +4 applet_nameofs 714 716 +2 ------------------------------------------------------------------------------ (add/remove: 2/0 grow/shrink: 4/0 up/down: 637/0) Total: 637 bytes Based on the code by Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: make "ls -s DIR" show total too. Clases 4946Denys Vlasenko2014-02-271-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* catv: suppress compiler warningDenys Vlasenko2014-02-031-7/+9
| | | | | | | The warning was: warning: typedef 'BUG_const_mismatch' locally defined but not used [-Wunused-local-typedefs] Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* uname: fix up usage documentationMike Frysinger2014-01-311-4/+6
| | | | | | | The -i/-o options were missing, and the -r/-s/-v options were incorrectly labeled as "OS" instead of "kernel". Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sort: check global flags on fallback sortBartosz Golaszewski2014-01-191-2/+6
| | | | | | | | | | | Sort now performs global reverse on fallback sort if -r is set. Before only key local flags were checked. function old new delta compare_keys 712 738 +26 Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sort.c: remove a magic number from compare_keys()Bartosz Golaszewski2014-01-191-1/+1
| | | | | | | Use bitwise OR of proper flags instead. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail: adjust help/usage textsCristian Ionescu-Idbohrn2014-01-102-5/+5
| | | | | Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chown: fix help textDenys Vlasenko2014-01-091-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* expand: use printable_string instead of hard-coding implementationMichael Tokarev2013-12-161-10/+3
| | | | | | | | function old new delta expand_main 709 690 -19 Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Use unsigned printf/scanf conversion where more appropriateDenys Vlasenko2013-11-292-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tail compat: fix header printing for tail -fBartosz Golaszewski2013-10-161-1/+4
| | | | | | | | Makes tail -f for multiple files display the header only if another (ie. not currently displayed) file changed. Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* touch: add conditional support for -hDenys Vlasenko2013-09-111-4/+35
| | | | | | Based on a patch by Andy <andy.padavan@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: code shrinkDenys Vlasenko2013-08-201-3/+4
| | | | | | | function old new delta dd_main 1475 1469 -6 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* 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>