00001 #ifndef STDC_HEADERS 00002 #error "Argh! This system has non-standard header files!" 00003 #endif 00004 00005 #ifdef STAT_MACROS_BROKEN 00006 #error "Argh! This system has broken sys/stat.h macros!" 00007 #endif 00008 00009 #ifdef HAVE_STDIO_H 00010 #include <stdio.h> 00011 #endif 00012 00013 #ifdef HAVE_STDLIB_H 00014 #include <stdlib.h> 00015 #endif 00016 00017 #ifdef HAVE_MALLOC_H 00018 #include <malloc.h> 00019 #endif 00020 00021 #ifdef HAVE_CTYPE_H 00022 #include <ctype.h> 00023 #endif 00024 00025 #ifdef HAVE_STDARG_H 00026 #include <stdarg.h> 00027 #endif 00028 00029 #ifdef HAVE_UNISTD_H 00030 #include <unistd.h> 00031 #endif 00032 00033 #ifdef HAVE_SYS_STAT_H 00034 #include <sys/stat.h> 00035 #endif 00036 00037 #ifdef HAVE_SYS_TYPES_H 00038 #include <sys/types.h> 00039 #endif 00040 00041 #ifdef HAVE_FCNTL_H 00042 #include <fcntl.h> 00043 #endif 00044 00045 #if TIME_WITH_SYS_TIME 00046 # include <sys/time.h> 00047 # include <time.h> 00048 #else 00049 # if HAVE_SYS_TIME_H 00050 # include <sys/time.h> 00051 # else 00052 # include <time.h> 00053 # endif 00054 #endif 00055 00056 #ifdef HAVE_STRING_H 00057 #include <string.h> 00058 #endif 00059 00060 #ifdef HAVE_STRINGS_H 00061 #include <strings.h> 00062 #endif 00063 00064 #ifdef HAVE_SIGNAL_H 00065 #include <signal.h> 00066 #endif 00067 00068 #ifdef HAVE_TERMIOS_H 00069 #include <termios.h> 00070 #endif 00071 00072 #ifdef HAVE_SYS_IOCTL_H 00073 #include <sys/ioctl.h> 00074 #endif 00075 00076 #ifdef HAVE_SYS_SELECT_H 00077 #include <sys/select.h> 00078 #endif 00079 00080 #ifdef HAVE_SYS_UIO_H 00081 #include <sys/uio.h> 00082 #endif 00083 00084 #ifdef HAVE_ERRNO_H 00085 #include <errno.h> 00086 #endif 00087 00088 #ifdef HAVE_ASSERT_H 00089 #include <assert.h> 00090 #endif