errno_values.h 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #ifndef _BITS_ERRNO_VALUES_H
  2. #define _BITS_ERRNO_VALUES_H
  3. /* These error numbers are intended to be MIPS ABI compatible */
  4. #define EPERM 1 /* Operation not permitted */
  5. #define ENOENT 2 /* No such file or directory */
  6. #define ESRCH 3 /* No such process */
  7. #define EINTR 4 /* Interrupted system call */
  8. #define EIO 5 /* I/O error */
  9. #define ENXIO 6 /* No such device or address */
  10. #define E2BIG 7 /* Argument list too long */
  11. #define ENOEXEC 8 /* Exec format error */
  12. #define EBADF 9 /* Bad file number */
  13. #define ECHILD 10 /* No child processes */
  14. #define EAGAIN 11 /* Try again */
  15. #define ENOMEM 12 /* Out of memory */
  16. #define EACCES 13 /* Permission denied */
  17. #define EFAULT 14 /* Bad address */
  18. #define ENOTBLK 15 /* Block device required */
  19. #define EBUSY 16 /* Device or resource busy */
  20. #define EEXIST 17 /* File exists */
  21. #define EXDEV 18 /* Cross-device link */
  22. #define ENODEV 19 /* No such device */
  23. #define ENOTDIR 20 /* Not a directory */
  24. #define EISDIR 21 /* Is a directory */
  25. #define EINVAL 22 /* Invalid argument */
  26. #define ENFILE 23 /* File table overflow */
  27. #define EMFILE 24 /* Too many open files */
  28. #define ENOTTY 25 /* Not a typewriter */
  29. #define ETXTBSY 26 /* Text file busy */
  30. #define EFBIG 27 /* File too large */
  31. #define ENOSPC 28 /* No space left on device */
  32. #define ESPIPE 29 /* Illegal seek */
  33. #define EROFS 30 /* Read-only file system */
  34. #define EMLINK 31 /* Too many links */
  35. #define EPIPE 32 /* Broken pipe */
  36. #define EDOM 33 /* Math argument out of domain of func */
  37. #define ERANGE 34 /* Math result not representable */
  38. #define ENOMSG 35 /* No message of desired type */
  39. #define EIDRM 36 /* Identifier removed */
  40. #define ECHRNG 37 /* Channel number out of range */
  41. #define EL2NSYNC 38 /* Level 2 not synchronized */
  42. #define EL3HLT 39 /* Level 3 halted */
  43. #define EL3RST 40 /* Level 3 reset */
  44. #define ELNRNG 41 /* Link number out of range */
  45. #define EUNATCH 42 /* Protocol driver not attached */
  46. #define ENOCSI 43 /* No CSI structure available */
  47. #define EL2HLT 44 /* Level 2 halted */
  48. #define EDEADLK 45 /* Resource deadlock would occur */
  49. #define ENOLCK 46 /* No record locks available */
  50. #define EBADE 50 /* Invalid exchange */
  51. #define EBADR 51 /* Invalid request descriptor */
  52. #define EXFULL 52 /* Exchange full */
  53. #define ENOANO 53 /* No anode */
  54. #define EBADRQC 54 /* Invalid request code */
  55. #define EBADSLT 55 /* Invalid slot */
  56. #define EDEADLOCK 56 /* File locking deadlock error */
  57. #define EBFONT 59 /* Bad font file format */
  58. #define ENOSTR 60 /* Device not a stream */
  59. #define ENODATA 61 /* No data available */
  60. #define ETIME 62 /* Timer expired */
  61. #define ENOSR 63 /* Out of streams resources */
  62. #define ENONET 64 /* Machine is not on the network */
  63. #define ENOPKG 65 /* Package not installed */
  64. #define EREMOTE 66 /* Object is remote */
  65. #define ENOLINK 67 /* Link has been severed */
  66. #define EADV 68 /* Advertise error */
  67. #define ESRMNT 69 /* Srmount error */
  68. #define ECOMM 70 /* Communication error on send */
  69. #define EPROTO 71 /* Protocol error */
  70. #define EDOTDOT 73 /* RFS specific error */
  71. #define EMULTIHOP 74 /* Multihop attempted */
  72. #define EBADMSG 77 /* Not a data message */
  73. #define ENAMETOOLONG 78 /* File name too long */
  74. #define EOVERFLOW 79 /* Value too large for defined data type */
  75. #define ENOTUNIQ 80 /* Name not unique on network */
  76. #define EBADFD 81 /* File descriptor in bad state */
  77. #define EREMCHG 82 /* Remote address changed */
  78. #define ELIBACC 83 /* Can not access a needed shared library */
  79. #define ELIBBAD 84 /* Accessing a corrupted shared library */
  80. #define ELIBSCN 85 /* .lib section in a.out corrupted */
  81. #define ELIBMAX 86 /* Attempting to link in too many shared libraries */
  82. #define ELIBEXEC 87 /* Cannot exec a shared library directly */
  83. #define EILSEQ 88 /* Illegal byte sequence */
  84. #define ENOSYS 89 /* Function not implemented */
  85. #define ELOOP 90 /* Too many symbolic links encountered */
  86. #define ERESTART 91 /* Interrupted system call should be restarted */
  87. #define ESTRPIPE 92 /* Streams pipe error */
  88. #define ENOTEMPTY 93 /* Directory not empty */
  89. #define EUSERS 94 /* Too many users */
  90. #define ENOTSOCK 95 /* Socket operation on non-socket */
  91. #define EDESTADDRREQ 96 /* Destination address required */
  92. #define EMSGSIZE 97 /* Message too long */
  93. #define EPROTOTYPE 98 /* Protocol wrong type for socket */
  94. #define ENOPROTOOPT 99 /* Protocol not available */
  95. #define EPROTONOSUPPORT 120 /* Protocol not supported */
  96. #define ESOCKTNOSUPPORT 121 /* Socket type not supported */
  97. #define EOPNOTSUPP 122 /* Operation not supported on transport endpoint */
  98. #define EPFNOSUPPORT 123 /* Protocol family not supported */
  99. #define EAFNOSUPPORT 124 /* Address family not supported by protocol */
  100. #define EADDRINUSE 125 /* Address already in use */
  101. #define EADDRNOTAVAIL 126 /* Cannot assign requested address */
  102. #define ENETDOWN 127 /* Network is down */
  103. #define ENETUNREACH 128 /* Network is unreachable */
  104. #define ENETRESET 129 /* Network dropped connection because of reset */
  105. #define ECONNABORTED 130 /* Software caused connection abort */
  106. #define ECONNRESET 131 /* Connection reset by peer */
  107. #define ENOBUFS 132 /* No buffer space available */
  108. #define EISCONN 133 /* Transport endpoint is already connected */
  109. #define ENOTCONN 134 /* Transport endpoint is not connected */
  110. #define EUCLEAN 135 /* Structure needs cleaning */
  111. #define ENOTNAM 137 /* Not a XENIX named type file */
  112. #define ENAVAIL 138 /* No XENIX semaphores available */
  113. #define EISNAM 139 /* Is a named type file */
  114. #define EREMOTEIO 140 /* Remote I/O error */
  115. #define EINIT 141 /* Reserved */
  116. #define EREMDEV 142 /* Error 142 */
  117. #define ESHUTDOWN 143 /* Cannot send after transport endpoint shutdown */
  118. #define ETOOMANYREFS 144 /* Too many references: cannot splice */
  119. #define ETIMEDOUT 145 /* Connection timed out */
  120. #define ECONNREFUSED 146 /* Connection refused */
  121. #define EHOSTDOWN 147 /* Host is down */
  122. #define EHOSTUNREACH 148 /* No route to host */
  123. #define EWOULDBLOCK EAGAIN /* Operation would block */
  124. #define EALREADY 149 /* Operation already in progress */
  125. #define EINPROGRESS 150 /* Operation now in progress */
  126. #define ESTALE 151 /* Stale NFS file handle */
  127. #define ECANCELED 158 /* AIO operation canceled */
  128. /* These errors are Linux extensions. */
  129. #define ENOMEDIUM 159 /* No medium found */
  130. #define EMEDIUMTYPE 160 /* Wrong medium type */
  131. #define EDQUOT 1133 /* Quota exceeded */
  132. #endif /* _BITS_ERRNO_VALUES_H */