]> diplodocus.org Git - nmh/blob - h/nmh.h
Make burst(1) be able to burst MIME-formatted messages with message/rfc822
[nmh] / h / nmh.h
1
2 /*
3 * nmh.h -- system configuration header file
4 */
5
6 #ifdef HAVE_CONFIG_H
7 #include <config.h>
8 #endif
9
10 #include <unistd.h>
11 #include <stdio.h>
12 #include <ctype.h>
13 #ifndef NDEBUG
14 /* See etc/gen-ctype-checked.c. */
15 # include <sbr/ctype-checked.h>
16 #endif
17 #include <sys/stat.h>
18
19 # include <dirent.h>
20 #define NLENGTH(dirent) strlen((dirent)->d_name)
21
22 #include <stdlib.h>
23 #include <stdarg.h>
24 #include <string.h>
25
26 #ifdef HAVE_SYS_PARAM_H
27 # include <sys/param.h>
28 #endif
29
30 # include <locale.h>
31 # include <limits.h>
32
33 /*
34 * we should be getting this value from pathconf(_PC_PATH_MAX)
35 */
36 #ifndef PATH_MAX
37 # ifdef MAXPATHLEN
38 # define PATH_MAX MAXPATHLEN
39 # else
40 /* so we will just pick something */
41 # define PATH_MAX 1024
42 # endif
43 #endif
44
45 /*
46 * we should get this value from sysconf(_SC_NGROUPS_MAX)
47 */
48 #ifndef NGROUPS_MAX
49 # ifdef NGROUPS
50 # define NGROUPS_MAX NGROUPS
51 # else
52 # define NGROUPS_MAX 16
53 # endif
54 #endif
55
56 /*
57 * we should be getting this value from sysconf(_SC_OPEN_MAX)
58 */
59 #ifndef OPEN_MAX
60 # ifdef NOFILE
61 # define OPEN_MAX NOFILE
62 # else
63 /* so we will just pick something */
64 # define OPEN_MAX 64
65 # endif
66 #endif
67
68 /*
69 * Defaults for programs if they aren't configured in a user's profile
70 */
71
72 #define DEFAULT_PAGER "more"
73 #define DEFAULT_EDITOR "vi"
74
75 #include <signal.h>