aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sort.c
AgeCommit message (Collapse)Author
2007-11-16- use standard-imposed constants some moreBernhard Reutner-Fischer
2007-10-11add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
2007-08-18don't pass argc in getopt32, it's superfluousDenis Vlasenko
(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
2007-08-12trylink: produce even more info about final link stageDenis Vlasenko
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
2007-07-21libbb: nuke BB_GETOPT_ERROR, always die if there are mutually exclusive optionsDenis Vlasenko
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
2007-05-26usage.c: remove reference to busybox.hDenis Vlasenko
*: s/include "busybox.h"/include "libbb.h"
2007-04-10audit small applets and mark some of them as NOFORK.Denis Vlasenko
Put big scary warnings in relevant places.
2007-04-08getopt32: fix llist_t options ordering. llist_rev is not unused.Denis Vlasenko
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
2007-02-17sort: fix multiple -k (was ignoring all except last)Denis Vlasenko
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-01-07diff: small optimizations; do not try to diff non-seekable streamDenis Vlasenko
(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
2007-01-02str2u() is only used when FEATURE_SORT_BIG is enabledMike Frysinger
2007-01-01stty: fix width of a field for ppc32Denis Vlasenko
sort: fix -u to match coreutils 6.3 msh: compile fix (my fault)
2006-12-26style fixesDenis Vlasenko
last xcalloc replaced by xzalloc
2006-12-16inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko
2006-11-26sort: two small optimizationsDenis Vlasenko
2006-11-26sort: reformat entire file wrt style.Denis Vlasenko
fix single obvious bug: right hand was 0 here: flags & (FLAG_b&FLAG_d&FLAG_f&FLAG_i&FLAG_bb) fixed to use |
2006-11-17- end may be used uninitialized.Bernhard Reutner-Fischer
- TODO: should eventually use skip_whitespace there
2006-10-27last nail into error_msg() (de)capitalizationDenis Vlasenko
2006-10-26remove bb_printf and the likeDenis Vlasenko
2006-10-12bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko
Renaming...
2006-10-12cut, mount: small improvementsDenis Vlasenko
2006-10-03rename bb_default_error_retval -> xfunc_error_retvalDenis Vlasenko
2006-09-27silly switch style fixDenis Vlasenko
2006-09-17whitespace cleanupDenis Vlasenko
2006-08-03Remove xcalloc() and convert its callers to xzalloc(). About half of themRob Landley
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.
2006-08-03Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley
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.)
2006-06-15Fix bug found by Joey Hess and forwarded by Bastian Bunk. Add Joey Hess'sRob Landley
test case to the testsuite, plus another one that would have been broken by the first attempt at a fix.
2006-05-09Replace isnan() and isinf() with inline tests so uClibc doesn't want us toRob Landley
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.
2006-04-16use strchr() not index()Mike Frysinger
2006-02-24A few changes falling out from the effort to make sed handle embedded NUL bytes.Rob Landley
Checking in to reduce the diff between my tree and svn...
2006-01-25just whitespaceTim Riker
2005-10-08Rename CONFIG_SORT_BIG to CONFIG_FEATURE_SORT_BIG so allbareconfig can find it.Rob Landley
2005-07-20applying patch from:Paul Fox
0000227: sort use wrong type for getopt return variable
2005-04-16Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen
which were otherwise cluttering the global namespace.
2005-01-24Sort rewrite to be SUSv3 compliant. New config option, updated help, andRob Landley
a couple of infrastructure bits.
2003-03-19Major coreutils update.Manuel Novoa III
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-04-17Applied patch from I.Q. to add sort -u as a feature.Mark Whitley
2001-04-17Changed line[strlen(line) - 1] = '\0'; to chomp(line);Mark Whitley
2001-04-17Applied patch from I.Q. to fix problem with sort -n.Mark Whitley
2001-03-09A cleanup patch from Jeff Garzik to static-ify a number ofEric Andersen
namespace polluting things that really should be static.
2001-03-09Patchs from Jeff Garzik <jgarzik@mandrakesoft.com> to cleanupEric Andersen
warnings with glibc 2.2 and use always use xfopen -Erik
2001-02-20It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen
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
2001-02-14This patch, put together by Manuel Novoa III, is a merge of workEric Andersen
done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
2001-01-27Fix header file usage -- there were many unnecessary header files included inEric Andersen
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
2000-12-20Rewrote.Matt Kraai
2000-12-07Changed names of functions in utility.c and all affected files, to makeMark Whitley
compliant with the style guide. Everybody rebuild your tags file!
2000-09-28+ shortened main() a little, and a few aesthetic cleanups here & there.John Beppu
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik