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