limits.h 858 B

12345678910111213141516171819202122232425262728
  1. /* Minimal limits.h for the ring-3 libc (i386). */
  2. #ifndef LIBC_LIMITS_H
  3. #define LIBC_LIMITS_H
  4. #define CHAR_BIT 8
  5. #define SCHAR_MIN (-128)
  6. #define SCHAR_MAX 127
  7. #define UCHAR_MAX 255
  8. #define CHAR_MIN SCHAR_MIN
  9. #define CHAR_MAX SCHAR_MAX
  10. #define SHRT_MIN (-32768)
  11. #define SHRT_MAX 32767
  12. #define USHRT_MAX 65535
  13. #define INT_MIN (-2147483647 - 1)
  14. #define INT_MAX 2147483647
  15. #define UINT_MAX 4294967295u
  16. #define LONG_MIN (-2147483647L - 1L)
  17. #define LONG_MAX 2147483647L
  18. #define ULONG_MAX 4294967295uL
  19. #define LLONG_MIN (-9223372036854775807LL - 1LL)
  20. #define LLONG_MAX 9223372036854775807LL
  21. #define ULLONG_MAX 18446744073709551615ULL
  22. #define PATH_MAX 64
  23. #define NAME_MAX 63
  24. #define OPEN_MAX 32
  25. #endif