/**************************************************************************
*   Copyright 2000 Compaq Computer Corporation
*
*   COMPAQ Registered in U.S. Patent and Trademark Office.
*
*   Confidential computer software. Valid license from Compaq or authorized
*   sublicensor required for possession, use or copying. Consistent with
*   FAR 12.211 and 12.212, Commercial Computer Software, Computer Software
*   Documentation, and Technical Data for Commercial Items are licensed to
*   the U.S. Government under vendor's standard commercial license.
**************************************************************************/

#if !defined(_SYS_LIMITS_H_) && !defined(_LIBC_LIMITS_H_)
#if !defined(__linux__)
#define _SYS_LIMITS_H_
#endif  /* __linux__  */

#ifdef __linux__
#  define CHAR_BIT      8
#  define INT_MIN       (-INT_MAX - 1)
#  define INT_MAX       2147483647
#  define LONG_MAX      9223372036854775807L
#  define LONG_MIN      (-LONG_MAX - 1L)
#  define MB_LEN_MAX    6
#  define SCHAR_MIN     (-128)
#  define SCHAR_MAX     127
#ifdef __CHAR_UNSIGNED__
#  define CHAR_MIN      0
#  define CHAR_MAX      UCHAR_MAX
#else
#  define CHAR_MIN      SCHAR_MIN
#  define CHAR_MAX      SCHAR_MAX
#endif  /* __CHAR_UNSIGNED__ */
#  define SHRT_MIN      (-32768)
#  define SHRT_MAX      32767
#  define UCHAR_MAX     255
#  define UINT_MAX      4294967295U
#  define ULONG_MAX     18446744073709551615UL
#  define USHRT_MAX     65535
#else
#define CHAR_BIT         8
#define CHAR_MAX         127
#define CHAR_MIN         (-128)
#define INT_MAX          2147483647
#define INT_MIN          (-INT_MAX-1)
#define LONG_MAX         9223372036854775807
#define LONG_MIN         (-LONG_MAX-1)
#define MB_LEN_MAX       4 
#define SCHAR_MIN        (-128)
#define SCHAR_MAX        127 
#define SHRT_MAX         32767
#define SHRT_MIN         (-32768) 
#define UCHAR_MAX        255U 
#define UINT_MAX         4294967295U 
#define ULONG_MAX        18446744073709551615U
#define USHRT_MAX        65535U
#endif  /* __linux__ */

#endif /* _SYS_LIMITS_H_ */
