]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/std_types.defs
adf6056bdfc79166e82052078ffd02bfe2bb4cb9
[apple/xnu.git] / osfmk / mach / std_types.defs
1 /*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /*
23 * @OSF_COPYRIGHT@
24 */
25 /*
26 * Mach Operating System
27 * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
28 * All Rights Reserved.
29 *
30 * Permission to use, copy, modify and distribute this software and its
31 * documentation is hereby granted, provided that both the copyright
32 * notice and this permission notice appear in all copies of the
33 * software, derivative works or modified versions, and any portions
34 * thereof, and that both notices appear in supporting documentation.
35 *
36 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
37 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
38 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
39 *
40 * Carnegie Mellon requests users of this software to return to
41 *
42 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
43 * School of Computer Science
44 * Carnegie Mellon University
45 * Pittsburgh PA 15213-3890
46 *
47 * any improvements or extensions that they make and grant Carnegie Mellon
48 * the rights to redistribute these changes.
49 */
50 /*
51 */
52 /*
53 * Mach kernel standard interface type declarations
54 */
55
56 #ifndef _MACH_STD_TYPES_DEFS_
57 #define _MACH_STD_TYPES_DEFS_
58
59 type char = MACH_MSG_TYPE_CHAR;
60 type short = MACH_MSG_TYPE_INTEGER_16;
61 type int = MACH_MSG_TYPE_INTEGER_32;
62 type int32 = MACH_MSG_TYPE_INTEGER_32;
63 type boolean_t = MACH_MSG_TYPE_BOOLEAN;
64 type unsigned = MACH_MSG_TYPE_INTEGER_32;
65 type unsigned32 = MACH_MSG_TYPE_INTEGER_32;
66 type int64 = MACH_MSG_TYPE_INTEGER_64;
67 type unsigned64 = MACH_MSG_TYPE_INTEGER_64;
68 #include <mach/machine/machine_types.defs>
69
70 type kern_return_t = int;
71
72 type pointer_t = ^array[] of MACH_MSG_TYPE_BYTE
73 ctype: vm_offset_t;
74
75
76 type mach_port_t = MACH_MSG_TYPE_COPY_SEND;
77 type mach_port_array_t = array[] of mach_port_t;
78
79 type mach_port_name_t = MACH_MSG_TYPE_PORT_NAME
80 ctype: mach_port_name_t;
81 type mach_port_name_array_t = array[] of mach_port_name_t
82 ctype: mach_port_name_array_t;
83
84 type mach_port_right_t = natural_t;
85
86 type mach_port_type_t = natural_t;
87 type mach_port_type_array_t = array[] of mach_port_type_t;
88
89 type mach_port_urefs_t = natural_t;
90 type mach_port_delta_t = integer_t;
91 type mach_port_seqno_t = natural_t;
92 type mach_port_mscount_t = unsigned;
93 type mach_port_msgcount_t = unsigned;
94 type mach_port_rights_t = unsigned;
95 type mach_msg_id_t = integer_t;
96 type mach_msg_type_name_t = unsigned;
97 type mach_msg_options_t = integer_t;
98
99 type mach_port_move_receive_t = MACH_MSG_TYPE_MOVE_RECEIVE
100 ctype: mach_port_t;
101 type mach_port_copy_send_t = MACH_MSG_TYPE_COPY_SEND
102 ctype: mach_port_t;
103 type mach_port_make_send_t = MACH_MSG_TYPE_MAKE_SEND
104 ctype: mach_port_t;
105 type mach_port_move_send_t = MACH_MSG_TYPE_MOVE_SEND
106 ctype: mach_port_t;
107 type mach_port_make_send_once_t = MACH_MSG_TYPE_MAKE_SEND_ONCE
108 ctype: mach_port_t;
109 type mach_port_move_send_once_t = MACH_MSG_TYPE_MOVE_SEND_ONCE
110 ctype: mach_port_t;
111
112 type mach_port_receive_t = MACH_MSG_TYPE_PORT_RECEIVE
113 ctype: mach_port_t;
114 type mach_port_send_t = MACH_MSG_TYPE_PORT_SEND
115 ctype: mach_port_t;
116 type mach_port_send_once_t = MACH_MSG_TYPE_PORT_SEND_ONCE
117 ctype: mach_port_t;
118
119 type mach_port_poly_t = polymorphic
120 ctype: mach_port_t;
121
122 import <mach/std_types.h>;
123
124 #endif _MACH_STD_TYPES_DEFS_