summaryrefslogtreecommitdiff
path: root/shell/msh.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Denis Vlasenko2007-09-271-5/+5
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-5/+4
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* Consolidate ARRAY_SIZE macro; remove one unneeded global var (walter harms ↵Denis Vlasenko2007-06-251-3/+3
| | | | <wharms@bfs.de>)
* *: BB_BANNER -> bb_banner (it is not a const or #define)!Denis Vlasenko2007-06-131-3/+3
| | | | | | | | | | | | correct_password: explain in detail why it is ok to use bb_banner fsck_minix: make it print bb version, not it's own (outdated/irrelevant) one Marginal size difference: text data bss dec hex filename 679119 2700 15632 697451 aa46b busybox_old 679091 2700 15632 697423 aa44f busybox_unstripped
* remove nearly-duplicate PATHs in several placesDenis Vlasenko2007-06-121-2/+2
| | | | | | | | | | | | | | function old new delta bb_PATH_root_path - 35 +35 varunset 60 58 -2 arith 2042 2033 -9 bb_default_root_login_path 30 - -30 .rodata 128794 128762 -32 which_main 152 117 -35 defpathvar 40 - -40 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 0/4 up/down: 35/-148) Total: -113 bytes
* A few more string duplicates found & eliminatedDenis Vlasenko2007-06-121-2/+2
| | | | | | | | # size busybox_old busybox_unstripped text data bss dec hex filename 679693 2700 15632 698025 aa6a9 busybox_old 679523 2700 15632 697855 aa5ff busybox_unstripped
* make busybox --install work even if /proc/self/exe doesn't existDenis Vlasenko2007-06-081-1/+1
| | | | | | | | # size busybox_old busybox_unstripped text data bss dec hex filename 680095 2704 15648 698447 aa84f busybox_old 680099 2704 15648 698451 aa853 busybox_unstripped
* whitespace fixesDenis Vlasenko2007-05-301-4/+4
|
* msh: fix obscure case with backticks and closed fd 1Denis Vlasenko2007-05-091-7/+12
|
* shells: remove few statics and duplicated codeDenis Vlasenko2007-04-161-20/+16
| | | | | | | | | | | | | | | | | | | | (much more of the same remains, alas) function old new delta doset 330 332 +2 warn 53 51 -2 onecommand 463 461 -2 ioecho 40 38 -2 forkexec 1412 1410 -2 err 81 79 -2 setdash 59 56 -3 flag 4 - -4 msh_main 1389 1384 -5 eval 388 381 -7 subgetc 759 747 -12 static.local 14 - -14 b_adduint 70 52 -18 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 1/10 up/down: 2/-73) Total: -71 bytes
* msh: style fixesDenis Vlasenko2007-04-141-6/+4
| | | | shell/README - a place to record things about busybox shells
* lineedit: nuke two unused variables and code which sets themDenis Vlasenko2007-04-141-34/+33
| | | | | | applets: do not even try to read config if run by real root msh: use named constants (O_RDONLY etc) in open() instead of magic numbers, other minor code size reduction.
* pass a copy of argv[i] to NOFORK applets (they may permute it etc).Denis Vlasenko2007-04-121-1/+0
| | | | set/save/restore more shared global variables whan call one applet from another
* style fixes. No code changesDenis Vlasenko2007-04-121-12/+12
|
* rename: run_applet_by_name -> run_applet_and_exitDenis Vlasenko2007-04-111-1/+1
|
* Rename two config options:Denis Vlasenko2007-04-101-3/+3
| | | | | | | FEATURE_SH_STANDALONE_SHELL => FEATURE_SH_STANDALONE FEATURE_EXEC_PREFER_APPLETS => FEATURE_PREFER_APPLETS Make SH_STANDALONE depend on PREFER_APPLETS. getopt.c: more randomconfig-induced fixes
* make a few struct bb_applet members conditionalDenis Vlasenko2007-04-101-1/+1
| | | | | | rename sllep_and_die -> xfunc_die make fflush_stdout_and_exit NOFORK-safe fix some buglets found by randomconfig
* msh: smallish code shrinkage; cosmeticsDenis Vlasenko2007-04-091-68/+58
|
* make pidfile writing configurable.Denis Vlasenko2007-03-271-5/+5
| | | | [ui]toa_to_buf: change API. No users yet.
* inetd,ed,msh: data/bss reduction (in mss, more than 9k of it)Denis Vlasenko2007-03-241-43/+61
|
* dc: use common_bufsiz1 for evaluation stackDenis Vlasenko2007-03-241-9/+8
| | | | | msh: fix "underscore bug" (a_b=1111 didn't work) dnsd: openlog(), so that applet's name is logged
* fix accumulated whitespace and indentation damageDenis Vlasenko2007-03-201-23/+23
|
* add STANDALONE supportMike Frysinger2007-03-091-5/+73
|
* clean up accumulated whitespace damageDenis Vlasenko2007-03-071-1/+1
|
* msh: fix my bugletDenis Vlasenko2007-02-091-5/+8
|
* find: support for !Denis Vlasenko2007-02-041-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* msh: cleaning up for -Wwrite-strings part #4Denis Vlasenko2007-02-011-270/+287
|
* msh: cleaning up for -Wwrite-strings part #3Denis Vlasenko2007-02-011-61/+57
|
* msh: cleaning up for -Wwrite-strings part #2Denis Vlasenko2007-02-011-675/+648
|
* msh: cleaning up for -Wwrite-stringsDenis Vlasenko2007-02-011-196/+236
|
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-14/+14
|
* cmdedit is not a 'command' editing anymore, it's just editing (generic),Denis Vlasenko2007-01-221-14/+14
| | | | so rename stuff accordingly.
* Convert cmdedit into more generic line input facilityDenis Vlasenko2007-01-221-10/+16
| | | | | | (make history and completion optional at runtime). Use it for fdisk, as an example. Some unrelated fixes in fdisk are also here.
* stty: fix width of a field for ppc32Denis Vlasenko2007-01-011-2/+5
| | | | | sort: fix -u to match coreutils 6.3 msh: compile fix (my fault)
* msh: double "static char line[LINELIM]" etc deleted.Denis Vlasenko2007-01-011-87/+138
| | | | | massive amounts of assignments-in-ifs deleted (some of which were VERY nasty)
* random tiny size savingsDenis Vlasenko2006-12-241-5/+3
|
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-1/+1
|
* style cleanup: return(a) -> return a, part 2Denis Vlasenko2006-11-271-139/+140
|
* style cleanup: return(a) -> return a, part 1Denis Vlasenko2006-11-271-89/+89
|
* rodata cleanup. "unable to" == "cannot". -300 bytesDenis Vlasenko2006-11-181-1/+1
|
* remove duplicate flag declsMike Frysinger2006-11-151-3/+3
|
* silly size savings and capitalization fixesDenis Vlasenko2006-10-261-2/+2
|
* add open_read_close() and similar stuffDenis Vlasenko2006-10-141-3/+3
|
* Make a warning go away when standalone shell is disabled.Rob Landley2006-08-101-9/+8
|
* A couple things that got tangled up in my tree, easier to check in both thanRob Landley2006-07-121-40/+1
| | | | | | | | | | | | | | untangle them: Rewrite u_signal_names() into get_signum() and get_signame(), plus trim the signal list to that required by posix (they can specify the numbers for the rest if they really need them). (This is preparatory cleanup for adding a timeout applet like Roberto Foglietta wants.) Export the itoa (added due to Denis Vlasenko, although it's not quite his preferred implementation) from xfuncs.c so it's actually used, and remove several other redundant implementations of itoa and utoa() in the tree.
* Get rid of all "#if 0" content."Robert P. J. Day"2006-07-011-44/+0
|
* Remove all usage of the "register" storage class specifier."Robert P. J. Day"2006-07-011-212/+207
|
* dont setpgrp() for now as it breaks system() and that is more important than ↵Mike Frysinger2006-06-261-4/+0
| | | | ctrl+c handling of background processes