remove unnecessary close()s, found bug (exit 141)
[forkaftergrep.git] / fag.h
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
15 struct opt {
16 int timeout;
17 int kill_sig;
18 int verbose;
19 char* pattern;
20 char** argv;
21 int stream;
22 char grepopt[16];
23 };
24
25 int fork_after_grep (struct opt opts);
26
27 #endif
Imprint / Impressum