forked from cfengine/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cf3.extern.h
238 lines (196 loc) · 6.24 KB
/
cf3.extern.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
/*
Copyright (C) Cfengine AS
This file is part of Cfengine 3 - written and maintained by Cfengine AS.
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; version 3.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
To the extent this program is licensed as part of the Enterprise
versions of Cfengine, the applicable Commerical Open Source License
(COSL) may apply to this file if you as a licensee so wish it. See
included file COSL.txt.
*/
/*****************************************************************************/
/* */
/* File: cf3.extern.h */
/* */
/* Created: Thu Aug 2 12:51:18 2007 */
/* */
/*****************************************************************************/
#ifndef CFENGINE_CF3_EXTERN_H
#define CFENGINE_CF3_EXTERN_H
/* See variables in cf3globals.c and syntax.c */
extern pid_t ALARM_PID;
extern RSA *PRIVKEY, *PUBKEY;
extern char PUBKEY_DIGEST[CF_MAXVARSIZE];
extern char BINDINTERFACE[CF_BUFSIZE];
extern const Sock ECGSOCKS[ATTR];
extern const char *TCPNAMES[CF_NETATTR];
extern Audit *AUDITPTR;
extern Audit *VAUDIT;
extern char CONTEXTID[32];
extern char PADCHAR;
extern Item *IPADDRESSES;
extern char PIDFILE[CF_BUFSIZE];
extern char STR_CFENGINEPORT[16];
extern unsigned short SHORT_CFENGINEPORT;
extern time_t CONNTIMEOUT;
extern char CFLOCK[CF_BUFSIZE];
extern char CFLOG[CF_BUFSIZE];
extern char CFLAST[CF_BUFSIZE];
extern char CFPUBKEYFILE[CF_BUFSIZE];
extern char CFPRIVKEYFILE[CF_BUFSIZE];
extern char CFWORKDIR[CF_BUFSIZE];
extern char VYEAR[];
extern char VDAY[];
extern char VMONTH[];
extern char VSHIFT[];
extern char *CLASSTEXT[];
extern char *CLASSATTRIBUTES[CF_CLASSATTR][CF_ATTRDIM];
extern char VINPUTFILE[];
extern int AUDIT;
extern char PURGE;
extern int ERRORCOUNT;
extern time_t CFSTARTTIME;
extern time_t CFINITSTARTTIME;
extern struct utsname VSYSNAME;
extern mode_t DEFAULTMODE;
extern char VIPADDRESS[];
extern char VPREFIX[];
extern char VDOMAIN[CF_MAXVARSIZE];
extern enum classes VSYSTEMHARDCLASS;
extern char VFQNAME[];
extern char VUQNAME[];
extern Item *VNEGHEAP;
extern Item *VSETUIDLIST;
extern Item *SUSPICIOUSLIST;
extern AlphaList VHEAP;
extern AlphaList VADDCLASSES;
extern int DEBUG;
extern int PARSING;
extern int VERBOSE;
extern int EXCLAIM;
extern int INFORM;
extern int CFPARANOID;
extern int DONTDO;
extern int IGNORELOCK;
extern int MINUSF;
extern char *VPSCOMM[];
extern char *VPSOPTS[];
extern char *VMOUNTCOMM[];
extern char *VMOUNTOPTS[];
extern char *VRESOLVCONF[];
extern char *VHOSTEQUIV[];
extern char *VFSTAB[];
extern char *VMAILDIR[];
extern char *VNETSTAT[];
extern char *VEXPORTS[];
extern char *VROUTE[];
extern char *VROUTEADDFMT[];
extern char *VROUTEDELFMT[];
extern char *VUNMOUNTCOMM[];
extern int EDITFILESIZE;
extern int VIFELAPSED;
extern int VEXPIREAFTER;
extern const char *OBS[CF_OBSERVABLES][2];
extern const char *CF_DIGEST_TYPES[10][2];
extern const int CF_DIGEST_SIZES[10];
/* Windows version constants */
extern unsigned int WINVER_MAJOR;
extern unsigned int WINVER_MINOR;
extern unsigned int WINVER_BUILD;
extern int REQUIRE_COMMENTS;
extern int FIPS_MODE;
extern char POLICY_SERVER[CF_BUFSIZE];
extern int ALWAYS_VALIDATE;
extern bool ALLCLASSESREPORT;
extern int LICENSES;
extern int AM_NOVA;
extern int AM_CONSTELLATION;
extern char EXPIRY[CF_SMALLBUF];
extern char LICENSE_COMPANY[CF_SMALLBUF];
extern int IGNORE_MISSING_INPUTS;
extern int IGNORE_MISSING_BUNDLES;
extern char WEBDRIVER[CF_MAXVARSIZE];
extern char DOCROOT[CF_MAXVARSIZE];
extern char BANNER[2 * CF_BUFSIZE];
extern char FOOTER[CF_BUFSIZE];
extern char STYLESHEET[CF_BUFSIZE];
extern int CF_TOPICS;
extern int CF_OCCUR;
extern int CF_EDGES;
extern enum cfhashes CF_DEFAULT_DIGEST;
extern int CF_DEFAULT_DIGEST_LEN;
extern Item *EDIT_ANCHORS;
extern Bundle *BUNDLES;
extern Body *BODIES;
extern Scope *VSCOPE;
extern Audit *AUDITPTR;
extern Audit *VAUDIT;
extern Rlist *VINPUTLIST;
extern Rlist *BODYPARTS;
extern Rlist *SUBBUNDLES;
extern Rlist *SINGLE_COPY_LIST;
extern Rlist *AUTO_DEFINE_LIST;
extern Rlist *SINGLE_COPY_CACHE;
extern Rlist *ACCESSLIST;
extern PromiseIdent *PROMISE_ID_LIST;
extern Item *DONELIST;
extern char *CBUNDLESEQUENCE_STR;
extern Item *ROTATED;
extern double FORGETRATE;
extern Rlist *GOALS;
extern Rlist *GOALCATEGORIES;
extern Rlist *CF_STCK;
extern int EDIT_MODEL;
extern int CF_STCKFRAME;
extern int CFA_BACKGROUND;
extern int CFA_BACKGROUND_LIMIT;
extern int AM_BACKGROUND_PROCESS;
extern int CF_PERSISTENCE;
extern int LOOKUP;
extern int BOOTSTRAP;
extern int XML;
extern FILE *FREPORT_HTML;
extern FILE *FREPORT_TXT;
extern FILE *FKNOW;
extern int CSV;
extern const char *CF_DATATYPES[];
extern const char *CF_AGENTTYPES[];
extern int FSTAB_EDITS;
extern int CFA_MAXTHREADS;
extern char *THIS_BUNDLE;
extern char THIS_AGENT[CF_MAXVARSIZE];
extern enum cfagenttype THIS_AGENT_TYPE;
extern int SHOWREPORTS;
extern int SHOW_PARSE_TREE;
extern int USE_GCC_BRIEF_FORMAT;
extern time_t PROMISETIME;
extern time_t CF_LOCKHORIZON;
extern int ABORTBUNDLE;
extern Item *ABORTBUNDLEHEAP;
extern int LASTSEENEXPIREAFTER;
extern char *DEFAULT_COPYTYPE;
extern Item *PROCESSTABLE;
extern Item *PROCESSREFRESH;
extern Item *FSTABLIST;
extern Rlist *MOUNTEDFSLIST;
extern int CF_MOUNTALL;
extern int CF_SAVEFSTAB;
extern const char *DAY_TEXT[];
extern const char *MONTH_TEXT[];
extern const char *SHIFT_TEXT[];
#if defined(NT) && !defined(__CYGWIN__)
# define FILE_SEPARATOR '\\'
# define FILE_SEPARATOR_STR "\\"
#else
# define FILE_SEPARATOR '/'
# define FILE_SEPARATOR_STR "/"
#endif
#endif