home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * ANSI C definitions
- *
- * these definitions work for char:8, short:16, int:32, long:32,
- *
- * MANIFEST: minimal limits.h replacement
- */
-
- #ifndef _H_limits
- #define _H_limits
-
- #define CHAR_BIT 8
- #define CHAR_MAX 127
- #define CHAR_MIN (-128)
- #define SCHAR_MAX 127
- #define SCHAR_MIN (-128)
- #define UCHAR_MAX 255
- #define SHRT_MIN (-32768)
- #define SHRT_MAX 32767
- #define USHRT_MAX 65535
- #define LONG_MAX 2147483647
- #define LONG_MIN (-2147483648)
- #define ULONG_MAX 4294967295
-
- #define INT_MAX LONG_MAX
- #define INT_MIN LONG_MIN
- #define UINT_MAX ULONG_MAX
-
- /*
- * POSIX definitions
- */
-
- #if defined(sun) || defined(BSD)
-
- /*
- * these definitions work for BSD and SunOS
- */
- #define NAME_MAX 255
- #define PATH_MAX 1023
-
- #else
-
- /*
- * These definitions work for SystemV
- * note that 5.2 and 5.3 state in the release notes that 1024 is correct,
- * even though the distributed limits.h has 256 in it.
- */
- #define NAME_MAX 14
- #define PATH_MAX 1024
-
- #endif
-
- #endif /* _H_limits */
-