sys_errlist.c 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. #include <stddef.h>
  2. #if 0
  3. #include <errno.h>
  4. #endif
  5. /* This is a list of all known signal numbers. */
  6. const char * const sys_errlist[] = {
  7. "Success", /* 0 */
  8. "Operation not permitted", /* EPERM */
  9. "No such file or directory", /* ENOENT */
  10. "No such process", /* ESRCH */
  11. "Interrupted system call", /* EINTR */
  12. "I/O error", /* EIO */
  13. "No such device or address", /* ENXIO */
  14. "Arg list too long", /* E2BIG */
  15. "Exec format error", /* ENOEXEC */
  16. "Bad file number", /* EBADF */
  17. "No child processes", /* ECHILD */
  18. "Try again", /* EAGAIN */
  19. "Out of memory", /* ENOMEM */
  20. "Permission denied", /* EACCES */
  21. "Bad address", /* EFAULT */
  22. "Block device required", /* ENOTBLK */
  23. "Device or resource busy", /* EBUSY */
  24. "File exists", /* EEXIST */
  25. "Cross-device link", /* EXDEV */
  26. "No such device", /* ENODEV */
  27. "Not a directory", /* ENOTDIR */
  28. "Is a directory", /* EISDIR */
  29. "Invalid argument", /* EINVAL */
  30. "File table overflow", /* ENFILE */
  31. "Too many open files", /* EMFILE */
  32. "Not a typewriter", /* ENOTTY */
  33. "Text file busy", /* ETXTBSY */
  34. "File too large", /* EFBIG */
  35. "No space left on device", /* ENOSPC */
  36. "Illegal seek", /* ESPIPE */
  37. "Read-only file system", /* EROFS */
  38. "Too many links", /* EMLINK */
  39. "Broken pipe", /* EPIPE */
  40. "Math argument out of domain of func", /* EDOM */
  41. "Math result not representable", /* ERANGE */
  42. "Resource deadlock would occur", /* EDEADLK */
  43. "File name too long", /* ENAMETOOLONG */
  44. "No record locks available", /* ENOLCK */
  45. "Function not implemented", /* ENOSYS */
  46. "Directory not empty", /* ENOTEMPTY */
  47. "Too many symbolic links encountered", /* ELOOP */
  48. "Operation would block", /* EWOULDBLOCK */
  49. "No message of desired type", /* ENOMSG */
  50. "Identifier removed", /* EIDRM */
  51. "Channel number out of range", /* ECHRNG */
  52. "Level 2 not synchronized", /* EL2NSYNC */
  53. "Level 3 halted", /* EL3HLT */
  54. "Level 3 reset", /* EL3RST */
  55. "Link number out of range", /* ELNRNG */
  56. "Protocol driver not attached", /* EUNATCH */
  57. "No CSI structure available", /* ENOCSI */
  58. "Level 2 halted", /* EL2HLT */
  59. "Invalid exchange", /* EBADE */
  60. "Invalid request descriptor", /* EBADR */
  61. "Exchange full", /* EXFULL */
  62. "No anode", /* ENOANO */
  63. "Invalid request code", /* EBADRQC */
  64. "Invalid slot", /* EBADSLT */
  65. "File locking deadlock error", /* EDEADLOCK */
  66. "Bad font file format", /* EBFONT */
  67. "Device not a stream", /* ENOSTR */
  68. "No data available", /* ENODATA */
  69. "Timer expired", /* ETIME */
  70. "Out of streams resources", /* ENOSR */
  71. "Machine is not on the network", /* ENONET */
  72. "Package not installed", /* ENOPKG */
  73. "Object is remote", /* EREMOTE */
  74. "Link has been severed", /* ENOLINK */
  75. "Advertise error", /* EADV */
  76. "Srmount error", /* ESRMNT */
  77. "Communication error on send", /* ECOMM */
  78. "Protocol error", /* EPROTO */
  79. "Multihop attempted", /* EMULTIHOP */
  80. "RFS specific error", /* EDOTDOT */
  81. "Not a data message", /* EBADMSG */
  82. "Value too large for defined data type", /* EOVERFLOW */
  83. "Name not unique on network", /* ENOTUNIQ */
  84. "File descriptor in bad state", /* EBADFD */
  85. "Remote address changed", /* EREMCHG */
  86. "Can not access a needed shared library", /* ELIBACC */
  87. "Accessing a corrupted shared library", /* ELIBBAD */
  88. ".lib section in a.out corrupted", /* ELIBSCN */
  89. "Attempting to link in too many shared libraries", /* ELIBMAX */
  90. "Cannot exec a shared library directly", /* ELIBEXEC */
  91. "Illegal byte sequence", /* EILSEQ */
  92. "Interrupted system call should be restarted", /* ERESTART */
  93. "Streams pipe error", /* ESTRPIPE */
  94. "Too many users", /* EUSERS */
  95. "Socket operation on non-socket", /* ENOTSOCK */
  96. "Destination address required", /* EDESTADDRREQ */
  97. "Message too long", /* EMSGSIZE */
  98. "Protocol wrong type for socket", /* EPROTOTYPE */
  99. "Protocol not available", /* ENOPROTOOPT */
  100. "Protocol not supported", /* EPROTONOSUPPORT */
  101. "Socket type not supported", /* ESOCKTNOSUPPORT */
  102. "Operation not supported on transport endpoint", /* EOPNOTSUPP */
  103. "Protocol family not supported", /* EPFNOSUPPORT */
  104. "Address family not supported by protocol", /* EAFNOSUPPORT */
  105. "Address already in use", /* EADDRINUSE */
  106. "Cannot assign requested address", /* EADDRNOTAVAIL */
  107. "Network is down", /* ENETDOWN */
  108. "Network is unreachable", /* ENETUNREACH */
  109. "Network dropped connection because of reset", /* ENETRESET */
  110. "Software caused connection abort", /* ECONNABORTED */
  111. "Connection reset by peer", /* ECONNRESET */
  112. "No buffer space available", /* ENOBUFS */
  113. "Transport endpoint is already connected", /* EISCONN */
  114. "Transport endpoint is not connected", /* ENOTCONN */
  115. "Cannot send after transport endpoint shutdown", /* ESHUTDOWN */
  116. "Too many references: cannot splice", /* ETOOMANYREFS */
  117. "Connection timed out", /* ETIMEDOUT */
  118. "Connection refused", /* ECONNREFUSED */
  119. "Host is down", /* EHOSTDOWN */
  120. "No route to host", /* EHOSTUNREACH */
  121. "Operation already in progress", /* EALREADY */
  122. "Operation now in progress", /* EINPROGRESS */
  123. "Stale NFS file handle", /* ESTALE */
  124. "Structure needs cleaning", /* EUCLEAN */
  125. "Not a XENIX named type file", /* ENOTNAM */
  126. "No XENIX semaphores available", /* ENAVAIL */
  127. "Is a named type file", /* EISNAM */
  128. "Remote I/O error", /* EREMOTEIO */
  129. "Quota exceeded", /* EDQUOT */
  130. "No medium found", /* ENOMEDIUM */
  131. "Wrong medium type", /* EMEDIUMTYPE */
  132. NULL
  133. };
  134. #define NR_ERRORS ((sizeof (sys_errlist))/(sizeof(char *))-1)
  135. const int sys_nerr = NR_ERRORS;