]>
git.saurik.com Git - apple/xnu.git/blob - osfmk/ppc/machlimits.h
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:41 wsanchez
29 * Import of Mac OS X kernel (~semeria)
31 * Revision 1.1.1.1 1998/03/07 02:26:02 wsanchez
32 * Import of OSF Mach kernel (~mburg)
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]
42 * Copyright (c) 1988 The Regents of the University of California.
43 * All rights reserved.
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.
57 * @(#)machlimits.h 7.1 (Berkeley) 2/15/89
59 #ifndef _MACH_MACHLIMITS_H_
60 #define _MACH_MACHLIMITS_H_
62 #define CHAR_BIT 8 /* number of bits in a char */
64 #define SCHAR_MAX 127 /* max value for a signed char */
65 #define SCHAR_MIN (-128) /* min value for a signed char */
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 */
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 */
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 */
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 */
83 /* Must be at least two, for internationalization (NLS/KJI) */
84 #define MB_LEN_MAX 4 /* multibyte characters */
86 #endif /* _MACH_MACHLIMITS_H_ */