Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-03 08:14:08

0001 // -*- C++ -*-
0002 //===----------------------------------------------------------------------===//
0003 //
0004 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0005 // See https://llvm.org/LICENSE.txt for license information.
0006 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0007 //
0008 //===----------------------------------------------------------------------===//
0009 
0010 #ifndef _LIBCPP_ERRNO_H
0011 #define _LIBCPP_ERRNO_H
0012 
0013 /*
0014     errno.h synopsis
0015 
0016 Macros:
0017 
0018     EDOM
0019     EILSEQ  // C99
0020     ERANGE
0021     errno
0022 
0023 */
0024 
0025 #if defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0026 #  include <__cxx03/errno.h>
0027 #else
0028 #  include <__config>
0029 
0030 #  if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
0031 #    pragma GCC system_header
0032 #  endif
0033 
0034 #  if __has_include_next(<errno.h>)
0035 #    include_next <errno.h>
0036 #  endif
0037 
0038 #  ifdef __cplusplus
0039 
0040 #    if !defined(EOWNERDEAD) || !defined(ENOTRECOVERABLE)
0041 
0042 #      ifdef ELAST
0043 
0044 static const int __elast1 = ELAST + 1;
0045 static const int __elast2 = ELAST + 2;
0046 
0047 #      else
0048 
0049 static const int __elast1 = 104;
0050 static const int __elast2 = 105;
0051 
0052 #      endif
0053 
0054 #      ifdef ENOTRECOVERABLE
0055 
0056 #        define EOWNERDEAD __elast1
0057 
0058 #        ifdef ELAST
0059 #          undef ELAST
0060 #          define ELAST EOWNERDEAD
0061 #        endif
0062 
0063 #      elif defined(EOWNERDEAD)
0064 
0065 #        define ENOTRECOVERABLE __elast1
0066 #        ifdef ELAST
0067 #          undef ELAST
0068 #          define ELAST ENOTRECOVERABLE
0069 #        endif
0070 
0071 #      else // defined(EOWNERDEAD)
0072 
0073 #        define EOWNERDEAD __elast1
0074 #        define ENOTRECOVERABLE __elast2
0075 #        ifdef ELAST
0076 #          undef ELAST
0077 #          define ELAST ENOTRECOVERABLE
0078 #        endif
0079 
0080 #      endif // defined(EOWNERDEAD)
0081 
0082 #    endif // !defined(EOWNERDEAD) || !defined(ENOTRECOVERABLE)
0083 
0084 //  supply errno values likely to be missing, particularly on Windows
0085 
0086 #    ifndef EAFNOSUPPORT
0087 #      define EAFNOSUPPORT 9901
0088 #    endif
0089 
0090 #    ifndef EADDRINUSE
0091 #      define EADDRINUSE 9902
0092 #    endif
0093 
0094 #    ifndef EADDRNOTAVAIL
0095 #      define EADDRNOTAVAIL 9903
0096 #    endif
0097 
0098 #    ifndef EISCONN
0099 #      define EISCONN 9904
0100 #    endif
0101 
0102 #    ifndef EBADMSG
0103 #      define EBADMSG 9905
0104 #    endif
0105 
0106 #    ifndef ECONNABORTED
0107 #      define ECONNABORTED 9906
0108 #    endif
0109 
0110 #    ifndef EALREADY
0111 #      define EALREADY 9907
0112 #    endif
0113 
0114 #    ifndef ECONNREFUSED
0115 #      define ECONNREFUSED 9908
0116 #    endif
0117 
0118 #    ifndef ECONNRESET
0119 #      define ECONNRESET 9909
0120 #    endif
0121 
0122 #    ifndef EDESTADDRREQ
0123 #      define EDESTADDRREQ 9910
0124 #    endif
0125 
0126 #    ifndef EHOSTUNREACH
0127 #      define EHOSTUNREACH 9911
0128 #    endif
0129 
0130 #    ifndef EIDRM
0131 #      define EIDRM 9912
0132 #    endif
0133 
0134 #    ifndef EMSGSIZE
0135 #      define EMSGSIZE 9913
0136 #    endif
0137 
0138 #    ifndef ENETDOWN
0139 #      define ENETDOWN 9914
0140 #    endif
0141 
0142 #    ifndef ENETRESET
0143 #      define ENETRESET 9915
0144 #    endif
0145 
0146 #    ifndef ENETUNREACH
0147 #      define ENETUNREACH 9916
0148 #    endif
0149 
0150 #    ifndef ENOBUFS
0151 #      define ENOBUFS 9917
0152 #    endif
0153 
0154 #    ifndef ENOLINK
0155 #      define ENOLINK 9918
0156 #    endif
0157 
0158 #    ifndef ENODATA
0159 #      define ENODATA 9919
0160 #    endif
0161 
0162 #    ifndef ENOMSG
0163 #      define ENOMSG 9920
0164 #    endif
0165 
0166 #    ifndef ENOPROTOOPT
0167 #      define ENOPROTOOPT 9921
0168 #    endif
0169 
0170 #    ifndef ENOSR
0171 #      define ENOSR 9922
0172 #    endif
0173 
0174 #    ifndef ENOTSOCK
0175 #      define ENOTSOCK 9923
0176 #    endif
0177 
0178 #    ifndef ENOSTR
0179 #      define ENOSTR 9924
0180 #    endif
0181 
0182 #    ifndef ENOTCONN
0183 #      define ENOTCONN 9925
0184 #    endif
0185 
0186 #    ifndef ENOTSUP
0187 #      define ENOTSUP 9926
0188 #    endif
0189 
0190 #    ifndef ECANCELED
0191 #      define ECANCELED 9927
0192 #    endif
0193 
0194 #    ifndef EINPROGRESS
0195 #      define EINPROGRESS 9928
0196 #    endif
0197 
0198 #    ifndef EOPNOTSUPP
0199 #      define EOPNOTSUPP 9929
0200 #    endif
0201 
0202 #    ifndef EWOULDBLOCK
0203 #      define EWOULDBLOCK 9930
0204 #    endif
0205 
0206 #    ifndef EOWNERDEAD
0207 #      define EOWNERDEAD 9931
0208 #    endif
0209 
0210 #    ifndef EPROTO
0211 #      define EPROTO 9932
0212 #    endif
0213 
0214 #    ifndef EPROTONOSUPPORT
0215 #      define EPROTONOSUPPORT 9933
0216 #    endif
0217 
0218 #    ifndef ENOTRECOVERABLE
0219 #      define ENOTRECOVERABLE 9934
0220 #    endif
0221 
0222 #    ifndef ETIME
0223 #      define ETIME 9935
0224 #    endif
0225 
0226 #    ifndef ETXTBSY
0227 #      define ETXTBSY 9936
0228 #    endif
0229 
0230 #    ifndef ETIMEDOUT
0231 #      define ETIMEDOUT 9938
0232 #    endif
0233 
0234 #    ifndef ELOOP
0235 #      define ELOOP 9939
0236 #    endif
0237 
0238 #    ifndef EOVERFLOW
0239 #      define EOVERFLOW 9940
0240 #    endif
0241 
0242 #    ifndef EPROTOTYPE
0243 #      define EPROTOTYPE 9941
0244 #    endif
0245 
0246 #    ifndef ENOSYS
0247 #      define ENOSYS 9942
0248 #    endif
0249 
0250 #    ifndef EINVAL
0251 #      define EINVAL 9943
0252 #    endif
0253 
0254 #    ifndef ERANGE
0255 #      define ERANGE 9944
0256 #    endif
0257 
0258 #    ifndef EILSEQ
0259 #      define EILSEQ 9945
0260 #    endif
0261 
0262 //  Windows Mobile doesn't appear to define these:
0263 
0264 #    ifndef E2BIG
0265 #      define E2BIG 9946
0266 #    endif
0267 
0268 #    ifndef EDOM
0269 #      define EDOM 9947
0270 #    endif
0271 
0272 #    ifndef EFAULT
0273 #      define EFAULT 9948
0274 #    endif
0275 
0276 #    ifndef EBADF
0277 #      define EBADF 9949
0278 #    endif
0279 
0280 #    ifndef EPIPE
0281 #      define EPIPE 9950
0282 #    endif
0283 
0284 #    ifndef EXDEV
0285 #      define EXDEV 9951
0286 #    endif
0287 
0288 #    ifndef EBUSY
0289 #      define EBUSY 9952
0290 #    endif
0291 
0292 #    ifndef ENOTEMPTY
0293 #      define ENOTEMPTY 9953
0294 #    endif
0295 
0296 #    ifndef ENOEXEC
0297 #      define ENOEXEC 9954
0298 #    endif
0299 
0300 #    ifndef EEXIST
0301 #      define EEXIST 9955
0302 #    endif
0303 
0304 #    ifndef EFBIG
0305 #      define EFBIG 9956
0306 #    endif
0307 
0308 #    ifndef ENAMETOOLONG
0309 #      define ENAMETOOLONG 9957
0310 #    endif
0311 
0312 #    ifndef ENOTTY
0313 #      define ENOTTY 9958
0314 #    endif
0315 
0316 #    ifndef EINTR
0317 #      define EINTR 9959
0318 #    endif
0319 
0320 #    ifndef ESPIPE
0321 #      define ESPIPE 9960
0322 #    endif
0323 
0324 #    ifndef EIO
0325 #      define EIO 9961
0326 #    endif
0327 
0328 #    ifndef EISDIR
0329 #      define EISDIR 9962
0330 #    endif
0331 
0332 #    ifndef ECHILD
0333 #      define ECHILD 9963
0334 #    endif
0335 
0336 #    ifndef ENOLCK
0337 #      define ENOLCK 9964
0338 #    endif
0339 
0340 #    ifndef ENOSPC
0341 #      define ENOSPC 9965
0342 #    endif
0343 
0344 #    ifndef ENXIO
0345 #      define ENXIO 9966
0346 #    endif
0347 
0348 #    ifndef ENODEV
0349 #      define ENODEV 9967
0350 #    endif
0351 
0352 #    ifndef ENOENT
0353 #      define ENOENT 9968
0354 #    endif
0355 
0356 #    ifndef ESRCH
0357 #      define ESRCH 9969
0358 #    endif
0359 
0360 #    ifndef ENOTDIR
0361 #      define ENOTDIR 9970
0362 #    endif
0363 
0364 #    ifndef ENOMEM
0365 #      define ENOMEM 9971
0366 #    endif
0367 
0368 #    ifndef EPERM
0369 #      define EPERM 9972
0370 #    endif
0371 
0372 #    ifndef EACCES
0373 #      define EACCES 9973
0374 #    endif
0375 
0376 #    ifndef EROFS
0377 #      define EROFS 9974
0378 #    endif
0379 
0380 #    ifndef EDEADLK
0381 #      define EDEADLK 9975
0382 #    endif
0383 
0384 #    ifndef EAGAIN
0385 #      define EAGAIN 9976
0386 #    endif
0387 
0388 #    ifndef ENFILE
0389 #      define ENFILE 9977
0390 #    endif
0391 
0392 #    ifndef EMFILE
0393 #      define EMFILE 9978
0394 #    endif
0395 
0396 #    ifndef EMLINK
0397 #      define EMLINK 9979
0398 #    endif
0399 
0400 #  endif // __cplusplus
0401 #endif   // defined(__cplusplus) && __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
0402 
0403 #endif // _LIBCPP_ERRNO_H