summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/cron.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/cron/cron.h')
-rw-r--r--usr.sbin/cron/cron.h20
1 files changed, 17 insertions, 3 deletions
diff --git a/usr.sbin/cron/cron.h b/usr.sbin/cron/cron.h
index 60cfada5899..ebc772ccd49 100644
--- a/usr.sbin/cron/cron.h
+++ b/usr.sbin/cron/cron.h
@@ -17,7 +17,7 @@
/* cron.h - header for vixie's cron
*
- * $Id: cron.h,v 1.1 1995/10/18 08:47:30 deraadt Exp $
+ * $Id: cron.h,v 1.2 1997/12/22 08:10:41 deraadt Exp $
*
* vix 14nov88 [rest of log is in RCS]
* vix 14jan87 [0 or 7 can be sunday; thanks, mwm@berkeley]
@@ -118,6 +118,10 @@
LineNumber = ln; \
}
+typedef int time_min;
+
+#define SECONDS_PER_MINUTE 60
+
#define FIRST_MINUTE 0
#define LAST_MINUTE 59
#define MINUTE_COUNT (LAST_MINUTE - FIRST_MINUTE + 1)
@@ -160,6 +164,8 @@ typedef struct _entry {
#define DOM_STAR 0x01
#define DOW_STAR 0x02
#define WHEN_REBOOT 0x04
+#define MIN_STAR 0x08
+#define HR_STAR 0x10
} entry;
/* the crontab database will be a list of the
@@ -254,7 +260,10 @@ char *DowNames[] = {
char *ProgramName;
int LineNumber;
-time_t TargetTime;
+time_t StartTime;
+time_min timeRunning;
+time_min virtualTime;
+time_min clockTime;
# if DEBUGGING
int DebugFlags;
@@ -262,6 +271,8 @@ char *DebugFlagNames[] = { /* sync with #defines */
"ext", "sch", "proc", "pars", "load", "misc", "test", "bit",
NULL /* NULL must be last element */
};
+# else
+#define DebugFlags 0
# endif /* DEBUGGING */
#else /*MAIN_PROGRAM*/
extern char *copyright[],
@@ -269,7 +280,10 @@ extern char *copyright[],
*DowNames[],
*ProgramName;
extern int LineNumber;
-extern time_t TargetTime;
+extern time_t StartTime;
+extern time_min timeRunning;
+extern time_min virtualTime;
+extern time_min clockTime;
# if DEBUGGING
extern int DebugFlags;
extern char *DebugFlagNames[];