summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep/util.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* Change line counter from int to unsigned long long to reduce overflow.martijn2020-07-231-6/+10
* With -R and an implicit ".", don't prepend file paths with "./"jca2019-12-031-2/+12
* two compat features to allow the zstdgrep script to work.tedu2019-10-071-1/+3
* when combining -o and -b, print the byte offset of the pattern, not line.tedu2019-07-171-2/+3
* rework grep_open to be more careful about directories.tedu2019-01-231-3/+6
* Add support for the non-standard grep -m extension.pirofti2017-12-091-1/+11
* initialize regmatch_t always, fixes grep -o ""tedu2017-04-031-2/+2
* when using -o, we may restart a match in the middle of the line.tedu2016-08-251-5/+14
* Reverse search optimization makes no sense (and doesn't work) ifotto2016-04-041-2/+2
* cast toupper's argument to unsigned charmmcc2015-12-221-2/+2
* The loop index in grep_cmp() should be size_t to match the type ofmillert2015-12-221-11/+11
* Use long long rather than off_t for line_no to ensure that it's alwaysmmcc2015-12-141-2/+2
* Represent line numbers with off_t rather than int. This preventsmmcc2015-12-071-2/+2
* Put fts_close() where missing.uebayasi2015-06-251-2/+2
* use reallocarray()deraadt2014-12-011-1/+9
* Use errc/warnc to simplify code.guenther2014-05-201-2/+2
* unsigned char casts for ctypederaadt2013-11-261-3/+3
* blacklist a select few characters instead of a limited whitelist fortedu2013-05-041-11/+21
* Fix exit status when there is an error reading a file.millert2012-12-291-2/+5
* Don't print zero length matches in -o mode. Found by otto@ whomillert2012-12-121-2/+2
* use proper eol offset for -o matching; spotted by ajacoutot@; ok millert@otto2012-12-111-2/+2
* Fix an integer overflow for very long lines by replacing the datatype of 2 offsets from int to regoff_t.aschrijver2011-07-171-3/+9
* the matchall magic shortcut requires we set c=1 to print nowtedu2011-07-111-1/+2
* add support for -o to only print the match.tedu2011-07-081-19/+37
* Remove the "fast" grep code if SMALL. This has the side effect of breakingtedu2010-07-021-1/+15
* prevent out-of-bounds access with empty pattern (fixes "grep -x ''")eric2010-04-251-2/+2
* remove some non-POSIX standard non-GNU defacto standard options, mostlytedu2010-04-051-10/+3
* Process patterns containing $ end ^ (but not as last or first char)otto2007-10-021-2/+1
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-1/+11
* fts_read returning NULL and errno set is an error. ok ray@otto2006-12-261-1/+3
* Reset the number of lines of tail context left to printjaredy2006-11-171-1/+2
* Allow zero-length patterns with -x sojaredy2006-09-261-3/+4
* delint; remove redundant vars and functions; ok jaredy@otto2006-02-091-7/+2
* Protect begin and end of word markers added to the pattern whenotto2005-04-031-2/+7
* Remove block based mmap optimization. There are newline problemsotto2004-10-031-3/+1
* unused variables; otto okderaadt2004-09-161-4/+3
* Stop search when -q option is given and a match is found. Found by jmc@otto2004-08-111-2/+2
* Make grep -w behave the same for the fastcomp and the regex case,otto2004-05-071-2/+10
* Add a new past path for fgrep that is just a simplified version ofmillert2004-05-071-8/+47
* Fix anchors (^ or $) in -w mode broken by the last commit's -w overhaul.millert2004-02-041-3/+3
* dataLen should be size_t to match l->len; ok otto@ tedu@millert2004-01-261-3/+3
* Previously, in -w mode, for each match on a line grep would checkmillert2004-01-251-36/+42
* Use off_t for file sizes, and don't forget to print a ':' when usingotto2004-01-191-2/+3
* make sure ln.len gets initialized. Okay millert@espie2004-01-181-1/+2
* Unbreak grepping for some patterns containing multiple dots. Fixes PR 3597.otto2003-12-061-2/+2
* prototype declared static, but function was not. add static to function.avsm2003-10-281-2/+2
* After some discussion on icb it seems a do {} while is what we wantmillert2003-07-201-4/+8
* Close PR 3358 by changing the loop from do {} while -> for; tdeval@ OKmillert2003-07-201-9/+4
* restore grep -v semantics, print lines that don't match any (mismatch all)dhartmei2003-07-101-6/+5
* grep should exit(2) on error, not exit(1) (1 means no matches found).millert2003-07-101-6/+6