3 * nmh.h -- system configuration header file
9 # include <sys/types.h>
19 # define NLENGTH(dirent) strlen((dirent)->d_name)
21 # define dirent direct
22 # define NLENGTH(dirent) (dirent)->d_namlen
24 # include <sys/ndir.h>
40 #if STDC_HEADERS || HAVE_STRING_H
42 /* An ANSI string.h and pre-ANSI memory.h might conflict. */
43 # if !STDC_HEADERS && HAVE_MEMORY_H
45 # endif /* not STDC_HEADERS and HAVE_MEMORY_H */
46 #else /* not STDC_HEADERS and not HAVE_STRING_H */
48 /* memory.h and strings.h conflict on some systems. */
49 #endif /* not STDC_HEADERS and not HAVE_STRING_H */
51 #ifdef HAVE_SYS_PARAM_H
52 # include <sys/param.h>
64 * symbolic constants for lseek and fseek
77 * we should be getting this value from pathconf(_PC_PATH_MAX)
81 # define PATH_MAX MAXPATHLEN
83 /* so we will just pick something */
84 # define PATH_MAX 1024
89 * we should get this value from sysconf(_SC_NGROUPS_MAX)
93 # define NGROUPS_MAX NGROUPS
95 # define NGROUPS_MAX 16
100 * we should be getting this value from sysconf(_SC_OPEN_MAX)
104 # define OPEN_MAX NOFILE
106 /* so we will just pick something */
113 #define bcmp(b1,b2,length) memcmp(b1, b2, length)
114 #define bcopy(b1,b2,length) memcpy (b2, b1, length)
115 #define bcpy(b1,b2,length) memcmp (b1, b2, length)
116 #define bzero(b,length) memset (b, 0, length)
119 # define KILLPG(pgrp,sig) killpg(pgrp,sig);
121 # define KILLPG(pgrp,sig) kill((-pgrp),sig);
125 * If your stat macros are broken,
126 * we will just undefine them.
128 #ifdef STAT_MACROS_BROKEN
159 #endif /* STAT_MACROS_BROKEN. */