1 /*****************************************************************************
2 * RRDtool 1.3.1 Copyright by Tobi Oetiker, 1997-2008
3 *****************************************************************************
4 * rrd_tool.h Common Header File
5 *****************************************************************************/
14 #include "../rrd_config.h"
15 #elif defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
16 #include "../win32/config.h"
21 #if defined(_WIN32) && !defined(__CYGWIN__) && !defined(__CYGWIN32__)
23 /* Win32 only includes */
25 #include <float.h> /* for _isnan */
26 #include <io.h> /* for chdir */
28 struct tm *localtime_r(
44 /* unix-only includes */
45 #if !defined isnan && !defined HAVE_ISNAN
52 /* local include files -- need to be after the system ones */
53 #include "rrd_getopt.h"
54 #include "rrd_format.h"
57 #define max(a,b) ((a) > (b) ? (a) : (b))
61 #define min(a,b) ((a) < (b) ? (a) : (b))
64 #define DIM(x) (sizeof(x)/sizeof(x[0]))
70 /* HELPER FUNCTIONS */
78 const char *file_name,
86 unsigned long *ds_cnt,
90 #define RRD_READONLY (1<<0)
91 #define RRD_READWRITE (1<<1)
92 #define RRD_CREAT (1<<2)
93 #define RRD_READAHEAD (1<<3)
94 #define RRD_COPY (1<<4)