home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / mach / task_special_ports.h < prev    next >
Text File  |  1992-07-29  |  2KB  |  75 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:    task_special_ports.h,v $
  12.  * Revision 2.5  89/06/27  00:25:33  rpd
  13.  *     Added task_get_kernel_port, task_set_kernel_port.
  14.  *     [89/06/27  00:02:52  rpd]
  15.  * 
  16.  * Revision 2.4  89/03/09  20:24:06  rpd
  17.  *     More cleanup.
  18.  * 
  19.  * Revision 2.3  89/02/25  18:41:12  gm0w
  20.  *     Changes for cleanup.
  21.  * 
  22.  * 17-Jan-88  David Golub (dbg) at Carnegie-Mellon University
  23.  *    Created.
  24.  *
  25.  */
  26. /*
  27.  *    File:    mach/task_special_ports.h
  28.  *
  29.  *    Defines codes for special_purpose task ports.  These are NOT
  30.  *    port identifiers - they are only used for the task_get_special_port
  31.  *    and task_set_special_port routines.
  32.  *    
  33.  */
  34.  
  35. #ifndef    _MACH_TASK_SPECIAL_PORTS_H_
  36. #define _MACH_TASK_SPECIAL_PORTS_H_
  37.  
  38. #define TASK_KERNEL_PORT    1    /* Represents task to the outside
  39.                        world.*/
  40. #define TASK_NOTIFY_PORT    2    /* Task receives kernel IPC
  41.                        notifications here. */
  42. #define TASK_EXCEPTION_PORT    3    /* Exception messages for task are
  43.                        sent to this port. */
  44. #define TASK_BOOTSTRAP_PORT    4    /* Bootstrap environment!2) task. */
  45.  
  46. /*
  47.  *    Definitions for ease of use
  48.  */
  49.  
  50. #define task_get_kernel_port(task, port)    \
  51.         (task_get_special_port((task), TASK_KERNEL_PORT, (port)))
  52.  
  53. #define task_set_kernel_port(task, port)    \
  54.         (task_set_special_port((task), TASK_KERNEL_PORT, (port)))
  55.  
  56. #define task_get_notify_port(task, port)    \
  57.         (task_get_special_port((task), TASK_NOTIFY_PORT, (port)))
  58.  
  59. #define task_set_notify_port(task, port)    \
  60.         (task_set_special_port((task), TASK_NOTIFY_PORT, (port)))
  61.  
  62. #define task_get_exception_port(task, port)    \
  63.         (task_get_special_port((task), TASK_EXCEPTION_PORT, (port)))
  64.  
  65. #define task_set_exception_port(task, port)    \
  66.         (task_set_special_port((task), TASK_EXCEPTION_PORT, (port)))
  67.  
  68. #define task_get_bootstrap_port(task, port)    \
  69.         (task_get_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
  70.  
  71. #define task_set_bootstrap_port(task, port)    \
  72.         (task_set_special_port((task), TASK_BOOTSTRAP_PORT, (port)))
  73.  
  74. #endif    _MACH_TASK_SPECIAL_PORTS_H_
  75.