1 #ifndef _LIMITS_H
2 #define _LIMITS_H
3
4 #define RAND_MAX 0x7ffffffd
5
6 #define CHAR_BIT 8
7 #define MB_LEN_MAX 1
8
9 #define SCHAR_MIN (-128)
10 #define SCHAR_MAX 127
11
12 #define UCHAR_MAX 255U
13
14 #ifdef __CHAR_UNSIGNED__
15 #define CHAR_MIN 0
16 #define CHAR_MAX UCHAR_MAX
17 #else
18 #define CHAR_MIN SCHAR_MIN
19 #define CHAR_MAX SCHAR_MAX
20 #endif
21
22 #define SHRT_MIN (-32768)
23 #define SHRT_MAX 32767
24
25 #define USHRT_MAX 65535U
26
27 #define INT_MIN (-2147483648)
28 #define INT_MAX 2147483647
29
30 #define UINT_MAX 4294967295U
31
32 #define LONG_MIN (-2147483648)
33 #define LONG_MAX 2147483647
34
35 #define ULONG_MAX 4294967295U
36
37
38
39
40 #define _POSIX_ARG_MAX 40960
41 #define _POSIX_CHILD_MAX 6
42 #define _POSIX_LINK_MAX 8
43 #define _POSIX_MAX_CANON 255
44 #define _POSIX_MAX_INPUT 255
45 #define _POSIX_NAME_MAX 14
46 #define _POSIX_NGROUPS_MAX 32
47 #define _POSIX_OPEN_MAX 16
48 #define _POSIX_PATH_MAX 255
49 #define _POSIX_PIPE_BUF 512
50
51 #define NGROUPS_MAX 32
52 #define ARG_MAX 40960
53 #define CHILD_MAX 999
54 #define OPEN_MAX 20
55 #define LINK_MAX 127
56 #define MAX_CANON 255
57 #define MAX_INPUT 255
58 #define NAME_MAX 255
59 #define PATH_MAX 1024
60 #define PIPE_BUF 4095
61
62 #endif