Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 | /* * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * * The contents of this file constitute Original Code as defined in and * are subject to the Apple Public Source License Version 1.1 (the * "License"). You may not use this file except in compliance with the * License. Please obtain a copy of the License at * http://www.apple.com/publicsource and read it before using this file. * * This Original Code and all software distributed under the License are * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the * License for the specific language governing rights and limitations * under the License. * * @APPLE_LICENSE_HEADER_END@ */ /* * @OSF_COPYRIGHT@ */ /* * HISTORY * * Revision 1.1.1.1 1998/09/22 21:05:48 wsanchez * Import of Mac OS X kernel (~semeria) * * Revision 1.1.1.1 1998/03/07 02:25:59 wsanchez * Import of OSF Mach kernel (~mburg) * * Revision 1.1.10.3 1996/01/09 19:23:12 devrcs * Change time_t typedef from "unsigned int" to "int" to * match the server and what it has historically been. * Added more shorthand definitions for unsigned typedefs. * Made conditional on ASSEMBLER not being defined. * [1995/12/01 20:39:08 jfraser] * * Merged '64-bit safe' changes from DEC alpha port. * [1995/11/21 18:10:35 jfraser] * * Revision 1.1.10.2 1995/01/06 19:57:26 devrcs * mk6 CR668 - 1.3b26 merge * add shorthand defs for unsigned typedefs * OSF alpha pal merge * paranoid bit masking, 64bit cleanup, add NBBY * [1994/10/14 03:43:58 dwm] * * Revision 1.1.10.1 1994/09/23 03:13:36 ezf * change marker to not FREE * [1994/09/22 21:59:04 ezf] * * Revision 1.1.3.2 1993/06/03 00:18:19 jeffc * Added to OSF/1 R1.3 from NMK15.0. * [1993/06/02 21:31:08 jeffc] * * Revision 1.1 1992/09/30 02:37:03 robert * Initial revision * * $EndLog$ */ /* CMU_HIST */ /* * Revision 2.6 91/05/14 17:40:39 mrt * Correcting copyright * * Revision 2.5 91/02/05 17:57:07 mrt * Changed to new Mach copyright * [91/02/01 17:49:41 mrt] * * Revision 2.4 90/08/27 22:13:03 dbg * Created. * [90/07/16 dbg] * */ /* CMU_ENDHIST */ /* * Mach Operating System * Copyright (c) 1991,1990 Carnegie Mellon University * All Rights Reserved. * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. * * Carnegie Mellon requests users of this software to return to * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 * * any improvements or extensions that they make and grant Carnegie Mellon rights * to redistribute these changes. */ /* */ #ifndef _SYS_TYPES_H_ #define _SYS_TYPES_H_ #ifndef ASSEMBLER /* * Common type definitions that lots of old files seem to want. */ typedef unsigned char u_char; /* unsigned char */ typedef unsigned short u_short; /* unsigned short */ typedef unsigned int u_int; /* unsigned int */ typedef unsigned long u_long; /* unsigned long */ typedef struct _quad_ { unsigned int val[2]; /* 2 32-bit values make... */ } quad; /* an 8-byte item */ typedef char * caddr_t; /* address of a (signed) char */ typedef int time_t; /* a signed 32 */ typedef unsigned int daddr_t; /* an unsigned 32 */ #if 0 /* off_t should be 64-bit ! */ typedef unsigned int off_t; /* another unsigned 32 */ #endif typedef unsigned short dev_t; /* another unsigned short */ #define NODEV ((dev_t)-1) /* and a null value for it */ #define major(i) (((i) >> 8) & 0xFF) #define minor(i) ((i) & 0xFF) #define makedev(i,j) ((((i) & 0xFF) << 8) | ((j) & 0xFF)) #define NBBY 8 #ifndef NULL #define NULL ((void *) 0) /* the null pointer */ #endif /* * Shorthand type definitions for unsigned storage classes */ typedef unsigned char uchar_t; typedef unsigned short ushort_t; typedef unsigned int uint_t; typedef unsigned long ulong_t; typedef volatile unsigned char vuchar_t; typedef volatile unsigned short vushort_t; typedef volatile unsigned int vuint_t; typedef volatile unsigned long vulong_t; /* * Shorthand type definitions for unsigned storage classes */ typedef uchar_t uchar; typedef ushort_t ushort; typedef uint_t uint; typedef ulong_t ulong; #endif /* !ASSEMBLER */ #endif /* _SYS_TYPES_H_ */ |