err_kern.sub 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. /*
  2. * Mach Operating System
  3. * Copyright (c) 1991,1990,1989 Carnegie Mellon University
  4. * All Rights Reserved.
  5. *
  6. * Permission to use, copy, modify and distribute this software and its
  7. * documentation is hereby granted, provided that both the copyright
  8. * notice and this permission notice appear in all copies of the
  9. * software, derivative works or modified versions, and any portions
  10. * thereof, and that both notices appear in supporting documentation.
  11. *
  12. * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
  13. * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  14. * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  15. *
  16. * Carnegie Mellon requests users of this software to return to
  17. *
  18. * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
  19. * School of Computer Science
  20. * Carnegie Mellon University
  21. * Pittsburgh PA 15213-3890
  22. *
  23. * any improvements or extensions that they make and grant Carnegie the
  24. * rights to redistribute these changes.
  25. */
  26. /*
  27. * (pre-GNU) HISTORY
  28. *
  29. * Revision 2.3 92/04/01 19:38:02 rpd
  30. * Added err_codes_device.
  31. * [92/03/09 rpd]
  32. *
  33. * Revision 2.2 92/01/16 00:08:50 rpd
  34. * Moved from user collection to mk collection.
  35. *
  36. * Revision 2.3 91/08/29 15:51:22 rpd
  37. * Updated err_codes_kern.
  38. * [91/08/15 rpd]
  39. *
  40. * Revision 2.2 91/03/27 16:05:27 mrt
  41. * First checkin
  42. *
  43. */
  44. /*
  45. * File: err_kern.sub
  46. * Author: Douglas Orr, Carnegie Mellon University
  47. * Date: Mar, 1988
  48. *
  49. * error codes for Mach and Unix kernels
  50. */
  51. static char * err_codes_kern[] = {
  52. "Success",
  53. "(os/kern) invalid address",
  54. "(os/kern) protection failure",
  55. "(os/kern) no space available",
  56. "(os/kern) invalid argument",
  57. "(os/kern) failure",
  58. "(os/kern) resource shortage",
  59. "(os/kern) not receiver",
  60. "(os/kern) no access",
  61. "(os/kern) memory failure",
  62. "(os/kern) memory error",
  63. "(os/kern) already in set",
  64. "(os/kern) not in set",
  65. "(os/kern) name exists",
  66. "(os/kern) aborted",
  67. "(os/kern) invalid name",
  68. "(os/kern) invalid task",
  69. "(os/kern) invalid right",
  70. "(os/kern) invalid value",
  71. "(os/kern) urefs overflow",
  72. "(os/kern) invalid capability",
  73. "(os/kern) right exists",
  74. "(os/kern) invalid host",
  75. "(os/kern) memory present",
  76. "(os/kern) write protection failure",
  77. "(os/kern) Unknown error code: 25",
  78. "(os/kern) object is terminated",
  79. "(os/kern) operation timed out",
  80. "(os/kern) operation was interrupted",
  81. };
  82. static char * err_codes_device[] = {
  83. "(os/device) hardware IO error",
  84. "(os/device) operation would block",
  85. "(os/device) no such device",
  86. "(os/device) device already open",
  87. "(os/device) device is shut down",
  88. "(os/device) invalid operation",
  89. "(os/device) invalid record number",
  90. "(os/device) invalid IO size",
  91. "(os/device) memory allocation failure",
  92. "(os/device) read only",
  93. };
  94. static char * err_codes_unix[] = {
  95. NO_SUCH_ERROR,
  96. "(os/unix) no rights to object",
  97. "(os/unix) file or directory does not exist",
  98. "(os/unix) no such process",
  99. "(os/unix) interrupted system call",
  100. "(os/unix) i/o error",
  101. "(os/unix) device does not exist",
  102. "(os/unix) argument list is too long",
  103. "(os/unix) invalid executable object format",
  104. "(os/unix) bad file descriptor number",
  105. "(os/unix) no child processes are present",
  106. "(os/unix) no more processes are available",
  107. "(os/unix) insufficient memory",
  108. "(os/unix) access denied",
  109. "(os/unix) memory access fault",
  110. "(os/unix) block device required for operation",
  111. "(os/unix) mount device busy",
  112. "(os/unix) file already exists",
  113. "(os/unix) cross device link",
  114. "(os/unix) device does not exist",
  115. "(os/unix) object is not a directory",
  116. "(os/unix) object is a directory",
  117. "(os/unix) invalid argument",
  118. "(os/unix) internal file table overflow",
  119. "(os/unix) maximum number of open files reached",
  120. "(os/unix) object is not a tty-like device",
  121. "(os/unix) executable object is in use",
  122. "(os/unix) file is too large",
  123. "(os/unix) no space is left on device",
  124. "(os/unix) illegal seek attempt",
  125. "(os/unix) read-only file system",
  126. "(os/unix) too many links",
  127. "(os/unix) broken pipe",
  128. "(os/unix) argument is too large",
  129. "(os/unix) result is out of range",
  130. "(os/unix) operation on device would block",
  131. "(os/unix) operation is now in progress",
  132. "(os/unix) operation is already in progress",
  133. "(os/unix) socket operation attempted on non-socket object",
  134. "(os/unix) destination address is required",
  135. "(os/unix) message is too long",
  136. "(os/unix) protocol type is incorrect for socket",
  137. "(os/unix) protocol type is not available",
  138. "(os/unix) protocol type is not supported",
  139. "(os/unix) socket type is not supported",
  140. "(os/unix) operation is not supported on sockets",
  141. "(os/unix) protocol family is not supported",
  142. "(os/unix) address family is not supported by protocol family",
  143. "(os/unix) address is already in use",
  144. "(os/unix) can't assign requested address",
  145. "(os/unix) network is down",
  146. "(os/unix) network is unreachable",
  147. "(os/unix) network dropped connection on reset",
  148. "(os/unix) software aborted connection",
  149. "(os/unix) connection reset by peer",
  150. "(os/unix) no buffer space is available",
  151. "(os/unix) socket is already connected",
  152. "(os/unix) socket is not connected",
  153. "(os/unix) can't send after socket shutdown",
  154. "(os/unix) too many references; can't splice",
  155. "(os/unix) connection timed out",
  156. "(os/unix) connection was refused",
  157. "(os/unix) too many levels of symbolic links",
  158. "(os/unix) file name exceeds system maximum limit",
  159. "(os/unix) host is down",
  160. "(os/unix) there is no route to host",
  161. "(os/unix) directory is not empty",
  162. "(os/unix) quota on number of processes exceeded",
  163. "(os/unix) quota on number of users exceeded",
  164. "(os/unix) quota on available disk space exceeded",
  165. };
  166. static struct error_subsystem err_kern_sub[] = {
  167. {
  168. "(os/kern)",
  169. errlib_count(err_codes_kern),
  170. err_codes_kern,
  171. },
  172. {
  173. "(os/device)",
  174. errlib_count(err_codes_device),
  175. err_codes_device,
  176. },
  177. {
  178. "(os/?)",
  179. 0,
  180. },
  181. {
  182. "(os/unix)",
  183. errlib_count(err_codes_unix),
  184. err_codes_unix,
  185. },
  186. };