summary refs log tree commit diff
path: root/conform/data/limits.h-data
blob: 27ae77af8de15b6ed4978a2aba76285b02ef6ff6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
constant CHAR_BIT >= 8
constant SCHAR_MIN <= -127
constant SCHAR_MAX >= 127
constant UCHAR_MAX >= 255
#ifdef __CHAR_UNSIGNED__
constant CHAR_MIN 0
constant CHAR_MAX UCHAR_MAX
#else
constant CHAR_MIN SCHAR_MIN
constant CHAR_MAX SCHAR_MAX
#endif
constant MB_LEN_MAX >= 1
constant SHRT_MIN <= -32767
constant SHRT_MAX >= 32767
constant USHRT_MAX >= 65535
constant INT_MAX >= 2147483647
constant INT_MIN <= 2147483647
constant UINT_MAX >= 4294967295
constant LONG_MAX >= 2147483647
constant LONG_MIN <= 2147483647
constant ULONG_MAX >= 4294967295
#if defined ISO99 || defined ISO11 || defined XOPEN2K8 || defined POSIX2008
constant LLONG_MIN <= -9223372036854775807ll
constant LLONG_MAX >= 9223372036854775807ll
constant ULLONG_MAX >= 18446744073709551615ull
#endif

#if !defined ISO && !defined ISO99 && !defined ISO11
// if these values exist, we should check the minimal value
allow AIO_LIST_MAX
allow AIO_MAX
allow AIO_PRIO_DELTA_MAX
allow ARG_MAX
allow ATEXT_MAX
allow CHILD_MAX
allow DELAYTIMER_MAX
allow IOV_MAX
allow LOGIN_NAME_MAX
allow MQ_OPEN_MAX
allow OPEN_MAX
allow PAGESIZE
#if !defined POSIX && !defined POSIX2008
allow PAGE_SIZE
#endif
allow PTHREAD_DESTRUCTOR_ITERATIONS
allow PTHREAD_KEYS_MAX
allow PTHREAD_STACK_MIN
allow PTHREAD_THREADS_MAX
allow RE_DUP_MAX
allow RTSIG_MAX
allow SEM_NSEMS_MAX
allow SEM_VALUE_MAX
allow SIGQUEUE_MAX
allow SS_REPL_MAX
allow STREAM_MAX
allow SYMLOOP_MAX
allow TIMER_MAX
allow TTY_NAME_MAX
allow TZNAME_MAX

allow FILESIZEBITS
allow LINK_MAX
allow MAX_CANON
allow MAX_INPUT
allow NAME_MAX
allow PATH_MAX
allow PIPE_BUF
allow POSIX_ALLOC_SIZE_MIN
allow POSIX_REC_INCR_XFER_SIZE
allow POSIX_REC_MAX_XFER_SIZE
allow POSIX_REC_XFER_ALIGN
allow SYMLINK_MAX

macro BC_BASE_MAX
macro BC_DIM_MAX
macro BC_SCALE_MAX
macro BC_STRING_MAX
macro CHARCLASS_NAME_MAX
macro COLL_WEIGHTS_MAX
macro EXPR_NEST_MAX
macro LINE_MAX
constant NGROUPS_MAX >= 8
macro RE_DUP_MAX

constant _POSIX_CLOCKRES_MIN <= 20000000

optional-constant _POSIX_AIO_LISTIO_MAX	2
optional-constant _POSIX_AIO_MAX 1
optional-constant _POSIX_ARG_MAX 4096
#ifdef XOPEN2K
optional-constant _POSIX_CHILD_MAX 25
#else
optional-constant _POSIX_CHILD_MAX 6
#endif
optional-constant _POSIX_DELAYTIMER_MAX 32
optional-constant _POSIX_LINK_MAX 8
optional-constant _POSIX_LOGIN_NAME_MAX 9
optional-constant _POSIX_MAX_CANON 255
optional-constant _POSIX_MAX_INPUT 255
optional-constant _POSIX_MQ_OPEN_MAX 8
optional-constant _POSIX_MQ_PRIO_MAX 32
optional-constant _POSIX_NAME_MAX 14
#ifdef XOPEN2K
optional-constant _POSIX_NGROUPS_MAX 8
#else
optional-constant _POSIX_NGROUPS_MAX 0
#endif
#ifdef XOPEN2K
optional-constant _POSIX_OPEN_MAX 20
#else
optional-constant _POSIX_OPEN_MAX 16
#endif
optional-constant _POSIX_PATH_MAX 256
optional-constant _POSIX_PIPE_BUF 512
optional-constant _POSIX2_RE_DUP_MAX 255
optional-constant _POSIX_RTSIG_MAX 8
optional-constant _POSIX_SEM_NSEMS_MAX 256
optional-constant _POSIX_SEM_VALUE_MAX 32767
optional-constant _POSIX_SIGQUEUE_MAX 32
optional-constant _POSIX_SSIZE_MAX 32767
optional-constant _POSIX_STREAM_MAX 8
optional-constant _POSIX_SS_REPL_MAX 4
optional-constant _POSIX_SYMLINK_MAX 255
optional-constant _POSIX_SYMLOOP_MAX 8
optional-constant _POSIX_THREAD_DESTRUCTOR_ITERATIONS 4
optional-constant _POSIX_THREAD_KEYS_MAX 128
optional-constant _POSIX_THREAD_THREADS_MAX 64
optional-constant _POSIX_TIMER_MAX 32
optional-constant _POSIX_TTY_NAME_MAX 9
optional-constant _POSIX_TZNAME_MAX 6
optional-constant _POSIX2_BC_BASE_MAX 99
optional-constant _POSIX2_BC_DIM_MAX 2048
optional-constant _POSIX2_BC_SCALE_MAX 99
optional-constant _POSIX2_BC_STRING_MAX 1000
optional-constant _POSIX2_CHARCLASS_NAME_MAX 14
optional-constant _POSIX2_COLL_WEIGHTS_MAX 2
optional-constant _POSIX2_EXPR_NEST_MAX 32
optional-constant _POSIX2_LINE_MAX 2048
optional-constant _POSIX2_RE_DUP_MAX 255
optional-constant _XOPEN_IOV_MAX 16

#if !defined POSIX && !defined POSIX2008
constant WORD_BIT >= 16
constant LONG_BIT >= 32
#endif
constant SSIZE_MAX

optional-constant CHARCLASS_NAME_MAX >= 14
optional-constant NL_ARGMAX >= 9
#if !defined POSIX && !defined POSIX2008
optional-constant NL_LANGMAX >= 14
#endif
optional-constant NL_MSGMAX >= 32767
#if !defined XOPEN2K8 && !defined POSIX2008
optional-constant NL_NMAX
#endif
optional-constant NL_SETMAX >= 255
optional-constant NL_TEXTMAX
#if !defined POSIX && !defined POSIX2008
optional-constant NZERO >= 20
#endif
optional-constant TMP_MAX >= 10000

allow *_MAX
allow *_MIN
#endif