2 * Copyright (c) 2008-2013 Apple Inc. All rights reserved.
4 * @APPLE_APACHE_LICENSE_HEADER_START@
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 * @APPLE_APACHE_LICENSE_HEADER_END@
21 #include <mach/std_types.defs>
22 #include <mach/mach_types.defs>
24 // '64' is used to align with Mach notifications and so that we don't fight
25 // with the notify symbols in Libsystem
26 subsystem libdispatch_internal_protocol 64;
28 serverprefix _dispatch_;
29 userprefix _dispatch_send_;
31 skip; /* was MACH_NOTIFY_FIRST: 64 */
33 /* MACH_NOTIFY_PORT_DELETED: 65 */
35 mach_notify_port_deleted(
36 _notify : mach_port_move_send_once_t;
37 _name : mach_port_name_t
40 /* MACH_NOTIFY_SEND_POSSIBLE: 66 */
42 mach_notify_send_possible(
43 _notify : mach_port_move_send_once_t;
44 _name : mach_port_name_t
47 skip; /* was NOTIFY_OWNERSHIP_RIGHTS: 67 */
49 skip; /* was NOTIFY_RECEIVE_RIGHTS: 68 */
51 /* MACH_NOTIFY_PORT_DESTROYED: 69 */
53 mach_notify_port_destroyed(
54 _notify : mach_port_move_send_once_t;
55 _rights : mach_port_move_receive_t
58 /* MACH_NOTIFY_NO_SENDERS: 70 */
60 mach_notify_no_senders(
61 _notify : mach_port_move_send_once_t;
62 _mscnt : mach_port_mscount_t
65 /* MACH_NOTIFY_SEND_ONCE: 71 */
67 mach_notify_send_once(
68 _notify : mach_port_move_send_once_t
71 /* MACH_NOTIFY_DEAD_NAME: 72 */
73 mach_notify_dead_name(
74 _notify : mach_port_move_send_once_t;
75 _name : mach_port_name_t
78 /* highly unlikely additional Mach notifications */
86 wakeup_runloop_thread(
88 WaitTime _waitTimeout : natural_t
92 consume_send_once_right(
93 _port : mach_port_move_send_once_t