2 * Copyright (c) 2002,2000 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
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.
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
20 * @APPLE_LICENSE_HEADER_END@
26 * Header file for basic, machine-dependent data types. i386 version.
29 #ifndef _MACHINE_VM_TYPES_DEFS_
30 #define _MACHINE_VM_TYPES_DEFS_ 1
34 type unsigned = uint32_t;
36 type float = MACH_MSG_TYPE_REAL_32;
37 type double = MACH_MSG_TYPE_REAL_64;
40 /* from ISO/IEC 988:1999 spec */
41 /* 7.18.1.4 Integer types capable of hgolding object pointers */
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.
50 * For instance, the IPC system represents
51 * a port in user space as an integer and
52 * in kernel space as a pointer.
54 type uintptr_t = MACH_MSG_TYPE_INTEGER_32;
55 type intptr_t = MACH_MSG_TYPE_INTEGER_32;
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.
63 type integer_t = int32_t;
64 type natural_t = uint32_t;
65 type register_t = int32_t;
70 * For the old IPC interface
72 #define MSG_TYPE_PORT_NAME MACH_MSG_TYPE_INTEGER_32
74 #endif /* MACH_IPC_COMPAT */
77 #endif /* _MACHINE_VM_TYPES_DEFS_ */