Subversion Repositories tendra.SVN

Rev

Rev 72 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 72 Rev 75
Line 4... Line 4...
4
/*#include_next <limits.h>*/
4
/*#include_next <limits.h>*/
-
 
5
 
-
 
6
#define	_POSIX_ARG_MAX		4096
-
 
7
#define	_POSIX_LINK_MAX		8
-
 
8
#define	_POSIX_MAX_CANON	255
-
 
9
#define	_POSIX_MAX_INPUT	255
-
 
10
#define	_POSIX_NAME_MAX		14
-
 
11
#define	_POSIX_PIPE_BUF		512
-
 
12
#define	_POSIX_SSIZE_MAX	32767
-
 
13
#define	_POSIX_STREAM_MAX	8
-
 
14
#define	_POSIX_TZNAME_MAX	3
5
 
15
 
6
 
16
 
7
/*
17
/*
8
 * According to ANSI (section 2.2.4.2), the values below must be usable by
18
 * According to ANSI (section 2.2.4.2), the values below must be usable by
9
 * #if preprocessing directives.  Additionally, the expression must have the
19
 * #if preprocessing directives.  Additionally, the expression must have the
Line 12... Line 22...
12
 * INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
22
 * INT_MIN, etc., is so the value is not unsigned; e.g., 0x80000000 is an
13
 * unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
23
 * unsigned int for 32-bit two's complement ANSI compilers (section 3.1.3.2).
14
 */
24
 */
15
 
25
 
16
 
26
 
17
 
27
 
18
 
28
 
19
#define	__USHRT_MAX	0xffff		/* max value for an unsigned short */
29
#define	__USHRT_MAX	0xffff		/* max value for an unsigned short */
20
#define	__SHRT_MAX	0x7fff		/* max value for a short */
30
#define	__SHRT_MAX	0x7fff		/* max value for a short */
21
#define	__SHRT_MIN	(-0x7fff - 1)	/* min value for a short */
31
#define	__SHRT_MIN	(-0x7fff - 1)	/* min value for a short */
22
 
32
 
23
#define	__UINT_MAX	0xffffffff	/* max value for an unsigned int */
33
#define	__UINT_MAX	0xffffffff	/* max value for an unsigned int */
24
#define	__INT_MAX	0x7fffffff	/* max value for an int */
34
#define	__INT_MAX	0x7fffffff	/* max value for an int */
25
#define	__INT_MIN	(-0x7fffffff - 1)	/* min value for an int */
35
#define	__INT_MIN	(-0x7fffffff - 1)	/* min value for an int */
26
 
36
 
27
#ifdef	__LP64__
37
#ifdef	__LP64__
Line 59... Line 69...
59
#define	__QUAD_MIN	__LLONG_MIN
69
#define	__QUAD_MIN	__LLONG_MIN
60
#define	__LONG_BIT	32
70
#define	__LONG_BIT	32
61
#endif
71
#endif
62
 
72
 
63
#define	__WORD_BIT	32
73
#define	__WORD_BIT	32
-
 
74
#define	SSIZE_MAX	__SSIZE_MAX	/* max value for an ssize_t */
64
 
75
 
65
/* Minimum signal stack size. */
76
/* Minimum signal stack size. */
66
#define	__MINSIGSTKSZ	(512 * 4)
77
#define	__MINSIGSTKSZ	(512 * 4)
67
 
78
 
68
 
79
 
69
 
80
 
70
#ifndef NL_ARGMAX
81
#ifndef NL_ARGMAX
71
#define NL_ARGMAX	99
82
#define NL_ARGMAX	99
72
#endif
83
#endif
73
 
84
 
74
#ifndef NL_LANGMAX
85
#ifndef NL_LANGMAX
75
#define NL_LANGMAX	31
86
#define NL_LANGMAX	31
76
#endif
87
#endif
77
 
88
 
78
#ifndef NL_MSGMAX
89
#ifndef NL_MSGMAX
79
#define NL_MSGMAX	32767
90
#define NL_MSGMAX	32767
80
#endif
91
#endif
81
 
92
 
82
#ifndef NL_NMAX
93
#ifndef NL_NMAX
83
#define NL_NMAX		1
94
#define NL_NMAX		1
84
#endif
95
#endif
85
 
96
 
86
#ifndef NL_SETMAX
97
#ifndef NL_SETMAX
87
#define NL_SETMAX	255
98
#define NL_SETMAX	255
88
#endif
99
#endif
89
 
100
 
90
#ifndef NL_TEXTMAX
101
#ifndef NL_TEXTMAX
91
#define NL_TEXTMAX	2048
102
#define NL_TEXTMAX	2048
92
#endif
103
#endif
93
 
104
 
94
#ifndef NZERO
105
#ifndef NZERO
95
#define NZERO		0
106
#define NZERO		0
96
#endif
107
#endif
97
 
108
 
98
#ifndef WORD_BIT
109
#ifndef WORD_BIT
99
#define WORD_BIT	32
110
#define WORD_BIT	32
100
#endif
111
#endif
101
 
112
 
102
#ifndef LONG_BIT
113
#ifndef LONG_BIT
103
#define LONG_BIT	32
114
#define LONG_BIT	32
104
#endif
115
#endif
105
 
116
 
106
#define	CHAR_BIT	8		/* number of bits in a char */
117
#define	CHAR_BIT	8		/* number of bits in a char */
Line 127... Line 138...
127
 
138
 
128
#define	ULONG_MAX	__ULONG_MAX	/* max for an unsigned long */
139
#define	ULONG_MAX	__ULONG_MAX	/* max for an unsigned long */
129
#define	LONG_MAX	__LONG_MAX	/* max for a long */
140
#define	LONG_MAX	__LONG_MAX	/* max for a long */
130
#define	LONG_MIN	__LONG_MIN	/* min for a long */
141
#define	LONG_MIN	__LONG_MIN	/* min for a long */
131
 
142
 
132
#
-
 
133
#define	NGROUPS_MAX	 	 1023
143
#define	NGROUPS_MAX	 	 1023
-
 
144
 
-
 
145
 
-
 
146
 
134
 
147
 
135
 
148
 
136
#endif
149
#endif