2 * Copyright (c) 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@
28 * Revision 1.1.1.1 1998/09/22 21:05:31 wsanchez
29 * Import of Mac OS X kernel (~semeria)
31 * Revision 1.1.1.1 1998/03/07 02:25:47 wsanchez
32 * Import of OSF Mach kernel (~mburg)
34 * Revision 1.1.5.1 1995/01/06 19:50:37 devrcs
35 * mk6 CR668 - 1.3b26 merge
37 * [1994/11/02 18:18:29 dwm]
39 * Revision 1.1.2.1 1994/05/06 18:54:50 tmt
40 * New Mig definition file to describe required machine types.
41 * [1994/05/05 21:08:57 tmt]
46 * Header file for basic, machine-dependent data types. i386 version.
49 #ifndef _MACHINE_VM_TYPES_DEFS_
50 #define _MACHINE_VM_TYPES_DEFS_ 1
53 * A natural_t is the type for the native
54 * integer type, e.g. 32 or 64 or.. whatever
55 * register size the machine has. Unsigned, it is
56 * used for entities that might be either
57 * unsigned integers or pointers, and for
58 * type-casting between the two.
59 * For instance, the IPC system represents
60 * a port in user space as an integer and
61 * in kernel space as a pointer.
63 type natural_t = unsigned32;
66 * An integer_t is the signed counterpart
67 * of the natural_t type. Both types are
68 * only supposed to be used to define
69 * other types in a machine-independent
72 type integer_t = int32;
77 * For the old IPC interface
79 #define MSG_TYPE_PORT_NAME MACH_MSG_TYPE_INTEGER_32
81 #endif /* MACH_IPC_COMPAT */
84 #endif /* _MACHINE_VM_TYPES_DEFS_ */