Minor cleanups in libio/iofdopen.c
[glibc.git] / conform / data / limits.h-data
blob726db1e632bc25c86cd01d51929dc6718787f921
1 macro-int-constant CHAR_BIT >= 8
2 macro-int-constant SCHAR_MIN {promoted:signed char} <= -127
3 macro-int-constant SCHAR_MAX {promoted:signed char} >= 127
4 macro-int-constant UCHAR_MAX {promoted:unsigned char} >= 255
5 #ifdef __CHAR_UNSIGNED__
6 macro-int-constant CHAR_MIN {promoted:char} == 0
7 macro-int-constant CHAR_MAX {promoted:char} == UCHAR_MAX
8 #else
9 macro-int-constant CHAR_MIN {promoted:char} == SCHAR_MIN
10 macro-int-constant CHAR_MAX {promoted:char} == SCHAR_MAX
11 #endif
12 macro-int-constant MB_LEN_MAX >= 1
13 macro-int-constant SHRT_MIN {promoted:short int} <= -32767
14 macro-int-constant SHRT_MAX {promoted:short int} >= 32767
15 macro-int-constant USHRT_MAX {promoted:unsigned short int} >= 65535
16 // The ranges for int and unsigned int are from POSIX.
17 macro-int-constant INT_MAX {int} >= 2147483647
18 macro-int-constant INT_MIN {int} <= -2147483647
19 macro-int-constant UINT_MAX {unsigned int} >= 4294967295U
20 macro-int-constant LONG_MAX {long int} >= 2147483647L
21 macro-int-constant LONG_MIN {long int} <= -2147483647L
22 macro-int-constant ULONG_MAX {unsigned long int} >= 4294967295UL
23 #if defined ISO99 || defined ISO11 || defined XOPEN2K8 || defined POSIX2008
24 macro-int-constant LLONG_MIN {long long int} <= -9223372036854775807ll
25 macro-int-constant LLONG_MAX {long long int} >= 9223372036854775807ll
26 macro-int-constant ULLONG_MAX {unsigned long long int} >= 18446744073709551615ull
27 #endif
29 #if !defined ISO && !defined ISO99 && !defined ISO11
30 // if these values exist, we should check the minimal value
31 allow AIO_LISTIO_MAX
32 allow AIO_MAX
33 allow AIO_PRIO_DELTA_MAX
34 allow ARG_MAX
35 #if !defined POSIX && !defined XPG3
36 allow ATEXIT_MAX
37 #endif
38 allow CHILD_MAX
39 allow DELAYTIMER_MAX
40 #if !defined POSIX && !defined POSIX2008 && !defined XPG3
41 allow IOV_MAX
42 #endif
43 allow LOGIN_NAME_MAX
44 allow MQ_OPEN_MAX
45 allow MQ_PRIO_MAX
46 allow OPEN_MAX
47 allow PAGESIZE
48 #if !defined POSIX && !defined POSIX2008
49 allow PAGE_SIZE
50 #endif
51 allow PTHREAD_DESTRUCTOR_ITERATIONS
52 allow PTHREAD_KEYS_MAX
53 allow PTHREAD_STACK_MIN
54 allow PTHREAD_THREADS_MAX
55 allow RTSIG_MAX
56 allow SEM_NSEMS_MAX
57 allow SEM_VALUE_MAX
58 allow SIGQUEUE_MAX
59 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
60 allow SS_REPL_MAX
61 #endif
62 allow STREAM_MAX
63 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
64 allow SYMLOOP_MAX
65 #endif
66 allow TIMER_MAX
67 allow TTY_NAME_MAX
68 allow TZNAME_MAX
70 #if !defined POSIX && !defined XPG3 && !defined XPG4
71 allow FILESIZEBITS
72 #endif
73 allow LINK_MAX
74 allow MAX_CANON
75 allow MAX_INPUT
76 allow NAME_MAX
77 allow PATH_MAX
78 allow PIPE_BUF
79 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
80 allow POSIX_ALLOC_SIZE_MIN
81 allow POSIX_REC_INCR_XFER_SIZE
82 allow POSIX_REC_MAX_XFER_SIZE
83 allow POSIX_REC_XFER_ALIGN
84 allow SYMLINK_MAX
85 #endif
87 macro-constant BC_BASE_MAX >= _POSIX2_BC_BASE_MAX
88 macro-constant BC_DIM_MAX >= _POSIX2_BC_DIM_MAX
89 macro-constant BC_SCALE_MAX >= _POSIX2_BC_SCALE_MAX
90 macro-constant BC_STRING_MAX >= _POSIX2_BC_STRING_MAX
91 #if !defined POSIX && !defined XPG3 && !defined XPG4
92 macro CHARCLASS_NAME_MAX
93 #endif
94 macro-constant COLL_WEIGHTS_MAX >= _POSIX2_COLL_WEIGHTS_MAX
95 macro-constant EXPR_NEST_MAX >= _POSIX2_EXPR_NEST_MAX
96 macro-constant LINE_MAX >= _POSIX2_LINE_MAX
97 constant NGROUPS_MAX >= 8
98 macro-constant RE_DUP_MAX >= _POSIX2_RE_DUP_MAX
100 constant _POSIX_CLOCKRES_MIN == 20000000
102 constant _POSIX_AIO_LISTIO_MAX == 2
103 constant _POSIX_AIO_MAX == 1
104 constant _POSIX_ARG_MAX == 4096
105 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
106 constant _POSIX_CHILD_MAX == 25
107 #else
108 constant _POSIX_CHILD_MAX == 6
109 #endif
110 constant _POSIX_DELAYTIMER_MAX == 32
111 constant _POSIX_LINK_MAX == 8
112 constant _POSIX_LOGIN_NAME_MAX == 9
113 constant _POSIX_MAX_CANON == 255
114 constant _POSIX_MAX_INPUT == 255
115 constant _POSIX_MQ_OPEN_MAX == 8
116 constant _POSIX_MQ_PRIO_MAX == 32
117 constant _POSIX_NAME_MAX == 14
118 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
119 constant _POSIX_NGROUPS_MAX == 8
120 #else
121 constant _POSIX_NGROUPS_MAX == 0
122 #endif
123 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
124 constant _POSIX_OPEN_MAX == 20
125 #else
126 constant _POSIX_OPEN_MAX == 16
127 #endif
128 // Value was 255, corrected to 256 following an interpretation request.
129 constant _POSIX_PATH_MAX == 256
130 constant _POSIX_PIPE_BUF == 512
131 constant _POSIX_RTSIG_MAX == 8
132 constant _POSIX_SEM_NSEMS_MAX == 256
133 constant _POSIX_SEM_VALUE_MAX == 32767
134 constant _POSIX_SIGQUEUE_MAX == 32
135 constant _POSIX_SSIZE_MAX == 32767
136 constant _POSIX_STREAM_MAX == 8
137 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
138 optional-constant _POSIX_SS_REPL_MAX == 4
139 optional-constant _POSIX_SYMLINK_MAX == 255
140 optional-constant _POSIX_SYMLOOP_MAX == 8
141 #endif
142 constant _POSIX_THREAD_DESTRUCTOR_ITERATIONS == 4
143 constant _POSIX_THREAD_KEYS_MAX == 128
144 constant _POSIX_THREAD_THREADS_MAX == 64
145 constant _POSIX_TIMER_MAX == 32
146 constant _POSIX_TTY_NAME_MAX == 9
147 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
148 constant _POSIX_TZNAME_MAX == 6
149 #else
150 constant _POSIX_TZNAME_MAX == 3
151 #endif
152 macro-constant _POSIX2_BC_BASE_MAX == 99
153 macro-constant _POSIX2_BC_DIM_MAX == 2048
154 macro-constant _POSIX2_BC_SCALE_MAX == 99
155 macro-constant _POSIX2_BC_STRING_MAX == 1000
156 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
157 constant _POSIX2_CHARCLASS_NAME_MAX == 14
158 #endif
159 macro-constant _POSIX2_COLL_WEIGHTS_MAX == 2
160 macro-constant _POSIX2_EXPR_NEST_MAX == 32
161 macro-constant _POSIX2_LINE_MAX == 2048
162 macro-constant _POSIX2_RE_DUP_MAX == 255
163 #if !defined POSIX && !defined POSIX2008 && !defined XPG3
164 optional-constant _XOPEN_IOV_MAX == 16
165 #endif
167 #if !defined POSIX && !defined POSIX2008
168 constant WORD_BIT >= 16
169 constant LONG_BIT >= 32
170 #endif
171 constant SSIZE_MAX
173 #if !defined POSIX && !defined XPG3 && !defined XPG4
174 optional-constant CHARCLASS_NAME_MAX >= 14
175 #endif
176 #if !defined POSIX && !defined XPG3
177 optional-constant NL_ARGMAX >= 9
178 # if !defined POSIX2008
179 optional-constant NL_LANGMAX >= 14
180 # endif
181 optional-constant NL_MSGMAX >= 32767
182 # if !defined XOPEN2K8 && !defined POSIX2008
183 optional-constant NL_NMAX
184 # endif
185 optional-constant NL_SETMAX >= 255
186 optional-constant NL_TEXTMAX
187 # if !defined POSIX2008
188 optional-constant NZERO >= 20
189 # endif
190 #endif
191 #if defined XPG4 || defined UNIX98
192 optional-constant TMP_MAX >= 10000
193 #endif
195 allow *_MAX
196 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
197 allow *_MIN
198 #endif
199 allow *_t
200 #endif