aboutsummaryrefslogtreecommitdiff
path: root/applets/busybox.c
AgeCommit message (Collapse)Author
2006-06-02- move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer
and eventual platform specific includes in early.
2006-05-19- remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer
- use shorter boilerplate while at it
2006-05-07Dennis Vlasenko pointed out that run_applet_by_name sets bb_applet_name already.Rob Landley
2006-01-25just whitespaceTim Riker
2006-01-22- add platform.h.Bernhard Reutner-Fischer
- use shorter boilerplate while at it.
2006-01-15- shared libbusybox.Bernhard Reutner-Fischer
- IMA compilation option (aka IPO, IPA,..) Please holler if i broke something..
2005-09-29busybox.c: ENABLE_LOCALE logic correct."Vladimir N. Oleynik"
2005-09-05remove infinity loop ./busybox --help busybox"Vladimir N. Oleynik"
2005-09-05Fixes so "make allnoconfig" works again.Rob Landley
The configure system's save function edited out sub-menus that wouldn't be displayed in the current configuration, meaning config.h wouldn't have #udef entries for those symbols, meaning bb_config.h would have the relevant ENABLE_ missing instead of defined to 0. This broke the build. So I fixed it, and then reorganized the applets.c and busybox.c to take away the warnings this revealed (code that would be optimized out was making calls to functions that hadn't been prototyped. So I added an #else case to those #ifdefs to #define the relevant functions to empty macros to placate the warnings. I also reorganized the applets.c code to make adding such an #else case less of a pain (and make the need for prototyping go away by moving the functions up before they were used, and generally wind up with fewer #ifdefs in the code by putting all the logic in one place). This resulted in a huge seeming patch, when most if it just moves code from one place to another without touching it... Upside: make allyesconfig and make allnoconfig should both work now.
2005-09-04General cleanup of command line parsing to allow "busybox" to work as a prefix.Rob Landley
(I.E. any argv[0] that starts with "busybox" winds up in busybox_main().) Added testing/busybox.tests which tests the following permutations: ./busybox ./busybox-suffix ./busybox cat ./busybox-suffix cat ./busybox --help ./busybox-suffix --help ./busybox --help cat ./busybox-suffix --help cat ./busybox --help unknown ./busybox-suffix --help unknown ./unknown Also repair the test suite so ./runtest calls the ".tests" scripts properly. Note: you can now go "busybox busybox busbox ls -l" and it'll take it. The new code is pretty generic. I can block that if anybody can come up with a good reason to...
2005-04-22output busybox help to stdout, not stderrMike Frysinger
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2003-11-07wrap bb help output if CONFIG_FEATURE_AUTOWIDTHTim Riker
2003-10-04Woops, the previous patch reversal wasnt complete, breaking everything.Glenn L McGrath
2003-10-03Reverse my previous changes and make a note about why its dont this wayGlenn L McGrath
2003-10-03argc has already been decrementedGlenn L McGrath
2003-10-03Patch from Rob Landley, Simplify organisation of arguments.Glenn L McGrath
2003-03-19Major coreutils update.Manuel Novoa III
2002-04-06Apply lash_patch35 from vodz, which brings several nice size_optimizations.Eric Andersen
2001-12-18Vodz' last_patch31Eric Andersen
Very minimal last corrections: 1) busybox.c: fix warining 2) docs/: add applets for list from pwd_grp 3) usage.h: add -n option for route 4) run_parts.c: many todo fix for busybox style 5) addgroup.c: add #ifdef CONFIG_FEATURE_SHADOWPASSWDS, reduce one perror_msg 6) adduser.c: fix bug "variable i not initialize" and add #ifdef CONFIG_FEATURE_SHADOWPASSWDS
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-08-27Fix invocation of `-/bin/sh' (bug #1209).Matt Kraai
2001-06-21Per a suggestion from Tom Oehser, fix up the leading-hyphen hack toEric Andersen
make it general. Now all leading single hyphens are ignored for purposed of applet name matching, while argv[0] is still passed unaltered to applets, so leading-hyphen sensitive applets (such as sh) can react accordingly. -Erik
2001-05-23Patch from larry to fix some grammar errors.Eric Andersen
2001-05-13Make the locale stuff only do the getpid==1 check if BB_INIT is definedEric Andersen
2001-05-07Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,Eric Andersen
make xreadlink() return NULL on failure, and make sure everyone uses the interface correctly. -Erik
2001-04-30Made new xreadlink function for libbb and changed applets to use it instead ofMark Whitley
readlink(2).
2001-04-25Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen
This way, we can new get rid of all that tedious #define rubbish we used to need to enable specific messages. This way is enormously simpler, and as a bonus also ends up saving us 96 bytes. -Erik
2001-04-09Apply Vladimir's latest cleanup patch.Eric Andersen
-Erik
2001-04-03Make 'busybox --help' work as expected, closing bug #1139Eric Andersen
-Erik
2001-03-20Force applet_name to be "sh" when command prefaced by "-"Eric Andersen
2001-03-19Patch from Vladimir to move struct applet from busybox.c to applets.c,Eric Andersen
which looks like the right place for such things to live.
2001-03-02Changed exit code from -1 to 0 when busybox is invoked with no args.Mark Whitley
(Closes bug #1114.)
2001-02-20It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen
header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
2001-02-14This patch, put together by Manuel Novoa III, is a merge of workEric Andersen
done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
2001-02-01Create find_applet_by_name function. Save 32 bytes.Matt Kraai
2001-01-31Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai
2001-01-27Fix some formattingEric Andersen
2001-01-27Fix header file usage -- there were many unnecessary header files included inEric Andersen
busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
2001-01-24more bugs fixed -- found doing regression testingEric Andersen
-Erik
2000-12-18Change calls to error_msg.* and strerror to use perror_msg.*.Matt Kraai
2000-12-15Rewrite argv munger.Matt Kraai
2000-12-09Forget to set final argv entry to NULL, breaking sh.c amoungEric Andersen
other things...
2000-12-08when invoked as 'busybox foo args' remove the "busybox"Eric Andersen
so ps shows only what we want it to show...
2000-12-07Changed names of functions in utility.c and all affected files, to makeMark Whitley
compliant with the style guide. Everybody rebuild your tags file!
2000-11-30Patch from Larry Doolittle (with minor touchups from me so everything compilesEric Andersen
and works) to use the applet definitions in applets.h to autogenerate the applet function and usage prototypes.
2000-11-17Fix up builtin overrides, and hack in the binary search for findingEric Andersen
matching applets into the shell.
2000-10-25Restore --help handling I mistakenly removed.Matt Kraai
2000-10-25Avoid reinventing the wheel (and thus save some space).Matt Kraai
2000-10-25Applied patch from Gaute B Strokkenes <gs234@cam.ac.uk> to use a binary searchMark Whitley
to locate applets, rather than a linear search. Also, broke out the listing of applets into it's own file: applets.h.