From: thib Date: Sat, 21 Apr 2001 08:44:46 +0000 (+0000) Subject: better management of errors X-Git-Tag: ver1564~307 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=daeada4c87a0d7714516b7fd58a1256dbc2fd537;p=fcron better management of errors new save system : the binary format has changed, so it is no more necessary to reinstall the fcrontabs when upgrading fcron/fcrontab (no more informations loss, etc). --- diff --git a/fcrontab.h b/fcrontab.h index 23c93ce..de8f02c 100644 --- a/fcrontab.h +++ b/fcrontab.h @@ -21,7 +21,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fcrontab.h,v 1.5 2001-01-12 21:42:12 thib Exp $ */ + /* $Id: fcrontab.h,v 1.6 2001-04-21 08:44:46 thib Exp $ */ #ifndef __FCRONTABH__ #define __FCRONTABH__ @@ -43,12 +43,16 @@ extern CF *file_base; /* fileconf.c */ extern int read_file(char *filename, char *user); extern void delete_file(const char *user_name); -extern void save_file(char *path); +extern int save_file(char *path); /* end of fileconf.c */ /* subs.c */ extern int remove_blanks(char *str); extern char *strdup2(const char *); +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); /* end of subs.c */ /* log.c */