summaryrefslogtreecommitdiff
path: root/coreutils/test.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* introduce LONE_CHAR (optimized strcmp with one-char string)Denis Vlasenko2006-12-211-4/+6
|
* style cleanup: return(a) -> return a, part 1Denis Vlasenko2006-11-271-8/+8
|
* "Jordan Crouse" <jordan.crouse@amd.com> says:Rob Landley2006-08-221-3/+5
| | | | | | | | | | The following patch makes coreutils/test.c act fail gracefully if getgroups() returns a -1.  This fixes a problem on the One Laptop Per Child ROM image whereby we were getting odd Memory exhausted messages for '[' and 'test'. Found by Mitch Bradley <wmb@firmworks.com> (Tweaked by Rob: no need to initialize a static to NULL, or realloc something that's only allocated when it's NULL.)
* Remove all usage of the "register" storage class specifier."Robert P. J. Day"2006-07-011-1/+1
|
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-5/+2
| | | | that and callers wind up typecasting it back.
* made "test" an ash built-in.Paul Fox2006-06-081-47/+76
| | | | | | | | | | | | | | | | | | | moved the contents of libbb/bb_echo.c back into coreutils/echo.c, which is a more reasonable place for them than libbb. this forces anyone who wants echo and test to be builtin to ash to also have them available as applets. their cost is very small, and the number of people who wouldn't want them as applets is also very small. added warning about shell builtins vs. CONFIG_FEATURE_SH_STANDALONE_SHELL, which conflicts with their use. thanks to nathanael copa for debugging help. some string size optimization in test.c may have been lost with this commit, but this is a good new baseline.
* - reuse strings and messages. Saves about 600BBernhard Reutner-Fischer2006-06-071-15/+5
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-1/+1
| | | | definitions. (That should only be on prototypes.)
* just whitespaceTim Riker2006-01-251-9/+9
|
* In Bug 208, bernhardf writes:Mike Frysinger2005-04-161-2/+2
| | | | | | On machines with only ANSI compliant compilers, not explitily delcaring an empty parameter list 'void' causes failure.
* add aliases == and [[ for = and [ to support more bash scriptsMike Frysinger2005-04-141-1/+7
|
* Patch from Bastian Blank to add 64 bit support to the test command.Glenn L McGrath2004-08-111-14/+28
| | | | Example of broken usage: ./busybox test 2147483648 -gt 2147483648
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-2/+2
|
* Update a bunch of docs. Run a script to update my email addr.Eric Andersen2003-07-141-1/+1
|
* last_patch89 from vodz:Eric Andersen2003-06-201-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Manuel, I rewrite bb_getopt_ulflags() function for more universal usage. My version support now: - options with arguments (optional arg as GNU extension also) - complementaly and/or incomplementaly and/or incongruously and/or list options - long_opt (all applets may have long option, add supporting is trivial) This realisation full compatibile from your version. Code size grow 480 bytes, but only coreutils/* over compensate this size after using new function. Last patch reduced over 800 bytes and not full applied to all. "mkdir" and "mv" applets have long_opt now for demonstrate trivial addition support long_opt with usage new bb_getopt_ulflags(). Complementaly and/or incomplementaly and/or incongruously and/or list options logic is not trivial, but new "cut" and "grep" applets using this logic for examples with full demostrating. New "grep" applet reduced over 300 bytes. Mark, Also. I removed bug from "grep" applet. $ echo a b | busybox grep -e a b a b a b But right is printing one only. --w vodz
* Major coreutils update.Manuel Novoa III2003-03-191-6/+6
|
* Run through indent, fix commentsGlenn L McGrath2002-08-231-135/+103
|
* Scrub up some function prototypes.Eric Andersen2001-10-181-21/+21
| | | | -Erik
* Move messages.c to libbb. Make each string in messages.c be its own .o file.Eric Andersen2001-04-251-3/+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
* Another cleanup patch from Jeff Garzik <jgarzik@mandrakesoft.com>Eric Andersen2001-03-191-2/+2
|
* 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
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-5/+5
|
* Improvements from Vladimir N. Oleynik.Matt Kraai2000-12-301-2/+2
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-5/+5
| | | | compliant with the style guide. Everybody rebuild your tags file!
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-1/+1
| | | | -Erik
* Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofMatt Kraai2000-09-131-3/+1
| | | | segfaulting or handling errors the same way themselves.
* Some #include updates.Eric Andersen2000-08-101-1/+0
| | | | -Erik
* Centralize handling of --help.Matt Kraai2000-07-191-3/+0
|
* Extract usage information into a separate file.Matt Kraai2000-07-161-9/+0
|
* Don't use strings directly in calls to usage(). This is in preparationMatt Kraai2000-07-141-9/+11
| | | | for their extraction to a separate file.
* More cleanups.Eric Andersen2000-07-141-2/+2
| | | | -Erik
* Use global applet_name instead of local versions.Matt Kraai2000-07-121-1/+1
|
* Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen2000-06-191-1/+1
| | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
* A number of additional fixed from Pavel Roskin, note some more bugs in theEric Andersen2000-06-021-6/+6
| | | | | | TODO list. Add Glenn to the Authors list for writing a mini ar for BusyBox, which is now included. -Erik
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen2000-05-121-4/+10
| | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
* More documentation updates, and minor fixes to make things syncErik Andersen2000-04-151-1/+7
| | | | | up with the docs. -Erik
* Forgot these files...Erik Andersen2000-03-161-0/+583
-Erik