aboutsummaryrefslogtreecommitdiff
path: root/coreutils/uniq.c
AgeCommit message (Collapse)Author
2010-10-18*: replace xopen3 with xopen where makes senseDenys Vlasenko
function old new delta uniq_main 421 416 -5 sort_main 803 798 -5 patch_main 2051 2046 -5 cpio_main 547 542 -5 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-08-16*: make GNU licensing statement forms more regularDenys Vlasenko
This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-08-31uniq: shave off whole 10 bytes off, oh myDenys Vlasenko
text data bss dec hex filename 823673 458 6956 831087 cae6f busybox_old 823663 458 6956 831077 cae65 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-08-30uniq: code shrinkDenys Vlasenko
function old new delta xgetoptfile_uniq_s 44 51 +7 uniq_main 389 368 -21 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 7/-21) Total: -14 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-08-30uniq: plug memory leak (patch from OpenWRT project)Denys Vlasenko
function old new delta uniq_main 371 389 +18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-08-30uniq: rename some variables. no code changesDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2009-03-09uniq: strncmp(a,b, -1) might be problematic, use INT_MAX insteadDenis Vlasenko
2008-07-05*: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko
2008-05-03uniq: support -w. closes bug 3094.Denis Vlasenko
function old new delta packed_usage 24136 24132 -4 uniq_main 399 384 -15
2008-03-26*: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/Denis Vlasenko
2008-03-17*: add -Wunused-parameter; fix resulting breakageDenis Vlasenko
function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
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-05-26usage.c: remove reference to busybox.hDenis Vlasenko
*: s/include "busybox.h"/include "libbb.h"
2007-04-10- use skip_non_whitespace() where appropriateBernhard Reutner-Fischer
2007-03-31uniq: getopt32-ization. -38 bytes.Denis Vlasenko
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
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-08attempt to regularize atoi mess.Denis Vlasenko
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-18skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley
that and callers wind up typecasting it back.
2005-10-26 * uniq.c: remove unneeded include and use short boilerplate.Bernhard Reutner-Fischer
* coreutils.h: remove prototype of non-existing xgetoptfile_sort_uniq and add boilerplate. * networking/{ipaddr,ip,iplink,iproute,iptunnel}.c: touch includes and use short boilerplate. * libiproute/iproute.c: rename round to avoid clashes with older SuSE gcc and use short boilerplate.
2005-09-15Get rid of warnings, remove compat with older gnu uniq to truly conform to ↵Manuel Novoa III
susv3, and cut size a bit.
2005-09-08Rob, I don't know why you feel some unexplainable compulsion to get rid ofManuel Novoa III
a meaningless warning. But I do expect you preserve the coding style and variable names when all you're doing is tweaking some of my code. I repeat... do NOT change whitespace, variable names, or coding style in any of my code simply to conform to your coding style.
2005-09-07Don't comment warnings. Don't put #warnings about warnings. _FIX_ warnings.Rob Landley
This fixes the warning, and makes the binary smaller out of sheer pique. (Yes, since Manuel did this one it's nice tight code that took several attempts to shrink, but I was ticked.) Add the start of a test for uniq; this is about the first 1/3 of the tests we need for full susv3 coverage of uniq.
2005-09-06Whitespace-level changes. Replace s0,s1,e0,e1 with real variable names andRob Landley
clean up whitespace and curly brackets a bit. Resulting binary should be identical.
2005-07-30tell people to ignore the dups/e0 warningsMike Frysinger
2004-08-28Fixup some warningsEric Andersen
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-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-01-27Fix up copyright msgs. Bump version to 0.49 in preparation forEric Andersen
a release. Update the website with release details. -Erik
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-09Patch from Matt Kraai to implement uniq -[cdu]Eric Andersen
2000-09-27Rewrote uniq to be less than a third of the size, and fixed some otherMatt Kraai
minor problems.
2000-09-25Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen
-Erik
2000-07-16Extract usage information into a separate file.Matt Kraai
2000-07-14Use errorMsg rather than fprintf.Matt Kraai
2000-06-19Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen
Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
2000-05-12Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen
which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
2000-04-17More updates to the docs, and fixes to sync things with the docs.Erik Andersen
-Erik
2000-04-13Upates to include copyright 2000 to everythingErik Andersen
-Erik
2000-02-08Some formatting updates (ran the code through indent)Erik Andersen
-Erik
2000-02-07A few minor updates. ;-)Erik Andersen
Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik
2000-01-23* added (and documented) "-n" option for head -Erik Andersen
contributed Friedrich Vedder <fwv@myrtle.lahn.de> * Cleanup for a number of usage messages -- also contributed Friedrich Vedder <fwv@myrtle.lahn.de> -Erik
2000-01-07added uniq_usage messageJohn Beppu
2000-01-06did tedious stuffJohn Beppu
2000-01-06Cool. Beppu is doing uniq.Erik Andersen
-Erik