properly daemonize, also smaller fixes
[forkaftergrep.git] / fag.h
CommitLineData
4f83e12d 1#ifndef __FAG_H__
2#define __FAG_H__
3
4#define PROGRNAME "fag"
259f7382 5#define VERSION "1.2"
4f83e12d 6#define AUTHOR "Tobias Girstmair"
259f7382 7#define YEAR "2018"
4f83e12d 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;
259f7382 21 char* logout;
22 char* logerr;
4f83e12d 23 int stream;
fdb3674a 24 char grepopt[16];
4f83e12d 25};
26
fdb3674a 27int fork_after_grep (struct opt opts);
4f83e12d 28
29#endif
Imprint / Impressum