1
0

errno.h 1.5 KB

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