errno_values.h 6.3 KB

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