2 ** nmh.h -- system configuration header file
8 # include <sys/types.h>
18 # define NLENGTH(dirent) strlen((dirent)->d_name)
20 # define dirent direct
21 # define NLENGTH(dirent) (dirent)->d_namlen
23 # include <sys/ndir.h>
39 #if STDC_HEADERS || HAVE_STRING_H
41 /* An ANSI string.h and pre-ANSI memory.h might conflict. */
42 # if !STDC_HEADERS && HAVE_MEMORY_H
44 # endif /* not STDC_HEADERS and HAVE_MEMORY_H */
45 #else /* not STDC_HEADERS and not HAVE_STRING_H */
47 /* memory.h and strings.h conflict on some systems. */
48 #endif /* not STDC_HEADERS and not HAVE_STRING_H */
50 #ifdef HAVE_SYS_PARAM_H
51 # include <sys/param.h>
63 ** symbolic constants for lseek and fseek
76 ** we should be getting this value from pathconf(_PC_PATH_MAX)
80 # define PATH_MAX MAXPATHLEN
82 /* so we will just pick something */
83 # define PATH_MAX 1024
88 ** we should get this value from sysconf(_SC_NGROUPS_MAX)
92 # define NGROUPS_MAX NGROUPS
94 # define NGROUPS_MAX 16
99 ** we should be getting this value from sysconf(_SC_OPEN_MAX)
103 # define OPEN_MAX NOFILE
105 /* so we will just pick something */
112 #define bcmp(b1,b2,length) memcmp(b1, b2, length)
113 #define bcopy(b1,b2,length) memcpy(b2, b1, length)
114 #define bcpy(b1,b2,length) memcmp(b1, b2, length)
115 #define bzero(b,length) memset(b, 0, length)
118 # define KILLPG(pgrp,sig) killpg(pgrp,sig);
120 # define KILLPG(pgrp,sig) kill((-pgrp),sig);
124 ** If your stat macros are broken,
125 ** we will just undefine them.
127 #ifdef STAT_MACROS_BROKEN
158 #endif /* STAT_MACROS_BROKEN. */