Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/cron/cron/cron.h
Show First 20 Lines • Show All 187 Lines • ▼ Show 20 Lines | |||||
#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 DONT_LOG 0x80 | ||||
#define MAIL_WHEN_ERR 0x100 | #define MAIL_WHEN_ERR 0x100 | ||||
#define SINGLE_JOB 0x200 | |||||
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 All 13 Lines | |||||
void set_cron_uid(void), | void set_cron_uid(void), | ||||
set_cron_cwd(void), | set_cron_cwd(void), | ||||
load_database(cron_db *), | load_database(cron_db *), | ||||
open_logfile(void), | open_logfile(void), | ||||
sigpipe_func(void), | sigpipe_func(void), | ||||
job_add(entry *, user *), | job_add(entry *, user *), | ||||
do_command(entry *, user *), | job_remove(entry *, user *), | ||||
job_exit(pid_t), | |||||
link_user(cron_db *, user *), | link_user(cron_db *, user *), | ||||
unlink_user(cron_db *, user *), | unlink_user(cron_db *, user *), | ||||
free_user(user *), | free_user(user *), | ||||
env_free(char **), | env_free(char **), | ||||
unget_char(int, FILE *), | unget_char(int, FILE *), | ||||
free_entry(entry *), | free_entry(entry *), | ||||
skip_comments(FILE *), | skip_comments(FILE *), | ||||
log_it(char *, int, char *, const char *), | log_it(char *, int, char *, const char *), | ||||
Show All 21 Lines | |||||
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 *, PID_T *); | FILE *cron_popen(char *, char *, entry *, PID_T *); | ||||
pid_t do_command(entry *, user *); | |||||
/* 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 |