Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/cron/cron/cron.h
Show First 20 Lines • Show All 185 Lines • ▼ Show 20 Lines | #endif | ||||
int flags; | int flags; | ||||
#define DOM_STAR 0x01 | #define DOM_STAR 0x01 | ||||
#define DOW_STAR 0x02 | #define DOW_STAR 0x02 | ||||
#define WHEN_REBOOT 0x04 | #define WHEN_REBOOT 0x04 | ||||
#define RUN_AT 0x08 | #define RUN_AT 0x08 | ||||
#define NOT_UNTIL 0x10 | #define NOT_UNTIL 0x10 | ||||
#define SEC_RES 0x20 | #define SEC_RES 0x20 | ||||
#define INTERVAL 0x40 | #define INTERVAL 0x40 | ||||
#define DONT_LOG 0x80 | |||||
#define MAIL_WHEN_ERR 0x100 | |||||
time_t lastrun; | time_t lastrun; | ||||
} entry; | } entry; | ||||
/* the crontab database will be a list of the | /* the crontab database will be a list of the | ||||
* following structure, one element per user | * following structure, one element per user | ||||
* plus one for the system. | * plus one for the system. | ||||
* | * | ||||
* These are the crontabs. | * These are the crontabs. | ||||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | char *env_get(char *, char **), | ||||
**env_set(char **, char *); | **env_set(char **, char *); | ||||
user *load_user(int, struct passwd *, char *), | user *load_user(int, struct passwd *, char *), | ||||
*find_user(cron_db *, char *); | *find_user(cron_db *, char *); | ||||
entry *load_entry(FILE *, void (*)(char *), | entry *load_entry(FILE *, void (*)(char *), | ||||
struct passwd *, char **); | struct passwd *, char **); | ||||
FILE *cron_popen(char *, char *, entry *); | FILE *cron_popen(char *, char *, entry *, PID_T *); | ||||
/* in the C tradition, we only create | /* in the C tradition, we only create | ||||
* variables for the main program, just | * variables for the main program, just | ||||
* extern them elsewhere. | * extern them elsewhere. | ||||
*/ | */ | ||||
#ifdef MAIN_PROGRAM | #ifdef MAIN_PROGRAM | ||||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |