2 * FCRON - periodic command scheduler
4 * Copyright 2000-2012 Thibault Godouet <fcron@free.fr>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 * The GNU General Public License can also be found in the file
21 * `LICENSE' that comes with the fcron source distribution.
31 #include "lavg_list.h"
32 #include "fcronconf.h"
40 #elif HAVE_SYS_DIRENT_H
41 #include <sys/dirent.h>
56 #ifdef HAVE_SYS_IOCTL_H
57 #include <sys/ioctl.h>
60 #ifdef HAVE_SYS_TIME_H
64 /* global variables */
66 extern char foreground;
68 extern char default_mail_charset[TERM_LEN];
69 extern time_t first_sleep;
71 extern pid_t daemon_pid;
72 extern char *orig_tz_envvar;
73 extern mode_t saved_umask;
74 extern char *prog_name;
78 extern struct cf_t *file_base;
79 extern struct job_t *queue_base;
80 extern unsigned long int next_id;
81 extern struct cl_t **serial_array;
82 extern short int serial_array_size;
83 extern short int serial_array_index;
84 extern short int serial_num;
85 extern short int serial_running;
86 extern short int serial_max_running;
87 extern short int serial_queue_max;
88 extern short int lavg_queue_max;
89 extern exe_list_t *exe_list;
90 extern lavg_list_t *lavg_list;
91 extern short int lavg_serial_running;
92 /* end of global variables */
95 /* functions prototypes */
98 extern void xexit(int exit_value);
100 #endif /* __FCRON_H */