aboutsummaryrefslogtreecommitdiff
path: root/coreutils (follow)
Commit message (Collapse)AuthorAgeFilesLines
* made "test" an ash built-in.pgf2006-06-083-61/+219
| | | | | | | | | | | | | | | | | | | | | | 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. git-svn-id: svn://busybox.net/trunk/busybox@15344 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - reuse strings and messages. Saves about 600Baldot2006-06-074-30/+15
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15325 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove a config entry that leaked in from my tree before I decided tolandley2006-06-061-7/+1
| | | | | | | implement cat -v as a separate applet. git-svn-id: svn://busybox.net/trunk/busybox@15300 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use bb_msg_{read,write}_error where appropriate.aldot2006-06-031-1/+1
| | | | | | | | | text data bss dec hex filename 825015 9100 645216 1479331 1692a3 busybox.old 824919 9100 645216 1479235 169243 busybox git-svn-id: svn://busybox.net/trunk/busybox@15279 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - look at bb_applet_name. Should close bugs #892 and #893aldot2006-06-011-40/+40
| | | | | | | also restructure code a bit so the fix only adds 1 byte.. git-svn-id: svn://busybox.net/trunk/busybox@15261 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Add catv (separate applet instead of cat -v). Also cleanup cat.c comments,landley2006-05-314-29/+74
| | | | | | | | | | | | | | | | | | | | | the following of which (from cat.c) belongs in svn history instead of the source code: /* Mar 16, 2003 Manuel Novoa III (mjn3@codepoet.org) * * This is a new implementation of 'cat' which aims to be SUSv3 compliant. * * Changes from the previous implementation include: * 1) Multiple '-' args are accepted as required by SUSv3. The previous * implementation would close stdin and segfault on a subsequent '-'. * 2) The '-u' options is required by SUSv3. Note that the specified * behavior for '-u' is done by default, so all we need do is accept * the option. */ git-svn-id: svn://busybox.net/trunk/busybox@15251 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - just whitespacealdot2006-05-291-731/+741
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15219 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - ls: remove unused variablealdot2006-05-292-18/+11
| | | | | | | | | | | - dpkg.c, diff: use xstat text data bss dec hex filename 848823 9100 645216 1503139 16efa3 busybox_old 848679 9100 645216 1502995 16ef13 busybox_unstripped bloatcheck is completely useless as it sees -79 for this, which is bogus. git-svn-id: svn://busybox.net/trunk/busybox@15218 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix hdparm to use PRIu64 instead of typecasting to long long (which is 128 bitslandley2006-05-281-1/+0
| | | | | | | on 64 bit platforms), and move #include <inttypes.h> to libbb.h. git-svn-id: svn://busybox.net/trunk/busybox@15208 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix some warnings in allbareconfig.landley2006-05-281-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15206 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Consolidate #include <sys/time.h> so libbb.h does it.landley2006-05-273-3/+0
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15203 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add central knob to turn off getopt_long everywhere. EXPERIMENTAL!aldot2006-05-265-2/+45
| | | | | | | | | Adds "Enable getopt long" under "General options", default y. Send patches to fix getopt_ulflags and run_parts.c if you turn this off.. See http://busybox.net/lists/busybox/2006-May/021828.html for a start to run-parts git-svn-id: svn://busybox.net/trunk/busybox@15195 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rich Felker suggested removing dprintf() from watch, and one thing led tolandley2006-05-251-61/+21
| | | | | | | | | another... This adds bb_xspawn() support, which does vfork/exec. (I don't know why using a static instead of a local adds ~40 bytes, but using the local doesn't work...) git-svn-id: svn://busybox.net/trunk/busybox@15172 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Two more issues pointed out by Bernhard.landley2006-05-241-1/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15164 69ca8d6d-28ef-0310-b511-8ec308f3f277
* It takes _talent_ to implement a version of nohup that does everything exceptlandley2006-05-231-1/+2
| | | | | | | the actual blocking of HUP. git-svn-id: svn://busybox.net/trunk/busybox@15159 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New version of nohup that's much smaller, less paranoid, consistent,landley2006-05-211-166/+36
| | | | | | | vaguely portable, and licensed GPLv2 "or later". git-svn-id: svn://busybox.net/trunk/busybox@15155 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove emacs layout block as suggested by Robert P.J. Dayaldot2006-05-195-84/+3
| | | | | | | - use shorter boilerplate while at it git-svn-id: svn://busybox.net/trunk/busybox@15141 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use shorter boilerplate.aldot2006-05-191-15/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15139 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - do not use non-standard u_int.aldot2006-05-191-6/+6
| | | | | | | | - do not use _PATH_DEVNULL gnuism but bb_dev_null. Thanks to Rich Felker. git-svn-id: svn://busybox.net/trunk/busybox@15132 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rob Sullivan cleaned up the longstanding patch from Hideki IWAMOTO to addlandley2006-05-162-56/+91
| | | | | | | | | ibs and obs support to dd, and made it configurable. I cleaned it up a bit further and moved conv= into the same config option. git-svn-id: svn://busybox.net/trunk/busybox@15090 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Make md5 calculation always go through an the buffer so that A) we don'tlandley2006-05-161-1/+1
| | | | | | | | | | | | | | handle packets out of sequence if some data goes through the buffer and some doesn't, B) it works on systems that can't handle aligned access, C) we just have one code path to worry about. While we're at it, sizeof() and RESERVE_CONFIG_BUFFER() really don't combine well, which is why md5sum has been reading and processing data 4 bytes at a time. I suspect that the existence of CONFIG_MD5_SIZE_VS_SPEED to do loop unrolling and such in the algorithm was an attempt to work around that bug. git-svn-id: svn://busybox.net/trunk/busybox@15088 69ca8d6d-28ef-0310-b511-8ec308f3f277
* pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the ↵vapier2006-05-131-1/+1
| | | | | | mailing list git-svn-id: svn://busybox.net/trunk/busybox@15080 69ca8d6d-28ef-0310-b511-8ec308f3f277
* pull Rules.mak from top_srcdir as pointed out by Robert P. J. Day on the ↵vapier2006-05-131-1/+1
| | | | | | mailing list git-svn-id: svn://busybox.net/trunk/busybox@15079 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - typo in error-message: s/algotithm/algorithmaldot2006-05-101-16/+16
| | | | | | | - whitespace cleanup git-svn-id: svn://busybox.net/trunk/busybox@15046 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Replace isnan() and isinf() with inline tests so uClibc doesn't want us tolandley2006-05-091-6/+8
| | | | | | | | | link sort against libm. This adds 22 bytes for glibc but is a win for uClibc, and since glibc is bigger than all of busybox it seems kind of silly to worry about it. git-svn-id: svn://busybox.net/trunk/busybox@15044 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add helptext for CONFIG_UNIX2DOSaldot2006-05-051-0/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@15003 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Rich Felker to make ls use libc's qsort.landley2006-05-031-26/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14986 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jason Schoon to add optional SIGUSR1 support to dd.landley2006-05-022-8/+37
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14981 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Shaun Jackman:landley2006-05-021-7/+11
| | | | | | | | | | | | | | ls has an ugly bug. ls uses an array of pointers, the elements of which are all in a linked list. To free the elements, instead of freeing all the elements in the array, array[0..nelements], it frees by iterating the linked list starting at array[0], which it assumes is the head of the list. Unfortunately, ls also sorts the array! So, array[0] is no longer the head, but somewhere in the middle of the linked list. This patch fixes this bug, and also adds an ENABLE_FEATURE_CLEAN_UP stanza. git-svn-id: svn://busybox.net/trunk/busybox@14978 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Re-wordwrap the new tests, and fix seq.c to pass them.landley2006-04-271-7/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14948 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Convert a chunk of usage.h to USE_ and SKIP_ (more to do there), and fix alandley2006-04-252-5/+12
| | | | | | | DEFALT typo in du while I was there. git-svn-id: svn://busybox.net/trunk/busybox@14942 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Jean Wolter:landley2006-04-191-11/+16
| | | | | | | | | | | | | | | | | | it looks like the introduced support for character classes and equivalence classes is not correct. The attached patch tries to fix some symptoms and tries to make tr behave like gnu tr for the added test cases. The patch  - removes if clauses with side effects  - fixes handling of buffer pointer (strcat added characters to the    buffer without increasing the buffer pointer)  - re-arranges character classes to match ASCII order regards, Jean git-svn-id: svn://busybox.net/trunk/busybox@14926 69ca8d6d-28ef-0310-b511-8ec308f3f277
* New applet cksum, from Rob Sullivan.landley2006-04-183-0/+63
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14917 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Simplify the GPL boilerplate.landley2006-04-181-18/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14915 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - typo: s/derefernce/dereference/galdot2006-04-181-2/+2
| | | | | | | Thanks to P.J. Day. git-svn-id: svn://busybox.net/trunk/busybox@14914 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Glenn gave permission for GPLv2 "or later".landley2006-04-171-14/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14903 69ca8d6d-28ef-0310-b511-8ec308f3f277
* use strchr() not index()vapier2006-04-161-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14885 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Robert P Day: let menuconfig indent stuff for us, we don't havelandley2006-04-131-28/+28
| | | | | | | to do it in Config.in. git-svn-id: svn://busybox.net/trunk/busybox@14850 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add and use bb_xopen3()aldot2006-04-131-17/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14847 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Denis Vlasenko to add and use bb_xchdir()aldot2006-04-121-15/+3
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14837 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use C99 %j format to print intmax.aldot2006-04-121-16/+16
| | | | | | | Closes bugs #802 and #743 git-svn-id: svn://busybox.net/trunk/busybox@14831 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - add and use bb_opendir(), bb_xopendir().aldot2006-04-123-33/+6
| | | | | | | | | | | text data bss dec hex filename 889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig 889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2 889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig 888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1 git-svn-id: svn://busybox.net/trunk/busybox@14830 69ca8d6d-28ef-0310-b511-8ec308f3f277
* We use -funsigned-char now, so having a separate RESERVE_CONFIG_UBUFFER islandley2006-04-102-2/+2
| | | | | | | a bit silly. Wean of that where it currently makes no difference... git-svn-id: svn://busybox.net/trunk/busybox@14784 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - patch from Rob Sullivan to add support for -Laldot2006-04-061-36/+64
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14764 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - shrink it a little bit and make it buildable with gcc-2.95aldot2006-04-061-35/+46
| | | | | | | | | | | | | | | | | | | text data bss dec hex filename 7332 4 92 7428 1d04 diff.o-gcc-4.2-HEAD.orig 7185 4 92 7281 1c71 diff.o-gcc-4.2-HEAD.new 7336 4 92 7432 1d08 diff.o-gcc-4.1-HEAD.orig 7148 4 92 7244 1c4c diff.o-gcc-4.1-HEAD.new 7485 4 92 7581 1d9d diff.o-gcc-4.0.orig 7318 4 92 7414 1cf6 diff.o-gcc-4.0.new 7511 4 92 7607 1db7 diff.o-gcc-3.4.orig 7252 4 92 7348 1cb4 diff.o-gcc-3.4.new 8214 4 92 8310 2076 diff.o-gcc-3.3.orig 7882 4 92 7978 1f2a diff.o-gcc-3.3.new - - - - - diff.o-gcc-2.95.orig 8238 8 88 8334 208e diff.o-gcc-2.95.new git-svn-id: svn://busybox.net/trunk/busybox@14763 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - remove unused args.aldot2006-04-061-12/+13
| | | | | | | | | text data bss dec hex filename 7353 4 92 7449 1d19 coreutils/diff.o-gcc-4.2.oorig 7332 4 92 7428 1d04 coreutils/diff.o git-svn-id: svn://busybox.net/trunk/busybox@14762 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - move code around to avoid the need for the prototypes.aldot2006-04-061-587/+557
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14761 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - new applet diff. Rob Sullivan writes:aldot2006-04-063-0/+1310
| | | | | | | | | | | | | Here's my attempt at a mini diff applet - it's adapted from the code at http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/diff/, and only supports unified diffs. I've busyboxified everything to a reasonable degree, so I think the code is suitable enough to be included, but there's still a fair bit of cleaning up to be done. git-svn-id: svn://busybox.net/trunk/busybox@14760 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - include inttypes.h as pointed out by Jason Schoon.aldot2006-04-051-17/+4
| | | | | | | - use shorter boilerplate and switch to USE_FEATURE_STAT_FORMAT while at it. git-svn-id: svn://busybox.net/trunk/busybox@14759 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - use proper macros to print intmax_t.aldot2006-04-051-3/+3
| | | | | | | PRIuMAX and PRIxMAX are defined in inttypes depending on the wordsize. git-svn-id: svn://busybox.net/trunk/busybox@14755 69ca8d6d-28ef-0310-b511-8ec308f3f277