eb85a4a2e55cd2bb3447bfc98a6f21e90a8315bb
[mmh] / h / nmh.h
1 /*
2 ** nmh.h -- system configuration header file
3 */
4
5 #include <config.h>
6
7 #include <unistd.h>
8 #include <stdio.h>
9 #include <ctype.h>
10 #include <sys/stat.h>
11
12 #include <dirent.h>
13 #define NLENGTH(dirent) strlen((dirent)->d_name)
14
15 #include <stdlib.h>
16 #include <stdarg.h>
17 #include <string.h>
18
19 #ifdef HAVE_SYS_PARAM_H
20 # include <sys/param.h>
21 #endif
22
23 #include <locale.h>
24 #include <limits.h>
25
26 /*
27 ** we should be getting this value from pathconf(_PC_PATH_MAX)
28 */
29 #ifndef PATH_MAX
30 # ifdef MAXPATHLEN
31 #  define PATH_MAX MAXPATHLEN
32 # else
33    /* so we will just pick something */
34 #  define PATH_MAX 1024
35 # endif
36 #endif
37
38 /*
39 ** we should be getting this value from sysconf(_SC_OPEN_MAX)
40 */
41 #ifndef OPEN_MAX
42 # ifdef NOFILE
43 #  define OPEN_MAX NOFILE
44 # else
45    /* so we will just pick something */
46 #  define OPEN_MAX 64
47 # endif
48 #endif
49
50 #include <signal.h>