summaryrefslogtreecommitdiff
path: root/findutils/grep.c
AgeCommit message (Collapse)Author
2008-01-24grep: fix wrong filename in error messageDenis Vlasenko
2007-11-04grep: fix -FoDenis Vlasenko
2007-10-11add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko
EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
2007-10-01'simple' error message functions by Loic Grenie <loic.grenie@gmail.com>.Denis Vlasenko
263 bytes saved.
2007-09-10grep: delete obsolete commentDenis Vlasenko
2007-09-10grep: fix grep -F -e str1 -e str2 (was matching str2 only)Denis Vlasenko
by replacing "=" by "|=" here: found |= strstr(line, gl->pattern) != NULL; grep: optimization: stop on first -e match grep: stop using bss. -40 bytes
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-07-15grep: implement -m MAX_MATCHES; fix help textDenis Vlasenko
grep_file 771 822 +51 packed_usage 22573 22610 +37 .rodata 128058 128090 +32 grep_main 842 853 +11 max_matches - 4 +4 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 4/0 up/down: 135/0) Total: 135 bytes
2007-07-15grep: fix buglets with context printingDenis Vlasenko
print_line 152 170 +18 did_print_line - 1 +1 grep_file 788 771 -17 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 19/-17) Total: 2 bytes text data bss dec hex filename 673368 2740 13968 690076 a879c busybox_old 673368 2740 13968 690076 a879c busybox_unstripped
2007-06-08grep: selection done by FEATURE_GREP_EGREP_ALIAS was broken, fix.Denis Vlasenko
(Maxime Bizon <mbizon@freebox.fr> (Freebox))
2007-05-26usage.c: remove reference to busybox.hDenis Vlasenko
*: s/include "busybox.h"/include "libbb.h"
2007-04-12make sure we free the grep data as wellMike Frysinger
2007-04-08find: fix handling of -pruneDenis Vlasenko
recursive_actions: uppercase flag constants
2007-04-04- sed -e "s/char[[:space:]]*\*[[:space:]]*argv\[\]/char **argv/g"Bernhard Reutner-Fischer
2007-03-29- fold recurse, depthFirst and dereference params into one param flags.Bernhard Reutner-Fischer
Minor size improvement (-16b for size, -24b according to bloat-o-meter).
2007-02-25grep: "implement" -a and -I by ignoring themDenis Vlasenko
2007-02-25grep: implement -wDenis Vlasenko
2007-02-25ash: replace xstrdup (shell shall not die)Denis Vlasenko
grep: fix mis-indented block
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2006-12-22remove useless casts (type*) xzalloc(...)Denis Vlasenko
2006-10-27recursive_action: add depth paramDenis Vlasenko
chmod: match coreutils versus following links
2006-10-26rename functions to more understandable namesDenis Vlasenko
2006-10-22grep: "grep -h pattern file1 file2" ignored -hDenis Vlasenko
(precluded kernel's "make modules")
2006-10-15grep: -r didn't close files, producing "Too many open files"Denis Vlasenko
2006-10-14grep: fix combination of -r and -hDenis Vlasenko
2006-10-14grep: add support for -rDenis Vlasenko
2006-10-12bb_get_[chomped]line_from_file wasn't descriptive enough.Denis Vlasenko
Renaming...
2006-10-03bb_applet_name -> applet_nameDenis Vlasenko
2006-10-03getopt_ulflags -> getopt32.Denis Vlasenko
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.
2006-10-03lots of silly indent fixesDenis Vlasenko
2006-09-29grep: add help text; fix styleDenis Vlasenko
2006-09-29grep: implement -o option. Patch by Jac Goudsmit.Denis Vlasenko
2006-09-25fix 'grep -C' which requires an argumentEric Andersen
2006-09-13- fix copy'n paste errors that got introduced when switching to the shorter ↵Bernhard Reutner-Fischer
boilerplate. No object code changes.
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-07- reuse strings and messages. Saves about 600BBernhard Reutner-Fischer
2006-06-02- move #include busybox.h to the very top so we pull in the configBernhard Reutner-Fischer
and eventual platform specific includes in early.
2006-05-26Change llist_add_* to take the address of the list rather than returning the newRob Landley
head, and change all the callers.
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-02-28make grep faster (close bug 758), reduce small memory leak in ↵"Vladimir N. Oleynik"
CONFIG_FEATURE_CLEANUP mode
2005-10-14- new bb_opt_complementally syntax, use [-:?] only - 'free' chars"Vladimir N. Oleynik"
- new bb_getopt_ulflags features: check max and min args, convert first argv to options special for ar and tar applets - use bb_default_error_retval for env applet
2005-09-23- replace variables by defines to save spaceBernhard Reutner-Fischer
- rename string denoting stdin from "-" to "(standard input)" to match GNU grep.
2005-09-23SUSv3 -q compatibily exit status correction for grep again"Vladimir N. Oleynik"
2005-09-23SUSv3 -q compatibily exit status correction for grep"Vladimir N. Oleynik"
2005-09-23grep must have exit code >1 if input file not found. Small indent correcion ↵"Vladimir N. Oleynik"
also.
2005-09-14split libbb: moved xregcomp separatelly for speed up recompile"Vladimir N. Oleynik"
2005-09-14removed strange extern void xregcomp(... from some applets, but declared ↵"Vladimir N. Oleynik"
from libbb.h
2005-09-051) bb_opt_complementaly -> bb_opt_complementally"Vladimir N. Oleynik"
2) better support long options 3) new flag '!' for bb_opt_complementally: produce bb_show_usage() if BB_GETOPT_ERROR internally
2005-07-31patch by srowe in Bug 359 to fix fgrep aliasingMike Frysinger