* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: allow.h,v 1.1 2001-04-29 22:24:55 thib Exp $ */
+ /* $Id: allow.h,v 1.2 2001-05-15 00:51:55 thib Exp $ */
+#ifndef __ALLOW_H__
+#define __ALLOW_H__
/* functions prototypes */
extern int is_allowed(char *user);
+
+#endif /* __ALLOW_H__ */
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: database.h,v 1.1 2001-04-29 22:22:50 thib Exp $ */
+ /* $Id: database.h,v 1.2 2001-05-15 00:48:58 thib Exp $ */
+#ifndef __DATABASE_H__
+#define __DATABASE_H__
/* functions prototypes */
extern void test_jobs(void);
extern time_t time_to_sleep(time_t lim);
extern time_t check_lavg(time_t lim);
extern void set_next_exe(CL *line, char option);
+#define NO_GOTO 1 /* set_next_exe() : no goto_non_matching() */
+#define NO_GOTO_LOG 2 /* set_next_exe() : NO_GOTO but also log nextexe time */
extern void set_next_exe_notrun(CL *line, char context);
+#define LAVG 1 /* set_next_exe_notrun() : context */
+#define SYSDOWN 2 /* set_next_exe_notrun() : context */
extern void mail_notrun(CL *line, char context, struct tm *since);
extern void insert_nextexe(CL *line);
extern void add_serial_job(CL *line);
extern void add_lavg_job(CL *line);
extern void run_serial_job(void);
+
+#endif /* __DATABASE_H__ */
+/*
+ * FCRON - periodic command scheduler
+ *
+ * Copyright 2000-2001 Thibault Godouet <fcron@free.fr>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ *
+ * The GNU General Public License can also be found in the file
+ * `LICENSE' that comes with the fcron source distribution.
+ */
+
+ /* $Id: fileconf.h,v 1.2 2001-05-15 00:45:45 thib Exp $ */
+
+#ifndef __FILECONF_H__
+#define __FILECONF_H__
+
+/* functions prototypes */
+extern int read_file(char *filename, char *user);
+extern void delete_file(const char *user_name);
+extern int save_file(char *path);
+
+#endif /* __FILECONF_H__ */
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: job.h,v 1.1 2001-04-29 22:13:57 thib Exp $ */
+ /* $Id: job.h,v 1.2 2001-05-15 00:42:05 thib Exp $ */
+#ifndef __JOB_H__
+#define __JOB_H__
/* functions prototypes */
extern int change_user(char *user_name);
extern int create_mail(CL *line, char *subject);
extern void launch_mailer(CL *line, int mailfd);
extern void xwrite(int fd, char *string);
+
+#endif /* __JOB_H__ */
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: log.h,v 1.1 2001-04-29 22:14:13 thib Exp $ */
+ /* $Id: log.h,v 1.2 2001-05-15 00:43:29 thib Exp $ */
+#ifndef __LOG_H__
+#define __LOG_H__
/* functions prototypes */
extern void xcloselog(void);
extern void die(char *fmt, ...);
extern void die_e(char *fmt, ...);
extern void Debug(char *fmt, ...);
+
+#endif /* __LOG_H__ */
* `LICENSE' that comes with the fcron source distribution.
*/
- /* $Id: subs.h,v 1.1 2001-04-29 22:24:48 thib Exp $ */
+ /* $Id: subs.h,v 1.2 2001-05-15 00:51:17 thib Exp $ */
+#ifndef __SUBS_H__
+#define __SUBS_H__
/* functions prototypes */
extern int remove_blanks(char *str);
extern char *strdup2(const char *);
+extern int temp_file(char **name);
extern int save_type(FILE *f, short int type);
extern int save_str(FILE *f, short int type, char *str);
extern int save_strn(FILE *f, short int type, char *str, short int size);
extern int save_lint(FILE *f, short int type, long int value);
+
+#endif /* __SUBS_H__ */