2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
26 #include <mach/boolean.h>
27 #include <mach/kern_return.h>
28 #include <mach/notify.h>
29 #include <mach/mach_types.h>
30 #include <mach/message.h>
31 #include <mach/mig_errors.h>
32 #include <mach/port.h>
35 #ifndef FUNCTION_PTR_T
36 #define FUNCTION_PTR_T
37 typedef void (*function_ptr_t
)(mach_port_t
, char *, mach_msg_type_number_t
);
40 function_ptr_t function
;
41 } function_table_entry
;
42 typedef function_table_entry
*function_table_t
;
43 #endif /* FUNCTION_PTR_T */
46 #ifndef notify_MSG_COUNT
47 #define notify_MSG_COUNT 9
48 #endif /* notify_MSG_COUNT */
50 #include <mach/std_types.h>
52 #ifdef __BeforeMigUserHeader
54 #endif /* __BeforeMigUserHeader */
57 /* SimpleRoutine mach_notify_port_deleted */
62 #endif /* mig_external */
63 kern_return_t mach_notify_port_deleted
69 /* SimpleRoutine mach_notify_port_destroyed */
74 #endif /* mig_external */
75 kern_return_t mach_notify_port_destroyed
79 mach_msg_type_name_t rightsPoly
82 /* SimpleRoutine mach_notify_no_senders */
87 #endif /* mig_external */
88 kern_return_t mach_notify_no_senders
91 mach_port_mscount_t mscount
94 /* SimpleRoutine mach_notify_send_once */
99 #endif /* mig_external */
100 kern_return_t mach_notify_send_once
105 /* SimpleRoutine mach_notify_dead_name */
110 #endif /* mig_external */
111 kern_return_t mach_notify_dead_name
114 mach_port_name_t name
117 #ifndef subsystem_to_name_map_notify
118 #define subsystem_to_name_map_notify \
119 { "mach_notify_port_deleted", 65 },\
120 { "mach_notify_port_destroyed", 69 },\
121 { "mach_notify_no_senders", 70 },\
122 { "mach_notify_send_once", 71 },\
123 { "mach_notify_dead_name", 72 }
126 #ifdef __AfterMigUserHeader
128 #endif /* __AfterMigUserHeader */
130 #endif /* _notify_user_ */