aboutsummaryrefslogtreecommitdiff
path: root/miscutils/strings.c
Commit message (Collapse)AuthorAgeFilesLines
* patch: shrink by Pascal Bellard <pascal.bellard AT ads-lu.com> (-80 bytes)Gravatar Denis Vlasenko2008-03-231-2/+0
| | | | | *: removal of #include <getopt.h>
* *: shrink by using [f]open_or_warn_stdin where appropriateGravatar Denis Vlasenko2008-03-171-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta lsattr_main 62 143 +81 open_or_warn_stdin - 36 +36 fclose_if_not_stdin 20 47 +27 xfopen_stdin - 20 +20 tac_main 336 356 +20 cksum_main 249 259 +10 bb_argv_dash - 8 +8 su_main 448 455 +7 cmp_main 630 633 +3 passwd_main 1072 1074 +2 uudecode_main 317 315 -2 text_yank 110 108 -2 handle_incoming_and_exit 2653 2651 -2 flags 5 1 -4 write_leases 235 230 -5 fopen_or_warn_stdin 48 42 -6 fold_main 648 642 -6 static.argv_dash 8 - -8 sum_main 142 128 -14 tail_main 1237 1221 -16 sed_main 711 695 -16 cmp_xfopen_input 17 - -17 bb_cat 113 96 -17 catv_main 328 306 -22 strings_main 457 434 -23 hash_file 298 274 -24 sum_file 353 325 -28 sort_main 904 859 -45 expand_main 736 686 -50 cut_main 1116 1065 -51 md5_sha1_sum_main 549 493 -56 lsattr_args 90 - -90 read_stduu 408 255 -153 ------------------------------------------------------------------------------ (add/remove: 3/3 grow/shrink: 7/20 up/down: 214/-657) Total: -443 bytes text data bss dec hex filename 797417 658 7428 805503 c4a7f busybox_old 796973 658 7428 805059 c48c3 busybox_unstripped
* *: add -Wunused-parameter; fix resulting breakageGravatar Denis 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 functionsGravatar Denis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* introduce bb_putchar(). saves ~1800 on uclibc (less on glibc).Gravatar Denis Vlasenko2007-09-271-2/+2
|
* don't pass argc in getopt32, it's superfluousGravatar Denis 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
* strings: strings a b was processing a twice, fix thatGravatar Denis Vlasenko2007-06-171-34/+35
|
* usage.c: remove reference to busybox.hGravatar Denis Vlasenko2007-05-261-4/+2
| | | | | *: s/include "busybox.h"/include "libbb.h"
* suppress warnings about easch <applet>_main() havingGravatar Denis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Gravatar Denis Vlasenko2007-01-291-1/+1
|
* rename functions to more understandable namesGravatar Denis Vlasenko2006-10-261-2/+2
|
* remove bb_printf and the likeGravatar Denis Vlasenko2006-10-261-1/+1
|
* attempt to regularize atoi mess.Gravatar Denis Vlasenko2006-10-081-2/+3
|
* getopt_ulflags -> getopt32.Gravatar Denis Vlasenko2006-10-031-2/+2
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* whitespace cleanupGravatar Denis Vlasenko2006-09-171-1/+1
|
* Tito said that strings is a complete rewrite.Gravatar Rob Landley2006-07-311-41/+2
|
* - move #include busybox.h to the very top so we pull in the configGravatar Bernhard Reutner-Fischer2006-06-031-1/+1
| | | | and eventual platform specific includes in early.
* Size reductions, mostly switching things to use libbb functions.Gravatar Rob Landley2006-05-291-1/+1
|
* - whitespace cleanup from Tito.Gravatar Bernhard Reutner-Fischer2006-02-271-23/+10
|
* just whitespaceGravatar Tim Riker2006-01-251-4/+4
|
* Tito sent in a few patches converting instances of CONFIG_FEATURE_CLEAN_UP toGravatar Rob Landley2005-09-081-3/+3
| | | | ENABLE_FEATURE_CLEAN_UP.
* Clean up strings.c to use busybox's option processing. Bug 006, apparently.Gravatar Rob Landley2005-06-071-71/+54
|
* BugfixesGravatar Glenn L McGrath2004-04-301-2/+2
| | | | | | | | | | | 1) a non NULL terminated buffer that can mess up output, spotted by Ian Latter 2) in miscutils/strings.c: get rid of useless pointer dereference in third part of for(;;), spotted by Larry Doolittle 3) bug when reading from a pipe and being invoked as strings "cat Readme | strings" is broken "cat Readme | busybox strings" works spotted by Ian Latter and fixed by Tito.
* Remove trailing whitespace. Update copyright to include 2004.Gravatar Eric Andersen2004-03-151-1/+1
|
* Patch from Tito, Reduces the size of busybox's strings applet from 1900 toGravatar Glenn L McGrath2003-09-151-12/+11
| | | | 1788 bytes (for strings.o).
* save a couple of bytesGravatar Glenn L McGrath2003-08-301-1/+1
|
* "A little patch for the strings applet of the busybox development treeGravatar Glenn L McGrath2003-08-291-6/+3
| | | | | that substitutes two lines of code with a libbb function saving a couple of bytes." - Tito
* Update a bunch of docs. Run a script to update my email addr.Gravatar Eric Andersen2003-07-141-1/+1
|
* A couple of patches from Tito <farmatito@tiscali.it>Gravatar Eric Andersen2003-04-271-1/+1
|
* Major coreutils update.Gravatar Manuel Novoa III2003-03-191-2/+2
|
* oops. args shuffled.Gravatar Eric Andersen2003-03-131-1/+1
|
* Patch from Tito Ragusa:Gravatar Eric Andersen2003-03-131-51/+53
| | | | | | | The changes I've made: in strings.c: 1) fix memory allocation error I've detected with MALLOC_CHECK_=1 in *string; 2) code clean up; 3) fix compiler warnings about uninitialized vars;
* Patch from Tito to rework strings applet, and some testsuiteGravatar Eric Andersen2003-01-131-63/+70
| | | | stuff to test it added by me.
* Additional patch from Tito to fix some anomoliesGravatar Eric Andersen2003-01-091-2/+10
|
* Make output the same as upstream, patch by TitoGravatar Glenn L McGrath2003-01-091-2/+3
|
* Implement a small strings appletGravatar Eric Andersen2002-11-071-0/+142