summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* delete tons of extra #includesDenis Vlasenko2007-05-3159-176/+68
|
* use "glibc errno" trick not only for ash, but for entire busyboxDenis Vlasenko2007-05-3116-83/+23
| | | | | (add/remove: 1/1 grow/shrink: 37/37 up/down: 139/-228) Total: -89 bytes
* more: stop using bssDenis Vlasenko2007-05-312-13/+29
| | | | | | | | | | | | | | # make && make bloatcheck function old new delta gotsig 86 107 +21 more_main 777 781 +4 cin_fileno 4 - -4 set_tty_to_initial_mode 25 - -25 new_settings 120 60 -60 initial_settings 120 60 -60 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 2/2 up/down: 25/-149) Total: -124 bytes
* less: fix very obscure memory corruption bugDenis Vlasenko2007-05-311-7/+38
|
* less: stop using data/bss. Code got smaller too.Denis Vlasenko2007-05-311-47/+82
| | | | | | | | | | | | # size busybox_old busybox_unstripped text data bss dec hex filename 700719 2896 17880 721495 b0257 busybox_old 700547 2832 17432 720811 affab busybox_unstripped # size */*/less.o text data bss dec hex filename 6861 50 344 7255 1c57 busybox.t0/miscutils/less.o 6657 0 0 6657 1a01 busybox.t1/miscutils/less.o
* nmeter: stop using data/bss; reduce amount of reads from /procDenis Vlasenko2007-05-301-48/+89
| | | | | | | # size */*/nmeter.o text data bss dec hex filename 4366 80 16 4462 116e busybox.t0/miscutils/nmeter.o 4386 0 0 4386 1122 busybox.t2/miscutils/nmeter.o
* vi: move some data to malloc'ed space: ~500 less bss, codeDenis Vlasenko2007-05-301-42/+68
| | | | size is smaller too (subject to arch differenced I guess)
* hush: trivial buglet found by randomconfig testingDenis Vlasenko2007-05-301-0/+2
|
* whitespace fixesDenis Vlasenko2007-05-3029-82/+82
|
* verror_msg: don't printf(NULL)Denis Vlasenko2007-05-291-3/+8
|
* test: close bug 1371Denis Vlasenko2007-05-271-5/+10
| | | | | test: plug a memory leak
* ping: fix wrong sign extension of packet id (bug 1373)Denis Vlasenko2007-05-271-2/+2
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-26251-269/+270
| | | | | *: s/include "busybox.h"/include "libbb.h"
* xpipe: introduce (saves ~170 bytes)Denis Vlasenko2007-05-269-36/+35
| | | | | udhcp/signalpipe.c: use pipe instead of socketpair.
* - fix typo in help text and fix punctuationBernhard Reutner-Fischer2007-05-261-4/+4
|
* hush: fix 'echo abc`sleep 5`def' + Ctrl-Z and Ctrl-C bugs. +50 bytes of code.Denis Vlasenko2007-05-251-6/+18
|
* hush: avoid duplicating HUSH_VERSIONDenis Vlasenko2007-05-251-15/+16
|
* hush: micro-optimization in new variable codeDenis Vlasenko2007-05-251-5/+5
|
* hush: we can't do without variable->value member, saving 25 bytes of codeDenis Vlasenko2007-05-251-42/+38
| | | | and some runtime memory. Rename few variables.
* hush: rework variable storage and environment handling.Denis Vlasenko2007-05-254-167/+238
| | | | | | More that -100 bytes of code + memory leak plugged. Added a testcase for it.
* hush: update README with yet another failure caseDenis Vlasenko2007-05-241-0/+5
|
* hush: fix segfaulting syntax error in interactive hushDenis Vlasenko2007-05-241-23/+29
|
* hush: improve 2 testsuite testsDenis Vlasenko2007-05-244-2/+17
|
* hush: add 2 tests for correct syntax error reportingDenis Vlasenko2007-05-242-0/+2
|
* udhcp: socketpair can fail if AF_UNIX is not available (e.g. if module is ↵Denis Vlasenko2007-05-241-1/+3
| | | | | | not loaded). Error out on that.
* hush: fix handling of unmatched ${name (without closing '}') -Denis Vlasenko2007-05-244-9/+15
| | | | | | | was eating all remaining input, potentially megabytes. nofork: save/restore die_jmp too nofork: use -2222 instead of -111 as "special" return valur for zero (-111 is used by some applets. -2222 won't fit in exitcode and thus safer)
* hush: make syntax error messages a bit more usefulDenis Vlasenko2007-05-233-29/+37
|
* hush: prepare testsuite for new, fixed error message formatDenis Vlasenko2007-05-231-1/+1
|
* hush: fix job control with eval /bin/external_progDenis Vlasenko2007-05-233-92/+96
| | | | | | hush: fix parsing of unterminated "str with no EOL hush: improved make_string() (smaller, faster, needs less RAM) hush: renamed several functions
* hush: fix a bit different instance of "No EOL" bug,Denis Vlasenko2007-05-235-40/+57
| | | | add testsuite for that. Expand another testsuite.
* fix execute bit on hush-misc/shift.testsDenis Vlasenko2007-05-231-0/+0
|
* hdparm: make -T -t code smaller (-194 bytes), and output prettierDenis Vlasenko2007-05-221-97/+75
|
* hush: add 3 CONFIG_xxx, allowing for smaller and less capable hush.Denis Vlasenko2007-05-212-38/+109
| | | | Minimal hush is ~9k now (lash is ~7k).
* shells: update README and testsuite. environment memory leakDenis Vlasenko2007-05-213-1/+17
| | | | needs to be fixed - and documented!
* hush: using smallints where we can. save ~20 bytes in code andDenis Vlasenko2007-05-211-47/+50
| | | | some data storage at runtime.
* hush: fix shift + $0 bug; add testcaseDenis Vlasenko2007-05-203-1/+9
|
* hush: trivial size optimizationDenis Vlasenko2007-05-201-5/+6
|
* hush: make process substitution configurable; add a testcaseDenis Vlasenko2007-05-204-1/+22
|
* busybox.net: announce 1.5.1 on the web site.Denis Vlasenko2007-05-201-0/+9
|
* ash: implement type -p, costs less than 10 bytesDenis Vlasenko2007-05-201-16/+11
| | | | (patch by Mats Erik Andersson <mats.andersson64@comhem.se>)
* mount: fix mounting of symlinks (mount from util-linux allows that)Denis Vlasenko2007-05-201-1/+3
|
* cttyhack: new applet.Denis Vlasenko2007-05-185-2/+96
|
* make "static linking against glibc" an #error, not #warningDenis Vlasenko2007-05-181-0/+1
|
* awk: fix a trivial bug introduced by me.Denis Vlasenko2007-05-181-1/+1
| | | | | | This is how it goes. I break stuff by doing useless 'cleanups', people fix the fallout. :(. Thanks rockeychu!
* we were basically ignoring CONFIG_USE_BB_PWD_GRP (assuming =y),Denis Vlasenko2007-05-181-1/+3
| | | | fix this
* awk: make code a bit less obfuscatedDenis Vlasenko2007-05-171-240/+251
|
* several *.c files:Denis Vlasenko2007-05-175-7/+7
| | | | move 'extern environ' up to the location of #includes
* vi: remove two globalsDenis Vlasenko2007-05-172-69/+79
| | | | | | | | | | | | | | | | | | | | | | | | awk: some 'lineno' vars were shorts, made them ints (code got smaller) awk: rename global t to global ttt. still an awful name, but at least you can grep for it now. function old new delta ttt - 28 +28 mysleep 104 120 +16 readit 408 418 +10 lineno 2 4 +2 parse_program 338 339 +1 evaluate 6446 6445 -1 syntax_error 25 23 -2 next_token 917 915 -2 new_node 26 24 -2 tv 16 8 -8 skip_spaces 68 53 -15 t 28 - -28 rfds 128 - -128 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 4/6 up/down: 57/-186) Total: -129 bytes
* hush: do "struct globals" trick. hush.o data+bss = 0 bytes now.Denis Vlasenko2007-05-171-105/+134
| | | | +60 bytes to image, but -8000 bytes in bss.
* hush: consolidated variable expansion for assignments and "normal" one.Denis Vlasenko2007-05-171-87/+39
| | | | -435 bytes. Tested against testsuite.