err_mach.sub 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. * HISTORY
  28. * $Log$
  29. * Revision 1.1 1992/10/06 18:29:52 roland
  30. * entered into RCS
  31. *
  32. * Revision 2.3 92/04/01 19:38:05 rpd
  33. * Added MIG_DESTROY_REQUEST.
  34. * [92/03/09 rpd]
  35. *
  36. * Revision 2.2 92/01/16 00:09:05 rpd
  37. * Moved from user collection to mk collection.
  38. *
  39. * Revision 2.3 91/08/29 15:51:30 rpd
  40. * Added MIG_SERVER_DIED.
  41. * [91/08/21 rpd]
  42. *
  43. * Revision 2.2 91/03/27 16:05:37 mrt
  44. * First checkin
  45. *
  46. * Revision 2.2 91/03/18 17:39:03 rpd
  47. * Created.
  48. * [91/03/18 rpd]
  49. *
  50. */
  51. /*
  52. * File: err_mach_ipc.sub
  53. * Author: Richard Draves, Carnegie Mellon University
  54. * Date: Jan, 1990
  55. *
  56. * Error string definitions for the new Mach IPC
  57. */
  58. static char * err_codes_mach_send[] = {
  59. /* 0 */ "(ipc/send) no error",
  60. /* 1 */ "(ipc/send) send in progress",
  61. /* 2 */ "(ipc/send) invalid data",
  62. /* 3 */ "(ipc/send) invalid destination port",
  63. /* 4 */ "(ipc/send) timed out",
  64. /* 5 */ "(ipc/send) will notify",
  65. /* 6 */ "(ipc/send) notify in progress",
  66. /* 7 */ "(ipc/send) interrupted",
  67. /* 8 */ "(ipc/send) msg too small",
  68. /* 9 */ "(ipc/send) invalid reply port",
  69. /* 10 */ "(ipc/send) invalid port right",
  70. /* 11 */ "(ipc/send) invalid notify port",
  71. /* 12 */ "(ipc/send) invalid memory",
  72. /* 13 */ "(ipc/send) no msg buffer",
  73. /* 14 */ "(ipc/send) no notify possible",
  74. /* 15 */ "(ipc/send) invalid msg-type",
  75. /* 16 */ "(ipc/send) invalid msg-header",
  76. };
  77. static char * err_codes_mach_rcv[] = {
  78. /* 0 */ "(ipc/rcv) no error",
  79. /* 1 */ "(ipc/rcv) receive in progress",
  80. /* 2 */ "(ipc/rcv) invalid name",
  81. /* 3 */ "(ipc/rcv) timed out",
  82. /* 4 */ "(ipc/rcv) msg too large",
  83. /* 5 */ "(ipc/rcv) interrupted",
  84. /* 6 */ "(ipc/rcv) port changed",
  85. /* 7 */ "(ipc/rcv) invalid notify port",
  86. /* 8 */ "(ipc/rcv) invalid data",
  87. /* 9 */ "(ipc/rcv) port died",
  88. /* 10 */ "(ipc/rcv) port in set",
  89. /* 11 */ "(ipc/rcv) header error",
  90. /* 12 */ "(ipc/rcv) body error",
  91. };
  92. static char * err_codes_mach_mig[] = {
  93. /* 0 */ "(ipc/mig) client type check failure",
  94. /* 1 */ "(ipc/mig) wrong reply message ID",
  95. /* 2 */ "(ipc/mig) server detected error",
  96. /* 3 */ "(ipc/mig) bad request message ID",
  97. /* 4 */ "(ipc/mig) server type check failure",
  98. /* 5 */ "(ipc/mig) no reply should be sent",
  99. /* 6 */ "(ipc/mig) server raised exception",
  100. /* 7 */ "(ipc/mig) array not large enough",
  101. /* 8 */ "(ipc/mig) server died",
  102. /* 9 */ "(ipc/mig) destroy request with no reply",
  103. };
  104. /* err_mach_ipc subsystems */
  105. static struct error_subsystem err_mach_ipc_sub[] = {
  106. /* ipc/0; */
  107. {
  108. "(ipc/send)",
  109. errlib_count(err_codes_mach_send),
  110. err_codes_mach_send,
  111. },
  112. /* ipc/1; */
  113. {
  114. "(ipc/rcv)",
  115. errlib_count(err_codes_mach_rcv),
  116. err_codes_mach_rcv,
  117. },
  118. /* ipc/2 */
  119. {
  120. "(ipc/mig)",
  121. errlib_count(err_codes_mach_mig),
  122. err_codes_mach_mig,
  123. },
  124. };