aboutsummaryrefslogtreecommitdiff
path: root/busybox.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Changed exit code from -1 to 0 when busybox is invoked with no args.markw2001-03-021-1/+1
| | | | | | | (Closes bug #1114.) git-svn-id: svn://busybox.net/trunk/busybox@1952 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It turns out that DODMALLOC was broken when I reorganized busybox.handersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* This patch, put together by Manuel Novoa III, is a merge of workandersen2001-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. git-svn-id: svn://busybox.net/trunk/busybox@1805 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Create find_applet_by_name function. Save 32 bytes.kraai2001-02-011-7/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1735 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed trailing \n from error_msg{,_and_die} messages.kraai2001-01-311-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1732 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some formattingandersen2001-01-271-6/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix header file usage -- there were many unnecessary header files included inandersen2001-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 git-svn-id: svn://busybox.net/trunk/busybox@1695 69ca8d6d-28ef-0310-b511-8ec308f3f277
* more bugs fixed -- found doing regression testingandersen2001-01-241-32/+31
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1656 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Change calls to error_msg.* and strerror to use perror_msg.*.kraai2000-12-181-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1466 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rewrite argv munger.kraai2000-12-151-22/+11
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1460 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Forget to set final argv entry to NULL, breaking sh.c amoungandersen2000-12-091-0/+1
| | | | | | | other things... git-svn-id: svn://busybox.net/trunk/busybox@1407 69ca8d6d-28ef-0310-b511-8ec308f3f277
* when invoked as 'busybox foo args' remove the "busybox"andersen2000-12-081-4/+25
| | | | | | | so ps shows only what we want it to show... git-svn-id: svn://busybox.net/trunk/busybox@1400 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed names of functions in utility.c and all affected files, to makemarkw2000-12-071-2/+2
| | | | | | | compliant with the style guide. Everybody rebuild your tags file! git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Larry Doolittle (with minor touchups from me so everything compilesandersen2000-11-301-0/+4
| | | | | | | | and works) to use the applet definitions in applets.h to autogenerate the applet function and usage prototypes. git-svn-id: svn://busybox.net/trunk/busybox@1354 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix up builtin overrides, and hack in the binary search for findingandersen2000-11-171-8/+0
| | | | | | | matching applets into the shell. git-svn-id: svn://busybox.net/trunk/busybox@1323 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Restore --help handling I mistakenly removed.kraai2000-10-251-1/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1241 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Avoid reinventing the wheel (and thus save some space).kraai2000-10-251-26/+13
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1240 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from Gaute B Strokkenes <gs234@cam.ac.uk> to use a binary searchmarkw2000-10-251-366/+27
| | | | | | | | to locate applets, rather than a linear search. Also, broke out the listing of applets into it's own file: applets.h. git-svn-id: svn://busybox.net/trunk/busybox@1229 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Put getopt_usage where it belongs and added *_usage entries in busybox.[ch]markw2000-10-191-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1206 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added cmp and readlink applets from Matt Kraai.markw2000-10-091-0/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1175 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Renamed "internal.h" to the more sensible "busybox.h".andersen2000-09-251-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1119 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix from Matt Kraai for the to the "busybox --install prints out on STDERRandersen2000-09-251-14/+7
| | | | | | | | | | | "File already exists" messages for all files (including the ones that DON'T exist)" problem reported by "Bruno L. F. Cabral" <bruno@openline.com.br>. Thanks Matt! -Erik git-svn-id: svn://busybox.net/trunk/busybox@1117 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in xargsandersen2000-09-221-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1096 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added dos2unix, unix2dos, and unrpm.c thanks to robotti@metconnect.com.andersen2000-09-201-0/+9
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1076 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added expr, from Edward Betts <edward@debian.org>, with some fixupsandersen2000-09-051-0/+3
| | | | | | | | and docs added by me. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1008 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Initial implementation of wget, from Chip Rosenthal <chip@laserlink.net>.andersen2000-09-041-0/+3
| | | | | | | | | Very cool. Still lacks "chunked" transfer-coding, so not totally RFC compliant for HTTP1.1, but very nice nonethe less, and very small. -Erik git-svn-id: svn://busybox.net/trunk/busybox@1005 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix compile when BB_FEATURE_LINUXRC is definedandersen2000-09-011-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@1000 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added the 'rdate' command, thanks to Sterling Huxley <sterling@europa.com>.andersen2000-08-211-0/+3
| | | | | | | | I added the docs, and made behavior identical to the GNU version. -Erik git-svn-id: svn://busybox.net/trunk/busybox@970 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added getopt(1) from "Alfred M. Szmidt" <ams@trillian.itslinux.org>andersen2000-08-211-0/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@967 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add in the "reset" command.andersen2000-08-211-0/+3
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@962 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Minor fixups.andersen2000-08-191-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@957 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some #include updates.andersen2000-08-101-4/+4
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@946 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More sh updates (with related changes to everything else). Switchedandersen2000-07-281-3/+3
| | | | | | | | | to using getopt and cleaned up the resulting mess. if-then-else-fi is now basically working (given a bunch of constraints). -Erik git-svn-id: svn://busybox.net/trunk/busybox@913 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove some noise.andersen2000-07-251-27/+0
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@902 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added 'renice' command, thanks to Dave Cinege <dcinege@psychosis.com>andersen2000-07-211-1/+5
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@897 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Centralize handling of --help.kraai2000-07-191-108/+110
| | | | git-svn-id: svn://busybox.net/trunk/busybox@883 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Funny. Head was getting installed to the wrong spot.andersen2000-07-191-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@877 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New message added to messages.c: full_versionproski2000-07-171-2/+6
| | | | | | | Used where possible git-svn-id: svn://busybox.net/trunk/busybox@871 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Be more pedantic aboutthe terminating null applet.andersen2000-07-141-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@851 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-141-2/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* The applet name isn't constant.kraai2000-07-121-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@828 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added applet_name to contain the applet name.kraai2000-07-111-5/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@823 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added 'dumpkmap' to allow people to dump a binary keymap, which can then beandersen2000-07-111-0/+3
| | | | | | | | loaded in by 'loadkmap' -- submitted by Arne Bernin <arne@matrix.loopback.org> -Erik git-svn-id: svn://busybox.net/trunk/busybox@813 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Removed sfdisk from BusyBox. It was buggy, fat, and we really couldn'tandersen2000-07-071-3/+0
| | | | | | | | | maintain it very well, so including it was not very appropriate. Those wanting an fdisk are invited to grab a copy from util-linux. -Erik git-svn-id: svn://busybox.net/trunk/busybox@774 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove leftovers of block_device, which disapperared aroundandersen2000-07-061-3/+0
| | | | | | | | busybox 0.28. -Erik git-svn-id: svn://busybox.net/trunk/busybox@757 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Added support for being a login shell, so things like '-su' or '-sh' (stuffandersen2000-06-291-0/+7
| | | | | | | | | where argv[0][0]=='-') will now always invoke the shell. Now you can use BusyBox as a login shell. -Erik git-svn-id: svn://busybox.net/trunk/busybox@726 69ca8d6d-28ef-0310-b511-8ec308f3f277
* = minor formatting issuesbeppu2000-06-281-21/+20
| | | | git-svn-id: svn://busybox.net/trunk/busybox@713 69ca8d6d-28ef-0310-b511-8ec308f3f277
* + busybox --install [-s]beppu2000-06-281-9/+38
| | | | | | | | is functional (but disabled in busybox.def.h by default) Someone email the guy who originally wanted this. git-svn-id: svn://busybox.net/trunk/busybox@712 69ca8d6d-28ef-0310-b511-8ec308f3f277
* + s/int install_links/static int install_links/beppu2000-06-271-1/+1
| | | | | | | | | | | ? Did you want "busybox --install" or "busybox install" ? The TODO and mailing-list conflict on this issue. I would recommend against "busybox install", because people might confuse it w/ /usr/bin/install that does something different. git-svn-id: svn://busybox.net/trunk/busybox@709 69ca8d6d-28ef-0310-b511-8ec308f3f277
* + littering my code w/ comments about what troubles me.beppu2000-06-271-1/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@707 69ca8d6d-28ef-0310-b511-8ec308f3f277