1 #ifdef HAVE_STDLIB_H 2 #include <stdlib.h> 3 #endif 4 #ifdef HAVE_STDIO_H 5 #include <stdio.h> 6 #endif 7 8 #include <errno.h> 9 #ifdef HAVE_SYS_ERRNO_H 10 #include <sys/errno.h> 11 #endif 12 13 #if TIME_WITH_SYS_TIME 14 #include <sys/time.h> 15 #include <time.h> 16 #else 17 #if HAVE_SYS_TIME_H 18 #include <sys/time.h> 19 #else 20 #include <time.h> 21 #endif 22 #endif 23 24 #if HAVE_SYS_TIMEB_H 25 #include <sys/timeb.h> 26 #endif 27 28 #ifdef HAVE_TYPES_H 29 #include <types.h> 30 #endif 31 32 #ifdef HAVE_GRP_H 33 #include <grp.h> 34 #endif 35 36 #ifdef HAVE_SYS_TYPES_H 37 #include <sys/types.h> 38 #endif 39 40 #ifdef HAVE_SYS_STAT_H 41 #include <sys/stat.h> 42 #endif 43 44 #ifdef HAVE_FCNTL_H 45 #include <fcntl.h> 46 #endif 47 48 #ifdef HAVE_SYS_FCNTL_H 49 #include <sys/fcntl.h> 50 #endif 51 52 #include <signal.h> 53 #ifdef HAVE_UNISTD_H 54 #include <unistd.h> 55 #endif 56 57 #if HAVE_SYS_WAIT_H 58 #include <sys/wait.h> 59 #endif 60 61 #ifdef HAVE_SYS_SELECT_H 62 #include <sys/select.h> 63 #endif 64 65 #ifdef HAVE_IOCTL_H 66 #include <ioctl.h> 67 #endif 68 69 #ifdef HAVE_SYS_IOCTL_H 70 #include <sys/ioctl.h> 71 #endif 72 73 #ifdef HAVE_TERMIOS_H 74 #include <termios.h> 75 #endif 76 77 #ifdef HAVE_SYS_TERMIOS_H 78 #include <sys/termios.h> 79 #endif 80 81