summaryrefslogtreecommitdiffstats
path: root/usr.bin/grep/grep.c (follow)
Commit message (Expand)AuthorAgeFilesLines
* convert fgetln to getline. this improves portability and sets a goodtedu2019-01-311-3/+7
* rework grep_open to be more careful about directories.tedu2019-01-231-3/+1
* - add max-count to SYNOPSISjmc2017-12-101-5/+6
* Add support for the non-standard grep -m extension.pirofti2017-12-091-5/+18
* fix exit status on pledge(2) error, where it should be >1gsoares2015-11-281-2/+2
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
* grep only opens files read-only, reads via stdio or other methods, performsderaadt2015-10-031-1/+4
* use strtonum to parse the number of lines of context.dlg2015-08-271-10/+9
* Add warning when user specifies -R but no files, like GNU grep.millert2015-04-301-1/+3
* Don't include limits.h or sys/limits.h since grep.h already does itmillert2015-03-161-2/+1
* 1. They're flags, not counters. Set to one instead of incrementing.tedu2015-01-101-21/+13
* use reallocarray()deraadt2014-12-011-3/+4
* Prefer setvbuf() to setlinebuf() for portability; ok deraadt@millert2014-11-261-2/+2
* Make option string/struct const (since it is...). I've had thismillert2014-11-261-4/+4
* Fix exit status when there is an error reading a file.millert2012-12-291-2/+3
* add support for -o to only print the match.tedu2011-07-081-5/+9
* add -H (opposite of -h) to always print name. ok deraadt millerttedu2011-03-041-6/+11
* Remove the "fast" grep code if SMALL. This has the side effect of breakingtedu2010-07-021-2/+12
* Fix "grep -e foo -w" crash. The problem lies in 'e' getopt clausejacekm2010-04-201-4/+17
* remove some non-POSIX standard non-GNU defacto standard options, mostlytedu2010-04-051-25/+6
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-3/+3
* - Be explicit on command line checking, instead of relying on patterns,kili2007-02-131-18/+9
* Check length before checking index of len - 1.ray2006-11-021-2/+2
* Allow zero-length patterns with -x sojaredy2006-09-261-3/+3
* Break patterns containing newlines into multiple patterns like POSIX says.otto2006-03-071-3/+15
* delint; remove redundant vars and functions; ok jaredy@otto2006-02-091-3/+1
* Make the processing of patterns collected from files specified by -fjaredy2005-04-031-3/+21
* Protect begin and end of word markers added to the pattern whenotto2005-04-031-6/+11
* Remove block based mmap optimization. There are newline problemsotto2004-10-031-6/+1
* various fixes to make this page a bit clearer and hopefully a bitjmc2004-09-281-5/+5
* spacingderaadt2004-08-051-2/+2
* Add a new past path for fgrep that is just a simplified version ofmillert2004-05-071-31/+14
* Implement --line-bufferedotto2004-04-021-3/+12
* Fix anchors (^ or $) in -w mode broken by the last commit's -w overhaul.millert2004-02-041-3/+10
* Previously, in -w mode, for each match on a line grep would checkmillert2004-01-251-4/+10
* Sync usage() with SYNOPSIS in grep(1).mcbride2003-12-111-4/+5
* Fix "grep -number" support for multi-digit numbers. At issue ismillert2003-09-071-10/+10
* When reallocing pattern, use sizeof(*pattern) not sizeof(int).millert2003-07-161-3/+3
* range-check numeric arguments (-num, -A num, -B num)millert2003-07-141-8/+22
* grep should exit(2) on error, not exit(1) (1 means no matches found).millert2003-07-101-4/+4
* knfderaadt2003-07-101-33/+33
* Fix parsing of -NUMBER. We now do things a digit at a time andmillert2003-07-101-8/+10
* o remove useless cast to int from gzread() callmillert2003-06-251-8/+8
* actually do fgrep. -G -F and -E are now mutally exclusive, and overridetedu2003-06-241-30/+36
* strncpy -> memcpy per deraadt suggestion.tedu2003-06-231-2/+3
* go back to using strncpy. for long patterns, strlcpy reads too muchtedu2003-06-231-2/+3
* faster grep for simple patterns. derived from a patch by sean farley.tedu2003-06-231-5/+38
* minor tweaksderaadt2003-06-231-2/+3
* use strlcpy, not strncpy. ok deraadt@ millert@tedu2003-06-231-5/+4
* spellingtedu2003-06-231-2/+2