home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / mach / kern_return.h < prev    next >
Text File  |  1993-10-19  |  3KB  |  132 lines

  1. /* 
  2.  * Mach Operating 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:    kern_return.h,v $
  12.  * Revision 2.8  89/10/11  14:37:06  dlb
  13.  *     Add KERN_ABORTED for internal use only.
  14.  *     [89/03/07            dlb]
  15.  * 
  16.  * Revision 2.7  89/03/09  20:20:17  rpd
  17.  *     More cleanup.
  18.  * 
  19.  * Revision 2.6  89/02/25  18:13:36  gm0w
  20.  *     Changes for cleanup.
  21.  * 
  22.  * Revision 2.5  89/02/07  00:52:16  mwyoung
  23.  * Relocated from sys/kern_return.h
  24.  * 
  25.  * Revision 2.4  88/08/24  02:31:47  mwyoung
  26.  *     Adjusted include file references.
  27.  *     [88/08/17  02:15:07  mwyoung]
  28.  * 
  29.  * Revision 2.3  88/07/20  16:48:31  rpd
  30.  * Added KERN_NAME_EXISTS.
  31.  * Added KERN_ALREADY_IN_SET, KERN_NOT_IN_SET.
  32.  * Made comments legible.
  33.  * 
  34.  *  3-Feb-88  Michael Young (mwyoung) at Carnegie-Mellon University
  35.  *    Added memory management error conditions.
  36.  *    Documented.
  37.  *
  38.  * 23-Feb-87  Avadis Tevanian (avie) at Carnegie-Mellon University
  39.  *    Deleted kern_return_t casts on error codes so that they may be
  40.  *    used in assembly code.
  41.  *
  42.  * 17-Sep-85  Avadis Tevanian (avie) at Carnegie-Mellon University
  43.  *    Created.
  44.  */
  45. /*
  46.  *    File:    h/kern_return.h
  47.  *    Author:    Avadis Tevanian, Jr.
  48.  *    Copyright (C) 1985, Avadis Tevanian, Jr.
  49.  *
  50.  *    Kernel return codes.
  51.  *
  52.  */
  53.  
  54. #ifndef    _MACH_KERN_RETURN_H_
  55. #define _MACH_KERN_RETURN_H_
  56.  
  57. #import <mach/machine/kern_return.h>
  58.  
  59. #define KERN_SUCCESS            0
  60.  
  61. #define KERN_INVALID_ADDRESS        1
  62.         /* Specified address is not currently valid.
  63.          */
  64.  
  65. #define KERN_PROTECTION_FAILURE        2
  66.         /* Specified memory is valid, but does not permit the
  67.          * required forms of access.
  68.          */
  69.  
  70. #define KERN_NO_SPACE            3
  71.         /* The address range specified is already in use, or
  72.          * no address range of the size specified could be
  73.          * found.
  74.          */
  75.  
  76. #define KERN_INVALID_ARGUMENT        4
  77.         /* The function requested was not applicable to this
  78.          * type of argument, or an argument
  79.          */
  80.  
  81. #define KERN_FAILURE            5
  82.         /* The function could not be performed.  A catch-all.
  83.          */
  84.  
  85. #define KERN_RESOURCE_SHORTAGE        6
  86.         /* A system resource could not be allocated to fulfill
  87.          * this request.  This failure may not be permanent.
  88.          */
  89.  
  90. #define KERN_NOT_RECEIVER        7
  91.         /* The task in question does not hold receive rights
  92.          * for the port argument.
  93.          */
  94.  
  95. #define KERN_NO_ACCESS            8
  96.         /* Bogus access restriction.
  97.          */
  98.  
  99. #define KERN_MEMORY_FAILURE        9
  100.         /* During a page fault, the target address refers to a
  101.          * memory object that has been destroyed.  This
  102.          * failure is permanent.
  103.          */
  104.  
  105. #define KERN_MEMORY_ERROR        10
  106.         /* During a page fault, the memory object indicated
  107.          * that the data could not be returned.  This failure
  108.          * may be temporary; future attempts to access this
  109.          * same data may succeed, as defined by the memory
  110.          * object.
  111.          */
  112.  
  113. #define KERN_ALREADY_IN_SET        11
  114.         /* The port argument is already a member of a set.
  115.          */
  116.  
  117. #define KERN_NOT_IN_SET            12
  118.         /* The port argument is not a member of a set.
  119.          */
  120.  
  121. #define KERN_NAME_EXISTS        13
  122.         /* The task already has a translation for the name.
  123.          */
  124.  
  125. #define KERN_ABORTED            14
  126.         /* The operation was aborted.  Ipc code will
  127.          * catch this and reflect it as a message error.
  128.          */
  129.  
  130. #endif    _MACH_KERN_RETURN_H_
  131.  
  132.