aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sort.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* sort: -z outputs NUL terminated lines. Closes bug 1591.Denis Vlasenko2008-02-131-2/+3
|
* - use standard-imposed constants some moreBernhard Reutner-Fischer2007-11-161-2/+2
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-1/+1
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* libbb: nuke BB_GETOPT_ERROR, always die if there are mutually exclusive optionsDenis Vlasenko2007-07-211-1/+1
| | | | | | | | | | | | | | | | | | | | find_pair 164 180 +16 passwd_main 1222 1230 +8 display_speed 91 96 +5 msh_main 1335 1339 +4 qrealloc 38 36 -2 refresh 1190 1182 -8 cut_main 543 532 -11 sendCgi 1807 1794 -13 getopt32 1063 1045 -18 arith 2077 2030 -47 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 4/6 up/down: 33/-99) Total: -66 bytes text data bss dec hex filename 781548 1168 11900 794616 c1ff8 busybox_old 781452 1168 11900 794520 c1f98 busybox_unstripped
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* audit small applets and mark some of them as NOFORK.Denis Vlasenko2007-04-101-0/+3
| | | | | Put big scary warnings in relevant places.
* getopt32: fix llist_t options ordering. llist_rev is not unused.Denis Vlasenko2007-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
* sort: fix multiple -k (was ignoring all except last)Denis Vlasenko2007-02-171-4/+10
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* diff: small optimizations; do not try to diff non-seekable streamDenis Vlasenko2007-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
* str2u() is only used when FEATURE_SORT_BIG is enabledMike Frysinger2007-01-021-0/+2
|
* stty: fix width of a field for ppc32Denis Vlasenko2007-01-011-87/+129
| | | | | sort: fix -u to match coreutils 6.3 msh: compile fix (my fault)
* style fixesDenis Vlasenko2006-12-261-2/+2
| | | | last xcalloc replaced by xzalloc
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-1/+1
|
* sort: two small optimizationsDenis Vlasenko2006-11-261-9/+10
|
* sort: reformat entire file wrt style.Denis Vlasenko2006-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 |
* - end may be used uninitialized.Bernhard Reutner-Fischer2006-11-171-1/+2
| | | | - TODO: should eventually use skip_whitespace there
* last nail into error_msg() (de)capitalizationDenis Vlasenko2006-10-271-4/+4
|
* remove bb_printf and the likeDenis Vlasenko2006-10-261-1/+1
|
* bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko2006-10-121-2/+2
| | | | Renaming...
* cut, mount: small improvementsDenis Vlasenko2006-10-121-2/+2
|
* rename bb_default_error_retval -> xfunc_error_retvalDenis Vlasenko2006-10-031-1/+1
|
* silly switch style fixDenis Vlasenko2006-09-271-1/+1
|
* whitespace cleanupDenis Vlasenko2006-09-171-1/+1
|
* Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley2006-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.
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-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.)
* Fix bug found by Joey Hess and forwarded by Bastian Bunk. Add Joey Hess'sRob Landley2006-06-151-3/+1
| | | | | test case to the testsuite, plus another one that would have been broken by the first attempt at a fix.
* Replace isnan() and isinf() with inline tests so uClibc doesn't want us toRob Landley2006-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.
* use strchr() not index()Mike Frysinger2006-04-161-2/+2
|
* A few changes falling out from the effort to make sed handle embedded NUL bytes.Rob Landley2006-02-241-14/+4
| | | | Checking in to reduce the diff between my tree and svn...
* just whitespaceTim Riker2006-01-251-2/+2
|
* Rename CONFIG_SORT_BIG to CONFIG_FEATURE_SORT_BIG so allbareconfig can find it.Rob Landley2005-10-081-5/+6
|
* applying patch from:Paul Fox2005-07-201-1/+2
| | | | | 0000227: sort use wrong type for getopt return variable
* Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen2005-04-161-3/+3
| | | | which were otherwise cluttering the global namespace.
* Sort rewrite to be SUSv3 compliant. New config option, updated help, andRob Landley2005-01-241-56/+294
| | | | a couple of infrastructure bits.
* Major coreutils update.Manuel Novoa III2003-03-191-52/+46
|
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-7/+7
| | | | -Erik
* Applied patch from I.Q. to add sort -u as a feature.Mark Whitley2001-04-171-7/+21
|
* Changed line[strlen(line) - 1] = '\0'; to chomp(line);Mark Whitley2001-04-171-1/+1
|
* Applied patch from I.Q. to fix problem with sort -n.Mark Whitley2001-04-171-3/+5
|
* A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen2001-03-091-2/+2
| | | | namespace polluting things that really should be static.
* Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupEric Andersen2001-03-091-0/+1
| | | | | warnings with glibc 2.2 and use always use xfopen -Erik
* 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
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-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.
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-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
* Rewrote.Matt Kraai2000-12-201-239/+37
|
* Changed names of functions in utility.c and all affected files, to makeMark Whitley2000-12-071-2/+2
| | | | compliant with the style guide. Everybody rebuild your tags file!
* + shortened main() a little, and a few aesthetic cleanups here & there.John Beppu2000-09-281-21/+19
|