aboutsummaryrefslogtreecommitdiff
path: root/coreutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* apply post-1.16.0 fixes, bump version to 1.16.11_16_1Denys Vlasenko2010-03-285-5/+13
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* randomconfig fixesDenys Vlasenko2010-01-241-9/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: better unicode width support. Hopefully fixes bug 839.Denys Vlasenko2010-01-244-12/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also opens up a possibility to make other unicode stuff smaller and more correct later. but: function old new delta static.combining - 516 +516 bb_wcwidth - 328 +328 unicode_cut_nchars - 141 +141 mbstowc_internal - 93 +93 in_table - 78 +78 cal_main 899 961 +62 static.combining0x10000 - 40 +40 unicode_strlen - 31 +31 bb_mbstrlen 31 - -31 bb_mbstowcs 173 102 -71 ------------------------------------------------------------------------------ (add/remove: 7/1 grow/shrink: 1/1 up/down: 1289/-102) Total: 1187 bytes Uses code of Markus Kuhn, which is in public domain: http://www.cl.cam.ac.uk/~mgk25/ucs/wcwidth.c "Permission to use, copy, modify, and distribute this software for any purpose and without fee is hereby granted. The author disclaims all warranties with regard to this software." Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: introduce FEATURE_DATE_COMPAT; shrinkDenys Vlasenko2010-01-232-34/+41
| | | | | | | function old new delta date_main 889 862 -27 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chown: -2 bytesDenys Vlasenko2010-01-231-4/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* chown: support long optionsMatheus Izvekov2010-01-232-1/+24
| | | | | | | | | function old new delta chown_longopts - 81 +81 chown_main 182 192 +10 Signed-off-by: Matheus Izvekov <mizvekov@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix sort of very large files. +21 byteDenys Vlasenko2010-01-181-12/+24
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix examples which used non-standard cut -b0-NNNDenys Vlasenko2010-01-181-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: make it so that group never glues itself to file sizeDenys Vlasenko2010-01-181-29/+26
| | | | | | + smaller enhancements: inode is long long; -h is a bit narrower; etc Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cp: fix -H handlingDenys Vlasenko2010-01-152-11/+7
| | | | | | | function old new delta copy_file 1495 1518 +23 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* INSTALL: update obsolete doc, as suggested by Doug Clapp (doug.clapp AT ↵Denys Vlasenko2010-01-131-1/+1
| | | | | | triad.rr.com) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix configure sha256sum problem. Closes bug 895Denys Vlasenko2010-01-131-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make it easier to distinquish "struct tm", pointer to one, etcDenys Vlasenko2010-01-091-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* cal: document the location of unicode bug. no code changesDenys Vlasenko2010-01-061-0/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fold: unicode support. Based on a patch by Tomas Heinrich ↵Denys Vlasenko2010-01-044-76/+91
| | | | | | | | | | | | | | | | | | | | <heinrich.tomas@gmail.com> General Unicode support is tweaked to expose unicode_status. function old new delta init_unicode - 77 +77 write2stdout - 19 +19 adjust_column 68 71 +3 unicode_status - 1 +1 unicode_is_enabled 1 - -1 grep_main 780 773 -7 fold_main 619 552 -67 check_unicode_in_env 77 - -77 ------------------------------------------------------------------------------ (add/remove: 3/2 grow/shrink: 1/2 up/down: 100/-152) Total: -52 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* [un]expand: unicode supportTomas Heinrich2010-01-041-18/+33
| | | | | | | | function old new delta expand_main 633 663 +30 Signed-off-by: Tomas Heinrich <heinrich.tomas@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove some uses of argcDenys Vlasenko2010-01-046-17/+17
| | | | | | | | | | | | | | | | | | | | | | | function old new delta whoami_main 34 37 +3 logname_main 60 63 +3 hostid_main 35 38 +3 ttysize_main 136 135 -1 nmeter_main 673 672 -1 logger_main 387 386 -1 uuencode_main 330 328 -2 ifupdown_main 2125 2123 -2 mesg_main 158 155 -3 free_main 333 330 -3 cal_main 902 899 -3 acpid_main 443 440 -3 ar_main 196 189 -7 find_main 476 467 -9 ifconfig_main 1235 1221 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/12 up/down: 9/-49) Total: -40 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make 2 more "int argc"'s unused; more saved if !DESKTOPDenys Vlasenko2010-01-042-6/+6
| | | | | | | | | function old new delta sync_main 18 20 +2 tty_main 90 87 -3 iprule_list 83 79 -4 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* sort: make sort -o FILE FILE (same FILE) work. Closes bug 785. -3 bytesDenys Vlasenko2009-12-131-20/+36
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: code shrink -44 bytesDenys Vlasenko2009-12-111-20/+27
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* stty: fix columns command. closes bug 791.Denys Vlasenko2009-12-111-0/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* mount: prevent second mount -a from mounting everything againDenys Vlasenko2009-12-051-2/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* touch: needs another fix after last utimes() fixesDenys Vlasenko2009-11-301-7/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix improper utimes usageDenys Vlasenko2009-11-291-6/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove a few more cases of argc usage. -89 bytes.Denys Vlasenko2009-11-2810-54/+43
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* split: handle - as "use stdin". +13 bytes. Closes bug 741.Denys Vlasenko2009-11-262-3/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* od: fix -tx without length specDenys Vlasenko2009-11-221-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix fallout from isprint() changesDenys Vlasenko2009-11-201-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: robustify isXXXX(). +39 bytesDenys Vlasenko2009-11-182-2/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wc: fix a hang gue to isprint(EOF)Dan Fandrich2009-11-181-16/+20
| | | | | | | | | The new isprint replacement macro returns TRUE for isprint(EOF), so the read loop never returns. Moved the check for EOF immediately after the read. Signed-off-by: Dan Fandrich <dan@coneharvesters.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: added xfdopen_for_read/writeDenys Vlasenko2009-11-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta xfdopen_helper - 40 +40 logdir_open 1163 1184 +21 process_stdin 433 443 +10 xfdopen_for_write - 9 +9 doCommands 2465 2474 +9 patch_main 1214 1222 +8 bbunpack 457 465 +8 xfdopen_for_read - 7 +7 scan_tree 258 262 +4 xstrtoul_range_sfx 230 231 +1 sendmail_main 957 955 -2 passwd_main 1027 1023 -4 parse 969 964 -5 test_main 253 247 -6 sed_main 655 649 -6 dos2unix_main 437 429 -8 fbsplash_main 950 938 -12 handle_dir_common 371 354 -17 expand_vars_to_list 2197 2169 -28 update_passwd 1275 1246 -29 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 7/10 up/down: 117/-117) Total: 0 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: restore hadling of MMDDhhmm[[CC]YY][.ss] date formatDenys Vlasenko2009-11-151-1/+26
| | | | | | | function old new delta date_main 698 889 +191 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* some non-gnu compilers can't have non-const struct initializersDenys Vlasenko2009-11-151-4/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* use utimes() rather than obsolescent utime()Bernhard Reutner-Fischer2009-11-151-8/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* *: use "can't" instead of "cannot"Denys Vlasenko2009-11-138-12/+12
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* env: don't SEGV on bare "env -"Denys Vlasenko2009-11-121-8/+10
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tidy up O_NONBLOCK usage. use libbb functions in stty.Denys Vlasenko2009-11-111-10/+2
| | | | | | | | | | Added O_RDONLY where improves readability. Note: O_RDONLY == 0, so it is there even if not specified. function old new delta stty_main 1289 1235 -54 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fold: fix a corner case. By Tomas Heinrich (heinrich.tomas AT gmail.com)Denys Vlasenko2009-11-041-8/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use ffulsh_all()Denys Vlasenko2009-11-029-9/+9
| | | | | | | | | | | | | | | | | | | | function old new delta buffer_fill_and_print 179 196 +17 fflush_all - 9 +9 spawn 87 92 +5 rtcwake_main 455 453 -2 ... alarm_intr 93 84 -9 readcmd 1072 1062 -10 bb_ask 345 333 -12 more_main 845 832 -13 flush_stdout_stderr 42 23 -19 xfflush_stdout 27 - -27 flush_stderr 30 - -30 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 2/50 up/down: 31/-397) Total: -366 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* tty: use defines rather than constantsBernhard Reutner-Fischer2009-10-291-5/+5
| | | | | | No obj-code changes. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* add and use xopen_nonblocking (-18b)Bernhard Reutner-Fischer2009-10-271-1/+1
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* fix up potential printf's with unsafe format stringsDenys Vlasenko2009-10-241-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ls: fix "ls | cat" to not show "total NNN" headerDenys Vlasenko2009-10-231-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* date: handle long optionsBernhard Reutner-Fischer2009-10-231-0/+13
| | | | | | | RFC2822 obsoletes RFC822; Silently accept --rfc-822 and return rfc2822 output for compatibility. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* *: optimize most of isXXXXX() macrosDenys Vlasenko2009-10-231-8/+5
| | | | | | | | text data bss dec hex filename 824164 453 6812 831429 cafc5 busybox_old 823730 453 6812 830995 cae13 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove last function calls to isspaceDenys Vlasenko2009-10-222-15/+12
| | | | | | | | | | | function old new delta xstrtoul_range_sfx 232 231 -1 xstrtoull_range_sfx 295 293 -2 trim 82 80 -2 trim_trailing_spaces_and_print 57 52 -5 isspace 18 - -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* df: trivial 64-bit fixDenys Vlasenko2009-10-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: use correct multiplication factor and simplify codeDenys Vlasenko2009-10-141-19/+7
| | | | | | | function old new delta dd_output_status 332 364 +32 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: add a comment, no code changesDenys Vlasenko2009-10-141-3/+3
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* dd: speed measurement. optional.Gabor Heja2009-10-142-7/+66
| | | | | | | | | | | | function old new delta dd_output_status 68 289 +221 dd_main 1463 1482 +19 write_and_stats 64 75 +11 packed_usage 26529 26526 -3 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/1 up/down: 251/-3) Total: 248 bytes Signed-off-by: Gabor Heja <kakaopor@kakaopor.hu> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>