aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sort.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPerik2000-05-121-2/+6
| | | | | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik git-svn-id: svn://busybox.net/trunk/busybox@532 69ca8d6d-28ef-0310-b511-8ec308f3f277
* + in the interest of robustness, I addedbeppu2000-04-171-26/+6
| | | | | | | | | | | utility.c :: cstring_alloc() utility.c :: cstring_lineFromFile() /* they're at the bottom */ so that I could read in lines of arbitrary length from FILE*s (instead of using fgets(huge_ass_buffer,...)). + I tested it out on sort, and it seems to be fine. git-svn-id: svn://busybox.net/trunk/busybox@463 69ca8d6d-28ef-0310-b511-8ec308f3f277
* More documentation updates, and minor fixes to make things syncerik2000-04-151-2/+2
| | | | | | | | up with the docs. -Erik git-svn-id: svn://busybox.net/trunk/busybox@457 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Upates to include copyright 2000 to everythingerik2000-04-131-2/+2
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@447 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few updates (including the cp fix the Craig has been looking for)erik2000-03-041-9/+19
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@386 69ca8d6d-28ef-0310-b511-8ec308f3f277
* Some formatting updates (ran the code through indent)erik2000-02-081-192/+193
| | | | | | | -Erik git-svn-id: svn://busybox.net/trunk/busybox@357 69ca8d6d-28ef-0310-b511-8ec308f3f277
* A few minor updates. ;-)erik2000-02-071-1/+1
| | | | | | | | | Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik git-svn-id: svn://busybox.net/trunk/busybox@351 69ca8d6d-28ef-0310-b511-8ec308f3f277
* * added (and documented) "-n" option for head -erik2000-01-231-2/+2
| | | | | | | | | | contributed Friedrich Vedder <fwv@myrtle.lahn.de> * Cleanup for a number of usage messages -- also contributed Friedrich Vedder <fwv@myrtle.lahn.de> -Erik git-svn-id: svn://busybox.net/trunk/busybox@336 69ca8d6d-28ef-0310-b511-8ec308f3f277
* sort is good to go.beppu1999-12-231-23/+26
| | | | git-svn-id: svn://busybox.net/trunk/busybox@262 69ca8d6d-28ef-0310-b511-8ec308f3f277
* implemented numeric sort (sort -g)beppu1999-12-231-9/+30
| | | | git-svn-id: svn://busybox.net/trunk/busybox@261 69ca8d6d-28ef-0310-b511-8ec308f3f277
* oops.. qsort(2) misunderstanding on my part.beppu1999-12-221-5/+24
| | | | | | | it's ok, now. git-svn-id: svn://busybox.net/trunk/busybox@260 69ca8d6d-28ef-0310-b511-8ec308f3f277
* playing w/ $Log$beppu1999-12-221-7/+7
| | | | git-svn-id: svn://busybox.net/trunk/busybox@259 69ca8d6d-28ef-0310-b511-8ec308f3f277
* the base is nearly done.beppu1999-12-221-21/+72
| | | | | | | need to implement various comparison functions, now. git-svn-id: svn://busybox.net/trunk/busybox@258 69ca8d6d-28ef-0310-b511-8ec308f3f277
* added hooks for sortbeppu1999-12-221-2/+22
| | | | git-svn-id: svn://busybox.net/trunk/busybox@257 69ca8d6d-28ef-0310-b511-8ec308f3f277
* work in progress...beppu1999-12-221-11/+82
| | | | git-svn-id: svn://busybox.net/trunk/busybox@256 69ca8d6d-28ef-0310-b511-8ec308f3f277
* this is my work in progress.beppu1999-12-211-0/+127
git-svn-id: svn://busybox.net/trunk/busybox@255 69ca8d6d-28ef-0310-b511-8ec308f3f277