summaryrefslogtreecommitdiff
path: root/applets/busybox.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* syslogd: fix "readpath bug" by using readlink insteadDenis Vlasenko2007-02-111-1/+1
| | | | libbb: rename xgetcwd and xreadlink
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* style fixesDenis Vlasenko2006-12-261-1/+1
| | | | last xcalloc replaced by xzalloc
* random tiny size savingsDenis Vlasenko2006-12-241-34/+32
|
* - add FIXME to brokenness in the installer..Bernhard Reutner-Fischer2006-11-221-0/+1
|
* httpd: LC_TIME locale _must_ be POSIX to httpd! We speak over the net!Denis Vlasenko2006-11-211-2/+2
|
* which: -84 bytesDenis Vlasenko2006-10-051-4/+4
|
* bb_applet_name -> applet_nameDenis Vlasenko2006-10-031-7/+8
|
* The Software Freedom Law Center wants us to add a copyright notice to theRob Landley2006-09-201-12/+4
| | | | | | | | | | | | | | | generated binaries, to make copyright enforcement easier. Our liason with them (Bradley Kuhn) suggested the following text: > Copyright (C) YEAR-2006  Erik Andersen, Rob Landley, and others. > Licensed under GPLv2.  See source distribution for full notice. And the busybox help message seems the least offensive place to put it. (At some point in the future, I need to strip 128 bytes from the binary to feel good about this, though. :) Minor header file cleanup while I was there, since libbb.h already #includes most of that stuff...
* - move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer2006-06-021-1/+3
| | | | and eventual platform specific includes in early.
* - remove emacs layout block as suggested by Robert P.J. DayBernhard Reutner-Fischer2006-05-191-8/+3
| | | | - use shorter boilerplate while at it
* Dennis Vlasenko pointed out that run_applet_by_name sets bb_applet_name already.Rob Landley2006-05-071-1/+1
|
* just whitespaceTim Riker2006-01-251-2/+2
|
* - add platform.h.Bernhard Reutner-Fischer2006-01-221-1/+1
| | | | - use shorter boilerplate while at it.
* - shared libbusybox.Bernhard Reutner-Fischer2006-01-151-1/+1
| | | | | - IMA compilation option (aka IPO, IPA,..) Please holler if i broke something..
* busybox.c: ENABLE_LOCALE logic correct."Vladimir N. Oleynik"2005-09-291-1/+1
|
* remove infinity loop ./busybox --help busybox"Vladimir N. Oleynik"2005-09-051-2/+3
|
* Fixes so "make allnoconfig" works again.Rob Landley2005-09-051-1/+5
| | | | | | | | | | | | | | | | | | | | | | 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.
* General cleanup of command line parsing to allow "busybox" to work as a prefix.Rob Landley2005-09-041-85/+44
| | | | | | | | | | | | | | | | | | | | | | | | | (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...
* output busybox help to stdout, not stderrMike Frysinger2005-04-221-12/+12
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-10/+10
|
* wrap bb help output if CONFIG_FEATURE_AUTOWIDTHTim Riker2003-11-071-1/+9
|
* Woops, the previous patch reversal wasnt complete, breaking everything.Glenn L McGrath2003-10-041-1/+1
|
* Reverse my previous changes and make a note about why its dont this wayGlenn L McGrath2003-10-031-1/+12
|
* argc has already been decrementedGlenn L McGrath2003-10-031-2/+3
|
* Patch from Rob Landley, Simplify organisation of arguments.Glenn L McGrath2003-10-031-13/+2
|
* Major coreutils update.Manuel Novoa III2003-03-191-10/+10
|
* Apply lash_patch35 from vodz, which brings several nice size_optimizations.Eric Andersen2002-04-061-7/+10
|
* Vodz' last_patch31Eric Andersen2001-12-181-1/+1
| | | | | | | | | | | | | 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
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-7/+7
| | | | -Erik
* Fix invocation of `-/bin/sh' (bug #1209).Matt Kraai2001-08-271-6/+6
|
* Per a suggestion from Tom Oehser, fix up the leading-hyphen hack toEric Andersen2001-06-211-5/+2
| | | | | | | | 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
* Patch from larry to fix some grammar errors.Eric Andersen2001-05-231-1/+1
|
* Make the locale stuff only do the getpid==1 check if BB_INIT is definedEric Andersen2001-05-131-1/+5
|
* Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,Eric Andersen2001-05-071-4/+1
| | | | | | make xreadlink() return NULL on failure, and make sure everyone uses the interface correctly. -Erik
* Made new xreadlink function for libbb and changed applets to use it instead ofMark Whitley2001-04-301-14/+3
| | | | readlink(2).
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen2001-04-251-5/+0
| | | | | | | 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
* Apply Vladimir's latest cleanup patch.Eric Andersen2001-04-091-7/+16
| | | | -Erik
* Make 'busybox --help' work as expected, closing bug #1139Eric Andersen2001-04-031-1/+1
| | | | -Erik
* Force applet_name to be "sh" when command prefaced by "-"Eric Andersen2001-03-201-1/+1
|
* Patch from Vladimir to move struct applet from busybox.c to applets.c,Eric Andersen2001-03-191-5/+0
| | | | which looks like the right place for such things to live.
* Changed exit code from -1 to 0 when busybox is invoked with no args.Mark Whitley2001-03-021-1/+1
| | | | (Closes bug #1114.)
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-1/+1
| | | | | | 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
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-8/+1
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Create find_applet_by_name function. Save 32 bytes.Matt Kraai2001-02-011-7/+4
|
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-1/+1
|
* Fix some formattingEric Andersen2001-01-271-6/+5
|
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-0/+1
| | | | | | | 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
* more bugs fixed -- found doing regression testingEric Andersen2001-01-241-32/+31
| | | | -Erik
* Change calls to error_msg.* and strerror to use perror_msg.*.Matt Kraai2000-12-181-2/+2
|