Lines Matching defs:event

149 #define	CLOCK_DRIFT	"clock time drifted backwards after event!\n"
183 struct event {
184 time_t time; /* time of the event */
185 short etype; /* what type of event; 0=cron, 1=at */
187 struct usr *u; /* ptr to the owner (usr) of this event */
188 struct event *link; /* ptr to another event for this user */
197 struct shared *tz; /* timezone of this event */
198 struct shared *home; /* directory for this event */
199 struct shared *shell; /* shell for this event */
217 struct event *ctevents; /* list of this usr's crontab events */
218 struct event *atevents; /* list of this usr's at events */
239 short jobtype; /* what type of event: 0=cron, 1=at */
253 static int ecid = 1; /* event class id for el_remove(); MUST be set to 1 */
256 static struct event *next_event; /* the next event to execute */
306 static void ignore_msg(char *, char *, struct event *);
314 static int ex(struct event *e);
328 static time_t next_time(struct event *, time_t);
352 * last_time is set immediately prior to exection of an event (via ex())
353 * to indicate the last time an event was executed. This was (surely)
431 time_t ne_time; /* amt of time until next event execution */
434 struct event *e, *e2, *eprev;
444 * event to be executed is being run at the wrong time, or when idle()
447 * main() where the event list is cleared and rebuilt, and reset_needed
547 next_event = (struct event *)el_first();
590 /* add cronevent back into the main event list */
616 * get the next scheduled event,
630 "pushing back cron event %s at %ld (%s)\n",
639 case -2: /* event time lower than init time */
726 * main event list. Only zero user list on firstpass.
1069 struct event *e;
1071 e = xmalloc(sizeof (struct event));
1096 struct event *e;
1125 * this list. Each event is also entered into the main event
1129 struct event *e;
1211 e = xmalloc(sizeof (struct event));
1258 /* have the event point to it's owner */
1260 /* insert this event at the front of this user's event list */
1263 /* set the time for the first occurance of this event */
1265 /* finally, add this event to the main event list */
1270 case -2: /* event time lower than init time */
1277 (void) fprintf(stderr, "inserting cron event %s at %ld (%s)\n",
1537 tz_next_time(struct event *e, time_t tflag)
1540 * returns the integer time for the next occurance of event e.
1609 /* this event must occur today */
1704 * calculate the date of the next occurance of this event, which
1726 * the day of the month for the next occurance of this event.
1741 /* event does not occur in this month */
1764 } else { /* event occurs in this month */
1775 * now that we have the min, hr, day, mon, yr of the next event,
1907 next_time(struct event *e, time_t tflag)
2080 struct event *e, *eprev;
2127 struct event *e2, *e3;
2130 * see if the next event (to be run by cron) is a cronevent
2180 ex(struct event *e)
2272 * called, to make sure that the event queue is back in order,
2280 msg("correcting cron event\n");
2287 case -2: /* event time lower than init time */
2292 msg("correcting batch event\n");
2604 next_event = (struct event *)el_first();
2872 case -2: /* event time lower than init time */
3019 ignore_msg(char *func_name, char *job_type, struct event *event)
3023 event->u->name ? event->u->name : "unknown",
3024 event->cmd ? event->cmd : "unknown",
3025 event->time);
3067 case -2: /* event time lower than init time */
3350 struct event *ev, *pv;
3393 create_anc_ctab(struct event *e)
3405 delete_anc_ctab(struct event *e)
3412 create_anc_atjob(struct event *e)
3427 delete_anc_atjob(struct event *e)
3441 struct event *e;