Added LICENSE to the archive.
[bubblegum.git] / src / bubblegum.h
blob91832e8d896c18ba1f758a4c2ccc3b83228a996a
1 /*
2 Copyright (C) 2002 Ben Kibbey <bjk@arbornet.org>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 #ifdef HAVE_DIRENT_H
19 #include <dirent.h>
20 #else
21 #define dirent direct
22 #ifdef HAVE_SYS_NDIR_H
23 #include <sys/ndir.h>
24 #endif
25 #ifdef HAVE_SYS_DIR_H
26 #include <sys/dir.h>
27 #endif
28 #ifdef HAVE_NDIR_H
29 #include <ndir.h>
30 #endif
31 #endif
33 #ifndef ALLPERMS
34 #define ALLPERMS (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
35 #endif
37 #define COPYRIGHT "Copyright (c) 2002 Ben Kibbey <bjk@arbornet.org>"
38 #define MAX_TIME_LEN 64
39 #define NONE_STR "-"
40 #define MD5_STR "MD5"
41 #define ATIME_STR "ATIME"
42 #define MTIME_STR "MTIME"
43 #define CTIME_STR "CTIME"
44 #define ERROR_STR "ERROR"
45 #define IDEV_STR "IDEV"
46 #define INODE_STR "INODE"
47 #define SIZE_STR "SIZE"
48 #define UID_STR "UID"
49 #define GID_STR "GID"
50 #define HLINKS_STR "HLINK"
51 #define PERMS_STR "PERM"
52 #define DIR_STR "DIRECTORY"
53 #define CHR_STR "CHARACTER"
54 #define BLK_STR "BLOCK"
55 #define REG_STR "REGULAR"
56 #define FIFO_STR "FIFO"
57 #define LNK_STR "LINK"
58 #define SOCK_STR "SOCKET"
60 #ifdef HAVE_LIBMD
61 const char *optstr = "MqAn:t:p:skhvr:aEe:i:mf:l:c012";
62 #else
63 const char *optstr = "qAn:t:p:skhvr:aEe:i:mf:l:c012";
64 #endif
65 unsigned usesyslog, runlevel;
66 int niceness, loglevel;
67 long interval;
68 char *logfile, *pidfile, diffwhich;
69 char command[FILENAME_MAX];
70 pid_t pid;
72 FILES *loadfile(const char *filename, FILES * oldlist);
73 int pathlength(const char *wd, const char *filename);