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