|
|
1.1 ! root 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 [email protected] ! 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: * Definitions of general Mach system traps. ! 28: * ! 29: * IPC traps are defined in <mach/message.h>. ! 30: * Kernel RPC functions are defined in <mach/mach_interface.h>. ! 31: */ ! 32: ! 33: #ifndef _MACH_MACH_TRAPS_H_ ! 34: #define _MACH_MACH_TRAPS_H_ ! 35: ! 36: #ifdef MACH_KERNEL ! 37: #include <mach_ipc_compat.h> ! 38: #endif /* MACH_KERNEL */ ! 39: ! 40: #include <mach/port.h> ! 41: ! 42: mach_port_t mach_reply_port ! 43: #ifdef LINTLIBRARY ! 44: () ! 45: { return MACH_PORT_NULL; } ! 46: #else /* LINTLIBRARY */ ! 47: (); ! 48: #endif /* LINTLIBRARY */ ! 49: ! 50: mach_port_t mach_thread_self ! 51: #ifdef LINTLIBRARY ! 52: () ! 53: { return MACH_PORT_NULL; } ! 54: #else /* LINTLIBRARY */ ! 55: (); ! 56: #endif /* LINTLIBRARY */ ! 57: ! 58: #ifdef __386BSD__ ! 59: #undef mach_task_self ! 60: #endif ! 61: mach_port_t mach_task_self ! 62: #ifdef LINTLIBRARY ! 63: () ! 64: { return MACH_PORT_NULL; } ! 65: #else /* LINTLIBRARY */ ! 66: (); ! 67: #endif /* LINTLIBRARY */ ! 68: ! 69: mach_port_t mach_host_self ! 70: #ifdef LINTLIBRARY ! 71: () ! 72: { return MACH_PORT_NULL; } ! 73: #else /* LINTLIBRARY */ ! 74: (); ! 75: #endif /* LINTLIBRARY */ ! 76: ! 77: ! 78: /* Definitions for the old IPC interface. */ ! 79: ! 80: #if MACH_IPC_COMPAT ! 81: ! 82: port_t task_self ! 83: #ifdef LINTLIBRARY ! 84: () ! 85: { return(PORT_NULL); } ! 86: #else /* LINTLIBRARY */ ! 87: (); ! 88: #endif /* LINTLIBRARY */ ! 89: ! 90: port_t task_notify ! 91: #ifdef LINTLIBRARY ! 92: () ! 93: { return(PORT_NULL); } ! 94: #else /* LINTLIBRARY */ ! 95: (); ! 96: #endif /* LINTLIBRARY */ ! 97: ! 98: port_t thread_self ! 99: #ifdef LINTLIBRARY ! 100: () ! 101: { return(PORT_NULL); } ! 102: #else /* LINTLIBRARY */ ! 103: (); ! 104: #endif /* LINTLIBRARY */ ! 105: ! 106: port_t thread_reply ! 107: #ifdef LINTLIBRARY ! 108: () ! 109: { return(PORT_NULL); } ! 110: #else /* LINTLIBRARY */ ! 111: (); ! 112: #endif /* LINTLIBRARY */ ! 113: ! 114: port_t host_self ! 115: #ifdef LINTLIBRARY ! 116: () ! 117: { return(PORT_NULL); } ! 118: #else /* LINTLIBRARY */ ! 119: (); ! 120: #endif /* LINTLIBRARY */ ! 121: ! 122: port_t host_priv_self ! 123: #ifdef LINTLIBRARY ! 124: () ! 125: { return(PORT_NULL); } ! 126: #else /* LINTLIBRARY */ ! 127: (); ! 128: #endif /* LINTLIBRARY */ ! 129: ! 130: #endif /* MACH_IPC_COMPAT */ ! 131: ! 132: #endif /* _MACH_MACH_TRAPS_H_ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.