Subversion Repositories wimsdev

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 reyssat 1
/*    Copyright (C) 1998-2003 XIAO, Gang of Universite de Nice - Sophia Antipolis
2
 *
3
 *  This program is free software; you can redistribute it and/or modify
4
 *  it under the terms of the GNU General Public License as published by
5
 *  the Free Software Foundation; either version 2 of the License, or
6
 *  (at your option) any later version.
7
 *
8
 *  This program is distributed in the hope that it will be useful,
9
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
10
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11
 *  GNU General Public License for more details.
12
 *
13
 *  You should have received a copy of the GNU General Public License
14
 *  along with this program; if not, write to the Free Software
15
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
 */
17
 
18
/* WWW multipurpose server, include header files */
19
 
20
#ifndef INCLUDES_H
21
#define INCLUDES_H 1
22
 
23
#include <stdio.h>
24
#include <stdlib.h>
25
#include <stdarg.h>
26
#include <ctype.h>
27
#include <unistd.h>
28
#include <math.h>
29
#include <string.h>
30
#include <sys/stat.h>
31
#include <sys/types.h>
32
#include <fcntl.h>
33
#include <errno.h>
34
#include <signal.h>
35
 
36
#if HAVE_DIRENT_H
37
# include <dirent.h>
38
# define NAMLEN(dirent) strlen((dirent)->d_name)
39
#else
40
# define dirent direct
41
# define NAMLEN(dirent) (dirent)->d_namlen
42
# if HAVE_SYS_NDIR_H
43
#  include <sys/ndir.h>
44
# endif
45
# if HAVE_SYS_DIR_H
46
#  include <sys/dir.h>
47
# endif
48
# if HAVE_NDIR_H
49
#  include <ndir.h>
50
# endif
51
#endif
52
 
53
#if HAVE_SYS_WAIT_H
54
# include <sys/wait.h>
55
#endif
56
#ifndef WEXITSTATUS
57
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
58
#endif
59
#ifndef WIFEXITED
60
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
61
#endif
62
 
63
#if TIME_WITH_SYS_TIME
64
# include <sys/time.h>
65
# include <time.h>
66
#else
67
# if HAVE_SYS_TIME_H
68
#  include <sys/time.h>
69
# else
70
#  include <time.h>
71
# endif
72
#endif
73
 
74
#ifdef HAVE_MEMORY_H
75
# include <memory.h>
76
#endif
77
 
78
#ifdef HAVE_CRYPT_H
79
# include <crypt.h>
80
#endif
81
 
82
#include <sys/resource.h>
83
#ifndef RUSAGE_SELF
84
# define RUSAGE_SELF 0
85
#endif
86
#ifndef RUSAGE_CHILDREN
87
# define RUSAGE_CHILDREN -1
88
#endif
89
 
90
#endif /* INCLUDES_H */
91