]> git.saurik.com Git - apple/xnu.git/blame - osfmk/mach/std_types.defs
xnu-517.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
A
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
43866e37 6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
1c79356b 7 *
43866e37
A
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
1c79356b
A
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
43866e37
A
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.
1c79356b
A
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
9bccf70c
A
62/* from ISO/IEC 988:1999 spec */
63/* 7.18.1.1 Exact-width integer types */
64
65type int8_t = MACH_MSG_TYPE_INTEGER_8;
66type uint8_t = MACH_MSG_TYPE_INTEGER_8;
67type int16_t = MACH_MSG_TYPE_INTEGER_16;
68type uint16_t = MACH_MSG_TYPE_INTEGER_16;
69type int32_t = MACH_MSG_TYPE_INTEGER_32;
70type uint32_t = MACH_MSG_TYPE_INTEGER_32;
71type int64_t = MACH_MSG_TYPE_INTEGER_64;
72type 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 */
55e303ae
A
78type int32 = int32_t;
79type unsigned32 = uint32_t;
80type int64 = int64_t;
81type unsigned64 = uint64_t;
9bccf70c
A
82
83/*
84 * Other fixed length Mach types.
85 */
86type char = MACH_MSG_TYPE_CHAR;
87type boolean_t = MACH_MSG_TYPE_BOOLEAN;
88
1c79356b
A
89#include <mach/machine/machine_types.defs>
90
91type kern_return_t = int;
92
93type pointer_t = ^array[] of MACH_MSG_TYPE_BYTE
94 ctype: vm_offset_t;
95
96
97type mach_port_t = MACH_MSG_TYPE_COPY_SEND;
98type mach_port_array_t = array[] of mach_port_t;
99
9bccf70c
A
100type mach_port_name_t = MACH_MSG_TYPE_PORT_NAME;
101type mach_port_name_array_t = array[] of mach_port_name_t;
1c79356b
A
102
103type mach_port_right_t = natural_t;
104
105type mach_port_type_t = natural_t;
106type mach_port_type_array_t = array[] of mach_port_type_t;
107
108type mach_port_urefs_t = natural_t;
109type mach_port_delta_t = integer_t;
110type mach_port_seqno_t = natural_t;
111type mach_port_mscount_t = unsigned;
112type mach_port_msgcount_t = unsigned;
113type mach_port_rights_t = unsigned;
114type mach_msg_id_t = integer_t;
0b4e3aa0 115type mach_msg_size_t = natural_t;
1c79356b
A
116type mach_msg_type_name_t = unsigned;
117type mach_msg_options_t = integer_t;
118
119type mach_port_move_receive_t = MACH_MSG_TYPE_MOVE_RECEIVE
120 ctype: mach_port_t;
121type mach_port_copy_send_t = MACH_MSG_TYPE_COPY_SEND
122 ctype: mach_port_t;
123type mach_port_make_send_t = MACH_MSG_TYPE_MAKE_SEND
124 ctype: mach_port_t;
125type mach_port_move_send_t = MACH_MSG_TYPE_MOVE_SEND
126 ctype: mach_port_t;
127type mach_port_make_send_once_t = MACH_MSG_TYPE_MAKE_SEND_ONCE
128 ctype: mach_port_t;
129type mach_port_move_send_once_t = MACH_MSG_TYPE_MOVE_SEND_ONCE
130 ctype: mach_port_t;
131
132type mach_port_receive_t = MACH_MSG_TYPE_PORT_RECEIVE
133 ctype: mach_port_t;
134type mach_port_send_t = MACH_MSG_TYPE_PORT_SEND
135 ctype: mach_port_t;
136type mach_port_send_once_t = MACH_MSG_TYPE_PORT_SEND_ONCE
137 ctype: mach_port_t;
138
139type mach_port_poly_t = polymorphic
140 ctype: mach_port_t;
141
142import <mach/std_types.h>;
9bccf70c 143import <mach/mig.h>;
1c79356b 144
55e303ae 145#endif /* _MACH_STD_TYPES_DEFS_ */