The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/mach/mach_traps.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    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 "AS IS"
   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 Mellon
   24  * the rights to redistribute these changes.
   25  */
   26 /*
   27  * HISTORY
   28  * $Log:        mach_traps.h,v $
   29  * Revision 2.8  93/05/10  17:47:51  rvb
   30  *              386BSD gets confused iff mach_task_self is still defined.
   31  *      [93/05/05            rvb]
   32  * 
   33  * Revision 2.7  93/01/14  17:44:28  danner
   34  *      Cleanup.
   35  *      [92/06/10            pds]
   36  * 
   37  * Revision 2.6  92/01/15  13:44:25  rpd
   38  *      Changed MACH_IPC_COMPAT conditionals to default to not present.
   39  * 
   40  * Revision 2.5  91/05/14  16:54:55  mrt
   41  *      Correcting copyright
   42  * 
   43  * Revision 2.4  91/02/05  17:33:35  mrt
   44  *      Changed to new Mach copyright
   45  *      [91/02/01  17:18:21  mrt]
   46  * 
   47  * Revision 2.3  90/08/06  17:06:07  rpd
   48  *      Removed mach_host_priv_self.
   49  *      Removed definition of _MACH_INIT_.
   50  *      [90/08/04            rpd]
   51  * 
   52  * Revision 2.2  90/06/02  14:58:30  rpd
   53  *      Converted to new IPC.
   54  *      [90/03/26  22:33:07  rpd]
   55  * 
   56  * Revision 2.1  89/08/03  15:59:29  rwd
   57  * Created.
   58  * 
   59  * Revision 2.4  89/02/25  18:37:15  gm0w
   60  *      Changes for cleanup.
   61  * 
   62  * Revision 2.3  89/02/19  12:57:44  rpd
   63  *      Moved from kern/ to mach/.
   64  * 
   65  * Revision 2.2  89/01/15  16:24:46  rpd
   66  *      Updated includes for the new mach/ directory.
   67  *      [89/01/15  15:03:03  rpd]
   68  * 
   69  * 18-Jan-88  David Golub (dbg) at Carnegie-Mellon University
   70  *      Add thread_reply.  Leave in task_data as an alternate name -
   71  *      they are functionally indistinguishable.
   72  *
   73  * 15-Oct-86  Avadis Tevanian (avie) at Carnegie-Mellon University
   74  *      Include ../kern/mach_types.h instead of <kern/mach_types.h> when
   75  *      building for the kernel.
   76  *
   77  *  1-Sep-86  Michael Young (mwyoung) at Carnegie-Mellon University
   78  *      Created, mostly to help build the lint library.
   79  *      Should eventually include this in "syscall_sw.c".
   80  *
   81  */
   82 /*
   83  *      Definitions of general Mach system traps.
   84  *
   85  *      IPC traps are defined in <mach/message.h>.
   86  *      Kernel RPC functions are defined in <mach/mach_interface.h>.
   87  */
   88 
   89 #ifndef _MACH_MACH_TRAPS_H_
   90 #define _MACH_MACH_TRAPS_H_
   91 
   92 #ifdef  KERNEL
   93 #include <mach_ipc_compat.h>
   94 #endif  /* KERNEL */
   95 
   96 #include <mach/port.h>
   97 
   98 mach_port_t     mach_reply_port
   99 #ifdef  LINTLIBRARY
  100                         ()
  101          { return MACH_PORT_NULL; }
  102 #else   /* LINTLIBRARY */
  103                         ();
  104 #endif  /* LINTLIBRARY */
  105 
  106 mach_port_t     mach_thread_self
  107 #ifdef  LINTLIBRARY
  108                         ()
  109          { return MACH_PORT_NULL; }
  110 #else   /* LINTLIBRARY */
  111                         ();
  112 #endif  /* LINTLIBRARY */
  113 
  114 #ifdef  __386BSD__
  115 #undef mach_task_self
  116 #endif
  117 mach_port_t     mach_task_self
  118 #ifdef  LINTLIBRARY
  119                         ()
  120          { return MACH_PORT_NULL; }
  121 #else   /* LINTLIBRARY */
  122                         ();
  123 #endif  /* LINTLIBRARY */
  124 
  125 mach_port_t     mach_host_self
  126 #ifdef  LINTLIBRARY
  127                         ()
  128          { return MACH_PORT_NULL; }
  129 #else   /* LINTLIBRARY */
  130                         ();
  131 #endif  /* LINTLIBRARY */
  132 
  133 
  134 /* Definitions for the old IPC interface. */
  135 
  136 #if     MACH_IPC_COMPAT
  137 
  138 port_t          task_self
  139 #ifdef  LINTLIBRARY
  140                         ()
  141          { return(PORT_NULL); }
  142 #else   /* LINTLIBRARY */
  143                         ();
  144 #endif  /* LINTLIBRARY */
  145 
  146 port_t          task_notify
  147 #ifdef  LINTLIBRARY
  148                         ()
  149          { return(PORT_NULL); }
  150 #else   /* LINTLIBRARY */
  151                         ();
  152 #endif  /* LINTLIBRARY */
  153 
  154 port_t          thread_self
  155 #ifdef  LINTLIBRARY
  156                         ()
  157          { return(PORT_NULL); }
  158 #else   /* LINTLIBRARY */
  159                         ();
  160 #endif  /* LINTLIBRARY */
  161 
  162 port_t          thread_reply
  163 #ifdef  LINTLIBRARY
  164                         ()
  165          { return(PORT_NULL); }
  166 #else   /* LINTLIBRARY */
  167                         ();
  168 #endif  /* LINTLIBRARY */
  169 
  170 port_t          host_self
  171 #ifdef  LINTLIBRARY
  172                         ()
  173          { return(PORT_NULL); }
  174 #else   /* LINTLIBRARY */
  175                         ();
  176 #endif  /* LINTLIBRARY */
  177 
  178 port_t          host_priv_self
  179 #ifdef  LINTLIBRARY
  180                         ()
  181          { return(PORT_NULL); }
  182 #else   /* LINTLIBRARY */
  183                         ();
  184 #endif  /* LINTLIBRARY */
  185 
  186 #endif  /* MACH_IPC_COMPAT */
  187 
  188 #endif  /* _MACH_MACH_TRAPS_H_ */

Cache object: 0a7c537b061ea0256f89a360b18cb832


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.