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