remove unnecessary close()s, found bug (exit 141)
[forkaftergrep.git] / fag.h
CommitLineData
4f83e12d 1#ifndef __FAG_H__
2#define __FAG_H__
3
4#define PROGRNAME "fag"
5#define VERSION "1.0"
6#define AUTHOR "Tobias Girstmair"
7#define YEAR "2017"
8#define LICENSE "GNU GPLv3"
9
10#define BUF_SIZE 4096
11
12#define USAGE "Usage: %s [OPTION]... PATTERN PROGRAM [ARG]...\n"
13#define VERTEXT ""PROGRNAME" "VERSION"\t(C) "YEAR" "AUTHOR", "LICENSE"\n"
14
15struct opt {
16 int timeout;
17 int kill_sig;
ff6565ef 18 int verbose;
4f83e12d 19 char* pattern;
20 char** argv;
21 int stream;
fdb3674a 22 char grepopt[16];
4f83e12d 23};
24
fdb3674a 25int fork_after_grep (struct opt opts);
4f83e12d 26
27#endif
Imprint / Impressum