aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sort.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* usage.c: remove reference to busybox.hvda2007-05-261-1/+1
| | | | | | | | *: s/include "busybox.h"/include "libbb.h" git-svn-id: svn://busybox.net/trunk/busybox@18696 69ca8d6d-28ef-0310-b511-8ec308f3f277
* audit small applets and mark some of them as NOFORK.vda2007-04-101-0/+3
| | | | | | | | Put big scary warnings in relevant places. git-svn-id: svn://busybox.net/trunk/busybox@18382 69ca8d6d-28ef-0310-b511-8ec308f3f277
* getopt32: fix llist_t options ordering. llist_rev is not unused.vda2007-04-081-1/+0
| | | | | | | | | | | | | | | | | | | function old new delta tar_main 705 695 -10 sort_main 928 918 -10 decode_format_string 886 876 -10 run_parts_main 197 185 -12 ps_main 513 500 -13 wget_main 2764 2750 -14 awk_main 1014 1000 -14 od_main 2886 2866 -20 llist_rev 25 - -25 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 0/8 up/down: 0/-128) Total: -128 bytes git-svn-id: svn://busybox.net/trunk/busybox@18364 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sort: fix multiple -k (was ignoring all except last)vda2007-02-171-4/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17919 69ca8d6d-28ef-0310-b511-8ec308f3f277
* suppress warnings about easch <applet>_main() havingvda2007-02-031-0/+1
| | | | | | | no preceding prototype git-svn-id: svn://busybox.net/trunk/busybox@17740 69ca8d6d-28ef-0310-b511-8ec308f3f277
* diff: small optimizations; do not try to diff non-seekable streamvda2007-01-071-9/+2
| | | | | | | | | | | (currently we don't support that) sort: fixes. testsuites fixed: sort with non-default leading delim 1 sort with non-default leading delim 2 sort key doesn't strip leading blanks, disables fallback global sort git-svn-id: svn://busybox.net/trunk/busybox@17175 69ca8d6d-28ef-0310-b511-8ec308f3f277
* str2u() is only used when FEATURE_SORT_BIG is enabledvapier2007-01-021-0/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@17129 69ca8d6d-28ef-0310-b511-8ec308f3f277
* stty: fix width of a field for ppc32vda2007-01-011-87/+129
| | | | | | | | sort: fix -u to match coreutils 6.3 msh: compile fix (my fault) git-svn-id: svn://busybox.net/trunk/busybox@17124 69ca8d6d-28ef-0310-b511-8ec308f3f277
* style fixesvda2006-12-261-2/+2
| | | | | | | last xcalloc replaced by xzalloc git-svn-id: svn://busybox.net/trunk/busybox@17081 69ca8d6d-28ef-0310-b511-8ec308f3f277
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]vda2006-12-161-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16977 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sort: two small optimizationsvda2006-11-261-9/+10
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16675 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sort: reformat entire file wrt style.vda2006-11-261-182/+215
| | | | | | | | | fix single obvious bug: right hand was 0 here: flags & (FLAG_b&FLAG_d&FLAG_f&FLAG_i&FLAG_bb) fixed to use | git-svn-id: svn://busybox.net/trunk/busybox@16674 69ca8d6d-28ef-0310-b511-8ec308f3f277
* - end may be used uninitialized.aldot2006-11-171-1/+2
| | | | | | | - TODO: should eventually use skip_whitespace there git-svn-id: svn://busybox.net/trunk/busybox@16552 69ca8d6d-28ef-0310-b511-8ec308f3f277
* last nail into error_msg() (de)capitalizationvda2006-10-271-4/+4
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16451 69ca8d6d-28ef-0310-b511-8ec308f3f277
* remove bb_printf and the likevda2006-10-261-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16446 69ca8d6d-28ef-0310-b511-8ec308f3f277
* bb_get_[chomped]line_from_file wasn't descriptive enough.vda2006-10-121-2/+2
| | | | | | | Renaming... git-svn-id: svn://busybox.net/trunk/busybox@16375 69ca8d6d-28ef-0310-b511-8ec308f3f277
* cut, mount: small improvementsvda2006-10-121-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16374 69ca8d6d-28ef-0310-b511-8ec308f3f277
* rename bb_default_error_retval -> xfunc_error_retvalvda2006-10-031-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16304 69ca8d6d-28ef-0310-b511-8ec308f3f277
* silly switch style fixvda2006-09-271-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16239 69ca8d6d-28ef-0310-b511-8ec308f3f277
* whitespace cleanupvda2006-09-171-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@16142 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove xcalloc() and convert its callers to xzalloc(). About half of themlandley2006-08-031-1/+1
| | | | | | | | were using "1" as one of the arguments anyway, and as for the rest a multiply and a push isn't noticeably bigger than pushing two arguments on the stack. git-svn-id: svn://busybox.net/trunk/busybox@15771 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidatelandley2006-08-031-11/+3
| | | | | | | | | | | | | things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only had one user), clean up lots of #includes... General cleanup pass. What I've been doing for the last couple days. And it conflicts! I've removed httpd.c from this checkin due to somebody else touching that file. It builds for me. I have to catch a bus. (Now you know why I'm looking forward to Mercurial.) git-svn-id: svn://busybox.net/trunk/busybox@15767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Fix bug found by Joey Hess and forwarded by Bastian Bunk. Add Joey Hess'slandley2006-06-151-3/+1
| | | | | | | | test case to the testsuite, plus another one that would have been broken by the first attempt at a fix. git-svn-id: svn://busybox.net/trunk/busybox@15397 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
* use strchr() not index()vapier2006-04-161-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@14885 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few changes falling out from the effort to make sed handle embedded NUL bytes.landley2006-02-241-14/+4
| | | | | | | Checking in to reduce the diff between my tree and svn... git-svn-id: svn://busybox.net/trunk/busybox@14254 69ca8d6d-28ef-0310-b511-8ec308f3f277
* just whitespacetimr2006-01-251-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@13584 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Rename CONFIG_SORT_BIG to CONFIG_FEATURE_SORT_BIG so allbareconfig can find it.landley2005-10-081-5/+6
| | | | git-svn-id: svn://busybox.net/trunk/busybox@11811 69ca8d6d-28ef-0310-b511-8ec308f3f277
* applying patch from:pgf2005-07-201-1/+2
| | | | | | | | 0000227: sort use wrong type for getopt return variable git-svn-id: svn://busybox.net/trunk/busybox@10879 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patch from Bernhard Fischer to make a bunch of symbols staticandersen2005-04-161-3/+3
| | | | | | | which were otherwise cluttering the global namespace. git-svn-id: svn://busybox.net/trunk/busybox@10121 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Sort rewrite to be SUSv3 compliant. New config option, updated help, andlandley2005-01-241-56/+294
| | | | | | | a couple of infrastructure bits. git-svn-id: svn://busybox.net/trunk/busybox@9767 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major coreutils update.mjn32003-03-191-52/+46
| | | | git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Major rework of the directory structure and the entire build system.andersen2001-10-241-7/+7
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@3561 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from I.Q. to add sort -u as a feature.markw2001-04-171-7/+21
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2363 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Changed line[strlen(line) - 1] = '\0'; to chomp(line);markw2001-04-171-1/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2362 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Applied patch from I.Q. to fix problem with sort -n.markw2001-04-171-3/+5
| | | | git-svn-id: svn://busybox.net/trunk/busybox@2360 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A cleanup patch from Jeff Garzik to static-ify a number ofandersen2001-03-091-2/+2
| | | | | | | namespace polluting things that really should be static. git-svn-id: svn://busybox.net/trunk/busybox@2027 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupandersen2001-03-091-0/+1
| | | | | | | | warnings with glibc 2.2 and use always use xfopen -Erik git-svn-id: svn://busybox.net/trunk/busybox@2021 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-1/+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
* Fix header file usage -- there were many unnecessary header files included inandersen2001-01-271-0/+2
| | | | | | | | | | 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
* Rewrote.kraai2000-12-201-239/+37
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1478 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
* + shortened main() a little, and a few aesthetic cleanups here & there.beppu2000-09-281-21/+19
| | | | git-svn-id: svn://busybox.net/trunk/busybox@1139 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 calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead ofkraai2000-09-131-9/+3
| | | | | | | segfaulting or handling errors the same way themselves. git-svn-id: svn://busybox.net/trunk/busybox@1039 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Extract usage information into a separate file.kraai2000-07-161-11/+1
| | | | git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Use errorMsg rather than fprintf.kraai2000-07-141-2/+2
| | | | git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Yanked out the cstring_alloc() and cstring_lineFromFile() functions frommarkw2000-06-281-2/+2
| | | | | | | | | | utility.c and replaced them with get_line_from_file() from the new grep.c. Also changed declaration in internal.h and replaced instances of cstring_lineFromFile() in dc.c and sort.c with get_line_from_file(). Tested them and they worked fine. git-svn-id: svn://busybox.net/trunk/busybox@722 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Updates to a number of apps to remove warnings/compile errors under libc5.andersen2000-06-191-2/+2
| | | | | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik git-svn-id: svn://busybox.net/trunk/busybox@660 69ca8d6d-28ef-0310-b511-8ec308f3f277