/* source: sysincludes.h */ /* Copyright Gerhard Rieger 2001-2008 */ /* Published under the GNU General Public License V.2, see file COPYING */ #ifndef __sysincludes_h_included #define __sysincludes_h_included 1 #if HAVE_LIMITS_H #include /* USHRT_MAX */ #endif #include /* HUGE_VAL */ #include #include /* for msg() */ #include /* strerror(), strchr() */ #if HAVE_STRINGS_H #include /* strcasecmp(), bzero() for FD_ZERO */ #endif #include /* malloc(), free() */ #include /* isdigit() */ #include /* FILE */ #include /* errno */ #if HAVE_SYSLOG_H #include /* openlog(), syslog(), closelog() */ #endif #include /* signal(), SIGPIPE, SIG_IGN */ #include /* struct timeval, strftime() */ #include /* struct timeb */ #if HAVE_UNISTD_H #include /* select(), read(), write(), stat(), fork() */ #endif #if HAVE_PWD_H #include /* getpwnam() */ #endif #if HAVE_GRP_H #include /* getgrnam() */ #endif #if HAVE_PTY_H #include #endif #if HAVE_SYS_PARAM_H #include /* Linux 2.4 NGROUPS */ #endif #if HAVE_SYS_TIME_H #include /* select(); OpenBSD: struct timespec */ #endif #if HAVE_STDINT_H #include /* uint8_t */ #endif #if HAVE_SYS_TYPES_H #include /* pid_t, select(), socket(), connect(), open(), u_short */ #endif #if HAVE_SYS_POLL_H #include /* poll() */ #endif #if HAVE_SYS_SOCKET_H #include /* struct sockaddr, struct linger, socket(), connect() */ #endif #if HAVE_SYS_UIO_H #include /* struct iovec */ #endif #if HAVE_SYS_STAT_H #include /* struct stat, stat(), open() */ #endif #if HAVE_SYS_WAIT_H #include /* WNOHANG */ #endif #if HAVE_FCNTL_H #include /* open(), O_RDWR */ #endif #if HAVE_NETDB_H && (_WITH_IP4 || _WITH_IP6) #include /* struct hostent, gethostbyname() */ #endif #if HAVE_SYS_UN_H && WITH_UNIX #include /* struct sockaddr_un, unix domain sockets */ #endif #if HAVE_SYS_IOCTL_H #include /* ioctl() */ #endif #if HAVE_SYS_SELECT_H #include /* select(), fdset on AIX 4.1 */ #endif #if HAVE_SYS_FILE_H #include /* LOCK_EX, on AIX directly included */ #endif #if _WITH_SOCKET # if HAVE_NETINET_IN_H #include /* struct sockaddr_in, htonl() */ # endif #endif /* _WITH_SOCKET */ #if _WITH_SOCKET && (_WITH_IP4 || _WITH_IP6) # if HAVE_NETINET_IN_SYSTM_H #include /* Solaris, FreeBSD: n_long */ # endif # if HAVE_NETINET_IP_H #include /* struct ip - past netinet/in.h on AIX! */ # endif # if HAVE_NETINET_TCP_H #include /* TCP_RFC1323 */ # endif # if HAVE_NETINET_IP6_H && _WITH_IP6 #include # endif # if HAVE_NETINET6_IN6_H && _WITH_IP6 #include # endif #include /* Linux: inet_aton() */ #if HAVE_ARPA_NAMESER_H #include /* req for resolv.h (esp. on MacOSX) */ #endif #include #if HAVE_NET_IF_DL_H #include /* FreeBSD: struct sockaddr_dl */ #endif #if HAVE_RESOLV_H #include /* _res */ #endif #endif /* _WITH_IP4 || _WITH_IP6 */ /*#include */ #if HAVE_NET_IF_H #include #endif /* HAVE_NET_IF_H */ #if HAVE_LINUX_TYPES_H #include /* __u32 for linux/errqueue.h */ #endif #if HAVE_LINUX_ERRQUEUE_H #include /* struct sock_extended_err */ #endif #if HAVE_LINUX_IF_TUN_H #include #endif #if HAVE_TERMIOS_H && WITH_TERMIOS #include #endif #if HAVE_SYS_UTSNAME_H #include /* uname(), struct utsname */ #endif #if HAVE_UTIL_H #include /* NetBSD, OpenBSD openpty() */ #endif #if HAVE_LIBUTIL_H #include /* FreeBSD openpty() */ #endif #if HAVE_SYS_STROPTS_H #include /* SunOS I_PUSH ... */ #endif #if HAVE_REGEX_H #include #endif #if HAVE_LINUX_FS_H #include /* somewhere required for ext2_fs.h */ #endif #if HAVE_LINUX_EXT2_FS_H #include /* Linux ext2 filesystem definitions */ #endif #if WITH_READLINE # if HAVE_READLINE_READLINE_H #include # endif # if HAVE_READLINE_HISTORY_H #include # endif #endif /* WITH_READLINE */ #if WITH_OPENSSL #include #include #include #endif #endif /* !defined(__sysincludes_h_included) */