errno.h 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 1995, 1999, 2001, 2002 by Ralf Baechle
  7. */
  8. #ifndef _ASM_ERRNO_H
  9. #define _ASM_ERRNO_H
  10. /*
  11. * These error numbers are intended to be MIPS ABI compatible
  12. */
  13. #include <asm-generic/errno-base.h>
  14. #define ENOMSG 35 /* No message of desired type */
  15. #define EIDRM 36 /* Identifier removed */
  16. #define ECHRNG 37 /* Channel number out of range */
  17. #define EL2NSYNC 38 /* Level 2 not synchronized */
  18. #define EL3HLT 39 /* Level 3 halted */
  19. #define EL3RST 40 /* Level 3 reset */
  20. #define ELNRNG 41 /* Link number out of range */
  21. #define EUNATCH 42 /* Protocol driver not attached */
  22. #define ENOCSI 43 /* No CSI structure available */
  23. #define EL2HLT 44 /* Level 2 halted */
  24. #define EDEADLK 45 /* Resource deadlock would occur */
  25. #define ENOLCK 46 /* No record locks available */
  26. #define EBADE 50 /* Invalid exchange */
  27. #define EBADR 51 /* Invalid request descriptor */
  28. #define EXFULL 52 /* Exchange full */
  29. #define ENOANO 53 /* No anode */
  30. #define EBADRQC 54 /* Invalid request code */
  31. #define EBADSLT 55 /* Invalid slot */
  32. #define EDEADLOCK 56 /* File locking deadlock error */
  33. #define EBFONT 59 /* Bad font file format */
  34. #define ENOSTR 60 /* Device not a stream */
  35. #define ENODATA 61 /* No data available */
  36. #define ETIME 62 /* Timer expired */
  37. #define ENOSR 63 /* Out of streams resources */
  38. #define ENONET 64 /* Machine is not on the network */
  39. #define ENOPKG 65 /* Package not installed */
  40. #define EREMOTE 66 /* Object is remote */
  41. #define ENOLINK 67 /* Link has been severed */
  42. #define EADV 68 /* Advertise error */
  43. #define ESRMNT 69 /* Srmount error */
  44. #define ECOMM 70 /* Communication error on send */
  45. #define EPROTO 71 /* Protocol error */
  46. #define EDOTDOT 73 /* RFS specific error */
  47. #define EMULTIHOP 74 /* Multihop attempted */
  48. #define EBADMSG 77 /* Not a data message */
  49. #define ENAMETOOLONG 78 /* File name too long */
  50. #define EOVERFLOW 79 /* Value too large for defined data type */
  51. #define ENOTUNIQ 80 /* Name not unique on network */
  52. #define EBADFD 81 /* File descriptor in bad state */
  53. #define EREMCHG 82 /* Remote address changed */
  54. #define ELIBACC 83 /* Can not access a needed shared library */
  55. #define ELIBBAD 84 /* Accessing a corrupted shared library */
  56. #define ELIBSCN 85 /* .lib section in a.out corrupted */
  57. #define ELIBMAX 86 /* Attempting to link in too many shared libraries */
  58. #define ELIBEXEC 87 /* Cannot exec a shared library directly */
  59. #define EILSEQ 88 /* Illegal byte sequence */
  60. #define ENOSYS 89 /* Function not implemented */
  61. #define ELOOP 90 /* Too many symbolic links encountered */
  62. #define ERESTART 91 /* Interrupted system call should be restarted */
  63. #define ESTRPIPE 92 /* Streams pipe error */
  64. #define ENOTEMPTY 93 /* Directory not empty */
  65. #define EUSERS 94 /* Too many users */
  66. #define ENOTSOCK 95 /* Socket operation on non-socket */
  67. #define EDESTADDRREQ 96 /* Destination address required */
  68. #define EMSGSIZE 97 /* Message too long */
  69. #define EPROTOTYPE 98 /* Protocol wrong type for socket */
  70. #define ENOPROTOOPT 99 /* Protocol not available */
  71. #define EPROTONOSUPPORT 120 /* Protocol not supported */
  72. #define ESOCKTNOSUPPORT 121 /* Socket type not supported */
  73. #define EOPNOTSUPP 122 /* Operation not supported on transport endpoint */
  74. #define EPFNOSUPPORT 123 /* Protocol family not supported */
  75. #define EAFNOSUPPORT 124 /* Address family not supported by protocol */
  76. #define EADDRINUSE 125 /* Address already in use */
  77. #define EADDRNOTAVAIL 126 /* Cannot assign requested address */
  78. #define ENETDOWN 127 /* Network is down */
  79. #define ENETUNREACH 128 /* Network is unreachable */
  80. #define ENETRESET 129 /* Network dropped connection because of reset */
  81. #define ECONNABORTED 130 /* Software caused connection abort */
  82. #define ECONNRESET 131 /* Connection reset by peer */
  83. #define ENOBUFS 132 /* No buffer space available */
  84. #define EISCONN 133 /* Transport endpoint is already connected */
  85. #define ENOTCONN 134 /* Transport endpoint is not connected */
  86. #define EUCLEAN 135 /* Structure needs cleaning */
  87. #define ENOTNAM 137 /* Not a XENIX named type file */
  88. #define ENAVAIL 138 /* No XENIX semaphores available */
  89. #define EISNAM 139 /* Is a named type file */
  90. #define EREMOTEIO 140 /* Remote I/O error */
  91. #define EINIT 141 /* Reserved */
  92. #define EREMDEV 142 /* Error 142 */
  93. #define ESHUTDOWN 143 /* Cannot send after transport endpoint shutdown */
  94. #define ETOOMANYREFS 144 /* Too many references: cannot splice */
  95. #define ETIMEDOUT 145 /* Connection timed out */
  96. #define ECONNREFUSED 146 /* Connection refused */
  97. #define EHOSTDOWN 147 /* Host is down */
  98. #define EHOSTUNREACH 148 /* No route to host */
  99. #define EWOULDBLOCK EAGAIN /* Operation would block */
  100. #define EALREADY 149 /* Operation already in progress */
  101. #define EINPROGRESS 150 /* Operation now in progress */
  102. #define ESTALE 151 /* Stale file handle */
  103. #define ECANCELED 158 /* AIO operation canceled */
  104. /*
  105. * These error are Linux extensions.
  106. */
  107. #define ENOMEDIUM 159 /* No medium found */
  108. #define EMEDIUMTYPE 160 /* Wrong medium type */
  109. #define ENOKEY 161 /* Required key not available */
  110. #define EKEYEXPIRED 162 /* Key has expired */
  111. #define EKEYREVOKED 163 /* Key has been revoked */
  112. #define EKEYREJECTED 164 /* Key was rejected by service */
  113. /* for robust mutexes */
  114. #define EOWNERDEAD 165 /* Owner died */
  115. #define ENOTRECOVERABLE 166 /* State not recoverable */
  116. #define ERFKILL 167 /* Operation not possible due to RF-kill */
  117. #define EHWPOISON 168 /* Memory page has hardware error */
  118. #define EDQUOT 1133 /* Quota exceeded */
  119. #endif /* _ASM_ERRNO_H */