15 #include <sys/types.h>
68 int NewCounter = (
timeout - time(NULL) + 9) / 10;
100 esyslog(
"initiating emergency exit");
105 dsyslog(
"emergency exit request ignored according to setup");
114 dsyslog(
"assuming manual start of VDR");
120 dsyslog(
"scheduled wakeup time in %ld minutes, assuming automatic start of VDR", Delta / 60);
133 time_t Delta = WakeupTime ? WakeupTime - time(NULL) : 0;
135 isyslog(
"executing '%s'", *cmd);
137 if (!WIFEXITED(Status) || WEXITSTATUS(Status))
138 esyslog(
"SystemExec() failed with status %d", Status);
176 time_t Next = timer ? timer->
StartTime() : 0;
177 time_t Delta = timer ? Next - time(NULL) : 0;
198 Delta = Next ? Next - time(NULL) : 0;
223 time_t Next = timer ? timer->
StartTime() : 0;
224 time_t Delta = timer ? Next - time(NULL) : 0;
240 time_t Now = time(NULL);
244 time_t Next = timer ? timer->
StartTime() : 0;
245 time_t NextPlugin = Plugin ? Plugin->
WakeupTime() : 0;
246 if (NextPlugin && (!Next || Next > NextPlugin)) {
250 time_t Delta = Next ? Next - Now : 0;
265 else if (Next && Plugin) {