]> git.saurik.com Git - apple/xnu.git/blob - osfmk/mach/ppc/machine_types.defs
022702abd981182dca665e7ba6af545b67e3f41d
[apple/xnu.git] / osfmk / mach / ppc / machine_types.defs
1 /*
2 * Copyright (c) 2002,2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * The contents of this file constitute Original Code as defined in and
7 * are subject to the Apple Public Source License Version 1.1 (the
8 * "License"). You may not use this file except in compliance with the
9 * License. Please obtain a copy of the License at
10 * http://www.apple.com/publicsource and read it before using this file.
11 *
12 * This Original Code and all software distributed under the License are
13 * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
14 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
15 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
17 * License for the specific language governing rights and limitations
18 * under the License.
19 *
20 * @APPLE_LICENSE_HEADER_END@
21 */
22 /*
23 * @OSF_COPYRIGHT@
24 */
25 /*
26 * Header file for basic, machine-dependent data types. i386 version.
27 */
28
29 #ifndef _MACHINE_VM_TYPES_DEFS_
30 #define _MACHINE_VM_TYPES_DEFS_ 1
31
32 type short = int16_t;
33 type int = int32_t;
34 type unsigned = uint32_t;
35
36 type float = MACH_MSG_TYPE_REAL_32;
37 type double = MACH_MSG_TYPE_REAL_64;
38
39
40 /* from ISO/IEC 988:1999 spec */
41 /* 7.18.1.4 Integer types capable of hgolding object pointers */
42 /*
43 * The [u]intptr_t types for the native
44 * integer type, e.g. 32 or 64 or.. whatever
45 * register size the machine has. They are
46 * used for entities that might be either
47 * [unsigned] integers or pointers, and for
48 * type-casting between the two.
49 *
50 * For instance, the IPC system represents
51 * a port in user space as an integer and
52 * in kernel space as a pointer.
53 */
54 type uintptr_t = MACH_MSG_TYPE_INTEGER_32;
55 type intptr_t = MACH_MSG_TYPE_INTEGER_32;
56
57 /*
58 * These are the legacy Mach types that are
59 * the [rough] equivalents of the standards above.
60 * They were defined in terms of int, not
61 * long int, so they remain separate.
62 */
63 type integer_t = int32_t;
64 type natural_t = uint32_t;
65 type register_t = int32_t;
66
67
68 #if MACH_IPC_COMPAT
69 /*
70 * For the old IPC interface
71 */
72 #define MSG_TYPE_PORT_NAME MACH_MSG_TYPE_INTEGER_32
73
74 #endif /* MACH_IPC_COMPAT */
75
76
77 #endif /* _MACHINE_VM_TYPES_DEFS_ */