errno.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. #ifndef __ERRNO
  2. #define __ERRNO
  3. #pragma lib "/$M/lib/ape/libap.a"
  4. extern int errno;
  5. #define EDOM 1000
  6. #define ERANGE 1001
  7. #ifdef _POSIX_SOURCE
  8. #define E2BIG 1
  9. #define EACCES 2
  10. #define EAGAIN 3
  11. #define EBADF 4
  12. #define EBUSY 5
  13. #define ECHILD 6
  14. #define EDEADLK 7
  15. #define EEXIST 8
  16. #define EFAULT 9
  17. #define EFBIG 10
  18. #define EINTR 11
  19. #define EINVAL 12
  20. #define EIO 13
  21. #define EISDIR 14
  22. #define EMFILE 15
  23. #define EMLINK 16
  24. #define ENAMETOOLONG 17
  25. #define ENFILE 18
  26. #define ENODEV 19
  27. #define ENOENT 20
  28. #define ENOEXEC 21
  29. #define ENOLCK 22
  30. #define ENOMEM 23
  31. #define ENOSPC 24
  32. #define ENOSYS 25
  33. #define ENOTDIR 26
  34. #define ENOTEMPTY 27
  35. #define ENOTTY 28
  36. #define ENXIO 29
  37. #define EPERM 30
  38. #define EPIPE 31
  39. #define EROFS 32
  40. #define ESPIPE 33
  41. #define ESRCH 34
  42. #define EXDEV 35
  43. /* bsd networking software */
  44. #define ENOTSOCK 36
  45. #define EPROTONOSUPPORT 37
  46. #define EPROTOTYPE 37
  47. #define ECONNREFUSED 38
  48. #define EAFNOSUPPORT 39
  49. #define ENOBUFS 40
  50. #define EOPNOTSUPP 41
  51. #define EADDRINUSE 42
  52. #define EDESTADDRREQ 43
  53. #define EMSGSIZE 44
  54. #define ENOPROTOOPT 45
  55. #define ESOCKTNOSUPPORT 46
  56. #define EPFNOSUPPORT 47
  57. #define EADDRNOTAVAIL 48
  58. #define ENETDOWN 49
  59. #define ENETUNREACH 50
  60. #define ENETRESET 51
  61. #define ECONNABORTED 52
  62. #define EISCON 53
  63. #define ENOTCONN 54
  64. #define ESHUTDOWN 55
  65. #define ETOOMANYREFS 56
  66. #define ETIMEDOUT 57
  67. #define EHOSTDOWN 58
  68. #define EHOSTUNREACH 59
  69. #define EGREG 60
  70. /* These added in 1003.1b-1993 */
  71. #define ECANCELED 61
  72. #define EINPROGRESS 62
  73. #endif /* _POSIX_SOURCE */
  74. #endif /* __ERRNO */