10 # include <sys/types.h>
13 # include <sys/stat.h>
24 # if !STDC_HEADERS && HAVE_MEMORY_H
33 # include <inttypes.h>
42 # include <sys/wait.h>
45 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
48 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
65 #if TIME_WITH_SYS_TIME
66 # include <sys/time.h>
70 # include <sys/time.h>
78 # define NAMLEN(dirent) strlen((dirent)->d_name)
80 # define dirent direct
81 # define NAMLEN(dirent) (dirent)->d_namlen
83 # include <sys/ndir.h>
106 #endif /* HAVE_LIBRRD */
108 /* Won't work without the header file */
115 #include <sys/param.h>
116 #endif /* HAVE_LIBKSTAT */
118 /* Won't work without the header file */
119 #ifndef HAVE_STATGRAB_H
120 #undef HAVE_LIBSTATGRAB
123 #ifdef HAVE_LIBSTATGRAB
124 #include <statgrab.h>
127 #ifndef LOCALSTATEDIR
128 #define LOCALSTATEDIR "/opt/collectd/var"
132 #define DATADIR LOCALSTATEDIR"/lib/collectd"
136 #define PLUGINDIR "/opt/collectd/lib/collectd"
140 #define PIDFILE LOCALSTATEDIR"/run/collectd.pid"
143 #define MODE_SERVER 0x01
144 #define MODE_CLIENT 0x02
145 #define MODE_LOCAL 0x03
147 extern time_t curtime;
148 extern int operating_mode;
150 #endif /* COLLECTD_H */