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