1 #ifndef _SYS_PARAM_H 2 #define _SYS_PARAM_H 3 4 #include <sys/types.h> 5 /* Linux includes limits.h, but this is not universally done. */ 6 #include <limits.h> 7 8 /* Max number of open files. The Posix version is OPEN_MAX. */ 9 /* Number of fds is virtually unlimited in cygwin, but we must provide 10 some reasonable value for Posix conformance */ 11 #define NOFILE 8192 12 13 /* Max number of groups; must keep in sync with NGROUPS_MAX in limits.h */ 14 #define NGROUPS 16 15 16 /* Ticks/second for system calls such as times() */ 17 /* FIXME: is this the appropriate value? */ 18 #define HZ 1000 19 20 /* Max hostname size that can be dealt with */ 21 /* FIXME: is this the appropriate value? */ 22 #define MAXHOSTNAMELEN 64 23 24 /* This is defined to be the same as MAX_PATH which is used internally. 25 The Posix version is PATH_MAX. */ 26 #define MAXPATHLEN (260 - 1 /*NUL*/) 27 28 /* Some autoconf'd packages check for endianness. When cross-building we 29 can't run programs on the target. Fortunately, autoconf supports the 30 definition of byte order in sys/param.h (that's us!). 31 The values here are the same as used in gdb/defs.h (are the more 32 appropriate values?). */ 33 #define BIG_ENDIAN 4321 34 #define LITTLE_ENDIAN 1234 35 36 /* All known win32 systems are little endian. */ 37 #define BYTE_ORDER LITTLE_ENDIAN 38 39 #ifndef NULL 40 #define NULL 0L 41 #endif 42 43 #endif |