2
0

target_errno.h 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. #ifndef SPARC_TARGET_ERRNO_H
  2. #define SPARC_TARGET_ERRNO_H
  3. /* Target errno definitions taken from asm-sparc/errno.h */
  4. #undef TARGET_EWOULDBLOCK
  5. #define TARGET_EWOULDBLOCK TARGET_EAGAIN /* Operation would block */
  6. #undef TARGET_EINPROGRESS
  7. #define TARGET_EINPROGRESS 36 /* Operation now in progress */
  8. #undef TARGET_EALREADY
  9. #define TARGET_EALREADY 37 /* Operation already in progress */
  10. #undef TARGET_ENOTSOCK
  11. #define TARGET_ENOTSOCK 38 /* Socket operation on non-socket */
  12. #undef TARGET_EDESTADDRREQ
  13. #define TARGET_EDESTADDRREQ 39 /* Destination address required */
  14. #undef TARGET_EMSGSIZE
  15. #define TARGET_EMSGSIZE 40 /* Message too long */
  16. #undef TARGET_EPROTOTYPE
  17. #define TARGET_EPROTOTYPE 41 /* Protocol wrong type for socket */
  18. #undef TARGET_ENOPROTOOPT
  19. #define TARGET_ENOPROTOOPT 42 /* Protocol not available */
  20. #undef TARGET_EPROTONOSUPPORT
  21. #define TARGET_EPROTONOSUPPORT 43 /* Protocol not supported */
  22. #undef TARGET_ESOCKTNOSUPPORT
  23. #define TARGET_ESOCKTNOSUPPORT 44 /* Socket type not supported */
  24. #undef TARGET_EOPNOTSUPP
  25. #define TARGET_EOPNOTSUPP 45 /* Op not supported on transport endpoint */
  26. #undef TARGET_EPFNOSUPPORT
  27. #define TARGET_EPFNOSUPPORT 46 /* Protocol family not supported */
  28. #undef TARGET_EAFNOSUPPORT
  29. #define TARGET_EAFNOSUPPORT 47 /* Address family not supported by protocol */
  30. #undef TARGET_EADDRINUSE
  31. #define TARGET_EADDRINUSE 48 /* Address already in use */
  32. #undef TARGET_EADDRNOTAVAIL
  33. #define TARGET_EADDRNOTAVAIL 49 /* Cannot assign requested address */
  34. #undef TARGET_ENETDOWN
  35. #define TARGET_ENETDOWN 50 /* Network is down */
  36. #undef TARGET_ENETUNREACH
  37. #define TARGET_ENETUNREACH 51 /* Network is unreachable */
  38. #undef TARGET_ENETRESET
  39. #define TARGET_ENETRESET 52 /* Net dropped connection because of reset */
  40. #undef TARGET_ECONNABORTED
  41. #define TARGET_ECONNABORTED 53 /* Software caused connection abort */
  42. #undef TARGET_ECONNRESET
  43. #define TARGET_ECONNRESET 54 /* Connection reset by peer */
  44. #undef TARGET_ENOBUFS
  45. #define TARGET_ENOBUFS 55 /* No buffer space available */
  46. #undef TARGET_EISCONN
  47. #define TARGET_EISCONN 56 /* Transport endpoint is already connected */
  48. #undef TARGET_ENOTCONN
  49. #define TARGET_ENOTCONN 57 /* Transport endpoint is not connected */
  50. #undef TARGET_ESHUTDOWN
  51. #define TARGET_ESHUTDOWN 58 /* No send after transport endpoint shutdown*/
  52. #undef TARGET_ETOOMANYREFS
  53. #define TARGET_ETOOMANYREFS 59 /* Too many references: cannot splice */
  54. #undef TARGET_ETIMEDOUT
  55. #define TARGET_ETIMEDOUT 60 /* Connection timed out */
  56. #undef TARGET_ECONNREFUSED
  57. #define TARGET_ECONNREFUSED 61 /* Connection refused */
  58. #undef TARGET_ELOOP
  59. #define TARGET_ELOOP 62 /* Too many symbolic links encountered */
  60. #undef TARGET_ENAMETOOLONG
  61. #define TARGET_ENAMETOOLONG 63 /* File name too long */
  62. #undef TARGET_EHOSTDOWN
  63. #define TARGET_EHOSTDOWN 64 /* Host is down */
  64. #undef TARGET_EHOSTUNREACH
  65. #define TARGET_EHOSTUNREACH 65 /* No route to host */
  66. #undef TARGET_ENOTEMPTY
  67. #define TARGET_ENOTEMPTY 66 /* Directory not empty */
  68. #undef TARGET_EPROCLIM
  69. #define TARGET_EPROCLIM 67 /* SUNOS: Too many processes */
  70. #undef TARGET_EUSERS
  71. #define TARGET_EUSERS 68 /* Too many users */
  72. #undef TARGET_EDQUOT
  73. #define TARGET_EDQUOT 69 /* Quota exceeded */
  74. #undef TARGET_ESTALE
  75. #define TARGET_ESTALE 70 /* Stale file handle */
  76. #undef TARGET_EREMOTE
  77. #define TARGET_EREMOTE 71 /* Object is remote */
  78. #undef TARGET_ENOSTR
  79. #define TARGET_ENOSTR 72 /* Device not a stream */
  80. #undef TARGET_ETIME
  81. #define TARGET_ETIME 73 /* Timer expired */
  82. #undef TARGET_ENOSR
  83. #define TARGET_ENOSR 74 /* Out of streams resources */
  84. #undef TARGET_ENOMSG
  85. #define TARGET_ENOMSG 75 /* No message of desired type */
  86. #undef TARGET_EBADMSG
  87. #define TARGET_EBADMSG 76 /* Not a data message */
  88. #undef TARGET_EIDRM
  89. #define TARGET_EIDRM 77 /* Identifier removed */
  90. #undef TARGET_EDEADLK
  91. #define TARGET_EDEADLK 78 /* Resource deadlock would occur */
  92. #undef TARGET_ENOLCK
  93. #define TARGET_ENOLCK 79 /* No record locks available */
  94. #undef TARGET_ENONET
  95. #define TARGET_ENONET 80 /* Machine is not on the network */
  96. #undef TARGET_ERREMOTE
  97. #define TARGET_ERREMOTE 81 /* SunOS: Too many lvls of remote in path */
  98. #undef TARGET_ENOLINK
  99. #define TARGET_ENOLINK 82 /* Link has been severed */
  100. #undef TARGET_EADV
  101. #define TARGET_EADV 83 /* Advertise error */
  102. #undef TARGET_ESRMNT
  103. #define TARGET_ESRMNT 84 /* Srmount error */
  104. #undef TARGET_ECOMM
  105. #define TARGET_ECOMM 85 /* Communication error on send */
  106. #undef TARGET_EPROTO
  107. #define TARGET_EPROTO 86 /* Protocol error */
  108. #undef TARGET_EMULTIHOP
  109. #define TARGET_EMULTIHOP 87 /* Multihop attempted */
  110. #undef TARGET_EDOTDOT
  111. #define TARGET_EDOTDOT 88 /* RFS specific error */
  112. #undef TARGET_EREMCHG
  113. #define TARGET_EREMCHG 89 /* Remote address changed */
  114. #undef TARGET_ENOSYS
  115. #define TARGET_ENOSYS 90 /* Function not implemented */
  116. #undef TARGET_ESTRPIPE
  117. #define TARGET_ESTRPIPE 91 /* Streams pipe error */
  118. #undef TARGET_EOVERFLOW
  119. #define TARGET_EOVERFLOW 92 /* Value too large for defined data type */
  120. #undef TARGET_EBADFD
  121. #define TARGET_EBADFD 93 /* File descriptor in bad state */
  122. #undef TARGET_ECHRNG
  123. #define TARGET_ECHRNG 94 /* Channel number out of range */
  124. #undef TARGET_EL2NSYNC
  125. #define TARGET_EL2NSYNC 95 /* Level 2 not synchronized */
  126. #undef TARGET_EL3HLT
  127. #define TARGET_EL3HLT 96 /* Level 3 halted */
  128. #undef TARGET_EL3RST
  129. #define TARGET_EL3RST 97 /* Level 3 reset */
  130. #undef TARGET_ELNRNG
  131. #define TARGET_ELNRNG 98 /* Link number out of range */
  132. #undef TARGET_EUNATCH
  133. #define TARGET_EUNATCH 99 /* Protocol driver not attached */
  134. #undef TARGET_ENOCSI
  135. #define TARGET_ENOCSI 100 /* No CSI structure available */
  136. #undef TARGET_EL2HLT
  137. #define TARGET_EL2HLT 101 /* Level 2 halted */
  138. #undef TARGET_EBADE
  139. #define TARGET_EBADE 102 /* Invalid exchange */
  140. #undef TARGET_EBADR
  141. #define TARGET_EBADR 103 /* Invalid request descriptor */
  142. #undef TARGET_EXFULL
  143. #define TARGET_EXFULL 104 /* Exchange full */
  144. #undef TARGET_ENOANO
  145. #define TARGET_ENOANO 105 /* No anode */
  146. #undef TARGET_EBADRQC
  147. #define TARGET_EBADRQC 106 /* Invalid request code */
  148. #undef TARGET_EBADSLT
  149. #define TARGET_EBADSLT 107 /* Invalid slot */
  150. #undef TARGET_EDEADLOCK
  151. #define TARGET_EDEADLOCK 108 /* File locking deadlock error */
  152. #undef TARGET_EBFONT
  153. #define TARGET_EBFONT 109 /* Bad font file format */
  154. #undef TARGET_ELIBEXEC
  155. #define TARGET_ELIBEXEC 110 /* Cannot exec a shared library directly */
  156. #undef TARGET_ENODATA
  157. #define TARGET_ENODATA 111 /* No data available */
  158. #undef TARGET_ELIBBAD
  159. #define TARGET_ELIBBAD 112 /* Accessing a corrupted shared library */
  160. #undef TARGET_ENOPKG
  161. #define TARGET_ENOPKG 113 /* Package not installed */
  162. #undef TARGET_ELIBACC
  163. #define TARGET_ELIBACC 114 /* Can not access a needed shared library */
  164. #undef TARGET_ENOTUNIQ
  165. #define TARGET_ENOTUNIQ 115 /* Name not unique on network */
  166. #undef TARGET_ERESTART
  167. #define TARGET_ERESTART 116 /* Interrupted syscall should be restarted */
  168. #undef TARGET_EUCLEAN
  169. #define TARGET_EUCLEAN 117 /* Structure needs cleaning */
  170. #undef TARGET_ENOTNAM
  171. #define TARGET_ENOTNAM 118 /* Not a XENIX named type file */
  172. #undef TARGET_ENAVAIL
  173. #define TARGET_ENAVAIL 119 /* No XENIX semaphores available */
  174. #undef TARGET_EISNAM
  175. #define TARGET_EISNAM 120 /* Is a named type file */
  176. #undef TARGET_EREMOTEIO
  177. #define TARGET_EREMOTEIO 121 /* Remote I/O error */
  178. #undef TARGET_EILSEQ
  179. #define TARGET_EILSEQ 122 /* Illegal byte sequence */
  180. #undef TARGET_ELIBMAX
  181. #define TARGET_ELIBMAX 123 /* Atmpt to link in too many shared libs */
  182. #undef TARGET_ELIBSCN
  183. #define TARGET_ELIBSCN 124 /* .lib section in a.out corrupted */
  184. #undef TARGET_ENOMEDIUM
  185. #define TARGET_ENOMEDIUM 125 /* No medium found */
  186. #undef TARGET_EMEDIUMTYPE
  187. #define TARGET_EMEDIUMTYPE 126 /* Wrong medium type */
  188. #undef TARGET_ECANCELED
  189. #define TARGET_ECANCELED 127 /* Operation Cancelled */
  190. #undef TARGET_ENOKEY
  191. #define TARGET_ENOKEY 128 /* Required key not available */
  192. #undef TARGET_EKEYEXPIRED
  193. #define TARGET_EKEYEXPIRED 129 /* Key has expired */
  194. #undef TARGET_EKEYREVOKED
  195. #define TARGET_EKEYREVOKED 130 /* Key has been revoked */
  196. #undef TARGET_EKEYREJECTED
  197. #define TARGET_EKEYREJECTED 131 /* Key was rejected by service */
  198. #undef TARGET_EOWNERDEAD
  199. #define TARGET_EOWNERDEAD 132 /* Owner died */
  200. #undef TARGET_ENOTRECOVERABLE
  201. #define TARGET_ENOTRECOVERABLE 133 /* State not recoverable */
  202. #undef TARGET_ERFKILL
  203. #define TARGET_ERFKILL 134 /* Operation not possible due to RF-kill */
  204. #undef TARGET_EHWPOISON
  205. #define TARGET_EHWPOISON 135 /* Memory page has hardware error */
  206. #endif