summaryrefslogtreecommitdiff
path: root/usr.bin/grep/mmfile.c
AgeCommit message (Collapse)Author
2006-09-20That should be S_ISREG, dunno why I committed this wrong version;Otto Moerbeek
spotted by hshoexer@
2006-09-19Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
have multiple bits set, which lead to surprising results. Spotted by Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@
2006-02-09delint; remove redundant vars and functions; ok jaredy@Otto Moerbeek
2004-10-03Remove block based mmap optimization. There are newline problemsOtto Moerbeek
(PR 3940, 3941) which can be fixed, but if a match starts at the end of a block and continues into the next block, no match will be found. Measurements by millert@ showed that the improvements of this optimization are non-measurable anyway. Diff from Alexander Taler. ok millert@
2004-01-18Unbreak *grep -w -l. ok millert@Otto Moerbeek
2003-09-09mmap returns MAP_FAILED on failure. fixes hugh@'s crash. ok deraadt@Ted Unangst
2003-06-24tweak boolean test to be clearTed Unangst
2003-06-23faster grep for simple patterns. derived from a patch by sean farley.Ted Unangst
this makes searching for constant strings much faster by avoiding regex. ok deraadt@
2003-06-23minor tweaksTheo de Raadt
2003-06-22proper $OpenBSD$Theo de Raadt
2003-06-22-DNOZ flag to be used by install media for removing z*grep support, ifTheo de Raadt
needed. (and knf)
2003-06-22freegrep 0.16Theo de Raadt