Re-install OpenSSL 0.9.8k
[msysgit.git] / include / sys / param.h
blob09ef74ed94bbf8007a7d1bb4fa130884c6a7c0ec
1 /* sys/param.h
3 Copyright 2001 Red Hat, Inc.
5 This software is a copyrighted work licensed under the terms of the
6 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
7 details. */
9 #ifndef _SYS_PARAM_H
10 #define _SYS_PARAM_H
12 #include <sys/types.h>
13 /* Linux includes limits.h, but this is not universally done. */
14 #include <limits.h>
16 /* Max number of open files. The Posix version is OPEN_MAX. */
17 /* Number of fds is virtually unlimited in cygwin, but we must provide
18 some reasonable value for Posix conformance */
19 #define NOFILE 8192
21 /* Max number of groups; must keep in sync with NGROUPS_MAX in limits.h */
22 #define NGROUPS 16
24 /* Ticks/second for system calls such as times() */
25 /* FIXME: is this the appropriate value? */
26 #define HZ 1000
28 /* Max hostname size that can be dealt with */
29 /* FIXME: is this the appropriate value? */
30 #define MAXHOSTNAMELEN 64
32 /* This is defined to be the same as MAX_PATH which is used internally.
33 The Posix version is PATH_MAX. */
34 #define MAXPATHLEN (260 - 1 /*NUL*/)
36 /* Some autoconf'd packages check for endianness. When cross-building we
37 can't run programs on the target. Fortunately, autoconf supports the
38 definition of byte order in sys/param.h (that's us!).
39 The values here are the same as used in gdb/defs.h (are the more
40 appropriate values?). */
41 #define BIG_ENDIAN 4321
42 #define LITTLE_ENDIAN 1234
44 /* All known win32 systems are little endian. */
45 #define BYTE_ORDER LITTLE_ENDIAN
47 #ifndef NULL
48 #define NULL 0L
49 #endif
51 #endif