diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2003-06-23 00:55:10 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2003-06-23 00:55:10 +0000 |
commit | 7d55775e260f0840640d21e14a2856e6fb835ee1 (patch) | |
tree | c2b7e31a9f52d02f3a226791d30959978c8d50a9 /usr.bin/grep/grep.h | |
parent | 5b3fcdbe0251a659d3afc9b2028881d9181c820b (diff) |
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@
Diffstat (limited to 'usr.bin/grep/grep.h')
-rw-r--r-- | usr.bin/grep/grep.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/grep/grep.h b/usr.bin/grep/grep.h index 907f6c042d9..d9981e3808b 100644 --- a/usr.bin/grep/grep.h +++ b/usr.bin/grep/grep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: grep.h,v 1.2 2003/06/22 22:38:50 deraadt Exp $ */ +/* $OpenBSD: grep.h,v 1.3 2003/06/23 00:55:09 tedu Exp $ */ /*- * Copyright (c) 1999 James Howard and Dag-Erling Coïdan Smørgrav @@ -35,6 +35,10 @@ #define VER_MAJ 0 #define VER_MIN 9 +#define BIN_FILE_BIN 0 +#define BIN_FILE_SKIP 1 +#define BIN_FILE_TEXT 2 + typedef struct { size_t len; int line_no; @@ -48,8 +52,9 @@ extern int cflags, eflags; /* Command line flags */ extern int Aflag, Bflag, Hflag, Lflag, Pflag, Sflag, Rflag, Zflag, - aflag, bflag, cflag, hflag, lflag, nflag, qflag, sflag, + bflag, cflag, hflag, lflag, nflag, qflag, sflag, vflag, wflag, xflag; +extern int binbehave; extern int first, lead, matchall, patterns, tail; extern char **pattern; |