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 #ifndef CRONIE_GLOBALS_H
28 #define CRONIE_GLOBALS_H
29
30 #include <time.h>
31
32 #include "macros.h"
33
34 #ifdef MAIN_PROGRAM
35 # define XTRN
36 # define INIT(x) = x
37 #else
38 # define XTRN extern
39 # define INIT(x)
40 #endif
41
42 XTRN const char *copyright[]
43 #ifdef MAIN_PROGRAM
44 = {
45 "@(#) ISC Cron V4.1",
46 "@(#) Copyright 1988,1989,1990,1993,1994 by Paul Vixie",
47 "@(#) Copyright 1997,2000 by Internet Software Consortium, Inc.",
48 "@(#) Copyright 2004 by Internet Systems Consortium, Inc.",
49 "@(#) All rights reserved",
50 NULL
51 }
52 #endif
53 ;
54
55 XTRN const char *MonthNames[]
56 #ifdef MAIN_PROGRAM
57 = {
58 "Jan", "Feb", "Mar", "Apr", "May", "Jun",
59 "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
60 NULL
61 }
62 #endif
63 ;
64
65 XTRN const char *DowNames[]
66 #ifdef MAIN_PROGRAM
67 = {
68 "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun",
69 NULL
70 }
71 #endif
72 ;
73
74 XTRN char *ProgramName;
75 XTRN int LineNumber;
76 XTRN int SyslogOutput;
77 XTRN time_t StartTime;
78 XTRN int NoFork;
79 XTRN int PermitAnyCrontab;
80 XTRN char MailCmd[MAX_COMMAND+1];
81 XTRN char cron_default_mail_charset[MAX_ENVSTR];
82 XTRN int EnableClustering;
83 XTRN int ChangePath;
84 XTRN double RandomScale;
85
86 #if DEBUGGING
87 XTRN int DebugFlags INIT(0);
88 XTRN const char *DebugFlagNames[]
89 #ifdef MAIN_PROGRAM
90 = {
91 "ext", "sch", "proc", "pars", "load", "misc", "test", "bit",
92 NULL
93 }
94 #endif
95 ;
96 #else
97 #define DebugFlags 0
98 #endif
99
100 #endif