-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.def.h
40 lines (27 loc) · 1.03 KB
/
config.def.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
Configuration for the treat runtime. Recompile and reinstall
to apply.
*/
/* Default input/output separators */
char* insep=" ";
char* outsep="\t";
/* The directory where the temporary FIFOs should be kept */
static const char* template="/tmp/treat.XXXXXX";
/* The prefixes of the names of the input/output FIFOs */
static const char* inprefix="in.";
static const char* outprefix="out.";
/* The default command, where no filter is specified */
static const char* defaultcomm="cat";
/* The shell used for executing the filters given as arguments */
static const char* shellpath="/bin/sh";
static const char* shellname="sh";
static const char* shellflag="-c";
/*
The structure of a command:
The first %s represents the input FIFO, the second %s represents
the command passed as a command line argument, and the third
%s represents the output FIFO. Note that the shell has to be
capable of commands beginning with redirections.
*/
static const char* commfmt="<%s %s >%s";
void* reallocarray(void* optr, size_t nmemn, size_t size);