]>
Commit | Line | Data |
---|---|---|
1c79356b A |
1 | /* |
2 | * Copyright (c) 2000 Apple Computer, Inc. All rights reserved. | |
3 | * | |
4 | * @APPLE_LICENSE_HEADER_START@ | |
5 | * | |
de355530 A |
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. | |
1c79356b | 11 | * |
de355530 A |
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 | |
1c79356b A |
14 | * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, |
15 | * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, | |
de355530 A |
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. | |
1c79356b A |
19 | * |
20 | * @APPLE_LICENSE_HEADER_END@ | |
21 | */ | |
22 | /* | |
23 | * @OSF_COPYRIGHT@ | |
24 | */ | |
25 | /* | |
26 | * HISTORY | |
27 | * | |
28 | * Revision 1.1.1.1 1998/09/22 21:05:41 wsanchez | |
29 | * Import of Mac OS X kernel (~semeria) | |
30 | * | |
31 | * Revision 1.1.1.1 1998/03/07 02:26:02 wsanchez | |
32 | * Import of OSF Mach kernel (~mburg) | |
33 | * | |
34 | * Revision 1.1.2.1 1996/12/09 16:55:05 stephen | |
35 | * nmklinux_1.0b3_shared into pmk1.1 | |
36 | * New file based on hp_pa | |
37 | * [1996/12/09 11:09:22 stephen] | |
38 | * | |
39 | * $EndLog$ | |
40 | */ | |
41 | /* | |
42 | * Copyright (c) 1988 The Regents of the University of California. | |
43 | * All rights reserved. | |
44 | * | |
45 | * Redistribution and use in source and binary forms are permitted | |
46 | * provided that the above copyright notice and this paragraph are | |
47 | * duplicated in all such forms and that any documentation, | |
48 | * advertising materials, and other materials related to such | |
49 | * distribution and use acknowledge that the software was developed | |
50 | * by the University of California, Berkeley. The name of the | |
51 | * University may not be used to endorse or promote products derived | |
52 | * from this software without specific prior written permission. | |
53 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
54 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
55 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
56 | * | |
57 | * @(#)machlimits.h 7.1 (Berkeley) 2/15/89 | |
58 | */ | |
59 | #ifndef _MACH_MACHLIMITS_H_ | |
60 | #define _MACH_MACHLIMITS_H_ | |
61 | ||
62 | #define CHAR_BIT 8 /* number of bits in a char */ | |
63 | ||
64 | #define SCHAR_MAX 127 /* max value for a signed char */ | |
65 | #define SCHAR_MIN (-128) /* min value for a signed char */ | |
66 | ||
67 | #define UCHAR_MAX 255U /* max value for an unsigned char */ | |
68 | #define CHAR_MAX 127 /* max value for a char */ | |
69 | #define CHAR_MIN (-128) /* min value for a char */ | |
70 | ||
71 | #define USHRT_MAX 65535U /* max value for an unsigned short */ | |
72 | #define SHRT_MAX 32767 /* max value for a short */ | |
73 | #define SHRT_MIN (-32768) /* min value for a short */ | |
74 | ||
75 | #define UINT_MAX 0xFFFFFFFFU /* max value for an unsigned int */ | |
76 | #define INT_MAX 2147483647 /* max value for an int */ | |
77 | #define INT_MIN (-2147483647-1) /* min value for an int */ | |
78 | ||
79 | #define ULONG_MAX UINT_MAX /* max value for an unsigned long */ | |
80 | #define LONG_MAX INT_MAX /* max value for a long */ | |
81 | #define LONG_MIN INT_MIN /* min value for a long */ | |
82 | ||
83 | /* Must be at least two, for internationalization (NLS/KJI) */ | |
84 | #define MB_LEN_MAX 4 /* multibyte characters */ | |
85 | ||
86 | #endif /* _MACH_MACHLIMITS_H_ */ |