Subversion Repositories Kolibri OS

Rev

Rev 9077 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _LIMITS_H_
  2. #define _LIMITS_H_
  3.  
  4. #define CHAR_BIT   8
  5. #define CHAR_MAX   127
  6. #define CHAR_MIN   (-128)
  7. #define INT_MAX    2147483647
  8. #define INT_MIN    (-2147483647 - 1)
  9. #define LONG_MAX   2147483647L
  10. #define LONG_MIN   (-2147483647L - 1L)
  11. #define MB_LEN_MAX 5
  12. #define SCHAR_MAX  127
  13. #define SCHAR_MIN  (-128)
  14. #define SHRT_MAX   32767
  15. #define SHRT_MIN   (-32768)
  16. #define UCHAR_MAX  255
  17. #define UINT_MAX   4294967295U
  18. #define ULONG_MAX  4294967295UL
  19. #define USHRT_MAX  65535
  20. #define WCHAR_MIN  0
  21. #define WCHAR_MAX  127
  22. #define WINT_MIN   0
  23. #define WINT_MAX   32767
  24. #define SSIZE_MAX  2147483647
  25.  
  26. #define LLONG_MIN  (-9223372036854775807LL - 1LL)
  27. #define LLONG_MAX  9223372036854775807LL
  28. #define ULLONG_MAX 18446744073709551615ULL
  29.  
  30. /* gnuc ones */
  31. #define LONG_LONG_MIN  LLONG_MIN
  32. #define LONG_LONG_MAX  LLONG_MAX
  33. #define ULONG_LONG_MAX ULLONG_MAX
  34.  
  35. #ifndef ARG_MAX
  36. #define ARG_MAX 4096
  37. #endif
  38.  
  39. #ifndef PATH_MAX
  40. #define PATH_MAX 4096
  41. #endif
  42.  
  43. #ifndef STDIO_MAX_MEM
  44. #define STDIO_MAX_MEM 4096
  45. #endif
  46.  
  47. #endif /* _LIMITS_H_ */
  48.