1 // -*- C++ -*- 2 //===----------------------------------------------------------------------===// 3 // 4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 5 // See https://llvm.org/LICENSE.txt for license information. 6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 // 8 //===----------------------------------------------------------------------===// 9 10 // test <cerrno> 11 12 #include <cerrno> 13 14 #include "test_macros.h" 15 16 #ifndef E2BIG 17 #error E2BIG not defined 18 #endif 19 20 #ifndef EACCES 21 #error EACCES not defined 22 #endif 23 24 #ifndef EACCES 25 #error EACCES not defined 26 #endif 27 28 #ifndef EADDRINUSE 29 #error EADDRINUSE not defined 30 #endif 31 32 #ifndef EADDRNOTAVAIL 33 #error EADDRNOTAVAIL not defined 34 #endif 35 36 #ifndef EAFNOSUPPORT 37 #error EAFNOSUPPORT not defined 38 #endif 39 40 #ifndef EAGAIN 41 #error EAGAIN not defined 42 #endif 43 44 #ifndef EALREADY 45 #error EALREADY not defined 46 #endif 47 48 #ifndef EBADF 49 #error EBADF not defined 50 #endif 51 52 #ifndef EBADMSG 53 #error EBADMSG not defined 54 #endif 55 56 #ifndef EBUSY 57 #error EBUSY not defined 58 #endif 59 60 #ifndef ECANCELED 61 #error ECANCELED not defined 62 #endif 63 64 #ifndef ECHILD 65 #error ECHILD not defined 66 #endif 67 68 #ifndef ECONNABORTED 69 #error ECONNABORTED not defined 70 #endif 71 72 #ifndef ECONNREFUSED 73 #error ECONNREFUSED not defined 74 #endif 75 76 #ifndef ECONNRESET 77 #error ECONNRESET not defined 78 #endif 79 80 #ifndef EDEADLK 81 #error EDEADLK not defined 82 #endif 83 84 #ifndef EDESTADDRREQ 85 #error EDESTADDRREQ not defined 86 #endif 87 88 #ifndef EDOM 89 #error EDOM not defined 90 #endif 91 92 #ifndef EEXIST 93 #error EEXIST not defined 94 #endif 95 96 #ifndef EFAULT 97 #error EFAULT not defined 98 #endif 99 100 #ifndef EFBIG 101 #error EFBIG not defined 102 #endif 103 104 #ifndef EHOSTUNREACH 105 #error EHOSTUNREACH not defined 106 #endif 107 108 #ifndef EIDRM 109 #error EIDRM not defined 110 #endif 111 112 #ifndef EILSEQ 113 #error EILSEQ not defined 114 #endif 115 116 #ifndef EINPROGRESS 117 #error EINPROGRESS not defined 118 #endif 119 120 #ifndef EINTR 121 #error EINTR not defined 122 #endif 123 124 #ifndef EINVAL 125 #error EINVAL not defined 126 #endif 127 128 #ifndef EIO 129 #error EIO not defined 130 #endif 131 132 #ifndef EISCONN 133 #error EISCONN not defined 134 #endif 135 136 #ifndef EISDIR 137 #error EISDIR not defined 138 #endif 139 140 #ifndef ELOOP 141 #error ELOOP not defined 142 #endif 143 144 #ifndef EMFILE 145 #error EMFILE not defined 146 #endif 147 148 #ifndef EMLINK 149 #error EMLINK not defined 150 #endif 151 152 #ifndef EMSGSIZE 153 #error EMSGSIZE not defined 154 #endif 155 156 #ifndef ENAMETOOLONG 157 #error ENAMETOOLONG not defined 158 #endif 159 160 #ifndef ENETDOWN 161 #error ENETDOWN not defined 162 #endif 163 164 #ifndef ENETRESET 165 #error ENETRESET not defined 166 #endif 167 168 #ifndef ENETUNREACH 169 #error ENETUNREACH not defined 170 #endif 171 172 #ifndef ENFILE 173 #error ENFILE not defined 174 #endif 175 176 #ifndef ENOBUFS 177 #error ENOBUFS not defined 178 #endif 179 180 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1) 181 #ifndef ENODATA 182 #error ENODATA not defined 183 #endif 184 #endif 185 186 #ifndef ENODEV 187 #error ENODEV not defined 188 #endif 189 190 #ifndef ENOENT 191 #error ENOENT not defined 192 #endif 193 194 #ifndef ENOEXEC 195 #error ENOEXEC not defined 196 #endif 197 198 #ifndef ENOLCK 199 #error ENOLCK not defined 200 #endif 201 202 #ifndef ENOLINK 203 #error ENOLINK not defined 204 #endif 205 206 #ifndef ENOMEM 207 #error ENOMEM not defined 208 #endif 209 210 #ifndef ENOMSG 211 #error ENOMSG not defined 212 #endif 213 214 #ifndef ENOPROTOOPT 215 #error ENOPROTOOPT not defined 216 #endif 217 218 #ifndef ENOSPC 219 #error ENOSPC not defined 220 #endif 221 222 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1) 223 #ifndef ENOSR 224 #error ENOSR not defined 225 #endif 226 #endif 227 228 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1) 229 #ifndef ENOSTR 230 #error ENOSTR not defined 231 #endif 232 #endif 233 234 #ifndef ENOSYS 235 #error ENOSYS not defined 236 #endif 237 238 #ifndef ENOTCONN 239 #error ENOTCONN not defined 240 #endif 241 242 #ifndef ENOTDIR 243 #error ENOTDIR not defined 244 #endif 245 246 #ifndef ENOTEMPTY 247 #error ENOTEMPTY not defined 248 #endif 249 250 #ifndef ENOTRECOVERABLE 251 #error ENOTRECOVERABLE not defined 252 #endif 253 254 #ifndef ENOTSOCK 255 #error ENOTSOCK not defined 256 #endif 257 258 #ifndef ENOTSUP 259 #error ENOTSUP not defined 260 #endif 261 262 #ifndef ENOTTY 263 #error ENOTTY not defined 264 #endif 265 266 #ifndef ENXIO 267 #error ENXIO not defined 268 #endif 269 270 #ifndef EOPNOTSUPP 271 #error EOPNOTSUPP not defined 272 #endif 273 274 #ifndef EOVERFLOW 275 #error EOVERFLOW not defined 276 #endif 277 278 #ifndef EOWNERDEAD 279 #error EOWNERDEAD not defined 280 #endif 281 282 #ifndef EPERM 283 #error EPERM not defined 284 #endif 285 286 #ifndef EPIPE 287 #error EPIPE not defined 288 #endif 289 290 #ifndef EPROTO 291 #error EPROTO not defined 292 #endif 293 294 #ifndef EPROTONOSUPPORT 295 #error EPROTONOSUPPORT not defined 296 #endif 297 298 #ifndef EPROTOTYPE 299 #error EPROTOTYPE not defined 300 #endif 301 302 #ifndef ERANGE 303 #error ERANGE not defined 304 #endif 305 306 #ifndef EROFS 307 #error EROFS not defined 308 #endif 309 310 #ifndef ESPIPE 311 #error ESPIPE not defined 312 #endif 313 314 #ifndef ESRCH 315 #error ESRCH not defined 316 #endif 317 318 #if (defined(_XOPEN_STREAMS) && _XOPEN_STREAMS != -1) 319 #ifndef ETIME 320 #error ETIME not defined 321 #endif 322 #endif 323 324 #ifndef ETIMEDOUT 325 #error ETIMEDOUT not defined 326 #endif 327 328 #ifndef ETXTBSY 329 #error ETXTBSY not defined 330 #endif 331 332 #ifndef EWOULDBLOCK 333 #error EWOULDBLOCK not defined 334 #endif 335 336 #ifndef EXDEV 337 #error EXDEV not defined 338 #endif 339 340 #ifndef errno 341 #error errno not defined 342 #endif 343 344 int main(int, char**) 345 { 346 347 return 0; 348 } 349