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