root/src/globals.h

/* [previous][next][first][last][top][bottom][index][help]  */

INCLUDED FROM


   1 /*
   2  * $Id: globals.h,v 1.10 2004/01/23 19:03:33 vixie Exp $
   3  */
   4 
   5 /*
   6  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
   7  * Copyright (c) 1997,2000 by Internet Software Consortium, Inc.
   8  *
   9  * Permission to use, copy, modify, and distribute this software for any
  10  * purpose with or without fee is hereby granted, provided that the above
  11  * copyright notice and this permission notice appear in all copies.
  12  *
  13  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
  14  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  15  * MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR
  16  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  17  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  18  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  19  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  20  */
  21 
  22 /*
  23  * Modified 2010/09/12 by Colin Dean, Durham University IT Service,
  24  * to add clustering support.
  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]; /* +1 for terminator */
  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 /* DEBUGGING */
  99 
 100 #endif /* CRONIE_GLOBALS_H */

/* [previous][next][first][last][top][bottom][index][help]  */