Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | zlib functions take a gzFile not gzFile * (gzFile is already a pointer). | 2021-03-10 | 1 | -2/+2 | |
| | | | | From Josh Rickmar. | ||||
* | simple prototype repairs | 2013-11-12 | 1 | -2/+2 | |
| | |||||
* | Switch binary file detection from !(isprint() || isspace()) to checking | 2011-06-20 | 1 | -20/+14 | |
| | | | | | | | for embedded NULs. Matches GNU and FreeBSD grep, and avoids problems with e.g. latin1-encoded files being treated as binary in the UTF-8 locale once grep calls setlocale() (which it does not, yet). OK millert@ tedu@ | ||||
* | Do not include mmap support with -DSMALL. | 2010-07-02 | 1 | -1/+3 | |
| | | | | ok millert | ||||
* | - use size_t where appropriate. | 2005-04-25 | 1 | -4/+4 | |
| | | | | | - check for <= 0 in gzread; it returns -1 on error. From christos@netbsd; ok millert@ | ||||
* | Due to a braindead zlib, the test for seekability of a gzstream using | 2005-02-07 | 1 | -3/+5 | |
| | | | | | | gzseek(f, 0L, SEEK_CUR) does not work as expected. Instead test the underlying stream and remember that. This repairs echo foo | gzip | zgrep foo. Problem spotted by Han Boetes in PR 4089; ok millert@ | ||||
* | cast offset value correctly for gzseek | 2004-09-15 | 1 | -2/+2 | |
| | |||||
* | Don't fseek() on stdin if it is a terminal. It does not fail, but | 2004-05-06 | 1 | -2/+2 | |
| | | | | | | what's more more important, it does not work either. ok millert@ tedu@ | ||||
* | Treat ^H as non-binary. OK hshoexer@, brad@ and deraadt@ | 2004-05-06 | 1 | -4/+6 | |
| | |||||
* | fix zgrep failure when the uncompressed file begins with a newline | 2003-12-29 | 1 | -8/+13 | |
| | | | | | | also, search from the beginning if a stream or compressed file is identified as 'binary'. ok millert@, reported by tedu@, tested by jose@ | ||||
* | make this test look for spaces as well, to match other cases | 2003-09-18 | 1 | -2/+2 | |
| | | | | ok fgs@ ok deraadt@ | ||||
* | extend ascii test for more accuracy. ok deraadt@ pb@ | 2003-09-07 | 1 | -8/+6 | |
| | |||||
* | o remove useless cast to int from gzread() call | 2003-06-25 | 1 | -2/+2 | |
| | | | | | o maxPatternLen should be size_t since that's what it is compared against o remove useless casts of NULL to various pointer types | ||||
* | backwards args to gzseek | 2003-06-25 | 1 | -2/+2 | |
| | |||||
* | better detetection/handling of binary files. | 2003-06-23 | 1 | -2/+2 | |
| | | | | | | | | make -a do the right thing, doc and implement -U, -I. add --help and --mmap for compatibility. some other minor fixes. some from NetBSD. ok deraadt@ | ||||
* | proper $OpenBSD$ | 2003-06-22 | 1 | -2/+2 | |
| | |||||
* | -DNOZ flag to be used by install media for removing z*grep support, if | 2003-06-22 | 1 | -2/+4 | |
| | | | | needed. (and knf) | ||||
* | correct fseek() parameters | 2003-06-22 | 1 | -2/+2 | |
| | |||||
* | freegrep 0.16 | 2003-06-22 | 1 | -0/+88 | |