errno_values.h 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. #ifndef _BITS_ERRNO_VALUES_H
  2. #define _BITS_ERRNO_VALUES_H
  3. #define EPERM 1 /* Operation not permitted */
  4. #define ENOENT 2 /* No such file or directory */
  5. #define ESRCH 3 /* No such process */
  6. #define EINTR 4 /* Interrupted system call */
  7. #define EIO 5 /* I/O error */
  8. #define ENXIO 6 /* No such device or address */
  9. #define E2BIG 7 /* Arg list too long */
  10. #define ENOEXEC 8 /* Exec format error */
  11. #define EBADF 9 /* Bad file number */
  12. #define ECHILD 10 /* No child processes */
  13. #define EDEADLK 11 /* Resource deadlock would occur */
  14. #define ENOMEM 12 /* Out of memory */
  15. #define EACCES 13 /* Permission denied */
  16. #define EFAULT 14 /* Bad address */
  17. #define ENOTBLK 15 /* Block device required */
  18. #define EBUSY 16 /* Device or resource busy */
  19. #define EEXIST 17 /* File exists */
  20. #define EXDEV 18 /* Cross-device link */
  21. #define ENODEV 19 /* No such device */
  22. #define ENOTDIR 20 /* Not a directory */
  23. #define EISDIR 21 /* Is a directory */
  24. #define EINVAL 22 /* Invalid argument */
  25. #define ENFILE 23 /* File table overflow */
  26. #define EMFILE 24 /* Too many open files */
  27. #define ENOTTY 25 /* Not a typewriter */
  28. #define ETXTBSY 26 /* Text file busy */
  29. #define EFBIG 27 /* File too large */
  30. #define ENOSPC 28 /* No space left on device */
  31. #define ESPIPE 29 /* Illegal seek */
  32. #define EROFS 30 /* Read-only file system */
  33. #define EMLINK 31 /* Too many links */
  34. #define EPIPE 32 /* Broken pipe */
  35. #define EDOM 33 /* Math argument out of domain of func */
  36. #define ERANGE 34 /* Math result not representable */
  37. #define EAGAIN 35 /* Try again */
  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 /* Operation 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 /* Network 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 /* Cannot 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 EUSERS 68 /* Too many users */
  71. #define EDQUOT 69 /* Quota exceeded */
  72. #define ESTALE 70 /* Stale NFS file handle */
  73. #define EREMOTE 71 /* Object is remote */
  74. #define ENOLCK 77 /* No record locks available */
  75. #define ENOSYS 78 /* Function not implemented */
  76. #define ENOMSG 80 /* No message of desired type */
  77. #define EIDRM 81 /* Identifier removed */
  78. #define ENOSR 82 /* Out of streams resources */
  79. #define ETIME 83 /* Timer expired */
  80. #define EBADMSG 84 /* Not a data message */
  81. #define EPROTO 85 /* Protocol error */
  82. #define ENODATA 86 /* No data available */
  83. #define ENOSTR 87 /* Device not a stream */
  84. #define ENOPKG 92 /* Package not installed */
  85. #define EILSEQ 116 /* Illegal byte sequence */
  86. #define ECHRNG 88 /* Channel number out of range */
  87. #define EL2NSYNC 89 /* Level 2 not synchronized */
  88. #define EL3HLT 90 /* Level 3 halted */
  89. #define EL3RST 91 /* Level 3 reset */
  90. #define ELNRNG 93 /* Link number out of range */
  91. #define EUNATCH 94 /* Protocol driver not attached */
  92. #define ENOCSI 95 /* No CSI structure available */
  93. #define EL2HLT 96 /* Level 2 halted */
  94. #define EBADE 97 /* Invalid exchange */
  95. #define EBADR 98 /* Invalid request descriptor */
  96. #define EXFULL 99 /* Exchange full */
  97. #define ENOANO 100 /* No anode */
  98. #define EBADRQC 101 /* Invalid request code */
  99. #define EBADSLT 102 /* Invalid slot */
  100. #define EDEADLOCK EDEADLK
  101. #define EBFONT 104 /* Bad font file format */
  102. #define ENONET 105 /* Machine is not on the network */
  103. #define ENOLINK 106 /* Link has been severed */
  104. #define EADV 107 /* Advertise error */
  105. #define ESRMNT 108 /* Srmount error */
  106. #define ECOMM 109 /* Communication error on send */
  107. #define EMULTIHOP 110 /* Multihop attempted */
  108. #define EDOTDOT 111 /* RFS specific error */
  109. #define EOVERFLOW 112 /* Value too large for defined data type */
  110. #define ENOTUNIQ 113 /* Name not unique on network */
  111. #define EBADFD 114 /* File descriptor in bad state */
  112. #define EREMCHG 115 /* Remote address changed */
  113. #define EUCLEAN 117 /* Structure needs cleaning */
  114. #define ENOTNAM 118 /* Not a XENIX named type file */
  115. #define ENAVAIL 119 /* No XENIX semaphores available */
  116. #define EISNAM 120 /* Is a named type file */
  117. #define EREMOTEIO 121 /* Remote I/O error */
  118. #define ELIBACC 122 /* Can not access a needed shared library */
  119. #define ELIBBAD 123 /* Accessing a corrupted shared library */
  120. #define ELIBSCN 124 /* .lib section in a.out corrupted */
  121. #define ELIBMAX 125 /* Attempting to link in too many shared libraries */
  122. #define ELIBEXEC 126 /* Cannot exec a shared library directly */
  123. #define ERESTART 127 /* Interrupted system call should be restarted */
  124. #define ESTRPIPE 128 /* Streams pipe error */
  125. #define ENOMEDIUM 129 /* No medium found */
  126. #define EMEDIUMTYPE 130 /* Wrong medium type */
  127. #endif /* _BITS_ERRNO_VALUES_H */