]> git.saurik.com Git - apple/xnu.git/blame_incremental - osfmk/ppc/machlimits.h
xnu-792.13.8.tar.gz
[apple/xnu.git] / osfmk / ppc / machlimits.h
... / ...
CommitLineData
1/*
2 * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_OSREFERENCE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the
10 * License may not be used to create, or enable the creation or
11 * redistribution of, unlawful or unlicensed copies of an Apple operating
12 * system, or to circumvent, violate, or enable the circumvention or
13 * violation of, any terms of an Apple operating system software license
14 * agreement.
15 *
16 * Please obtain a copy of the License at
17 * http://www.opensource.apple.com/apsl/ and read it before using this
18 * file.
19 *
20 * The Original Code and all software distributed under the License are
21 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
22 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
23 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
25 * Please see the License for the specific language governing rights and
26 * limitations under the License.
27 *
28 * @APPLE_LICENSE_OSREFERENCE_HEADER_END@
29 */
30/*
31 * @OSF_COPYRIGHT@
32 */
33/*
34 * HISTORY
35 *
36 * Revision 1.1.1.1 1998/09/22 21:05:41 wsanchez
37 * Import of Mac OS X kernel (~semeria)
38 *
39 * Revision 1.1.1.1 1998/03/07 02:26:02 wsanchez
40 * Import of OSF Mach kernel (~mburg)
41 *
42 * Revision 1.1.2.1 1996/12/09 16:55:05 stephen
43 * nmklinux_1.0b3_shared into pmk1.1
44 * New file based on hp_pa
45 * [1996/12/09 11:09:22 stephen]
46 *
47 * $EndLog$
48 */
49/*
50 * Copyright (c) 1988 The Regents of the University of California.
51 * All rights reserved.
52 *
53 * Redistribution and use in source and binary forms are permitted
54 * provided that the above copyright notice and this paragraph are
55 * duplicated in all such forms and that any documentation,
56 * advertising materials, and other materials related to such
57 * distribution and use acknowledge that the software was developed
58 * by the University of California, Berkeley. The name of the
59 * University may not be used to endorse or promote products derived
60 * from this software without specific prior written permission.
61 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
62 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
63 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
64 *
65 * @(#)machlimits.h 7.1 (Berkeley) 2/15/89
66 */
67#ifndef _MACH_MACHLIMITS_H_
68#define _MACH_MACHLIMITS_H_
69
70#define CHAR_BIT 8 /* number of bits in a char */
71
72#define SCHAR_MAX 127 /* max value for a signed char */
73#define SCHAR_MIN (-128) /* min value for a signed char */
74
75#define UCHAR_MAX 255U /* max value for an unsigned char */
76#define CHAR_MAX 127 /* max value for a char */
77#define CHAR_MIN (-128) /* min value for a char */
78
79#define USHRT_MAX 65535U /* max value for an unsigned short */
80#define SHRT_MAX 32767 /* max value for a short */
81#define SHRT_MIN (-32768) /* min value for a short */
82
83#define UINT_MAX 0xFFFFFFFFU /* max value for an unsigned int */
84#define INT_MAX 2147483647 /* max value for an int */
85#define INT_MIN (-2147483647-1) /* min value for an int */
86
87#define ULONG_MAX UINT_MAX /* max value for an unsigned long */
88#define LONG_MAX INT_MAX /* max value for a long */
89#define LONG_MIN INT_MIN /* min value for a long */
90
91/* Must be at least two, for internationalization (NLS/KJI) */
92#define MB_LEN_MAX 4 /* multibyte characters */
93
94#endif /* _MACH_MACHLIMITS_H_ */