summaryrefslogtreecommitdiff
path: root/coreutils/uniq.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-1/+1
|
* uniq: support -w. closes bug 3094.Denis Vlasenko2008-05-031-12/+11
| | | | | | | function old new delta packed_usage 24136 24132 -4 uniq_main 399 384 -15
* *: more uniform naming: s/xmalloc_getline/xmalloc_fgetline/Denis Vlasenko2008-03-261-1/+1
|
* *: add -Wunused-parameter; fix resulting breakageDenis Vlasenko2008-03-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* 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
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* - use skip_non_whitespace() where appropriateBernhard Reutner-Fischer2007-04-101-3/+1
|
* uniq: getopt32-ization. -38 bytes.Denis Vlasenko2007-03-311-22/+23
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* remove bb_printf and the likeDenis Vlasenko2006-10-261-7/+7
|
* bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko2006-10-121-1/+1
| | | | Renaming...
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-1/+1
|
* Remove bb_ prefixes from xfuncs.c (and a few other places), consolidateRob Landley2006-08-031-5/+2
| | | | | | | | | | 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.)
* skip_whitespace() shouldn't claim its return value is const, it doesn't knowRob Landley2006-06-181-4/+2
| | | | that and callers wind up typecasting it back.
* * uniq.c: remove unneeded include and use short boilerplate.Bernhard Reutner-Fischer2005-10-261-15/+1
| | | | | | | | | * 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.
* Get rid of warnings, remove compat with older gnu uniq to truly conform to ↵Manuel Novoa III2005-09-151-46/+43
| | | | susv3, and cut size a bit.
* Rob, I don't know why you feel some unexplainable compulsion to get rid ofManuel Novoa III2005-09-081-48/+70
| | | | | | | | 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.
* Don't comment warnings. Don't put #warnings about warnings. _FIX_ warnings.Rob Landley2005-09-071-31/+36
| | | | | | | | | 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.
* Whitespace-level changes. Replace s0,s1,e0,e1 with real variable names andRob Landley2005-09-061-39/+24
| | | | | clean up whitespace and curly brackets a bit. Resulting binary should be identical.
* tell people to ignore the dups/e0 warningsMike Frysinger2005-07-301-0/+1
|
* Fixup some warningsEric Andersen2004-08-281-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-51/+75
|
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-3/+2
| | | | -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
* Fix up copyright msgs. Bump version to 0.49 in preparation for0_49Eric Andersen2001-01-271-1/+1
| | | | | a release. Update the website with release details. -Erik
* 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
* Patch from Matt Kraai to implement uniq -[cdu]Eric Andersen2000-12-091-7/+38
|
* Rewrote uniq to be less than a third of the size, and fixed some otherMatt Kraai2000-09-271-143/+17
| | | | minor problems.
* Renamed "internal.h" to the more sensible "busybox.h".Eric Andersen2000-09-251-2/+2
| | | | -Erik
* Extract usage information into a separate file.Matt Kraai2000-07-161-9/+1
|
* Use errorMsg rather than fprintf.Matt Kraai2000-07-141-3/+3
|
* Updates to a number of apps to remove warnings/compile errors under libc5.Eric Andersen2000-06-191-2/+2
| | | | | Tested under both libc5 and libc6 and all seems well with these fixes. -Erik
* Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELPErik Andersen2000-05-121-4/+7
| | | | | | | | which lets you compile out most of the "--help" output, saving up to 17k. Renamed mnc to nc. -Erik
* More updates to the docs, and fixes to sync things with the docs.Erik Andersen2000-04-171-10/+4
| | | | -Erik
* Upates to include copyright 2000 to everythingErik Andersen2000-04-131-2/+2
| | | | -Erik
* Some formatting updates (ran the code through indent)Erik Andersen2000-02-081-114/+111
| | | | -Erik
* A few minor updates. ;-)Erik Andersen2000-02-071-1/+1
| | | | | | Seriously though, read the Changelog for busybox 0.42, which this is about to become... -Erik
* * added (and documented) "-n" option for head -Erik Andersen2000-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
* added uniq_usage messageJohn Beppu2000-01-071-2/+9
|
* did tedious stuffJohn Beppu2000-01-061-15/+46
|
* Cool. Beppu is doing uniq.Erik Andersen2000-01-061-2/+3
| | | | -Erik
* i am busybox of borg. unix will be assimilated.John Beppu2000-01-061-0/+157