aboutsummaryrefslogtreecommitdiff
path: root/coreutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* echo: fix regression ("echo" with no arguments didn't print newline.vda2007-04-101-8/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | echo: use fputs if no options are given. Code growth ~15 bytes. Old: # time ./busybox find $bigdir -exec echo {} \; >/dev/null real 0m2.038s user 0m0.761s sys 0m0.953s New: # time ./busybox find $bigdir -exec echo {} \; >/dev/null real 0m1.781s user 0m0.781s sys 0m0.939s For comparison: without NOFORK: # time find $bigdir -exec echo {} \; >/dev/null real 1m51.129s user 0m38.442s sys 1m3.350s git-svn-id: svn://busybox.net/trunk/busybox@18383 69ca8d6d-28ef-0310-b511-8ec308f3f277
* audit small applets and mark some of them as NOFORK.vda2007-04-1031-94/+124
| | | | | | | | Put big scary warnings in relevant places. git-svn-id: svn://busybox.net/trunk/busybox@18382 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixes. No code changes.vda2007-04-101-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18381 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use skip_non_whitespace() where appropriatealdot2007-04-101-3/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18379 69ca8d6d-28ef-0310-b511-8ec308f3f277
* make xfunctions optionally longjump instead of exit.vda2007-04-092-10/+5
| | | | | | | | use it for making NOFORK more practical. touch: make it a NOFORK applet git-svn-id: svn://busybox.net/trunk/busybox@18376 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Implement first instance of NOFORK applet - echovda2007-04-091-37/+38
| | | | | | | | | | | | find: use NOFORK/NOEXEC; small -exec buglet also eliminated vfork_daemon_rexec: honor PREFER_APPLETS echo: small size improvements find -exec echo {} \; with PREFER_APPLETS=y runs 4 times faster git-svn-id: svn://busybox.net/trunk/busybox@18372 69ca8d6d-28ef-0310-b511-8ec308f3f277
* add some missed statics on constant objects.vda2007-04-086-27/+27
| | | | | | | | | | | | | fix few #ifndef ENABLE_xxx # size busybox_old busybox_unstripped text data bss dec hex filename 677152 2920 18208 698280 aa7a8 busybox_old 676420 2920 18208 697548 aa4cc busybox_unstripped git-svn-id: svn://busybox.net/trunk/busybox@18366 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt32: fix llist_t options ordering. llist_rev is not unused.vda2007-04-082-2/+0
| | | | | | | | | | | | | | | | | | | function old new delta tar_main 705 695 -10 sort_main 928 918 -10 decode_format_string 886 876 -10 run_parts_main 197 185 -12 ps_main 513 500 -13 wget_main 2764 2750 -14 awk_main 1014 1000 -14 od_main 2886 2866 -20 llist_rev 25 - -25 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/8 up/down: 0/-128) Total: -128 bytes git-svn-id: svn://busybox.net/trunk/busybox@18364 69ca8d6d-28ef-0310-b511-8ec308f3f277
* find: fix handling of -prunevda2007-04-082-3/+3
| | | | | | | recursive_actions: uppercase flag constants git-svn-id: svn://busybox.net/trunk/busybox@18362 69ca8d6d-28ef-0310-b511-8ec308f3f277
* comm: eliminate staticsvda2007-04-071-44/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18355 69ca8d6d-28ef-0310-b511-8ec308f3f277
* diff: fix segfault on empty dirs (Peter Korsgaard <peter.korsgaard@barco.com>)vda2007-04-051-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18343 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix segfault in reset_ino_dev_hashtable() when *hashtable was null.aldot2007-04-051-4/+2
| | | | | | | Seen in the testsuite for du -l .../testsuite on exit with CLEAN_UP enabled. git-svn-id: svn://busybox.net/trunk/busybox@18331 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"aldot2007-04-041-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18327 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - minor shrinkagealdot2007-04-041-26/+21
| | | | | | | | | text data bss dec hex filename 1431 0 4 1435 59b tail.o.orig 1396 0 0 1396 574 tail.o git-svn-id: svn://busybox.net/trunk/busybox@18326 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove bss users. Shrinkage while at it. See XXX for further, pre-existing ↵aldot2007-04-041-74/+130
| | | | | | | | | | | bugs text data bss dec hex filename 1969 0 32 2001 7d1 dd.o.oorig 1941 0 0 1941 795 dd.o git-svn-id: svn://busybox.net/trunk/busybox@18322 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove some bss users.aldot2007-04-041-17/+22
| | | | | | | | | text data bss dec hex filename 6220 8 14 6242 1862 stty.o.oorig 6219 8 0 6227 1853 stty.o git-svn-id: svn://busybox.net/trunk/busybox@18321 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove superfluous bss user (flags) and manually unswitch some areas:aldot2007-04-041-138/+92
| | | | | | | | | text data bss dec hex filename 4517 0 34 4551 11c7 stat.o.oorig 4300 0 30 4330 10ea stat.o git-svn-id: svn://busybox.net/trunk/busybox@18320 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use bb_error_msgaldot2007-04-021-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18307 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use xregcomp. Untested. vda, isn't there a regfree missing here?aldot2007-04-021-2/+2
| | | | | | | | | text data bss dec hex filename 2522 0 0 2522 9da expr.o.r18305 2478 0 0 2478 9ae expr.o git-svn-id: svn://busybox.net/trunk/busybox@18306 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove some unneeded forward declarations. No obj-code changes.aldot2007-04-021-30/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18305 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove args from bss, minor misc shrinkage while at it.aldot2007-04-021-40/+45
| | | | | | | | | text data bss dec hex filename 2577 0 4 2581 a15 expr.o 2522 0 0 2522 9da expr.o git-svn-id: svn://busybox.net/trunk/busybox@18304 69ca8d6d-28ef-0310-b511-8ec308f3f277
* test: comment out unused codevda2007-04-021-0/+4
| | | | | | | | udpsvd: fake it compile tcpsvd: more optimal memorizing of IP's for -C git-svn-id: svn://busybox.net/trunk/busybox@18302 69ca8d6d-28ef-0310-b511-8ec308f3f277
* uniq: getopt32-ization. -38 bytes.vda2007-03-311-22/+23
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18286 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix compilation if FEATURE_TR_CLASSES is off. Sorry for that..aldot2007-03-301-2/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18283 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - debloat test. untested.aldot2007-03-301-111/+116
| | | | | | | | | | | | | text data bss dec hex filename 3154 0 172 3326 cfe test.o.oorig 2683 0 172 2855 b27 test.o This applet should be rewritten not to use such odd lexer semantics. It duplicates code from all over the place (see XXX). brrr git-svn-id: svn://busybox.net/trunk/busybox@18282 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fix bug where we did not reject invalid classes like '[[:alpha'aldot2007-03-301-79/+82
| | | | | | | | | | - debloat while at it: text data bss dec hex filename 1554 0 19 1573 625 tr.o.oorig 1357 0 16 1373 55d tr.o git-svn-id: svn://busybox.net/trunk/busybox@18281 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - fold recurse, depthFirst and dereference params into one param flags.aldot2007-03-293-10/+8
| | | | | | | Minor size improvement (-16b for size, -24b according to bloat-o-meter). git-svn-id: svn://busybox.net/trunk/busybox@18271 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move additional fancy options not mandated by SUSv3 into a FANCY optionaldot2007-03-282-7/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18263 69ca8d6d-28ef-0310-b511-8ec308f3f277
* diff: fix SEGV (NULL deref) in diff -Nvda2007-03-261-9/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18252 69ca8d6d-28ef-0310-b511-8ec308f3f277
* split: let me join bikeshed painting frenzy :)vda2007-03-261-68/+71
| | | | | | | | | | | | | | this one should be able to handle huge files. text data bss dec hex filename 664 4 0 668 29c busybox.t0/coreutils/split.o 628 0 0 628 274 busybox.t1/coreutils/split.o split_main 488 525 +37 suffix_len 4 - -4 next_file 77 - -77 (add/remove: 0/2 grow/shrink: 1/0 up/down: 37/-81) Total: -44 bytes git-svn-id: svn://busybox.net/trunk/busybox@18250 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - check the suffix proper plus misc touch upaldot2007-03-261-29/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18249 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - implement suffices as required by SUSv3aldot2007-03-261-17/+29
| | | | | | | - fix glitch in next_file (suffices were exhaused too early). git-svn-id: svn://busybox.net/trunk/busybox@18246 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - shrink a tiny bit (-8b)aldot2007-03-261-7/+18
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18239 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - rough prototype for split(1). TODO: Still needs some love since it's way ↵aldot2007-03-253-0/+127
| | | | | | | | | | too big.. text data bss dec hex filename 602 4 0 606 25e coreutils/split.o git-svn-id: svn://busybox.net/trunk/busybox@18236 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cmp: support 3rd and 4th arguments if DESKTOP=y (needed for gcc build)vda2007-03-211-11/+28
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18199 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix accumulated whitespace and indentation damagevda2007-03-206-26/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18176 69ca8d6d-28ef-0310-b511-8ec308f3f277
* ls: fix segfault-if-standalone-shell, add big fat comment.vda2007-03-191-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18169 69ca8d6d-28ef-0310-b511-8ec308f3f277
* chown, env: stop using staticsvda2007-03-142-14/+14
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18111 69ca8d6d-28ef-0310-b511-8ec308f3f277
* missed hunk of "stop using big static buffer for inode hash"vda2007-03-141-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18110 69ca8d6d-28ef-0310-b511-8ec308f3f277
* introduce and use setfscreatecon_or_dievda2007-03-123-11/+3
| | | | | | | | (patch by Yuichi Nakamura <ynakam@hitachisoft.jp>) runcon: *yet another* fix for vda's brainfart :( git-svn-id: svn://busybox.net/trunk/busybox@18073 69ca8d6d-28ef-0310-b511-8ec308f3f277
* next portion of selinux updates: chcon, runcon. Fromvda2007-03-112-2/+3
| | | | | | | | Yuichi Nakamura <himainu-ynakam@miomio.jp> KaiGai Kohei <busybox@kaigai.gr.jp> git-svn-id: svn://busybox.net/trunk/busybox@18067 69ca8d6d-28ef-0310-b511-8ec308f3f277
* fix buglets found by randomconfig runvda2007-03-112-3/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18064 69ca8d6d-28ef-0310-b511-8ec308f3f277
* selinux support by Yuichi Nakamura <ynakam@hitachisoft.jp> (HitachiSoft)vda2007-03-108-39/+310
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18062 69ca8d6d-28ef-0310-b511-8ec308f3f277
* printf: allow hex/oct numbers; move functions aroundvda2007-03-091-113/+104
| | | | | | | so that we have no forward declarations git-svn-id: svn://busybox.net/trunk/busybox@18054 69ca8d6d-28ef-0310-b511-8ec308f3f277
* diff: failed to confirm "static bug" in gcc - reinstating statics.vda2007-03-092-78/+80
| | | | | | | microscopic code improvements. git-svn-id: svn://busybox.net/trunk/busybox@18051 69ca8d6d-28ef-0310-b511-8ec308f3f277
* chown: fix comment, fix verbose messagevda2007-03-081-16/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18037 69ca8d6d-28ef-0310-b511-8ec308f3f277
* chown: support -H -L -P if ENABLE_DESKTOPvda2007-03-083-28/+109
| | | | | | | | chmod: cosmetic fixes expr: smallish help for dumb compilers git-svn-id: svn://busybox.net/trunk/busybox@18036 69ca8d6d-28ef-0310-b511-8ec308f3f277
* diff: make -U0 workvda2007-03-071-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* clean up accumulated whitespace damagevda2007-03-071-3/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18020 69ca8d6d-28ef-0310-b511-8ec308f3f277
* who: stop using static buffer, small size optimizationsvda2007-03-071-17/+25
| | | | git-svn-id: svn://busybox.net/trunk/busybox@18019 69ca8d6d-28ef-0310-b511-8ec308f3f277