Rev 8793 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
8687 | turbocat | 1 | #ifndef _LIMITS_H_ |
2 | #define _LIMITS_H_ |
||
9077 | turbocat | 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 |
||
8687 | turbocat | 29 | |
9077 | turbocat | 30 | /* gnuc ones */ |
31 | #define LONG_LONG_MIN LLONG_MIN |
||
32 | #define LONG_LONG_MAX LLONG_MAX |
||
33 | #define ULONG_LONG_MAX ULLONG_MAX |
||
8687 | turbocat | 34 | |
35 | |||
36 | #ifndef ARG_MAX |
||
37 | #define ARG_MAX 4096 |
||
38 | #endif |
||
39 | |||
40 | #ifndef PATH_MAX |
||
41 | #define PATH_MAX 4096 |
||
42 | #endif |
||
43 | |||
44 | #ifndef STDIO_MAX_MEM |
||
45 | #define STDIO_MAX_MEM 4096 |
||
46 | #endif |
||
47 | |||
9077 | turbocat | 48 | #endif /* _LIMITS_H_ */ |