aboutsummaryrefslogtreecommitdiff
path: root/busybox.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Patch from larry to fix some grammar errors.andersen2001-05-231-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2715 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make the locale stuff only do the getpid==1 check if BB_INIT is definedandersen2001-05-131-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2629 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Per some comments from Lars Kellogg-Stedman <lars@larsshack.org>,andersen2001-05-071-4/+1
| | | | | | | | | make xreadlink() return NULL on failure, and make sure everyone uses the interface correctly. -Erik git-svn-id: svn://busybox.net/trunk/busybox@2551 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Made new xreadlink function for libbb and changed applets to use it instead ofmarkw2001-04-301-14/+3
| | | | | | | readlink(2). git-svn-id: svn://busybox.net/trunk/busybox@2495 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Move messages.c to libbb. Make each string in messages.c be its own .o file.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 git-svn-id: svn://busybox.net/trunk/busybox@2430 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Apply Vladimir's latest cleanup patch.andersen2001-04-091-7/+16
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2288 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make 'busybox --help' work as expected, closing bug #1139andersen2001-04-031-1/+1
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@2231 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Force applet_name to be "sh" when command prefaced by "-"andersen2001-03-201-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2173 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Vladimir to move struct applet from busybox.c to applets.c,andersen2001-03-191-5/+0
| | | | | | | which looks like the right place for such things to live. git-svn-id: svn://busybox.net/trunk/busybox@2148 69ca8d6d-28ef-0310-b511-8ec308f3f277
* 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