1 #ifndef E_H 2 #define E_H 3 4 #include <errno.h> 5 6 extern const char *e_str(int); 7 8 #ifndef EPERM 9 #define EPERM (-5001) 10 #endif 11 #ifndef ENOENT 12 #define ENOENT (-5002) 13 #endif 14 #ifndef ESRCH 15 #define ESRCH (-5003) 16 #endif 17 #ifndef EINTR 18 #define EINTR (-5004) 19 #endif 20 #ifndef EIO 21 #define EIO (-5005) 22 #endif 23 #ifndef ENXIO 24 #define ENXIO (-5006) 25 #endif 26 #ifndef E2BIG 27 #define E2BIG (-5007) 28 #endif 29 #ifndef ENOEXEC 30 #define ENOEXEC (-5008) 31 #endif 32 #ifndef EBADF 33 #define EBADF (-5009) 34 #endif 35 #ifndef ECHILD 36 #define ECHILD (-5010) 37 #endif 38 #ifndef EAGAIN 39 #define EAGAIN (-5011) 40 #endif 41 #ifndef EWOULDBLOCK 42 #define EWOULDBLOCK (-7011) 43 #endif 44 #ifndef ENOMEM 45 #define ENOMEM (-5012) 46 #endif 47 #ifndef EACCES 48 #define EACCES (-5013) 49 #endif 50 #ifndef EFAULT 51 #define EFAULT (-5014) 52 #endif 53 #ifndef ENOTBLK 54 #define ENOTBLK (-5015) 55 #endif 56 #ifndef EBUSY 57 #define EBUSY (-5016) 58 #endif 59 #ifndef EEXIST 60 #define EEXIST (-5017) 61 #endif 62 #ifndef EXDEV 63 #define EXDEV (-5018) 64 #endif 65 #ifndef ENODEV 66 #define ENODEV (-5019) 67 #endif 68 #ifndef ENOTDIR 69 #define ENOTDIR (-5020) 70 #endif 71 #ifndef EISDIR 72 #define EISDIR (-5021) 73 #endif 74 #ifndef EINVAL 75 #define EINVAL (-5022) 76 #endif 77 #ifndef ENFILE 78 #define ENFILE (-5023) 79 #endif 80 #ifndef EMFILE 81 #define EMFILE (-5024) 82 #endif 83 #ifndef ENOTTY 84 #define ENOTTY (-5025) 85 #endif 86 #ifndef ETXTBSY 87 #define ETXTBSY (-5026) 88 #endif 89 #ifndef EFBIG 90 #define EFBIG (-5027) 91 #endif 92 #ifndef ENOSPC 93 #define ENOSPC (-5028) 94 #endif 95 #ifndef ESPIPE 96 #define ESPIPE (-5029) 97 #endif 98 #ifndef EROFS 99 #define EROFS (-5030) 100 #endif 101 #ifndef EMLINK 102 #define EMLINK (-5031) 103 #endif 104 #ifndef EPIPE 105 #define EPIPE (-5032) 106 #endif 107 #ifndef EDOM 108 #define EDOM (-5033) 109 #endif 110 #ifndef ERANGE 111 #define ERANGE (-5034) 112 #endif 113 #ifndef EDEADLK 114 #define EDEADLK (-5035) 115 #endif 116 #ifndef EDEADLOCK 117 #define EDEADLOCK (-7035) 118 #endif 119 #ifndef ENAMETOOLONG 120 #define ENAMETOOLONG (-5036) 121 #endif 122 #ifndef ENOLCK 123 #define ENOLCK (-5037) 124 #endif 125 #ifndef ENOSYS 126 #define ENOSYS (-5038) 127 #endif 128 #ifndef ENOTEMPTY 129 #define ENOTEMPTY (-5039) 130 #endif 131 #ifndef ELOOP 132 #define ELOOP (-5040) 133 #endif 134 #ifndef ENOMSG 135 #define ENOMSG (-5042) 136 #endif 137 #ifndef EIDRM 138 #define EIDRM (-5043) 139 #endif 140 #ifndef ECHRNG 141 #define ECHRNG (-5044) 142 #endif 143 #ifndef EL2NSYNC 144 #define EL2NSYNC (-5045) 145 #endif 146 #ifndef EL3HLT 147 #define EL3HLT (-5046) 148 #endif 149 #ifndef EL3RST 150 #define EL3RST (-5047) 151 #endif 152 #ifndef ELNRNG 153 #define ELNRNG (-5048) 154 #endif 155 #ifndef EUNATCH 156 #define EUNATCH (-5049) 157 #endif 158 #ifndef ENOCSI 159 #define ENOCSI (-5050) 160 #endif 161 #ifndef EL2HLT 162 #define EL2HLT (-5051) 163 #endif 164 #ifndef EBADE 165 #define EBADE (-5052) 166 #endif 167 #ifndef EBADR 168 #define EBADR (-5053) 169 #endif 170 #ifndef EXFULL 171 #define EXFULL (-5054) 172 #endif 173 #ifndef ENOANO 174 #define ENOANO (-5055) 175 #endif 176 #ifndef EBADRQC 177 #define EBADRQC (-5056) 178 #endif 179 #ifndef EBADSLT 180 #define EBADSLT (-5057) 181 #endif 182 #ifndef EBFONT 183 #define EBFONT (-5059) 184 #endif 185 #ifndef ENOSTR 186 #define ENOSTR (-5060) 187 #endif 188 #ifndef ENODATA 189 #define ENODATA (-5061) 190 #endif 191 #ifndef ETIME 192 #define ETIME (-5062) 193 #endif 194 #ifndef ENOSR 195 #define ENOSR (-5063) 196 #endif 197 #ifndef ENONET 198 #define ENONET (-5064) 199 #endif 200 #ifndef ENOPKG 201 #define ENOPKG (-5065) 202 #endif 203 #ifndef EREMOTE 204 #define EREMOTE (-5066) 205 #endif 206 #ifndef ENOLINK 207 #define ENOLINK (-5067) 208 #endif 209 #ifndef EADV 210 #define EADV (-5068) 211 #endif 212 #ifndef ESRMNT 213 #define ESRMNT (-5069) 214 #endif 215 #ifndef ECOMM 216 #define ECOMM (-5070) 217 #endif 218 #ifndef EPROTO 219 #define EPROTO (-5071) 220 #endif 221 #ifndef EMULTIHOP 222 #define EMULTIHOP (-5072) 223 #endif 224 #ifndef EDOTDOT 225 #define EDOTDOT (-5073) 226 #endif 227 #ifndef EBADMSG 228 #define EBADMSG (-5074) 229 #endif 230 #ifndef EOVERFLOW 231 #define EOVERFLOW (-5075) 232 #endif 233 #ifndef ENOTUNIQ 234 #define ENOTUNIQ (-5076) 235 #endif 236 #ifndef EBADFD 237 #define EBADFD (-5077) 238 #endif 239 #ifndef EREMCHG 240 #define EREMCHG (-5078) 241 #endif 242 #ifndef ELIBACC 243 #define ELIBACC (-5079) 244 #endif 245 #ifndef ELIBBAD 246 #define ELIBBAD (-5080) 247 #endif 248 #ifndef ELIBSCN 249 #define ELIBSCN (-5081) 250 #endif 251 #ifndef ELIBMAX 252 #define ELIBMAX (-5082) 253 #endif 254 #ifndef ELIBEXEC 255 #define ELIBEXEC (-5083) 256 #endif 257 #ifndef EILSEQ 258 #define EILSEQ (-5084) 259 #endif 260 #ifndef ERESTART 261 #define ERESTART (-5085) 262 #endif 263 #ifndef ESTRPIPE 264 #define ESTRPIPE (-5086) 265 #endif 266 #ifndef EUSERS 267 #define EUSERS (-5087) 268 #endif 269 #ifndef ENOTSOCK 270 #define ENOTSOCK (-5088) 271 #endif 272 #ifndef EDESTADDRREQ 273 #define EDESTADDRREQ (-5089) 274 #endif 275 #ifndef EMSGSIZE 276 #define EMSGSIZE (-5090) 277 #endif 278 #ifndef EPROTOTYPE 279 #define EPROTOTYPE (-5091) 280 #endif 281 #ifndef ENOPROTOOPT 282 #define ENOPROTOOPT (-5092) 283 #endif 284 #ifndef EPROTONOSUPPORT 285 #define EPROTONOSUPPORT (-5093) 286 #endif 287 #ifndef ESOCKTNOSUPPORT 288 #define ESOCKTNOSUPPORT (-5094) 289 #endif 290 #ifndef EOPNOTSUPP 291 #define EOPNOTSUPP (-5095) 292 #endif 293 #ifndef EPFNOSUPPORT 294 #define EPFNOSUPPORT (-5096) 295 #endif 296 #ifndef EAFNOSUPPORT 297 #define EAFNOSUPPORT (-5097) 298 #endif 299 #ifndef EADDRINUSE 300 #define EADDRINUSE (-5098) 301 #endif 302 #ifndef EADDRNOTAVAIL 303 #define EADDRNOTAVAIL (-5099) 304 #endif 305 #ifndef ENETDOWN 306 #define ENETDOWN (-5100) 307 #endif 308 #ifndef ENETUNREACH 309 #define ENETUNREACH (-5101) 310 #endif 311 #ifndef ENETRESET 312 #define ENETRESET (-5102) 313 #endif 314 #ifndef ECONNABORTED 315 #define ECONNABORTED (-5103) 316 #endif 317 #ifndef ECONNRESET 318 #define ECONNRESET (-5104) 319 #endif 320 #ifndef ENOBUFS 321 #define ENOBUFS (-5105) 322 #endif 323 #ifndef EISCONN 324 #define EISCONN (-5106) 325 #endif 326 #ifndef ENOTCONN 327 #define ENOTCONN (-5107) 328 #endif 329 #ifndef ESHUTDOWN 330 #define ESHUTDOWN (-5108) 331 #endif 332 #ifndef ETOOMANYREFS 333 #define ETOOMANYREFS (-5109) 334 #endif 335 #ifndef ETIMEDOUT 336 #define ETIMEDOUT (-5110) 337 #endif 338 #ifndef ECONNREFUSED 339 #define ECONNREFUSED (-5111) 340 #endif 341 #ifndef EHOSTDOWN 342 #define EHOSTDOWN (-5112) 343 #endif 344 #ifndef EHOSTUNREACH 345 #define EHOSTUNREACH (-5113) 346 #endif 347 #ifndef EALREADY 348 #define EALREADY (-5114) 349 #endif 350 #ifndef EINPROGRESS 351 #define EINPROGRESS (-5115) 352 #endif 353 #ifndef ESTALE 354 #define ESTALE (-5116) 355 #endif 356 #ifndef EUCLEAN 357 #define EUCLEAN (-5117) 358 #endif 359 #ifndef ENOTNAM 360 #define ENOTNAM (-5118) 361 #endif 362 #ifndef ENAVAIL 363 #define ENAVAIL (-5119) 364 #endif 365 #ifndef EISNAM 366 #define EISNAM (-5120) 367 #endif 368 #ifndef EREMOTEIO 369 #define EREMOTEIO (-5121) 370 #endif 371 #ifndef EDQUOT 372 #define EDQUOT (-5122) 373 #endif 374 #ifndef ENOMEDIUM 375 #define ENOMEDIUM (-5123) 376 #endif 377 #ifndef EMEDIUMTYPE 378 #define EMEDIUMTYPE (-5124) 379 #endif 380 #ifndef ECANCELED 381 #define ECANCELED (-5125) 382 #endif 383 #ifndef ENOKEY 384 #define ENOKEY (-5126) 385 #endif 386 #ifndef EKEYEXPIRED 387 #define EKEYEXPIRED (-5127) 388 #endif 389 #ifndef EKEYREVOKED 390 #define EKEYREVOKED (-5128) 391 #endif 392 #ifndef EKEYREJECTED 393 #define EKEYREJECTED (-5129) 394 #endif 395 #ifndef EOWNERDEAD 396 #define EOWNERDEAD (-5130) 397 #endif 398 #ifndef ENOTRECOVERABLE 399 #define ENOTRECOVERABLE (-5131) 400 #endif 401 #ifndef ERFKILL 402 #define ERFKILL (-5132) 403 #endif 404 #ifndef EPROCLIM 405 #define EPROCLIM (-6067) 406 #endif 407 #ifndef EBADRPC 408 #define EBADRPC (-6072) 409 #endif 410 #ifndef ERPCMISMATCH 411 #define ERPCMISMATCH (-6073) 412 #endif 413 #ifndef EPROGUNAVAIL 414 #define EPROGUNAVAIL (-6074) 415 #endif 416 #ifndef EPROGMISMATCH 417 #define EPROGMISMATCH (-6075) 418 #endif 419 #ifndef EPROCUNAVAIL 420 #define EPROCUNAVAIL (-6076) 421 #endif 422 #ifndef EFTYPE 423 #define EFTYPE (-6079) 424 #endif 425 #ifndef EAUTH 426 #define EAUTH (-6080) 427 #endif 428 #ifndef ENEEDAUTH 429 #define ENEEDAUTH (-6081) 430 #endif 431 #ifndef ENOATTR 432 #define ENOATTR (-6087) 433 #endif 434 #ifndef ENOTCAPABLE 435 #define ENOTCAPABLE (-6093) 436 #endif 437 438 /* XXX */ 439 #ifndef DNSNOENT 440 #define DNSNOENT (-7000) 441 #endif 442 443 #endif 444