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
22 #ifdef HAVE_SYS_NDIR_H
34 #define ALLPERMS (S_ISUID|S_ISGID|S_IRWXU|S_IRWXG|S_IRWXO)
37 #define COPYRIGHT "Copyright (c) 2002 Ben Kibbey <bjk@arbornet.org>"
38 #define MAX_TIME_LEN 64
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"
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"
61 const char *optstr
= "MqAn:t:p:skhvr:aEe:i:mf:l:c012";
63 const char *optstr
= "qAn:t:p:skhvr:aEe:i:mf:l:c012";
65 unsigned usesyslog
, runlevel
;
66 int niceness
, loglevel
;
68 char *logfile
, *pidfile
, diffwhich
;
69 char command
[FILENAME_MAX
];
72 FILES
*loadfile(const char *filename
, FILES
* oldlist
);
73 int pathlength(const char *wd
, const char *filename
);