]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/std_types.defs
xnu-792.6.56.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 * 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
11 * file.
12 *
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.
20 *
21 * @APPLE_LICENSE_HEADER_END@
22 */
23 /*
24 * @OSF_COPYRIGHT@
25 */
26 /*
27 * Mach Operating System
28 * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
29 * All Rights Reserved.
30 *
31 * Permission to use, copy, modify and distribute this software and its
32 * documentation is hereby granted, provided that both the copyright
33 * notice and this permission notice appear in all copies of the
34 * software, derivative works or modified versions, and any portions
35 * thereof, and that both notices appear in supporting documentation.
36 *
37 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
38 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
39 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
40 *
41 * Carnegie Mellon requests users of this software to return to
42 *
43 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
44 * School of Computer Science
45 * Carnegie Mellon University
46 * Pittsburgh PA 15213-3890
47 *
48 * any improvements or extensions that they make and grant Carnegie Mellon
49 * the rights to redistribute these changes.
50 */
51 /*
52 */
53 /*
54 * Mach kernel standard interface type declarations
55 */
56
57 #ifndef _MACH_STD_TYPES_DEFS_
58 #define _MACH_STD_TYPES_DEFS_
59
60 /* from ISO/IEC 988:1999 spec */
61 /* 7.18.1.1 Exact-width integer types */
62
63 type int8_t = MACH_MSG_TYPE_INTEGER_8;
64 type uint8_t = MACH_MSG_TYPE_INTEGER_8;
65 type int16_t = MACH_MSG_TYPE_INTEGER_16;
66 type uint16_t = MACH_MSG_TYPE_INTEGER_16;
67 type int32_t = MACH_MSG_TYPE_INTEGER_32;
68 type uint32_t = MACH_MSG_TYPE_INTEGER_32;
69 type int64_t = MACH_MSG_TYPE_INTEGER_64;
70 type uint64_t = MACH_MSG_TYPE_INTEGER_64;
71
72 /*
73 * Legacy fixed-length Mach types which should
74 * be replaced with the Standard types from above.
75 */
76 type int32 = int32_t;
77 type unsigned32 = uint32_t;
78 type int64 = int64_t;
79 type unsigned64 = uint64_t;
80
81 /*
82 * Other fixed length Mach types.
83 */
84 type char = MACH_MSG_TYPE_CHAR;
85 type boolean_t = MACH_MSG_TYPE_BOOLEAN;
86
87 #include <mach/machine/machine_types.defs>
88
89 type kern_return_t = int;
90
91 type pointer_t = ^array[] of MACH_MSG_TYPE_BYTE
92 ctype: vm_offset_t;
93
94
95 type mach_port_t = MACH_MSG_TYPE_COPY_SEND;
96 type mach_port_array_t = array[] of mach_port_t;
97
98 type mach_port_name_t = MACH_MSG_TYPE_PORT_NAME;
99 type mach_port_name_array_t = array[] of mach_port_name_t;
100
101 type mach_port_right_t = natural_t;
102
103 type mach_port_type_t = natural_t;
104 type mach_port_type_array_t = array[] of mach_port_type_t;
105
106 type mach_port_urefs_t = natural_t;
107 type mach_port_delta_t = integer_t;
108 type mach_port_seqno_t = natural_t;
109 type mach_port_mscount_t = unsigned;
110 type mach_port_msgcount_t = unsigned;
111 type mach_port_rights_t = unsigned;
112 type mach_msg_id_t = integer_t;
113 type mach_msg_size_t = natural_t;
114 type mach_msg_type_name_t = unsigned;
115 type mach_msg_options_t = integer_t;
116
117 type mach_port_move_receive_t = MACH_MSG_TYPE_MOVE_RECEIVE
118 ctype: mach_port_t;
119 type mach_port_copy_send_t = MACH_MSG_TYPE_COPY_SEND
120 ctype: mach_port_t;
121 type mach_port_make_send_t = MACH_MSG_TYPE_MAKE_SEND
122 ctype: mach_port_t;
123 type mach_port_move_send_t = MACH_MSG_TYPE_MOVE_SEND
124 ctype: mach_port_t;
125 type mach_port_make_send_once_t = MACH_MSG_TYPE_MAKE_SEND_ONCE
126 ctype: mach_port_t;
127 type mach_port_move_send_once_t = MACH_MSG_TYPE_MOVE_SEND_ONCE
128 ctype: mach_port_t;
129
130 type mach_port_receive_t = MACH_MSG_TYPE_PORT_RECEIVE
131 ctype: mach_port_t;
132 type mach_port_send_t = MACH_MSG_TYPE_PORT_SEND
133 ctype: mach_port_t;
134 type mach_port_send_once_t = MACH_MSG_TYPE_PORT_SEND_ONCE
135 ctype: mach_port_t;
136
137 type mach_port_poly_t = polymorphic
138 ctype: mach_port_t;
139
140 import <mach/std_types.h>;
141 import <mach/mig.h>;
142
143 #endif /* _MACH_STD_TYPES_DEFS_ */