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

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * Copyright (c) 1988 Carnegie-Mellon University
  5.  * All rights reserved.  The CMU software License Agreement specifies
  6.  * the terms and conditions for use and redistribution.
  7.  */
  8. /*
  9.  * HISTORY
  10.  * $Log:    mach_types.h,v $
  11.  * 19-Jul-90  Gregg Kellogg (gk) at NeXT
  12.  *    Added THREAD_NULL and friends.
  13.  *
  14.  * Revision 2.10  90/07/20  08:49:00  mrt
  15.  *     processor_set_array_t --> processor_set_name_array_t.
  16.  *     [90/07/13            dlb]
  17.  * 
  18.  * 22-Mar-90  Gregg Kellogg (gk) at NeXT
  19.  *    Added typedef of vm_task_t for kernel use.
  20.  *
  21.  * Revision 2.8  89/10/11  14:39:45  dlb
  22.  *     Kernel monitor support.
  23.  *     Host, processor, and processor set support.
  24.  * 
  25.  * Revision 2.7  89/05/21  22:45:54  mrt
  26.  *     Moved the in-kernel conversion functions to 
  27.  *     kern/type_conversion.h and removed the non-kernel
  28.  *     include of mach_init.h. It is now included in the user
  29.  *     level mach.h
  30.  *     [89/05/20            mrt]
  31.  * 
  32.  * 
  33.  * Revision 2.6  89/05/06  02:58:04  rpd
  34.  *     Include <mach/std_types.h> for backwards comp!2ility.
  35.  *     [89/05/05  21:00:43  rpd]
  36.  * 
  37.  * Revision 2.5  89/04/08  23:40:37  rpd
  38.  *     Removed the memory_object/msg_send_from_kernel hack.
  39.  *     [89/04/08  22:56:08  rpd]
  40.  * 
  41.  * Revision 2.4  89/03/09  20:20:59  rpd
  42.  *     More cleanup.
  43.  * 
  44.  * Revision 2.3  89/02/25  18:38:04  gm0w
  45.  *     Changes for cleanup.
  46.  * 
  47.  * Revision 2.2  89/01/15  16:30:50  rpd
  48.  *     Moved from kern/ to mach/.
  49.  *     [89/01/15  14:35:53  rpd]
  50.  * 
  51.  * Revision 2.10  89/01/12  11:15:18  rpd
  52.  *     Removed pointer_t declaration; it belongs in std_types.h.
  53.  * 
  54.  * Revision 2.9  89/01/12  07:57:53  rpd
  55.  *     Moved basic stuff to std_types.h.  Removed debugging definitions.
  56.  *     Moved io_buf definitions to device_types.h.
  57.  *     [89/01/12  04:51:54  rpd]
  58.  * 
  59.  * Revision 2.8  89/01/04  13:37:34  rpd
  60.  *     Include <kern/fpa_counters.h>, for fpa_counters_t.
  61.  *     [89/01/01  15:03:52  rpd]
  62.  * 
  63.  * Revision 2.7  88/09/25  22:15:28  rpd
  64.  *     Changed sys/callout.h to kern/callout_statistics.h.
  65.  *     [88/09/09  14:00:19  rpd]
  66.  *     
  67.  *     Changed includes to the new style.
  68.  *     Added include of sys/callout.h.
  69.  *     [88/09/09  04:47:42  rpd]
  70.  * 
  71.  * Revision 2.6  88/08/06  18:22:34  rpd
  72.  * Changed sys/mach_ipc_netport.h to kern/ipc_netport.h.
  73.  * 
  74.  * Revision 2.5  88/07/21  00:36:06  rpd
  75.  * Added include of ipc_statistics.h.
  76.  * 
  77.  * Revision 2.4  88/07/17  19:33:20  mwyoung
  78.  * *** empty log message ***
  79.  * 
  80.  * 29-Jun-88  Michael Young (mwyoung) at Carnegie-Mellon University
  81.  *    Use new <mach/memory_object.h>.
  82.  *
  83.  *  9-Apr-88  Daniel Julin (dpj) at Carnegie-Mellon University
  84.  *    Changed mach_ipc_vmtp.h to mach_ipc_netport.h.
  85.  *
  86.  *  1-Mar-88  Mary Thompson (mrt) at Carnegie Mellon
  87.  *    Added a conditional on _MACH_INIT_ before the include
  88.  *    of mach_init.h so that the kernel make of mach_user_internal
  89.  *    would not include mach_init.h
  90.  *
  91.  * 18-Jan-88  David Golub (dbg) at Carnegie-Mellon University
  92.  *    Added includes of task_info, thread_info, task_special_ports,
  93.  *    thread_special_ports for new interfaces.
  94.  *
  95.  * 12-Dec-87  Michael Young (mwyoung) at Carnegie-Mellon University
  96.  *    Reduced old history.
  97.  */
  98. /*
  99.  *    File:    mach/mach_types.h
  100.  *    Author:    Avadis Tevanian, Jr., Michael Wayne Young
  101.  *    Copyright (C) 1986, Avadis Tevanian, Jr., Michael Wayne Young
  102.  *
  103.  *    Mach external interface definitions.
  104.  *
  105.  */
  106.  
  107. #ifndef    _MACH_MACH_TYPES_H_
  108. #define _MACH_MACH_TYPES_H_
  109.  
  110. #import <mach/port.h>
  111. #import <mach/vm_inh!2    .h>
  112. #import <mach/vm_prot.h>
  113. #import <mach/memory_object.h>
  114. #import <mach/vm_statistics.h>
  115. #import <mach/machine/vm_types.h>
  116. #import <mach/machine.h>
  117. #import <mach/thread_status.h>
  118. #import <mach/thread_info.h>
  119. #import <mach/thread_special_ports.h>
  120. #import <mach/task_info.h>
  121. #import <mach/task_special_ports.h>
  122. #import <bsd/sys/netport.h>
  123.  
  124. #import <mach/host_info.h>
  125. #import <mach/processor_info.h>
  126.  
  127.  
  128. typedef    port_t        task_t;
  129. typedef    task_t        vm_task_t;
  130. typedef port_t        *task_array_t;
  131. typedef    port_t        thread_t;
  132. typedef port_t        monitor_t;
  133. typedef    thread_t    *thread_array_t;
  134.  
  135. typedef port_t        host_t;
  136. typedef port_t        host_priv_t;
  137. typedef port_t        processor_t;
  138. typedef port_t        *processor_array_t;
  139. typedef port_t        processor_set_t;
  140. typedef port_t        processor_set_name_t;
  141. typedef port_t        *processor_set_name_array_t;
  142.  
  143. #if    NeXT
  144. /*
  145.  * Define NULL types here.
  146.  */
  147. #define    HOST_NULL        (host_t)0
  148. #define    PROCESSOR_SET_NULL    (processor_set_t)0
  149. #define    PROCESSOR_NULL        (processor_t)0
  150. #define    TASK_NULL        (task_t)0
  151. #define    THREAD_NULL        (thread_t)0
  152. #endif    NeXT
  153.  
  154.  
  155. /*
  156.  *    Backwards compatibility, for those programs written
  157.  *    before mach/{std,mach}_types.{defs,h} were set up.
  158.  */
  159. #import <mach/std_types.h>
  160.  
  161.  
  162. typedef    vm_offset_t    vm_address_t;
  163. typedef    unsigned int    vm_region_t;
  164. typedef    vm_region_t    *vm_region_array_t;
  165.  
  166. typedef    char        vm_page_data_t[4096];
  167.  
  168. #endif    _MACH_MACH_TYPES_H_
  169.