err_ipc.sub 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. /*
  2. * Mach Operating System
  3. * Copyright (c) 1991,1990,1989,1988,1987 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.2 92/01/16 00:08:40 rpd
  33. * Moved from user collection to mk collection.
  34. *
  35. * Revision 2.2 91/03/27 16:05:16 mrt
  36. * First checkin
  37. *
  38. *
  39. */
  40. /*
  41. * File: err_ipc.sub
  42. * Author: Douglas Orr, Carnegie Mellon University
  43. * Date: Mar, 1988
  44. *
  45. * Definitions of error strings for original IPC
  46. */
  47. static char * err_codes_send[] = {
  48. "(ipc/send) unknown error", /* -100 */
  49. "(ipc/send) invalid memory", /* -101 */
  50. "(ipc/send) invalid port", /* -102 */
  51. "(ipc/send) timed out", /* -103 */
  52. "(ipc/send) unused error", /* -104 */
  53. "(ipc/send) will notify", /* -105 */
  54. "(ipc/send) notify in progress", /* -106 */
  55. "(ipc/send) kernel refused message", /* -107 */
  56. "(ipc/send) send interrupted", /* -108 */
  57. "(ipc/send) send message too large", /* -109 */
  58. "(ipc/send) send message too small", /* -110 */
  59. "(ipc/send) message size changed while being copied", /* -111 */
  60. };
  61. static char * err_codes_rcv[] = {
  62. "(ipc/rcv) unknown error", /* -200 */
  63. "(ipc/rcv) invalid memory", /* -201 */
  64. "(ipc/rcv) invalid port", /* -202 */
  65. "(ipc/rcv) receive timed out", /* -203 */
  66. "(ipc/rcv) message too large", /* -204 */
  67. "(ipc/rcv) no space for message data", /* -205 */
  68. "(ipc/rcv) only sender remaining", /* -206 */
  69. "(ipc/rcv) receive interrupted", /* -207 */
  70. "(ipc/rcv) port receiver changed or port became enabled", /* -208 */
  71. };
  72. static char * err_codes_mig[] = {
  73. "(ipc/mig) type check failure in message interface", /* 0 (-300) */
  74. "(ipc/mig) wrong return message ID", /* 1 */
  75. "(ipc/mig) server detected error", /* 2 */
  76. "(ipc/mig) bad message ID", /* 3 */
  77. "(ipc/mig) server found wrong arguments", /* 4 */
  78. "(ipc/mig) no reply should be sent", /* 5 */
  79. "(ipc/mig) server raised exception", /* 6 */
  80. "(ipc/mig) user specified array not large enough for return info", /* 7 */
  81. };
  82. /* err_ipc subsystems */
  83. static struct error_subsystem err_ipc_sub[] = {
  84. /* ipc/0; */
  85. {
  86. "(ipc/send)",
  87. errlib_count(err_codes_send),
  88. err_codes_send,
  89. },
  90. /* ipc/1; */
  91. {
  92. "(ipc/rcv)",
  93. errlib_count(err_codes_rcv),
  94. err_codes_rcv,
  95. },
  96. /* ipc/2 */
  97. {
  98. "(ipc/mig)",
  99. errlib_count(err_codes_mig),
  100. err_codes_mig,
  101. },
  102. };