errno.h 5.3 KB

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