int preferred_hour = -1;
static void
-print_version()
+print_version(void)
{
printf("Anacron \n"
"Copyright (C) 1998 Itai Tzur <itzur@actcom.co.il>\n"
}
static void
-print_usage()
+print_usage(void)
{
printf("Usage:\n");
printf(" %s [options] [job] ...\n", program_name);
}
pid_t
-xfork()
+xfork(void)
/* Like fork(), only never returns on failure */
{
pid_t pid;
}
static void
-go_background()
+go_background(void)
/* Become a daemon. The foreground process exits successfully. */
{
pid_t pid;
}
static void
-set_signal_handling()
+set_signal_handling(void)
/* We only use SIGALRM, SIGCHLD and SIGUSR1, and we unblock them only
* in wait_signal().
*/
}
static void
-wait_signal()
+wait_signal(void)
/* Return after a signal is caught */
{
sigset_t ss;
}
static void
-wait_children()
+wait_children(void)
/* Wait until we have no more children (of any kind) */
{
while (running_jobs > 0 || running_mailers > 0)
}
static void
-orderly_termination()
+orderly_termination(void)
/* Execution is diverted here, when we get SIGUSR1 */
{
explain("Received SIGUSR1");
}
static void
-wait_jobs()
+wait_jobs(void)
/* Wait until there are no running jobs,
* servicing SIGCHLDs and SIGUSR1s in the meantime.
*/
}
static void
-record_start_time()
+record_start_time(void)
{
struct tm *tm_now;
}
static void
-fake_jobs()
+fake_jobs(void)
{
int j;
}
static void
-explain_intentions()
+explain_intentions(void)
{
int j;
}
static char *
-read_tab_line ()
+read_tab_line (void)
/* Read one line and return a pointer to it.
Return NULL if no more lines.
*/
}
void
-arrange_jobs()
+arrange_jobs(void)
/* Make an array of pointers to jobs that are going to be executed,
* and arrange them in the order of execution.
* Also lock these jobs.