xref: /openbsd-src/usr.sbin/cron/globals.h (revision 50b7afb2c2c0993b0894d4e34bf857cb13ed9c80)
1 /*	$OpenBSD: globals.h,v 1.8 2013/08/15 20:19:26 millert Exp $	*/
2 
3 /*
4  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
5  * Copyright (c) 1997,2000 by Internet Software Consortium, Inc.
6  *
7  * Permission to use, copy, modify, and distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
12  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
14  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
17  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 #ifdef MAIN_PROGRAM
21 # define XTRN
22 # define INIT(x) = x
23 #else
24 # define XTRN extern
25 # define INIT(x)
26 #endif
27 
28 #if 0
29 XTRN const char *copyright[]
30 #ifdef MAIN_PROGRAM
31 	= {
32 		"@(#) ISC Cron V4.1",
33 		"@(#) Copyright 1988,1989,1990,1993,1994 by Paul Vixie",
34 		"@(#) Copyright 1997,2000 by Internet Software Consortium, Inc.",
35 		"@(#) Copyright 2004 by Internet Systems Consortium, Inc.",
36 		"@(#) All rights reserved",
37 		NULL
38 	}
39 #endif
40 	;
41 #endif
42 
43 XTRN const char *MonthNames[]
44 #ifdef MAIN_PROGRAM
45 	= {
46 		"Jan", "Feb", "Mar", "Apr", "May", "Jun",
47 		"Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
48 		NULL
49 	}
50 #endif
51 	;
52 
53 XTRN const char *DowNames[]
54 #ifdef MAIN_PROGRAM
55 	= {
56 		"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun",
57 		NULL
58 	}
59 #endif
60 	;
61 
62 XTRN char	*ProgramName INIT("amnesia");
63 XTRN int	LineNumber INIT(0);
64 XTRN time_t	StartTime INIT(0);
65 XTRN int	NoFork INIT(0);
66 
67 #if DEBUGGING
68 XTRN int	DebugFlags INIT(0);
69 XTRN const char *DebugFlagNames[]
70 #ifdef MAIN_PROGRAM
71 	= {
72 		"ext", "sch", "proc", "pars", "load", "misc", "test", NULL
73 	}
74 #endif
75 	;
76 #else
77 #define	DebugFlags	0
78 #endif /* DEBUGGING */
79