3 * nmh.h -- system configuration header file
11 # include <sys/types.h>
21 # define NLENGTH(dirent) strlen((dirent)->d_name)
23 # define dirent direct
24 # define NLENGTH(dirent) (dirent)->d_namlen
26 # include <sys/ndir.h>
42 #if STDC_HEADERS || HAVE_STRING_H
44 /* An ANSI string.h and pre-ANSI memory.h might conflict. */
45 # if !STDC_HEADERS && HAVE_MEMORY_H
47 # endif /* not STDC_HEADERS and HAVE_MEMORY_H */
48 #else /* not STDC_HEADERS and not HAVE_STRING_H */
50 /* memory.h and strings.h conflict on some systems. */
51 #endif /* not STDC_HEADERS and not HAVE_STRING_H */
53 #ifdef HAVE_SYS_PARAM_H
54 # include <sys/param.h>
66 * symbolic constants for lseek and fseek
79 * we should be getting this value from pathconf(_PC_PATH_MAX)
83 # define PATH_MAX MAXPATHLEN
85 /* so we will just pick something */
86 # define PATH_MAX 1024
91 * we should get this value from sysconf(_SC_NGROUPS_MAX)
95 # define NGROUPS_MAX NGROUPS
97 # define NGROUPS_MAX 16
102 * we should be getting this value from sysconf(_SC_OPEN_MAX)
106 # define OPEN_MAX NOFILE
108 /* so we will just pick something */
115 #define bcmp(b1,b2,length) memcmp(b1, b2, length)
116 #define bcopy(b1,b2,length) memcpy (b2, b1, length)
117 #define bcpy(b1,b2,length) memcmp (b1, b2, length)
118 #define bzero(b,length) memset (b, 0, length)
121 # define KILLPG(pgrp,sig) killpg(pgrp,sig);
123 # define KILLPG(pgrp,sig) kill((-pgrp),sig);
127 * If your stat macros are broken,
128 * we will just undefine them.
130 #ifdef STAT_MACROS_BROKEN
161 #endif /* STAT_MACROS_BROKEN. */