- /*    Copyright (C) 1998-2003 XIAO, Gang of Universite de Nice - Sophia Antipolis 
-  * 
-  *  This program is free software; you can redistribute it and/or modify 
-  *  it under the terms of the GNU General Public License as published by 
-  *  the Free Software Foundation; either version 2 of the License, or 
-  *  (at your option) any later version. 
-  * 
-  *  This program is distributed in the hope that it will be useful, 
-  *  but WITHOUT ANY WARRANTY; without even the implied warranty of 
-  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
-  *  GNU General Public License for more details. 
-  * 
-  *  You should have received a copy of the GNU General Public License 
-  *  along with this program; if not, write to the Free Software 
-  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
-  */ 
-   
- /* WWW multipurpose server, include header files */ 
-   
- #ifndef INCLUDES_H 
- #define INCLUDES_H 1 
-   
- #include <stdio.h> 
- #include <stdlib.h> 
- #include <stdarg.h> 
- #include <ctype.h> 
- #include <unistd.h> 
- #include <math.h> 
- #include <string.h> 
- #include <sys/stat.h> 
- #include <sys/types.h> 
- #include <fcntl.h> 
- #include <errno.h> 
- #include <signal.h> 
-   
- #if HAVE_DIRENT_H 
- # include <dirent.h> 
- # define NAMLEN(dirent) strlen((dirent)->d_name) 
- #else 
- # define dirent direct 
- # define NAMLEN(dirent) (dirent)->d_namlen 
- # if HAVE_SYS_NDIR_H 
- #  include <sys/ndir.h> 
- # endif 
- # if HAVE_SYS_DIR_H 
- #  include <sys/dir.h> 
- # endif 
- # if HAVE_NDIR_H 
- #  include <ndir.h> 
- # endif 
- #endif 
-   
- #if HAVE_SYS_WAIT_H 
- # include <sys/wait.h> 
- #endif 
- #ifndef WEXITSTATUS 
- # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8) 
- #endif 
- #ifndef WIFEXITED 
- # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 
- #endif 
-   
- #if TIME_WITH_SYS_TIME 
- # include <sys/time.h> 
- # include <time.h> 
- #else 
- # if HAVE_SYS_TIME_H 
- #  include <sys/time.h> 
- # else 
- #  include <time.h> 
- # endif 
- #endif 
-   
- #ifdef HAVE_MEMORY_H 
- # include <memory.h> 
- #endif 
-   
- #ifdef HAVE_CRYPT_H 
- # include <crypt.h> 
- #endif 
-   
- #include <sys/resource.h> 
- #ifndef RUSAGE_SELF 
- # define RUSAGE_SELF 0 
- #endif 
- #ifndef RUSAGE_CHILDREN 
- # define RUSAGE_CHILDREN -1 
- #endif 
-   
- #endif /* INCLUDES_H */ 
-   
-