#
75891f45 |
| 15-Dec-2021 |
tb <tb@openbsd.org> |
grep: Add missing unistd.h and limits.h includes
Both binary.c and file.c currently pull in unistd.h via zlib's zconf.h. binary.c uses SEEK_SET and file.c a bunch of things like close(), isatty(), l
grep: Add missing unistd.h and limits.h includes
Both binary.c and file.c currently pull in unistd.h via zlib's zconf.h. binary.c uses SEEK_SET and file.c a bunch of things like close(), isatty(), lseek(). In addition file.c needs limits.h for PATH_MAX.
ok deraadt
show more ...
|
#
19739ec8 |
| 10-Mar-2021 |
millert <millert@openbsd.org> |
zlib functions take a gzFile not gzFile * (gzFile is already a pointer). From Josh Rickmar.
|
#
4ba547d3 |
| 12-Nov-2013 |
deraadt <deraadt@openbsd.org> |
simple prototype repairs
|
#
5ff99970 |
| 20-Jun-2011 |
stsp <stsp@openbsd.org> |
Switch binary file detection from !(isprint() || isspace()) to checking for embedded NULs. Matches GNU and FreeBSD grep, and avoids problems with e.g. latin1-encoded files being treated as binary in
Switch binary file detection from !(isprint() || isspace()) to checking 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@
show more ...
|
#
7fec5d18 |
| 02-Jul-2010 |
nicm <nicm@openbsd.org> |
Do not include mmap support with -DSMALL.
ok millert
|
#
6e7a98c8 |
| 25-Apr-2005 |
otto <otto@openbsd.org> |
- use size_t where appropriate. - check for <= 0 in gzread; it returns -1 on error. From christos@netbsd; ok millert@
|
#
71d182b2 |
| 07-Feb-2005 |
otto <otto@openbsd.org> |
Due to a braindead zlib, the test for seekability of a gzstream using gzseek(f, 0L, SEEK_CUR) does not work as expected. Instead test the underlying stream and remember that. This repairs echo foo |
Due to a braindead zlib, the test for seekability of a gzstream using 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@
show more ...
|
#
ac6b82d9 |
| 15-Sep-2004 |
deraadt <deraadt@openbsd.org> |
cast offset value correctly for gzseek
|
#
696c8bf3 |
| 06-May-2004 |
otto <otto@openbsd.org> |
Don't fseek() on stdin if it is a terminal. It does not fail, but what's more more important, it does not work either.
ok millert@ tedu@
|
#
0079fd18 |
| 06-May-2004 |
millert <millert@openbsd.org> |
Treat ^H as non-binary. OK hshoexer@, brad@ and deraadt@
|
#
25ef2405 |
| 29-Dec-2003 |
canacar <canacar@openbsd.org> |
fix zgrep failure when the uncompressed file begins with a newline also, search from the beginning if a stream or compressed file is identified as 'binary'. ok millert@, reported by tedu@, tested by
fix zgrep failure when the uncompressed file begins with a newline also, search from the beginning if a stream or compressed file is identified as 'binary'. ok millert@, reported by tedu@, tested by jose@
show more ...
|
#
350454cf |
| 18-Sep-2003 |
beck <beck@openbsd.org> |
make this test look for spaces as well, to match other cases ok fgs@ ok deraadt@
|
#
46a19d5d |
| 07-Sep-2003 |
tedu <tedu@openbsd.org> |
extend ascii test for more accuracy. ok deraadt@ pb@
|
#
0536143a |
| 25-Jun-2003 |
millert <millert@openbsd.org> |
o remove useless cast to int from gzread() call o maxPatternLen should be size_t since that's what it is compared against o remove useless casts of NULL to various pointer types
|
#
fbb63fbf |
| 25-Jun-2003 |
tedu <tedu@openbsd.org> |
backwards args to gzseek
|
#
f057df86 |
| 23-Jun-2003 |
tedu <tedu@openbsd.org> |
better detetection/handling of binary files. 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@
|
#
fd6e2b5b |
| 22-Jun-2003 |
deraadt <deraadt@openbsd.org> |
proper $OpenBSD$
|
#
38d402d2 |
| 22-Jun-2003 |
deraadt <deraadt@openbsd.org> |
-DNOZ flag to be used by install media for removing z*grep support, if needed. (and knf)
|
#
578e1101 |
| 22-Jun-2003 |
deraadt <deraadt@openbsd.org> |
correct fseek() parameters
|
#
fe07e37b |
| 22-Jun-2003 |
deraadt <deraadt@openbsd.org> |
freegrep 0.16
|