2 * Copyright (c) 2000-2001,2004,2011,2014 Apple Inc. All Rights Reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
32 #include <mach/boolean.h>
33 #include <mach/kern_return.h>
34 #include <mach/notify.h>
35 #include <mach/mach_types.h>
36 #include <mach/message.h>
37 #include <mach/mig_errors.h>
38 #include <mach/port.h>
41 #ifndef FUNCTION_PTR_T
42 #define FUNCTION_PTR_T
43 typedef void (*function_ptr_t
)(mach_port_t
, char *, mach_msg_type_number_t
);
46 function_ptr_t function
;
47 } function_table_entry
;
48 typedef function_table_entry
*function_table_t
;
49 #endif /* FUNCTION_PTR_T */
52 #ifndef notify_MSG_COUNT
53 #define notify_MSG_COUNT 9
54 #endif /* notify_MSG_COUNT */
56 #include <mach/std_types.h>
58 #ifdef __BeforeMigUserHeader
60 #endif /* __BeforeMigUserHeader */
63 /* SimpleRoutine mach_notify_port_deleted */
68 #endif /* mig_external */
69 kern_return_t mach_notify_port_deleted
75 /* SimpleRoutine mach_notify_port_destroyed */
80 #endif /* mig_external */
81 kern_return_t mach_notify_port_destroyed
85 mach_msg_type_name_t rightsPoly
88 /* SimpleRoutine mach_notify_no_senders */
93 #endif /* mig_external */
94 kern_return_t mach_notify_no_senders
97 mach_port_mscount_t mscount
100 /* SimpleRoutine mach_notify_send_once */
105 #endif /* mig_external */
106 kern_return_t mach_notify_send_once
111 /* SimpleRoutine mach_notify_dead_name */
116 #endif /* mig_external */
117 kern_return_t mach_notify_dead_name
120 mach_port_name_t name
123 #ifndef subsystem_to_name_map_notify
124 #define subsystem_to_name_map_notify \
125 { "mach_notify_port_deleted", 65 },\
126 { "mach_notify_port_destroyed", 69 },\
127 { "mach_notify_no_senders", 70 },\
128 { "mach_notify_send_once", 71 },\
129 { "mach_notify_dead_name", 72 }
132 #ifdef __AfterMigUserHeader
134 #endif /* __AfterMigUserHeader */
136 #endif /* _notify_user_ */