1/* $OpenBSD: grep.h,v 1.15 2010/04/05 03:03:55 tedu Exp $ */ |
2/* $FreeBSD: head/usr.bin/grep/grep.h 210461 2010-07-25 08:42:18Z gabor $ */ |
3 4/*- 5 * Copyright (c) 1999 James Howard and Dag-Erling Co�dan Sm�rgrav 6 * Copyright (c) 2008-2009 Gabor Kovesdan <gabor@FreeBSD.org> 7 * All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 44 unchanged lines hidden (view full) --- 55#define BINFILE_BIN 0 56#define BINFILE_SKIP 1 57#define BINFILE_TEXT 2 58 59#define FILE_STDIO 0 60#define FILE_GZIP 1 61#define FILE_BZIP 2 62 |
63#define DIR_READ 0 |
64#define DIR_SKIP 1 65#define DIR_RECURSE 2 66 |
67#define DEV_READ 0 |
68#define DEV_SKIP 1 69 |
70#define LINK_READ 0 |
71#define LINK_EXPLICIT 1 72#define LINK_SKIP 2 73 74#define FILE_PAT 0 75#define DIR_PAT 1 76#define EXCL_PAT 0 77#define INCL_PAT 1 78 --- 36 unchanged lines hidden (view full) --- 115extern int cflags, eflags; 116 117/* Command line flags */ 118extern bool Eflag, Fflag, Gflag, Hflag, Lflag, 119 bflag, cflag, hflag, iflag, lflag, mflag, nflag, oflag, 120 qflag, sflag, vflag, wflag, xflag; 121extern bool exclflag, nullflag; 122extern unsigned long long Aflag, Bflag, mcount; |
123extern char *label; 124extern const char *color; |
125extern int binbehave, devbehave, dirbehave, filebehave, grepbehave, linkbehave; 126 127extern bool first, matchall, notfound, prev; 128extern int tail; 129extern unsigned int epatterns, patterns; 130extern char **pattern; 131extern struct epat *epattern; 132extern regex_t *er_pattern, *r_pattern; --- 31 unchanged lines hidden --- |