Subversion Repositories Kolibri OS

Rev

Rev 9077 | 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_
3
 
9766 turbocat 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
 
9077 turbocat 30
/* gnuc ones */
9766 turbocat 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
#ifndef ARG_MAX
9766 turbocat 36
#define ARG_MAX 4096
8687 turbocat 37
#endif
9766 turbocat 38
 
8687 turbocat 39
#ifndef PATH_MAX
9766 turbocat 40
#define PATH_MAX 4096
8687 turbocat 41
#endif
42
 
43
#ifndef STDIO_MAX_MEM
44
#define STDIO_MAX_MEM 4096
45
#endif
46
 
9077 turbocat 47
#endif /* _LIMITS_H_ */