2 * Copyright (c) 2002,2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
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.
23 * @APPLE_LICENSE_HEADER_END@
29 * Mach Operating System
30 * Copyright (c) 1991,1990,1989,1988 Carnegie Mellon University
31 * All Rights Reserved.
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.
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.
43 * Carnegie Mellon requests users of this software to return to
45 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
46 * School of Computer Science
47 * Carnegie Mellon University
48 * Pittsburgh PA 15213-3890
50 * any improvements or extensions that they make and grant Carnegie Mellon
51 * the rights to redistribute these changes.
56 * Mach kernel standard interface type declarations
59 #ifndef _MACH_STD_TYPES_DEFS_
60 #define _MACH_STD_TYPES_DEFS_
62 /* from ISO/IEC 988:1999 spec */
63 /* 7.18.1.1 Exact-width integer types */
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;
75 * Legacy fixed-length Mach types which should
76 * be replaced with the Standard types from above.
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;
84 * Other fixed length Mach types.
86 type char = MACH_MSG_TYPE_CHAR;
87 type boolean_t = MACH_MSG_TYPE_BOOLEAN;
89 #include <mach/machine/machine_types.defs>
91 type kern_return_t = int;
93 type pointer_t = ^array[] of MACH_MSG_TYPE_BYTE
97 type mach_port_t = MACH_MSG_TYPE_COPY_SEND;
98 type mach_port_array_t = array[] of mach_port_t;
100 type mach_port_name_t = MACH_MSG_TYPE_PORT_NAME;
101 type mach_port_name_array_t = array[] of mach_port_name_t;
103 type mach_port_right_t = natural_t;
105 type mach_port_type_t = natural_t;
106 type mach_port_type_array_t = array[] of mach_port_type_t;
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;
119 type mach_port_move_receive_t = MACH_MSG_TYPE_MOVE_RECEIVE
121 type mach_port_copy_send_t = MACH_MSG_TYPE_COPY_SEND
123 type mach_port_make_send_t = MACH_MSG_TYPE_MAKE_SEND
125 type mach_port_move_send_t = MACH_MSG_TYPE_MOVE_SEND
127 type mach_port_make_send_once_t = MACH_MSG_TYPE_MAKE_SEND_ONCE
129 type mach_port_move_send_once_t = MACH_MSG_TYPE_MOVE_SEND_ONCE
132 type mach_port_receive_t = MACH_MSG_TYPE_PORT_RECEIVE
134 type mach_port_send_t = MACH_MSG_TYPE_PORT_SEND
136 type mach_port_send_once_t = MACH_MSG_TYPE_PORT_SEND_ONCE
139 type mach_port_poly_t = polymorphic
142 import <mach/std_types.h>;
145 #endif _MACH_STD_TYPES_DEFS_