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>
59 #ifdef __BeforeMigUserHeader
61 #endif /* __BeforeMigUserHeader */
63 #include <sys/cdefs.h>
67 /* SimpleRoutine mach_notify_port_deleted */
72 #endif /* mig_external */
73 kern_return_t cdsa_mach_notify_port_deleted
79 /* SimpleRoutine mach_notify_port_destroyed */
84 #endif /* mig_external */
85 kern_return_t cdsa_mach_notify_port_destroyed
91 /* SimpleRoutine mach_notify_no_senders */
96 #endif /* mig_external */
97 kern_return_t cdsa_mach_notify_no_senders
100 mach_port_mscount_t mscount
103 /* SimpleRoutine mach_notify_send_once */
108 #endif /* mig_external */
109 kern_return_t cdsa_mach_notify_send_once
114 /* SimpleRoutine mach_notify_dead_name */
119 #endif /* mig_external */
120 kern_return_t cdsa_mach_notify_dead_name
123 mach_port_name_t name
128 #ifndef subsystem_to_name_map_notify
129 #define subsystem_to_name_map_notify \
130 { "mach_notify_port_deleted", 65 },\
131 { "mach_notify_port_destroyed", 69 },\
132 { "mach_notify_no_senders", 70 },\
133 { "mach_notify_send_once", 71 },\
134 { "mach_notify_dead_name", 72 }
137 #ifdef __AfterMigUserHeader
139 #endif /* __AfterMigUserHeader */
141 #endif /* _notify_user_ */