xref: /titanic_50/usr/src/lib/libast/amd64/include/ast/ast_limits.h (revision 3e14f97f673e8a630f076077de35afdd43dc1587)
1 /***********************************************************************
2 *                                                                      *
3 *               This software is part of the ast package               *
4 *          Copyright (c) 1985-2010 AT&T Intellectual Property          *
5 *                      and is licensed under the                       *
6 *                  Common Public License, Version 1.0                  *
7 *                    by AT&T Intellectual Property                     *
8 *                                                                      *
9 *                A copy of the License is available at                 *
10 *            http://www.opensource.org/licenses/cpl1.0.txt             *
11 *         (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9)         *
12 *                                                                      *
13 *              Information and Software Systems Research               *
14 *                            AT&T Research                             *
15 *                           Florham Park NJ                            *
16 *                                                                      *
17 *                 Glenn Fowler <gsf@research.att.com>                  *
18 *                  David Korn <dgk@research.att.com>                   *
19 *                   Phong Vo <kpv@research.att.com>                    *
20 *                                                                      *
21 ***********************************************************************/
22 /* : : generated from /home/gisburn/ksh93/ast_ksh_20100309/build_i386_64bit/src/lib/libast/features/limits.c by iffe version 2009-12-04 : : */
23 #ifndef _def_limits_ast
24 #define _def_limits_ast	1
25 #define _sys_types	1	/* #include <sys/types.h> ok */
26 
27 
28 #ifndef CHAR_BIT
29 #define CHAR_BIT 8
30 #endif
31 #ifndef CHAR_MAX
32 #define CHAR_MAX 127
33 #endif
34 #ifndef CHAR_MIN
35 #define CHAR_MIN -128
36 #endif
37 #ifndef CLOCKS_PER_SEC
38 #define CLOCKS_PER_SEC 1000000
39 #endif
40 #ifndef INT_MIN
41 #define INT_MIN -2147483648
42 #endif
43 #ifndef LLONG_MAX
44 #define LLONG_MAX 9223372036854775807
45 #endif
46 #ifndef LLONG_MIN
47 #define LLONG_MIN -9223372036854775808
48 #endif
49 #ifndef LONG_MAX
50 #define LONG_MAX 2147483647
51 #endif
52 #ifndef LONG_MIN
53 #define LONG_MIN -2147483648
54 #endif
55 #ifndef MB_LEN_MAX
56 #define MB_LEN_MAX 5
57 #endif
58 #ifndef OPEN_MAX_CEIL
59 #ifndef OPEN_MAX
60 #define OPEN_MAX 256
61 #endif
62 #define OPEN_MAX_CEIL OPEN_MAX
63 #endif
64 #ifndef PTHREAD_STACK_MIN
65 #define PTHREAD_STACK_MIN 4096
66 #endif
67 #ifndef PTRDIFF_MAX
68 #define PTRDIFF_MAX 9223372036854775807
69 #endif
70 #ifndef PTRDIFF_MIN
71 #define PTRDIFF_MIN -9223372036854775808
72 #endif
73 #ifndef SCHAR_MAX
74 #define SCHAR_MAX 127
75 #endif
76 #ifndef SCHAR_MIN
77 #define SCHAR_MIN -128
78 #endif
79 #ifndef SHRT_MIN
80 #define SHRT_MIN -32768
81 #endif
82 #ifndef SIG_ATOMIC_MAX
83 #define SIG_ATOMIC_MAX 2147483647
84 #endif
85 #ifndef SIG_ATOMIC_MIN
86 #define SIG_ATOMIC_MIN -2147483648
87 #endif
88 #ifndef SIZE_MAX
89 #ifndef UINT_MAX
90 #define UINT_MAX 4294967295
91 #endif
92 #define SIZE_MAX UINT_MAX
93 #endif
94 #ifndef SSIZE_MAX
95 #ifndef INT_MAX
96 #define INT_MAX 2147483647
97 #endif
98 #define SSIZE_MAX INT_MAX
99 #endif
100 #ifndef TMP_MAX
101 #define TMP_MAX 17576
102 #endif
103 #ifndef UCHAR_MAX
104 #define UCHAR_MAX 255
105 #endif
106 #ifndef ULLONG_MAX
107 #define ULLONG_MAX 18446744073709551615
108 #endif
109 #ifndef ULONG_MAX
110 #define ULONG_MAX 4294967295
111 #endif
112 #ifndef USHRT_MAX
113 #define USHRT_MAX 65535
114 #endif
115 #ifndef WCHAR_MAX
116 #define WCHAR_MAX 2147483647
117 #endif
118 #ifndef WCHAR_MIN
119 #define WCHAR_MIN -2147483648
120 #endif
121 #ifndef WINT_MAX
122 #define WINT_MAX 2147483647
123 #endif
124 #ifndef WINT_MIN
125 #define WINT_MIN -2147483648
126 #endif
127 
128 #endif
129