home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / mach / mig_errors.h < prev    next >
Text File  |  1992-07-29  |  2KB  |  73 lines

  1. /* 
  2.  * Mach !2ating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * Copyright (c) 1988 Carnegie-Mellon University
  5.  * Copyright (c) 1987 Carnegie-Mellon University
  6.  * All rights reserved.  The CMU software License Agreement specifies
  7.  * the terms and conditions for use and redistribution.
  8.  */
  9. /*
  10.  * HISTORY
  11.  * $Log:    mig_errors.h,v $
  12.  * Revision 2.5  89/03/09  20:21:26  rpd
  13.  *     More cleanup.
  14.  * 
  15.  * Revision 2.4  89/02/25  18:38:41  gm0w
  16.  *     Changes for cleanup.
  17.  * 
  18.  * Revision 2.3  89/02/07  01:01:21  mwyoung
  19.  * Relocated from sys/mig_errors.h
  20.  * 
  21.  * Revision 2.2  88/07/20  21:05:51  rpd
  22.  * Added definition of mig_symtab_t.
  23.  * 
  24.  *  2-Dec-87  David Golub (dbg) at Carnegie-Mellon University
  25.  *    Added MIG_ARRAY_TOO_LARGE.
  26.  *
  27.  * 25-May-87  Richard Draves (rpd) at Carnegie-Mellon University
  28.  *    Added definition of death_pill_t.
  29.  *
  30.  * 31-Jul-86  Michael Young (mwyoung) at Carnegie-Mellon University
  31.  *    Created.
  32.  *
  33.  */
  34. /*
  35.  * Mach Interface Generator errors
  36.  *
  37.  */
  38.  
  39. #ifndef    _MACH_MIG_ERRORS_H_
  40. #define _MACH_MIG_ERRORS_H_
  41.  
  42. #import <mach/kern_return.h>
  43. #import <mach/message.h>
  44.  
  45. #define MIG_TYPE_ERROR        -300        /* Type check failure */
  46. #define MIG_REPLY_MISMATCH    -301        /* Wrong return message ID */
  47. #define MIG_REMOTE_ERROR    -302        /* Server detected error */
  48. #define MIG_BAD_ID        -303        /* Bad message ID */
  49. #define MIG_BAD_ARGUMENTS    -304        /* Server found wrong arguments */
  50. #define MIG_NO_REPLY        -305        /* Server shouldn't reply */
  51. #define MIG_EXCEPTION        -306        /* Server raised exception */
  52. #define MIG_ARRAY_TOO_LARGE    -307        /* User specified array not large enough
  53.                            to hold returned array */
  54.  
  55. typedef struct {
  56.     msg_header_t    Head;
  57.     msg_type_t    RetCodeType;
  58.     kern_return_t    RetCode;
  59. } death_pill_t;
  60.  
  61. typedef struct mig_symtab {
  62.     char    *ms_routine_name;
  63.     int    ms_routine_number;
  64. #ifdef    hc
  65.     void
  66. #else
  67.     int
  68. #endif
  69.         (*ms_routine)();
  70. } mig_symtab_t;
  71.  
  72. #endif    _MACH_MIG_ERRORS_H_
  73.