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