home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJDEV200.ZIP / include / limits.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-05  |  2.1 KB  |  75 lines

  1. /* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
  2. #ifndef __dj_include_limits_h_
  3. #define __dj_include_limits_h_
  4.  
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8.  
  9. #define CHAR_BIT 8
  10. #define CHAR_MAX 127
  11. #define CHAR_MIN (-128)
  12. #define INT_MAX 2147483647
  13. #define INT_MIN (-2147483647-1)
  14. #define LONG_MAX 2147483647L
  15. #define LONG_MIN (-2147483647L-1L)
  16. #define MB_LEN_MAX 5
  17. #define SCHAR_MAX 127
  18. #define SCHAR_MIN (-128)
  19. #define SHRT_MAX 32767
  20. #define SHRT_MIN (-32768)
  21. #define UCHAR_MAX 255
  22. #define UINT_MAX 4294967295U
  23. #define ULONG_MAX 4294967295UL
  24. #define USHRT_MAX 65535
  25.  
  26. #ifndef __dj_ENFORCE_ANSI_FREESTANDING
  27.  
  28. #ifndef __STRICT_ANSI__
  29.  
  30. #define _POSIX_ARG_MAX        4096    /* but only for exec's to other djgpp programs */
  31. #define _POSIX_CHILD_MAX    6    /* really limited by memory */
  32. #define _POSIX_LINK_MAX        1    /* POSIX says 8, but DOS says 1 */
  33. #define _POSIX_MAX_CANON    126    /* POSIX says 255, but DOS says 126 */
  34. #define _POSIX_MAX_INPUT    126    /* POSIX says 255, but DOS says 126 */
  35. #define _POSIX_NAME_MAX        12    /* 8.3 */
  36. #define _POSIX_NGROUPS_MAX    0
  37. #define _POSIX_OPEN_MAX        20    /* can be bigger in DOS, but defaults to 20 */
  38. #define _POSIX_PATH_MAX        255    /* 80 for canonical paths */
  39. #define _POSIX_PIPE_BUF        512    /* but there aren't any pipes */
  40. #define _POSIX_SSIZE_MAX    2147483647
  41. #define _POSIX_STREAM_MAX    20    /* can be bigger in DOS */
  42. #define _POSIX_TZNAME_MAX    5
  43.  
  44. #define NGROUPS_MAX        0
  45.  
  46. #define ARG_MAX            4096
  47. #define CHILD_MAX        6
  48. /* #define OPEN_MAX        20 - DOS can change this */
  49. /* #define STREAM_MAX        20 - DOS can change this */
  50. #define TZNAME_MAX        3
  51.  
  52. #define LINK_MAX        1
  53. #define MAX_CANON        126
  54. #define MAX_INPUT        126
  55. #define NAME_MAX        12    /* 8.3 */
  56. #define PATH_MAX        512    /* for future expansion */
  57. #define PIPE_BUF        512    /* but there aren't any pipes */
  58.  
  59. #define SSIZE_MAX        2147483647
  60.  
  61. #ifndef _POSIX_SOURCE
  62.  
  63. #endif /* !_POSIX_SOURCE */
  64. #endif /* !__STRICT_ANSI__ */
  65. #endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
  66.  
  67. #ifndef __dj_ENFORCE_FUNCTION_CALLS
  68. #endif /* !__dj_ENFORCE_FUNCTION_CALLS */
  69.  
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73.  
  74. #endif /* !__dj_include_limits_h_ */
  75.