b0052f0687f0c1b941c91cbf9cfa6ea1c9bb2700
2 * Central header file for agedu, defining various useful things.
46 #ifdef HAVE_SYS_TYPES_H
47 # include <sys/types.h>
49 #ifdef HAVE_SYS_STAT_H
50 # include <sys/stat.h>
58 #ifdef HAVE_SYS_MMAN_H
59 # include <sys/mman.h>
64 #ifdef HAVE_SYS_IOCTL_H
65 # include <sys/ioctl.h>
73 #ifdef HAVE_SYS_WAIT_H
74 # include <sys/wait.h>
76 #ifdef HAVE_SYS_SOCKET_H
77 # include <sys/socket.h>
79 #ifdef HAVE_ARPA_INET_H
80 # include <arpa/inet.h>
82 #ifdef HAVE_NETINET_IN_H
83 # include <netinet/in.h>
88 #ifdef HAVE_SYS_SELECT_H
89 # include <sys/select.h>
97 #define DUMPHDR "agedu dump file. pathsep="
99 #define lenof(x) (sizeof((x))/sizeof(*(x)))
103 #if defined HAVE_LSTAT64 && HAVE_STAT64
104 #define STRUCT_STAT struct stat64
105 #define LSTAT_FUNC lstat64
106 #define STAT_FUNC stat64
108 #define STRUCT_STAT struct stat
109 #define LSTAT_FUNC lstat
110 #define STAT_FUNC stat
113 #define max(x,y) ( (x) > (y) ? (x) : (y) )
114 #define min(x,y) ( (x) < (y) ? (x) : (y) )